race.cpp: In function 'void dfs(long long int, long long int, long long int, long long int)':
race.cpp:34:14: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
34 | for (auto[u, l] : adj[v]) {
| ^
race.cpp:40:18: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
40 | for (auto[x, depth] : md[u]) {
| ^
race.cpp:45:18: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
45 | for (auto[x, depth] : md[u]) {
| ^
race.cpp: In function 'long long int best_path(long long int, long long int, long long int (*)[2], long long int*)':
race.cpp:19:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
19 | #define FOR(i, a, b) for (int (i) = a; (i) <= (b); i++)
| ^
race.cpp:58:5: note: in expansion of macro 'FOR'
58 | FOR(i, 0, N - 2) {
| ^~~
/usr/bin/ld: /tmp/cc166T9U.o: in function `main':
grader.cpp:(.text.startup+0x28): undefined reference to `best_path(int, int, int (*) [2], int*)'
collect2: error: ld returned 1 exit status