/in/foo.cc: In function 'int main()':
/in/foo.cc:24:20: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
scanf("%d%d",&m,&n);
^
/in/foo.cc:24:20: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=]
/in/foo.cc:28:20: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
scanf("%d",&ch[i]);
^
/in/foo.cc:31:2: error: 'prin' was not declared in this scope
prin
^~~~
/in/foo.cc:31:2: error: expected '}' at end of input