0_0_22618052_29152.cpp: In function 'int main()': 0_0_22618052_29152.cpp:60:16: error: 'flag' was not declared in this scope memset(flag,0,sizeof(flag)); ^