Main.cc:4:5: error: expected initializer before 'int'
int n,sum=1;
^
Main.cc:5:5: error: 'cin' does not name a type
cin>>n;
^
Main.cc:6:11: error: 'n' was not declared in this scope
int a[n][n];
^
Main.cc:6:14: error: 'n' was not declared in this scope
int a[n][n];
^
Main.cc:7:5: error: expected unqualified-id before 'for'
for(int i=0;i