Problem rmaxq
User Pyrros
Submission Time 2023-02-23 14:43:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rmaxq.cpp: In function ‘void build(ll, ll, ll, std::vector<long long int>&)’:
rmaxq.cpp:17:17: error: void value not ignored as it ought to be
17 | ll left = build(s, mid, ind*2+1, v);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
rmaxq.cpp:18:18: error: void value not ignored as it ought to be
18 | ll right = build(mid+1, e, ind*2+2, v);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
rmaxq.cpp:19:30: error: expected ‘;’ before ‘}’ token
19 | tree[ind] = max(left, right)
| ^
| ;
20 |
21 | }
| ~