Problem universe
User R9q5P8
Submission Time 2026-11-02 16:02:19
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 >> cat;
| ^~~~
universe.cpp:13:34: error: ‘cat’ was not declared in this scope; did you mean ‘cats’?
13 | for (auto &thing : cats) cin >> cat;
| ^~~
| cats