Problem | gfriendtree |
---|---|
User | ARock |
Submission Time | 2023-12-23 11:50:10 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gfriendtree.cpp:17:14: error: array bound is not an integer constant before ‘]’ token
17 | int mSum[N+1]; // {b: sum a}
| ^
gfriendtree.cpp:18:14: error: array bound is not an integer constant before ‘]’ token
18 | int mMax[N+1]; // {b: max a}
| ^
gfriendtree.cpp: In member function ‘void node::updateCur(long long int)’:
gfriendtree.cpp:31:3: error: ‘mSum’ was not declared in this scope
31 | mSum[P] = l->mSum[P] + r->mSum[P];
| ^~~~
gfriendtree.cpp:31:16: error: ‘struct node’ has no member named ‘mSum’
31 | mSum[P] = l->mSum[P] + r->mSum[P];
| ^~~~
gfriendtree.cpp:31:29: error: ‘struct node’ has no member named ‘mSum’
31 | mSum[P] = l->mSum[P] + r->mSum[P];
| ^~~~
gfriendtree.cpp:32:3: error: ‘mMax’ was not declared in this scope
32 | mMax[P] = max(l->mMax[P], r->mMax[P]);
|