0_0_18355978_23986.cpp: In function 'int main()': 0_0_18355978_23986.cpp:8:33: error: 'a' was not declared in this scope scanf("%d%d",&n,&m);a ^ 0_0_18355978_23986.cpp:12:13: error: 'else' without a previous 'if' else{ ^