Main.cc: In function 'int main()': Main.cc:5:2: error: expected initializer before 'cin' cin>>n>>m; ^ Main.cc:15:15: error: 'm' was not declared in this scope a[n-1][j]=a[m-1][j]; ^