fireworks.cpp: In function 'int main()':
fireworks.cpp:45:11: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
45 | scanf("%d%d", &p[i], &c[i]);
| ~^ ~~~~~
| | |
| int* long long int*
| %lld
fireworks.cpp:45:13: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
45 | scanf("%d%d", &p[i], &c[i]);
| ~^ ~~~~~
| | |
| int* long long int*
| %lld
fireworks.cpp:51:6: warning: statement has no effect [-Wunused-value]
51 | for(dist; dist <= maxi; dist++){
| ^~~~
fireworks.cpp:58:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
58 | printf("%d", ans);
| ~^ ~~~
| | |
| int long long int
| %lld
fireworks.cpp:42:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
42 | scanf("%d%d", &n, &m);
| ~~~~~^~~~~~~~~~~~~~~~
fireworks.cpp:45:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
45 | scanf("%d%d", &p[i], &c[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~