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