Problem ccs
User Enigma
Submission Time 2023-11-09 10:09:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ccs.cpp: In function ‘void update(std::vector<Node>&, long long int, long long int, long long int)’:
ccs.cpp:39:46: error: expected ‘]’ at end of input
39 | segmentTree[node].sum = segmentTree[2
| ~^
| ]
ccs.cpp:39:45: error: cannot convert ‘__gnu_cxx::__alloc_traits<std::allocator<Node>, Node>::value_type’ {aka ‘Node’} to ‘long long int’ in assignment
39 | segmentTree[node].sum = segmentTree[2
| ^
ccs.cpp:39:45: error: expected ‘}’ at end of input
ccs.cpp:32:12: note: to match this ‘{’
32 | } else {
| ^
ccs.cpp:39:45: error: expected ‘}’ at end of input
39 | segmentTree[node].sum = segmentTree[2
| ^
ccs.cpp:26:75: note: to match this ‘{’
26 | void update(vector<