Problem cokemoresugar
User giaan1231
Submission Time 2024-12-11 15:30:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cokemoresugar.cpp: In function ‘void build(int, int, int)’:
cokemoresugar.cpp:5:9: error: ‘tree’ was not declared in this scope; did you mean ‘tr’?
5 | tree[v].sum = f[tl] * s[tl];
| ^~~~
| tr
cokemoresugar.cpp:5:23: error: ‘f’ was not declared in this scope
5 | tree[v].sum = f[tl] * s[tl];
| ^
cokemoresugar.cpp:5:31: error: ‘s’ was not declared in this scope
5 | tree[v].sum = f[tl] * s[tl];
| ^
cokemoresugar.cpp:19:9: error: ‘tree’ was not declared in this scope; did you mean ‘tr’?
19 | tree[v].sum = tree[v * 2].sum + tree[v * 2 + 1].sum;
| ^~~~
| tr
cokemoresugar.cpp: In function ‘void push(int, int, int)’:
cokemoresugar.cpp:31:9: error: ‘tree’ was not declared in this scope; did you mean ‘tr’?
31 | if (tree[v].lazy_f != 0) {
| ^~~~
|