foo.cc: In function ‘void PRE()’:
foo.cc:26:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
26 | scanf("%d%d",&k,&n);
| ~^ ~~
| | |
| int* long long int*
| %lld
foo.cc:26:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
26 | scanf("%d%d",&k,&n);
| ~^ ~~
| | |
| int* long long int*
| %lld
foo.cc: In function ‘int main()’:
foo.cc:40:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
40 | printf("%d\n",k);
| ~^ ~
| | |
| int long long int
| %lld
foo.cc:45:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
45 | printf("%d\n",f[n]);
| ~^ ~~~~
| | |
| int long long int
| %lld
foo.cc:64:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
64 | printf("%d",ans);
| ~^ ~~~
| | |
| | long long int
| int
| %lld