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