/in/foo.c: In function 'main':
/in/foo.c:27:11: warning: format '%ld' expects argument of type 'long int *', but argument 2 has type 'long long int *' [-Wformat=]
scanf("%ld%ld",&p,&q);
^
/in/foo.c:27:14: warning: format '%ld' expects argument of type 'long int *', but argument 3 has type 'long long int *' [-Wformat=]
scanf("%ld%ld",&p,&q);
^
/in/foo.c:31:37: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=]
for(i=0;a[i][0]!=0;i++) printf("%ld %ld %ld\n",a[i][0],a[i][1],a[i][2]);
^
/in/foo.c:31:41: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'long long int' [-Wformat=]
for(i=0;a[i][0]!=0;i++) printf("%ld %ld %ld\n",a[i][0],a[i][1],a[i][2]);
^
/in/foo.c:31:45: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'long long int' [-Wformat=]
for(i=0;a[i][0]!=0;i++) printf("%ld %ld %ld\n",a[i][0],a[i][1],a[i][2]);
^