Problem | chickensoup |
---|---|
User | PlayVoltz |
Submission Time | 2023-12-06 11:05:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
chickensoup.cpp: In function ‘int32_t main()’:
chickensoup.cpp:58:35: error: ‘i’ was not declared in this scope
58 | for (int j=b; j<=n; ++j)st->up(i, (c-vect[b])*psum[temp++]);
| ^
chickensoup.cpp:61:33: error: no matching function for call to ‘node::query(long long int&)’
61 | else cin>>b, cout<<st->query(b)<<"\n";
| ^
chickensoup.cpp:32:6: note: candidate: ‘long long int node::query(long long int, long long int)’
32 | int query(int left, int right){
| ^~~~~
chickensoup.cpp:32:6: note: candidate expects 2 arguments, 1 provided