race.cpp:11:1: error: 'vector' does not name a type
11 | vector<int> g[N];
| ^~~~~~
race.cpp:13:4: error: ambiguating new declaration of 'long long int best_path(int, int, int (*)[2], int*)'
13 | ll best_path(int n, int k, int H[][2], int L[]) {
| ^~~~~~~~~
In file included from race.cpp:5:
race.h:1:5: note: old declaration 'int best_path(int, int, int (*)[2], int*)'
1 | int best_path(int N, int K, int H[][2], int L[]);
| ^~~~~~~~~
race.cpp: In function 'long long int best_path(int, int, int (*)[2], int*)':
race.cpp:16:7: error: 'g' was not declared in this scope
16 | g[H[i][0]].push_back(H[i][1]);
| ^
race.cpp:19:3: error: 'vector' was not declared in this scope
19 | vector<ll> li;
| ^~~~~~
race.cpp:6:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
5 | #include "race.h"
+++ |+#include <vector>
6 | using namespace std;
race.cpp:8:12: error: expected primary-expression before 'long'
8 | #define ll long long
| ^~~~
race.cpp:19:10: note: in expansion of macro 'll'
19 | vector<ll> li;
| ^~
race.cpp:20:3: error: 'li' was not declared in this scope; did you mean 'll'?
20 | li.push_back(0);
| ^~
| ll
race.cpp:28:14: error: 'min' was not declared in this scope; did you mean 'mn'?
28 | mn = min((ll)mn, (ll)(j-i));
| ^~~
| mn