/in/foo.cc: In function 'int main()':
/in/foo.cc:36:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    for(int k=x[i];k<=n;k++)
    ^~~
/in/foo.cc:38:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
     a[n][m]=temp;
     ^
/in/foo.cc:14:20: warning: unused variable 'k' [-Wunused-variable]
  int n,m,p,tot=0,j,k,temp=0,i;
                    ^
/in/foo.cc:14:22: warning: unused variable 'temp' [-Wunused-variable]
  int n,m,p,tot=0,j,k,temp=0,i;
                      ^~~~
/in/foo.cc:24:7: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized]
    ++i;
       ^
/in/foo.cc:21:6: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized]
   ++j;
      ^