Accepted
/in/foo.cc: In function 'int sr()':
/in/foo.cc:9:27: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
scanf("%d %d\n",&t1,&t2);
~~~ ^
/in/foo.cc:9:27: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=]
/in/foo.cc: In function 'int sc()':
/in/foo.cc:26:21: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
printf("%d\n",ans);
^