Main.cc: In function 'int main()': Main.cc:21:17: error: 'a' was not declared in this scope int m,n,k,flag=a; ^