foo.cc: In function ‘int main()’:
foo.cc:15:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
15 | scanf("%d",&a);
| ~^ ~~
| | |
| | long long int*
| int*
| %lld
foo.cc:19:26: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
19 | scanf("%ld%ld%ld",&x,&y,&z);
| ~~^ ~~
| | |
| | long long int*
| long int*
| %lld
foo.cc:19:29: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
19 | scanf("%ld%ld%ld",&x,&y,&z);
| ~~^ ~~
| | |
| | long long int*
| long int*
| %lld
foo.cc:19:32: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘long long int*’ [-Wformat=]
19 | scanf("%ld%ld%ld",&x,&y,&z);
| ~~^ ~~
| | |
| | long long int*
| long int*
| %lld
foo.cc:23:34: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
23 | scanf("%ld",&b);
| ~~^ ~~
| | |
| | long long int*
| long int*
| %lld
foo.cc:12:19: warning: unused variable ‘n’ [-Wunused-variable]
12 | long long n[2000]={0};
| ^
foo.cc:13:19: warning: unused variable ‘cnt’ [-Wunused-variable]
13 | long long cnt=0;
| ^~~