#include <iostream>
#include<cmath>
using namespace std;
int main()
{
void f1();
try
{
f1();
}
catch (double)
{
cout << "ERROR0" << endl;
}
cout << "end0" << endl;
return 0;
}
void f1()
{
void f2();
try
{
f2();
}
catch (char)
{
cout << "ERROR1";
}
cout << "end1" << endl;
}
void f2()
{
void f3();
try
{
f3();
}
catch (int)
{
cout << "ERROR2";
}
cout << "end2" << endl;
}
void f3()
{
double a = 0;
try
{
throw a;
}
catch (float)
{
cout << "ERROR3" << endl;
}
cout << "end3" << endl;
}