Problem replacingpavement
User user123
Submission Time 2023-12-30 17:39:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

replacingpavement.cpp:16:15: error: ‘L’ was not declared in this scope
16 | int st[N][L], lg[N];
| ^
replacingpavement.cpp: In constructor ‘node::node()’:
replacingpavement.cpp:21:33: error: ‘st’ was not declared in this scope; did you mean ‘s’?
21 | for (int a=0; a<n; a++) st[a][0]=s[a];
| ^~
| s
replacingpavement.cpp:27:17: error: ‘st’ was not declared in this scope; did you mean ‘s’?
27 | st[a][b]=max(st[a][b-1], st[a+(1<<(b-1))][b-1]);
| ^~
| s
replacingpavement.cpp: In member function ‘long long int node::query(long long int, long long int)’:
replacingpavement.cpp:34:20: error: ‘st’ was not declared in this scope; did you mean ‘s’?
34 | return max(st[l][i], st[r-(1<<i)+1][i]);
| ^~
| s