prize.cpp: In function 'int find_best(int)':
prize.cpp:11:9: error: 'min' was not declared in this scope; did you mean 'std::min'?
11 | FOR(i, min(500, n)){
| ^~~
prize.cpp:6:39: note: in definition of macro 'FOR'
6 | #define FOR(i, n) for (int i = 0; i < n; i++)
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from prize.cpp:2:
/usr/include/c++/10/bits/stl_algo.h:3474:5: note: 'std::min' declared here
3474 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
prize.cpp:13:8: error: 'max' was not declared in this scope; did you mean 'std::max'?
13 | mn = max(mn, res[0] + res[1]);
| ^~~
| std::max
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from prize.cpp:2:
/usr/include/c++/10/bits/stl_algo.h:3486:5: note: 'std::max' declared here
3486 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
prize.cpp:15:2: error: 'vector' was not declared in this scope; did you mean 'std::vector'?
15 | vector<int> pos;
| ^~~~~~
| std::vector
In file included from /usr/include/c++/10/vector:67,
from prize.h:1,
from prize.cpp:1:
/usr/include/c++/10/bits/stl_vector.h:389:11: note: 'std::vector' declared here
389 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
prize.cpp:15:9: error: expected primary-expression before 'int'
15 | vector<int> pos;
| ^~~
prize.cpp:31:3: error: 'pos' was not declared in this scope; did you mean 'pow'?
31 | pos.push_back(l);
| ^~~
| pow
prize.cpp:34:16: error: 'pos' was not declared in this scope; did you mean 'pow'?
34 | for (auto i : pos) {
| ^~~
| pow