Discharging.cpp: In function 'int main()':
Discharging.cpp:8:16: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
8 | scanf("%I64d",&a);
| ~~~~^ ~~
| | |
| | long long int*
| int*
| %I64lld
Discharging.cpp:10:36: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
10 | for(i=1; i<=a; i++) scanf("%I64d",&f[i]);
| ~~~~^ ~~~~~
| | |
| | long long int*
| int*
| %I64lld
Discharging.cpp:8:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
8 | scanf("%I64d",&a);
| ~~~~~^~~~~~~~~~~~
Discharging.cpp:9:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
9 | scanf("\n");
| ~~~~~^~~~~~
Discharging.cpp:10:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
10 | for(i=1; i<=a; i++) scanf("%I64d",&f[i]);
| ~~~~~^~~~~~~~~~~~~~~