Main.cc: In function 'int main()':
Main.cc:7:22: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>' and 'int')
7 | cout << input_num == 3 ? 1 : (input_num + 1) << endl;
| ~~~~~~~~~~~~~~~~~ ^~ ~
| | |
| | int
| std::basic_ostream<char>
Main.cc:7:22: note: candidate: 'operator==(int, int)' (built-in)
7 | cout << input_num == 3 ? 1 : (input_num + 1) << endl;
| ~~~~~~~~~~~~~~~~~~^~~~
Main.cc:7:22: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'int'
In file included from /usr/include/c++/12.2.1/iosfwd:40,
from /usr/include/c++/12.2.1/ios:38,
from /usr/include/c++/12.2.1/ostream:38,
from /usr/include/c++/12.2.1/iostream:39,
from Main.cc:1:
/usr/include/c++/12.2.1/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/12.2.1/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
Main.cc:7:25: note: 'std::basic_ostream<char>' is not derived from 'const std::fpos<_StateT>'
7 | cout << input_num == 3 ? 1 : (input_num + 1) << endl;
| ^
In file included from /usr/include/c++/12.2.1/string:41,
from /usr/include/c++/12.2.1/bits/locale_classes.h:40,
from /usr/include/c++/12.2.1/bits/ios_base.h:41,
from /usr/include/c++/12.2.1/ios:42:
/usr/include/c++/12.2.1/bits/allocator.h:219:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
219 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/12.2.1/bits/allocator.h:219:5: note: template argument deduction/substitution failed:
Main.cc:7:25: note: 'std::basic_ostream<char>' is not derived from 'const std::allocator<_CharT>'
7 | cout << input_num == 3 ? 1 : (input_num + 1) << endl;
| ^
In file included from /usr/include/c++/12.2.1/string:47:
/usr/include/c++/12.2.1/bits/stl_iterator.h:444:5: note: candidate: 'template<class _Iterator> bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
444 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/12.2.1/bits/stl_iterator.h:444:5: note: template argument deduction/substitution failed:
Main.cc:7:25: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
7 | cout << input_num == 3 ? 1 : (input_num + 1) << endl;
| ^
/usr/include/c++/12.2.1/bits/stl_iterator.h:489:5: note: candidate: 'template<class _IteratorL, class _IteratorR> bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
489 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/12.2.1/bits/stl_iterator.h:489:5: note: template argument deduction/substitution failed:
Main.cc:7:25: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
7 | cout << input_num == 3 ? 1 : (input_num + 1) << endl;
| ^
/usr/include/c++/12.2.1/bits/stl_iterator.h:1656:5: note: candidate: 'template<class _IteratorL, class _IteratorR> bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1656 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/12.2.1/bits/stl_iterator.h:1656:5: note: template argument deduction/substitution failed:
Main.cc:7:25: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
7 | cout << input_num == 3 ? 1 : (input_num + 1) << endl;
| ^
/usr/include/c++/12.2.1/bits/stl_iterator.h:1726:5: note: candidate: 'template<class _Iterator> bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1726 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/12.2.1/bits/stl_iterator.h:1726:5: note: template argument deduction/substitution failed:
Main.cc:7:25: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
7 | cout << input_num == 3 ? 1 : (input_num + 1) << endl;
| ^
In file included from /usr/include/c++/12.2.1/bits/stl_algobase.h:64,
from /usr/include/c++/12.2.1/string:50:
/usr/include/c++/12.2.1/bits/stl_pair.h:640:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
640 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/12.2.1/bits/stl_pair.h:640:5: note: template argument deduction/substitution failed:
Main.cc:7:25: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>'
7 | cout << input_num == 3 ? 1 : (input_num + 1) << endl;
| ^
In file included from /usr/include/c++/12.2.1/string:53:
/usr/include/c++/12.2.1/bits/basic_string.h:3575:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Alloc>&, const __cxx11::basic_string<_CharT, _Traits, _Alloc>&)'
3575 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/12.2.1/bits/basic_string.h:3575:5: note: template argument deduction/substitution failed:
Main.cc:7:25: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>'
7 | cout << input_num == 3 ? 1 : (input_num + 1) << endl;
| ^
/usr/include/c++/12.2.1/bits/basic_string.h:3584:5: note: candidate: 'template<class _CharT> typename __gnu_cxx::__enable_if<std::__is_char<_Tp>::__value, bool>::__type std::operator==(const __cxx11::basic_string<_CharT>&, const __cxx11::basic_string<_CharT>&)'
3584 | operator==(const basic_string<_CharT>& __lhs,
| ^~~~~~~~
/usr/include/c++/12.2.1/bits/basic_string.h:3584:5: note: template argument deduction/substitution failed:
Main.cc:7:25: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT>'
7 | cout << input_num == 3 ? 1 : (input_num + 1) << endl;
| ^
/usr/include/c++/12.2.1/bits/basic_string.h:3599:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)'
3599 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/12.2.1/bits/basic_string.h:3599:5: note: template argument deduction/substitution failed:
Main.cc:7:25: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>'
7 | cout << input_num == 3 ? 1 : (input_num + 1) << endl;
| ^
/usr/include/c++/12.2.1/bits/basic_string.h:3640:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Alloc>&)'
3640 | operator==(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/12.2.1/bits/basic_string.h:3640:5: note: template argument deduction/substitution failed:
Main.cc:7:25: note: mismatched types 'const _CharT*' and 'std::basic_ostream<char>'
7 | cout << input_num == 3 ? 1 : (input_num + 1) << endl;
| ^
In file included from /usr/include/c++/12.2.1/bits/locale_facets.h:48,
from /usr/include/c++/12.2.1/bits/basic_ios.h:37,
from /usr/include/c++/12.2.1/ios:44:
/usr/include/c++/12.2.1/bits/streambuf_iterator.h:233:5: note: candidate: 'template<class _CharT, class _Traits> bool std::operator==(const istreambuf_iterator<_CharT, _Traits>&, const istreambuf_iterator<_CharT, _Traits>&)'
233 | operator==(const istreambuf_iterator<_CharT, _Traits>& __a,
| ^~~~~~~~
/usr/include/c++/12.2.1/bits/streambuf_iterator.h:233:5: note: template argument deduction/substitution failed:
Main.cc:7:25: note: 'std::basic_ostream<char>' is not derived from 'const std::istreambuf_iterator<_CharT, _Traits>'
7 | cout << input_num == 3 ? 1 : (input_num + 1) << endl;
| ^
In file included from /usr/include/c++/12.2.1/bits/ios_base.h:46:
/usr/include/c++/12.2.1/system_error:362:3: note: candidate: 'bool std::operator==(const error_code&, const error_code&)'
362 | operator==(const error_code& __lhs, const error_code& __rhs) noexcept
| ^~~~~~~~
/usr/include/c++/12.2.1/system_error:362:32: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'const std::error_code&'
362 | operator==(const error_code& __lhs, const error_code& __rhs) noexcept
| ~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/12.2.1/system_error:368:3: note: candidate: 'bool std::operator==(const error_code&, const error_condition&)'
368 | operator==(const error_code& __lhs, const error_condition& __rhs) noexcept
| ^~~~~~~~
/usr/include/c++/12.2.1/system_error:368:32: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'const std::error_code&'
368 | operator==(const error_code& __lhs, const error_condition& __rhs) noexcept
| ~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/12.2.1/system_error:376:3: note: candidate: 'bool std::operator==(const error_condition&, const error_condition&)'
376 | operator==(const error_condition& __lhs,
| ^~~~~~~~
/usr/include/c++/12.2.1/system_error:376:37: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'const std::error_condition&'
376 | operator==(const error_condition& __lhs,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/12.2.1/system_error:408:3: note: candidate: 'bool std::operator==(const error_condition&, const error_code&)'
408 | operator==(const error_condition& __lhs, const error_code& __rhs) noexcept
| ^~~~~~~~
/usr/include/c++/12.2.1/system_error:408:37: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'const std::error_condition&'
408 | operator==(const error_condition& __lhs, const error_code& __rhs) noexcept
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
Main.cc:7:49: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
7 | cout << input_num == 3 ? 1 : (input_num + 1) << endl;
| ~~~~~~~~~~~~~~~~^~~~~~~