bosses.cpp: In function 'int main()':
bosses.cpp:50:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
50 | printf("%d", sum);
| ~^ ~~~
| | |
| int long long int
| %lld
bosses.cpp:7:17: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
7 | int n; scanf("%d",&n);
| ~~~~~^~~~~~~~~
bosses.cpp:13:21: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
13 | int k; scanf("%d", &k);
| ~~~~~^~~~~~~~~~
bosses.cpp:16:25: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | int a; scanf("%d", &a);
| ~~~~~^~~~~~~~~~