| Problem | sealevel |
|---|---|
| User | j0ashhh |
| Submission Time | 2026-02-16 15:15:28 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
sealevel.cpp: In function ‘int main()’:
sealevel.cpp:29:6: error: conflicting declaration ‘int q’
29 | int q;
| ^
sealevel.cpp:15:13: note: previous declaration as ‘std::queue<int> q’
15 | queue<int> q;
| ^
sealevel.cpp:30:6: error: no match for ‘operator>>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘std::queue<int>’)
30 | 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,
from sealevel.cpp:1:
/usr/include/c++/9/istream:120:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__i