0_0_38470937_22061.cpp: In function 'int main()': 0_0_38470937_22061.cpp:47:17: error: 'flag' was not declared in this scope if(c1[i]==0&&flag == 0){ ^