copypaste3.cpp:15:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
15 | main(){
| ^~~~
copypaste3.cpp: In function 'int main()':
copypaste3.cpp:35:31: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | for (int k = 0; k < V.size(); k++){
| ~~^~~~~~~~~~
copypaste3.cpp:37:28: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | while (cur < V.size() && V[cur] < j+i) cur++;
| ~~~~^~~~~~~~~~
copypaste3.cpp:39:25: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
39 | if (cur == V.size()) nxt[i][j] = -1;
| ~~~~^~~~~~~~~~~
copypaste3.cpp:60:21: warning: unused variable 'idx' [-Wunused-variable]
60 | int idx = 0;
| ^~~
copypaste3.cpp:16:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | scanf("%lld",&n);
| ~~~~~^~~~~~~~~~~
copypaste3.cpp:18:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
18 | scanf("%lld%lld%lld",&a,&b,&c);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~