Main.cc: In function 'int main()': Main.cc:27:17: error: 's' was not declared in this scope s+=a[i][j]; ^