Problem sealevel
User chisim
Submission Time 2023-02-08 01:43:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sealevel.cpp:9:1: error: expected ‘,’ or ‘;’ before ‘vector’
9 | vector<pair<int, int>> adj[MAXN];
| ^~~~~~
sealevel.cpp: In function ‘void addEdge(int, int, int)’:
sealevel.cpp:16:5: error: ‘adj’ was not declared in this scope
16 | adj[u].push_back(make_pair(v, w));
| ^~~
sealevel.cpp: In function ‘void dfs(int)’:
sealevel.cpp:25:19: error: ‘adj’ was not declared in this scope
25 | for (auto x : adj[u])
| ^~~