Problem sealevel
User chickengoat
Submission Time 2026-04-25 11:19:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sealevel.cpp:6:1: error: ‘height’ does not name a type
6 | height[100001];
| ^~~~~~
sealevel.cpp: In function ‘void dfs(ll)’:
sealevel.cpp:10:13: error: ‘adjlist’ was not declared in this scope
10 | for(auto i:adjlist[x]) {
| ^~~~~~~
sealevel.cpp:11:3: error: ‘height’ was not declared in this scope
11 | height[i.first]=height[x]+i.second;
| ^~~~~~
sealevel.cpp: In function ‘int main()’:
sealevel.cpp:22:10: error: wrong number of template arguments (1, should be 2)
22 | pair<ll> p={b,h};
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from sealevel.cpp:1:
/usr/include/c++/9/bits/stl_pair.h:208:12: note: provided for ‘template<class _T1