| Problem | rotarylock |
|---|---|
| User | JohnC |
| Submission Time | 2026-01-05 21:08:34 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
rotarylock.cpp: In function ‘int32_t main()’:
rotarylock.cpp:50:21: error: no match for ‘operator&’ (operand types are ‘std::basic_ostream<char>::__ostream_type’ {aka ‘std::basic_ostream<char>’} and ‘long long int’)
50 | cout << query(d) & (result - 1) << '\n';
| ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~
| | |
| | long long int
| std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}
rotarylock.cpp:50:21: note: candidate: ‘operator&(int, long long int)’ <built-in>
50 | cout << query(d) & (result - 1) << '\n';
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
rotarylock.cpp:50:21: note: no known conversion for argument 1 from ‘std::basic_ostream<char>::__ostream_type’ {aka ‘std::basic_ostream<char>’} to ‘int’
In file included from /usr/include/x86_64-linux-gnu/