Problem sealevel
User j0ashhh
Submission Time 2026-02-16 15:12:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sealevel.cpp: In function ‘int main()’:
sealevel.cpp:6:45: error: template argument 1 is invalid
6 | vector<vector<pair<int, long long>> adj(N+1);
| ^
sealevel.cpp:6:45: error: template argument 2 is invalid
sealevel.cpp:11:3: error: ‘adj’ was not declared in this scope
11 | adj[a].push_back({b, h});
| ^~~
sealevel.cpp:22:19: error: ‘adj’ was not declared in this scope
22 | for(auto [v,w] : adj[u]){
| ^~~
sealevel.cpp:22:23: error: ‘u’ was not declared in this scope
22 | for(auto [v,w] : adj[u]){
| ^
sealevel.cpp:28:6: error: conflicting declaration ‘int q’
28 | int q;
| ^
sealevel.cpp:15:13: note: previous declaration as ‘std::queue<int> q’
15 | queue<int> q;
| ^
sealevel.cpp:29:6: error: no match for ‘operator>>’ (operand types ar