/in/foo.c: In function 'main':
/in/foo.c:6:17: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long int *' [-Wformat=]
6 | scanf("%d %d %d %d",&l,&s,&t,&m);
| ~^ ~~
| | |
| int * long int *
| %ld
/in/foo.c:6:20: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long int *' [-Wformat=]
6 | scanf("%d %d %d %d",&l,&s,&t,&m);
| ~^ ~~
| | |
| int * long int *
| %ld
/in/foo.c:6:23: warning: format '%d' expects argument of type 'int *', but argument 4 has type 'long int *' [-Wformat=]
6 | scanf("%d %d %d %d",&l,&s,&t,&m);
| ~^ ~~
| | |
| int * long int *
| %ld
/in/foo.c:6:26: warning: format '%d' expects argument of type 'int *', but argument 5 has type 'long int *' [-Wformat=]
6 | scanf("%d %d %d %d",&l,&s,&t,&m);
| ~^ ~~
| | |
| int * long int *
| %ld
/in/foo.c:8:41: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long int *' [-Wformat=]
8 | for (i = 0; i < m; i++) scanf("%d",&a[i]);
| ~^ ~~~~~
| | |
| | long int *
| int *
| %ld
/in/foo.c:16:26: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
16 | printf("%d", ans);
| ~^ ~~~
| | |
| int long int
| %ld
/in/foo.c:63:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
63 | printf("%d", ans);
| ~^ ~~~
| | |
| int long int
| %ld