prize.cpp: In function 'int find_best(int)':
prize.cpp:5:5: error: 'vector' was not declared in this scope
5 | vector<int> res;
| ^~~~~~
prize.cpp:5:12: error: expected primary-expression before 'int'
5 | vector<int> res;
| ^~~
prize.cpp:7:25: error: 'min' was not declared in this scope
7 | for (int i = 0; i < min(n, need); ++i) {
| ^~~
prize.cpp:8:9: error: 'res' was not declared in this scope
8 | res = ask(i);
| ^~~
prize.cpp:8:15: error: 'ask' was not declared in this scope
8 | res = ask(i);
| ^~~
prize.cpp:24:13: error: 'res' was not declared in this scope
24 | res = ask(mid);
| ^~~
prize.cpp:24:19: error: 'ask' was not declared in this scope
24 | res = ask(mid);
| ^~~
prize.cpp:36:9: error: 'assert' was not declared in this scope
36 | assert(right != n);
| ^~~~~~
prize.cpp:1:1: note: 'assert' is defined in header '<cassert>'; did you forget to '#include <cassert>'?
+++ |+#include <cassert>
1 | const int need = 473;