Problem | horses |
---|---|
User | nyanyanya |
Submission Time | 2023-01-18 22:20:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
horses.cpp: In function ‘int query(int)’:
horses.cpp:73:12: error: ‘s’ was not declared in this scope
73 | if (it == s.begin()) start = 0;
| ^
horses.cpp:79:12: error: ‘s’ was not declared in this scope
79 | if (it == s.end()) endd = n - 1;
| ^
horses.cpp: In function ‘int ans()’:
horses.cpp:88:14: error: ‘class std::vector<int>’ has no member named ‘pb’
88 | candidates.pb(*it);
| ^~
horses.cpp:95:27: error: ‘i’ was not declared in this scope; did you mean ‘it’?
95 | if (ans2 < ans1) ans = i;
| ^
| it
horses.cpp:99:27: error: ‘i’ was not declared in this scope
99 | return (query(candidates[i]) * root2->query(0, candidates[i])) % MOD;
| ^