Problem rmaxq
User chickengoat
Submission Time 2025-12-03 17:03:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rmaxq.cpp:5:10: error: array bound is not an integer constant before ‘]’ token
5 | ll init[n];
| ^
rmaxq.cpp: In constructor ‘node::node(ll, ll)’:
rmaxq.cpp:12:19: error: ‘init’ was not declared in this scope; did you mean ‘int’?
12 | val = init[S];
| ^~~~
| int
rmaxq.cpp: In function ‘int main()’:
rmaxq.cpp:41:10: error: ‘init’ was not declared in this scope; did you mean ‘int’?
41 | cin >> init[i];
| ^~~~
| int
rmaxq.cpp:46:11: error: expected ‘;’ before ‘if’
46 | cin >> T
| ^
| ;
47 | if(T==1) {
| ~~
rmaxq.cpp:52:3: error: ‘else’ without a previous ‘if’
52 | else {
| ^~~~
rmaxq.cpp:54:21: error: expected ‘;’ before ‘segtree’
54 | cin >> a >> b >>c
| ^
|