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