boat.cpp: In function 'int main()':
boat.cpp:43:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
43 | for (int i = 0; i < v.size() - 1; i++) len[i + 1] = v[i + 1] - v[i];
| ~~^~~~~~~~~~~~~~
boat.cpp:47:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
47 | for (int i = 0; i < v.size(); i++) dp[0][i] = 1;
| ~~^~~~~~~~~~
boat.cpp:62:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
62 | for (int j = 0; j < v.size(); j++) {
| ~~^~~~~~~~~~
boat.cpp:73:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'llint' {aka 'long long int'} [-Wformat=]
73 | printf("%d\n", (mod + dp[n][v.size() - 1] - 1) % mod);
| ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| int llint {aka long long int}
| %lld
boat.cpp:29:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
29 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
boat.cpp:31:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
31 | scanf("%d%d", a+i, b+i);
| ~~~~~^~~~~~~~~~~~~~~~~~