foo.cc: In function 'int main()':
foo.cc:36:10: warning: unused variable 'k' [-Wunused-variable]
int i,j,k;
^
foo.cc:47:10: error: expected '}' at end of input
return 0;
^
foo.cc:35:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("test.in","r",stdin);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~
foo.cc:37:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
~~~~~^~~~~~~~~
foo.cc:40:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf",&a[i][j]);
~~~~~^~~~~~~~~~~~~~~~