| Problem | candymountain_ex |
|---|---|
| User | LL |
| Submission Time | 2025-10-10 11:22:15 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
candymountain_ex.cpp: In function ‘int main()’:
candymountain_ex.cpp:61:2: error: ‘arr’ was not declared in this scope
61 | arr[x]
| ^~~
candymountain_ex.cpp:62:14: error: ‘i’ was not declared in this scope
62 | for(ll i=0; i<x; i++){
| ^
candymountain_ex.cpp:66:28: error: ‘n’ was not declared in this scope
66 | node * root = new node(0, n+1);
| ^
candymountain_ex.cpp:71:18: error: no matching function for call to ‘node::up(long long int&, long long int&)’
71 | root->up(i,calc);
| ^
candymountain_ex.cpp:19:10: note: candidate: ‘void node::up(long long int, long long int, long long int)’
19 | void up(ll le, ll ri, ll v) {
| ^~
candymountain_ex.cpp:19:10: note: candidate expects 3 arguments, 2 provided
candymountain_ex.cpp:73:7: error: invalid use of non-static member function ‘long long int node::qry(long long