race.cpp: In function 'int best_path(int, int, int (*)[2], int*)':
race.cpp:10:28: error: 'x' was not declared in this scope
10 | if(x == K) ans = min(ans, j - i);
| ^
race.cpp:10:42: error: 'min' was not declared in this scope; did you mean 'std::min'?
10 | if(x == K) ans = min(ans, j - i);
| ^~~
| std::min
In file included from /usr/include/c++/13/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51,
from race.cpp:2:
/usr/include/c++/13/bits/stl_algo.h:5785:5: note: 'std::min' declared here
5785 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~