/in/foo.cc: In function 'int main()':
/in/foo.cc:56:21: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
   scanf("%d%d", n, m);
                     ^
/in/foo.cc:56:21: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'int' [-Wformat=]
/in/foo.cc:59:24: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'char*' [-Wformat=]
    scanf("%d", a[i] + 1);
                        ^
/in/foo.cc:53:12: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized]
  int t, n, m, i, j;
            ^
/in/foo.cc:56:22: warning: 'n' may be used uninitialized in this function [-Wmaybe-uninitialized]
   scanf("%d%d", n, m);
                      ^