Problem horses
User nyanyanya
Submission Time 2023-01-18 22:19:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

horses.cpp: In function ‘int query(int)’:
horses.cpp:71:12: error: ‘s’ was not declared in this scope
71 | auto it = s.find(x);
| ^
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:92:17: error: ‘answer’ was not declared in this scope
92 | for (int i = answer; i < candidates.size() - 1 and ans2 < ans1; i++){
| ^~~~~~
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;
| ^