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

Compile Error

sealevel.cpp: In function ‘int main()’:
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 are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘std::queue<int>’)
29 | cin >> q;
| ~~~ ^~ ~
| | |
| | std::queue<int>
| std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,