/in/foo.cc: In function 'int main()':
/in/foo.cc:7:21: warning: too many arguments for format [-Wformat-extra-args]
scanf("%d",&n,&m);
^
/in/foo.cc:31:62: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int*' [-Wformat=]
printf("%d%d%d%d",&a[p[i]],&b[p[i]],&c[p[i]],&d[p[i]]);
^
/in/foo.cc:31:62: warning: format '%d' expects argument of type 'int', but argument 3 has type 'int*' [-Wformat=]
/in/foo.cc:31:62: warning: format '%d' expects argument of type 'int', but argument 4 has type 'int*' [-Wformat=]
/in/foo.cc:31:62: warning: format '%d' expects argument of type 'int', but argument 5 has type 'int*' [-Wformat=]