Problem | mao2 |
---|---|
User | gelastropod |
Submission Time | 2025-04-22 11:16:52 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
mao2.cpp: In function ‘int main()’:
mao2.cpp:8:36: error: no match for ‘operator&=’ (operand types are ‘bool’ and ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<char>’})
8 | for (int i = 0; i < N; i++) works &= cin >> x;
| ~~~~~~^~~~~~~~~~~
mao2.cpp:8:36: note: candidate: ‘operator&=(bool&, int)’ <built-in>
mao2.cpp:8:36: note: no known conversion for argument 2 from ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<char>’} to ‘int’
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:45,
from mao2.cpp:1:
/usr/include/c++/9/cstddef:158:3: note: candidate: ‘constexpr std::byte& std::operator&=(std::byte&, std::byte)’
158 | operator&=(byte& __l, byte __r) noexcept
| ^~~~~~~~
/usr/include/c++/9/cstddef:158:20: note: no known conversion for argument 1 from ‘bool’ to ‘std::byte&’
158 |