Main.cc: In function 'int main()':
Main.cc:9:6: error: 'a' was not declared in this scope
a = 1;
^
Main.cc:14:8: error: 'a' was not declared in this scope
if (a == 1) {
^
Main.cc:16:4: error: expected ';' before '}' token
}
^
Main.cc:4:8: warning: unused variable 'flag' [-Wunused-variable]
int n,flag;
^