Problem horses
User nyanyanya
Submission Time 2023-01-18 09:16:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

horses.cpp: In member function ‘void node2::update(long long int, long long int)’:
horses.cpp:51:18: error: expected unqualified-id before ‘=’ token
51 | if (s == e) ll = V;
| ^
horses.cpp:55:27: error: invalid operands of types ‘node2*’ and ‘const long long int’ to binary ‘operator%’
55 | val = (l-val * r->val) % MOD;
| ~~~~~~~~~~~~~~~~ ^ ~~~
| | |
| node2* const long long int
horses.cpp: In function ‘int ans()’:
horses.cpp:72:35: error: ‘struct std::pair<int, int>’ has no member named ‘fi’
72 | res = max(res, root1->query(tmp.fi, tmp.se) * root2->query(0, tmp.se));
| ^~
horses.cpp:72:43: error: ‘struct std::pair<int, int>’ has no member named ‘se’
72 | res = max(res, root1->query(tmp.fi, tmp.se) * root2->query(0, tmp.se));
|