Main.cc: In function 'int main()': Main.cc:8:9: error: 'a' was not declared in this scope cin>>a[i][j]; ^ Main.cc:16:17: error: 'a' was not declared in this scope printf("%5d",a[i][j]); ^