Problem candyshop
User Josh28acc2
Submission Time 2024-01-01 20:16:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

candyshop.cpp: In member function ‘void node::pu(long long int, stdata)’:
candyshop.cpp:143:20: error: ‘struct node’ has no member named ‘upd’
143 | if(x>m) r->upd(x,y);
| ^~~
candyshop.cpp:144:17: error: ‘struct node’ has no member named ‘upd’
144 | else l->upd(x,y);
| ^~~
candyshop.cpp: In member function ‘stdata node::rq(long long int, long long int)’:
candyshop.cpp:157:30: error: ‘struct node’ has no member named ‘query’
157 | if(y<=m) { return l->query(x, y);}
| ^~~~~
candyshop.cpp:158:29: error: ‘struct node’ has no member named ‘query’
158 | if(x>m) { return r->query(x, y);}
| ^~~~~
candyshop.cpp:159:27: error: ‘struct node’ has no member named ‘query’
159 | return combine(l->query(x, m), r->query(m+1, y));
| ^