nicegift.cpp: In function 'int main()':
nicegift.cpp:7:13: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
7 | scanf("%I64d %I64d\n",&a,&k);
| ~~~~^ ~~
| | |
| int* long long int*
| %I64lld
nicegift.cpp:7:19: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
7 | scanf("%I64d %I64d\n",&a,&k);
| ~~~~^ ~~
| | |
| int* long long int*
| %I64lld
nicegift.cpp:9:14: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
9 | scanf("%I64d",&f[i]);
| ~~~~^ ~~~~~
| | |
| | long long int*
| int*
| %I64lld
nicegift.cpp:25:16: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
25 | printf("%I64d ",d);
| ~~~~^ ~
| | |
| int long long int
| %I64lld
nicegift.cpp:30:17: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
30 | printf("%I64d ",j);
| ~~~~^ ~
| | |
| int long long int
| %I64lld
nicegift.cpp:7:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
7 | scanf("%I64d %I64d\n",&a,&k);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
nicegift.cpp:9:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | scanf("%I64d",&f[i]);
| ~~~~~^~~~~~~~~~~~~~~