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