Problem chickensoup
User Pan
Submission Time 2024-09-12 17:29:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

chickensoup.cpp: In function ‘int32_t main()’:
chickensoup.cpp:80:19: error: ‘struct node’ has no member named ‘upd’
80 | root->upd(x, v%mod);
| ^~~
chickensoup.cpp:84:31: error: ‘struct node’ has no member named ‘qry’; did you mean ‘query’?
84 | trio psum = root->qry(1, i);
| ^~~
| query
chickensoup.cpp:87:23: error: ‘r’ was not declared in this scope
87 | cout << ((r.two%mod - (((2 * i + 3) % mod) * r.one)% mod + ((((i * i)%mod +(3* i)%mod + 2) % mod) * r.zero)%mod + mod)% mod* 499122177)% mod << endl;
| ^