116666_0_18651.cpp: In function `int main()': 116666_0_18651.cpp:15: error: `flag' undeclared (first use this function) 116666_0_18651.cpp:15: error: (Each undeclared identifier is reported only once for each function it appears in.)