Problem | bananafarm |
---|---|
User | Pan |
Submission Time | 2023-12-09 18:49:46 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
bananafarm.cpp:14:13: error: invalid use of non-static data member ‘node::e’
14 | ll sets[e-s+1]; //sum of [s,e]
| ^
bananafarm.cpp:13:11: note: declared here
13 | ll s, e, m; //range is [s,e], m is the middle point
| ^
bananafarm.cpp:14:15: error: invalid use of non-static data member ‘node::s’
14 | ll sets[e-s+1]; //sum of [s,e]
| ^
bananafarm.cpp:13:8: note: declared here
13 | ll s, e, m; //range is [s,e], m is the middle point
| ^
bananafarm.cpp: In member function ‘void node::update(ll, ll)’:
bananafarm.cpp:25:20: error: ‘sets’ was not declared in this scope; did you mean ‘setns’?
25 | if(s == e) {sets[0]=V;} //node is leaf, update value;
| ^~~~
| setns
bananafarm.cpp:30:24: error: ‘struct node’ has no member named ‘sets’
30 | vector<ll> a = l->sets, b = r-&g