/in/foo.c: In function 'main':
/in/foo.c:5:24: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long int *' [-Wformat=]
long int a,b; scanf("%d%d",&a,&b);
~^ ~~
%ld
/in/foo.c:5:26: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long int *' [-Wformat=]
long int a,b; scanf("%d%d",&a,&b);
~^ ~~
%ld
/in/foo.c:6:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
printf("%d\n",a+b);
~^ ~~~
%ld