Problem universe
User R9q5P8
Submission Time 2026-11-02 16:02:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

universe.cpp: In function ‘int main()’:
universe.cpp:13:21: error: cannot bind non-const lvalue reference of type ‘std::_Bit_reference&’ to an rvalue of type ‘std::_Bit_iterator::reference’ {aka ‘std::_Bit_reference’}
13 | for (auto &thing : cats) cin >> thing;
| ^~~~
universe.cpp:13:31: error: no match for ‘operator>>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘std::_Bit_reference’)
13 | for (auto &thing : cats) cin >> thing;
| ~~~ ^~ ~~~~~
| | |
| | std::_Bit_reference
| 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-