/in/foo.cc: In function 'int main()':
/in/foo.cc:6:20: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%d%d",&n,&x);
^
/in/foo.cc:6:20: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:17:17: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%d",sum);
^
/in/foo.cc:17:18: warning: 'sum' may be used uninitialized in this function [-Wmaybe-uninitialized]
printf("%d",sum);
^