/in/foo.cc: In function 'int main()':
/in/foo.cc:12:23: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'll* {aka long long int*}' [-Wformat=]
scanf("%ld",&t);
^
/in/foo.cc:18:29: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'll* {aka long long int*}' [-Wformat=]
scanf("%ld%ld",&x,&y);
^
/in/foo.cc:18:29: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'll* {aka long long int*}' [-Wformat=]
/in/foo.cc:19:35: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'll {aka long long int}' [-Wformat=]
printf("%ld\n",a[y]-a[x-1]);
^