Problem OrXor
User Zixuan
Submission Time 2023-12-06 13:07:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

OrXor.cpp: In function ‘int main()’:
OrXor.cpp:12:9: error: no match for ‘operator^’ (operand types are ‘std::basic_ostream<char>::__ostream_type’ {aka ‘std::basic_ostream<char>’} and ‘long long int’)
12 | cout<<x^y;
| ~~~~~~~^~
| | |
| | long long int
| std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}
OrXor.cpp:12:9: note: candidate: ‘operator^(int, long long int)’ <built-in>
12 | cout<<x^y;
| ~~~~~~~^~
OrXor.cpp:12:9: 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/c++/9/bits/stdc++.h:45,
from OrXor.cpp:1:
/usr/include/c++/9/cstddef:179:3: note: candidate: ‘constexpr std::byte std::operator^(std::byte, std::byte)’
179 | operator^(byte __l, byte __r) noex