race.cpp:9:1: error: 'vector' does not name a type
9 | vector<array<int,2>> g[MAXN];
| ^~~~~~
race.cpp:11:1: error: 'map' does not name a type
11 | map<int,int> m[MAXN];
| ^~~
race.cpp:12:1: error: 'array' does not name a type
12 | array<int,2> o[MAXN];
| ^~~~~
race.cpp: In function 'void dfs(long long int, long long int)':
race.cpp:15:18: error: 'g' was not declared in this scope
15 | for(auto k : g[x]){
| ^
race.cpp:19:22: error: 'g' was not declared in this scope
19 | for(auto [k,w] : g[x]){
| ^
race.cpp:21:9: error: 'o' was not declared in this scope
21 | o[k][0] += w;
| ^
race.cpp:23:12: error: 'm' was not declared in this scope
23 | if(m[k].size() > m[x].size()){
| ^
race.cpp:24:13: error: 'swap' was not declared in this scope
24 | swap(m[k], m[x]);
| ^~~~
race.cpp:27:9: error: 'm' was not declared in this scope
27 | m[x][w-o[x][0]] = 1-o[x][1];
| ^
race.cpp:28:13: error: 'pair' was not declared in this scope
28 | for(pair<int,int> p : m[k]){
| ^~~~
race.cpp:3:13: error: expected primary-expression before 'long'
3 | #define int long long
| ^~~~
race.cpp:28:18: note: in expansion of macro 'int'
28 | for(pair<int,int> p : m[k]){
| ^~~
race.cpp:35:5: error: expected primary-expression before '}' token
35 | }
| ^
race.cpp:34:10: error: expected ';' before '}' token
34 | }
| ^
| ;
35 | }
| ~
race.cpp:35:5: error: expected primary-expression before '}' token
35 | }
| ^
race.cpp:34:10: error: expected ')' before '}' token
34 | }
| ^
| )
35 | }
| ~
race.cpp:28:12: note: to match this '('
28 | for(pair<int,int> p : m[k]){
| ^
race.cpp:35:5: error: expected primary-expression before '}' token
35 | }
| ^
race.cpp:36:8: error: 'm' was not declared in this scope
36 | if(m[x].find(r-o[x][0])!=m[x].end()) ans = min(ans, m[x][r-o[x][0]] + o[x][1]);
| ^
race.cpp:36:20: error: 'o' was not declared in this scope
36 | if(m[x].find(r-o[x][0])!=m[x].end()) ans = min(ans, m[x][r-o[x][0]] + o[x][1]);
| ^
race.cpp:36:48: error: 'min' was not declared in this scope
36 | if(m[x].find(r-o[x][0])!=m[x].end()) ans = min(ans, m[x][r-o[x][0]] + o[x][1]);
| ^~~
race.cpp: In function 'long long int best_path(long long int, long long int, long long int (*)[2], long long int*)':
race.cpp:45:9: error: 'g' was not declared in this scope
45 | g[i].clear();
| ^
race.cpp:46:9: error: 'm' was not declared in this scope
46 | m[i].clear();
| ^
race.cpp:47:9: error: 'o' was not declared in this scope
47 | o[i] = {0,0};
| ^
race.cpp:51:9: error: 'g' was not declared in this scope
51 | g[x].push_back({y,w});
| ^