Runtime Error
/in/foo.cc: In function 'int main()':
/in/foo.cc:13:21: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
  scanf("%d %d",&m,&n);
                     ^
/in/foo.cc:13:21: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:15:20: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
  printf("%d",sum[n]);
                    ^