fireworks.cpp: In function 'int main()':
fireworks.cpp:49:11: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
49 | scanf("%d%d", &p[i], &c[i]);
| ~^ ~~~~~
| | |
| int* long long int*
| %lld
fireworks.cpp:49:13: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
49 | scanf("%d%d", &p[i], &c[i]);
| ~^ ~~~~~
| | |
| int* long long int*
| %lld
fireworks.cpp:68:12: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
68 | printf("%d", ans);
| ~^ ~~~
| | |
| int long long int
| %lld
fireworks.cpp:46:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
46 | scanf("%d%d", &n, &m);
| ~~~~~^~~~~~~~~~~~~~~~
fireworks.cpp:49:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
49 | scanf("%d%d", &p[i], &c[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~