Main.cc: In function 'int main()':
Main.cc:14:18: error: 'n' was not declared in this scope
if(i==j||i+j==n+1){
^
Main.cc:15:27: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%5d",a[j][i]+d);
^
Main.cc:17:25: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%5d",a[j][i]);
^