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

Compile Error

chickensoup.cpp:10:10: error: redefinition of ‘const ll mod’
10 | ll const mod = 998244353;
| ^~~
chickensoup.cpp:6:11: note: ‘const long long int mod’ previously defined here
6 | const int mod = 998244353;
| ^~~
chickensoup.cpp: In function ‘int32_t main()’:
chickensoup.cpp:81:19: error: ‘struct node’ has no member named ‘upd’
81 | root->upd(x, v%mod);
| ^~~
chickensoup.cpp:85:31: error: ‘struct node’ has no member named ‘qry’; did you mean ‘query’?
85 | trio psum = root->qry(1, i);
| ^~~
| query
chickensoup.cpp:88:23: error: ‘r’ was not declared in this scope
88 | 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;
| ^<