Problem prefixsums
User Blender
Submission Time 2024-04-04 10:05:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prefixsums.cpp: In function ‘long long unsigned int sum(long long unsigned int*, long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int)’:
prefixsums.cpp:41:48: error: ‘queryENd’ was not declared in this scope; did you mean ‘queryEnd’?
41 | if ( queryStart == currentVertexRangeStart && queryENd = currentVertexRangeEnd )
| ^~~~~~~~
| queryEnd
prefixsums.cpp: In function ‘int main()’:
prefixsums.cpp:55:2: error: ‘Node’ was not declared in this scope
55 | Node tree[4*N];
| ^~~~
prefixsums.cpp:63:9: error: ‘tree’ was not declared in this scope; did you mean ‘free’?
63 | build( tree, numbers, 1, 0, N-1 );
| ^~~~
| free
prefixsums.cpp: At global scope:
prefixsums.cpp:71:1: error: expected declaration before ‘}’ token
71 | }