foo.cc: In function 'int main()':
foo.cc:11:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
   11 |    if(i!=j)
      |      ^
foo.cc:6:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    6 |  scanf("%d",&n);
      |  ~~~~~^~~~~~~~~
foo.cc:7:49: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    7 |  for(int i=1;i<=n;i++)for(int j=1;j<=n;j++)scanf("%d",&a[i][j]);
      |                                            ~~~~~^~~~~~~~~~~~~~~
   
  
    Found 5 testcases.
[Hydro](https://hydro.ac)提供评测服务