chase.cpp: In function 'int main()':
chase.cpp:18:11: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
18 | scanf("%d", &val[i]);
| ~^ ~~~~~~~
| | |
| | long long int*
| int*
| %lld
chase.cpp: In function 'void calcDP(int)':
chase.cpp:38:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | for(int i = 0; i < ar[cur].size(); i++){
| ~~^~~~~~~~~~~~~~~~
chase.cpp:44:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
44 | for(int i = 0; i < ar[cur].size(); i++){
| ~~^~~~~~~~~~~~~~~~
chase.cpp: In function 'int main()':
chase.cpp:16:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
16 | scanf("%d %d", &n, &b);
| ~~~~~^~~~~~~~~~~~~~~~~
chase.cpp:18:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
18 | scanf("%d", &val[i]);
| ~~~~~^~~~~~~~~~~~~~~
chase.cpp:22:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
22 | scanf("%d %d", &a, &b);
| ~~~~~^~~~~~~~~~~~~~~~~