Problem gcd
User NoynYT
Submission Time 2023-04-28 19:34:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gcd.cpp: In function ‘int main()’:
gcd.cpp:8:10: error: no match for ‘operator&’ (operand types are ‘std::basic_ostream<char>’ and ‘int’)
8 | cout<<a&b;
| ~~~~~~~^~
| | |
| | int
| std::basic_ostream<char>
gcd.cpp:8:10: note: candidate: ‘operator&(int, int)’ <built-in>
8 | cout<<a&b;
| ~~~~~~~^~
gcd.cpp:8:10: note: no known conversion for argument 1 from ‘std::basic_ostream<char>’ to ‘int’
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:45,
from gcd.cpp:1:
/usr/include/c++/9/cstddef:165:3: note: candidate: ‘constexpr std::byte std::operator&(std::byte, std::byte)’
165 | operator&(byte __l, byte __r) noexcept
| ^~~~~~~~
/usr/include/c++/9/cstddef:165:18: note: no known conversion for argument 1 from ‘std::basic_ostream<char>’ to ‘std::byte’
165 | operator&(byte __l, by