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

Compile Error

sealevel.cpp:8:7: error: ‘MAXN’ does not name a type
8 | const MAXN = 1000000
| ^~~~
sealevel.cpp:10:14: error: ‘MAXN’ was not declared in this scope
10 | bool visited[MAXN];
| ^~~~
sealevel.cpp:11:12: error: ‘MAXN’ was not declared in this scope
11 | int weight[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:23:5: error: ‘visited’ was not declared in this scope
23 | visited[u] = true;
| ^~~~~~~
sealevel.cpp:25:19: error: ‘adj’ was not declared in this scope
25 | for (auto x : adj[u])
| ^~~
sealevel.cpp:32:10: error: ‘weight’ was not declared in this scope
32 | weight[v] = weight[u] + w;
|