Problem rainbow
User chenweilian
Submission Time 2024-11-04 18:03:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rainbow.cpp:56:21: error: ‘maxn’ was not declared in this scope
56 | vector<int> com[maxn], pre[maxn];
| ^~~~
rainbow.cpp:56:32: error: ‘maxn’ was not declared in this scope
56 | vector<int> com[maxn], pre[maxn];
| ^~~~
rainbow.cpp: In member function ‘void BIT::update(int, int)’:
rainbow.cpp:61:13: error: ‘com’ was not declared in this scope; did you mean ‘cos’?
61 | com[i].push_back(y);
| ^~~
| cos
rainbow.cpp: In member function ‘void BIT::build(int)’:
rainbow.cpp:65:14: error: ‘com’ was not declared in this scope; did you mean ‘cos’?
65 | sort(com[x].begin(), com[x].end());
| ^~~
| cos
rainbow.cpp:73:17: error: ‘pre’ was not declared in this scope
73 | pre[x].push_back(1);
| ^~~
rainbow.cpp:76:17: er