fireworks.cpp: In function 'long long int DP(int, long long int)':
fireworks.cpp:32:23: error: 'dista' was not declared in this scope; did you mean 'dist'?
32 | for(ll dx = 0; dx <= dista; dx++){
| ^~~~~
| dist
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:54:6: warning: statement has no effect [-Wunused-value]
54 | for(dist; dist <= maxi; dist++){
| ^~~~
fireworks.cpp:59:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
59 | 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]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~