foo.cc: In function ‘int main()’:
foo.cc:14:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
14 | scanf("%d",&a);
| ~^ ~~
| | |
| | long long int*
| int*
| %lld
foo.cc:18:26: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
18 | scanf("%ld%ld%ld",&x,&y,&z);
| ~~^ ~~
| | |
| | long long int*
| long int*
| %lld
foo.cc:18:29: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
18 | scanf("%ld%ld%ld",&x,&y,&z);
| ~~^ ~~
| | |
| | long long int*
| long int*
| %lld
foo.cc:18:32: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘long long int*’ [-Wformat=]
18 | scanf("%ld%ld%ld",&x,&y,&z);
| ~~^ ~~
| | |
| | long long int*
| long int*
| %lld
foo.cc:22:34: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
22 | scanf("%ld",&b);
| ~~^ ~~
| | |
| | long long int*
| long int*
| %lld
foo.cc:31:29: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=]
31 | printf("%ld\n",n[t]);
| ~~^ ~~~~
| | |
| | long long int
| long int
| %lld