Problem valves
User shoryu386
Submission Time 2022-12-28 16:14:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

valves.cpp: In function ‘int main()’:
valves.cpp:36:21: error: use of deleted function ‘std::__cxx11::basic_stringstream<_CharT, _Traits, _Alloc>::basic_stringstream(const std::__cxx11::basic_stringstream<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
36 | stringstream huh = actualwtf; int garbage;
| ^~~~~~~~~
In file included 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 valves.cpp:1:
/usr/include/c++/9/sstream:787:7: note: declared here
787 | basic_stringstream(const basic_stringstream&) = delete;
| ^~~~~~~~~~~~~~~~~~
valves.cpp:40:10: error: ‘type’ was not declared in this scope; did you mean ‘wctype’?
40 | huh >> type;
| ^~~~
|