| Problem | sealevel |
|---|---|
| User | CalebKow |
| Submission Time | 2026-02-17 12:42:52 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
sealevel.cpp: In function ‘int main()’:
sealevel.cpp:13:39: error: template argument 1 is invalid
13 | vector<vector<pair<int, int>> adj(n+1);
| ^
sealevel.cpp:13:39: error: template argument 2 is invalid
sealevel.cpp:17:3: error: ‘adj’ was not declared in this scope
17 | adj[a].push_back({b, h});
| ^~~
sealevel.cpp:30:15: error: ‘adj’ was not declared in this scope
30 | for(auto p: adj[node]) {
| ^~~
sealevel.cpp:36:49: error: no matching function for call to ‘std::queue<std::pair<long long int, long long int> >::push(<brace-enclosed initializer list>)’
36 | unexplored.push({p.first, distance+p.second});
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from sealev