Wrong Answer
/in/foo.cc: In function 'int main()': /in/foo.cc:22:20: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=] scanf("%d%d",&n,&m); ~~ ^ /in/foo.cc:22:20: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=] /in/foo.cc:31:23: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=] int x; scanf("%d",&x); ~~^