Problem modules
User Tyx2019
Submission Time 2025-10-11 20:45:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

modules.cpp:26:25: error: array bound is not an integer constant before ‘]’ token
26 | vector<int> guys[N+5];
| ^
modules.cpp:27:15: error: array bound is not an integer constant before ‘]’ token
27 | int DP[N+5];
| ^
modules.cpp: In function ‘bool ok(int)’:
modules.cpp:32:23: error: ‘guys’ was not declared in this scope
32 | for(int i=0;i<N;i++) guys[i].clear();
| ^~~~
modules.cpp:37:9: error: ‘guys’ was not declared in this scope
37 | guys[cur].push_back(M2[i].i);
| ^~~~
modules.cpp:41:20: error: ‘guys’ was not declared in this scope
41 | for(auto j:guys[i]){
| ^~~~
modules.cpp:42:28: error: ‘DP’ was not declared in this scope
42 | cur = max(cur, DP[j]);
| ^~
modules.cpp:44:9: error: ‘DP’ was not declared in this scop