Problem collectmushrooms2
User PlayVoltz
Submission Time 2023-08-25 09:07:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

collectmushrooms2.cpp: In function ‘void update(int, int, int, int)’:
collectmushrooms2.cpp:45:52: error: ‘s’ was not declared in this scope
45 | segmenttree[index] = max(segmenttree[2*index+1], s
| ^
collectmushrooms2.cpp:64:1: error: expected ‘}’ at end of input
64 | }
| ^
collectmushrooms2.cpp:37:6: note: to match this ‘{’
37 | else{
| ^
collectmushrooms2.cpp:64:1: error: expected ‘}’ at end of input
64 | }
| ^
collectmushrooms2.cpp:33:55: note: to match this ‘{’
33 | void update(int index, int low, int high, int findnum){
| ^