Problem fenwicktree
User louisleehi
Submission Time 2023-12-24 18:51:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fenwicktree.cpp: In function ‘void buildSegmentTree(const std::vector<int>&, int, int, int)’:
fenwicktree.cpp:23:56: error: a function-definition is not allowed here before ‘{’ token
23 | void updateFenwickTree(int index, int value, int size) {
| ^
fenwicktree.cpp:30:29: error: a function-definition is not allowed here before ‘{’ token
30 | int getPrefixSum(int index) {
| ^
fenwicktree.cpp:39:35: error: a function-definition is not allowed here before ‘{’ token
39 | int rangeSum(int left, int right) {
| ^
fenwicktree.cpp:43:12: error: a function-definition is not allowed here before ‘{’ token
43 | int main() {
| ^
fenwicktree.cpp:75:1: error: expected ‘}’ at end of input
75 | }
| ^
fenwicktree.cpp:8:75: note: to match this ‘{’
8 | void buildSegmentTree(con