/in/foo.cc: In function 'int main()':
/in/foo.cc:6:8: error: no match for 'operator>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
6 | cin>n;
| ~~~^~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
/in/foo.cc:6:8: note: candidate: 'operator>(int, int)' (built-in)
6 | cin>n;
| ~~~^~
/in/foo.cc:6:8: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int'
In file included from /usr/include/c++/12/regex:66,
from /usr/include/x86_64-linux-gnu/c++/12/bits/stdc++.h:110,
from /in/foo.cc:1:
/usr/include/c++/12/bits/regex.h:1136:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator>(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1136 | operator>(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/12/bits/regex.h:1136:5: note: template argument deduction/substitution failed:
/in/foo.cc:6:9: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | cin>n;
| ^
/usr/include/c++/12/bits/regex.h:1196:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator>(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1196 | operator>(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/12/bits/regex.h:1196:5: note: template argument deduction/substitution failed:
/in/foo.cc:6:9: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
6 | cin>n;
| ^
/usr/include/c++/12/bits/regex.h:1289:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator>(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1289 | operator>(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/12/bits/regex.h:1289:5: note: template argument deduction/substitution failed:
/in/foo.cc:6:9: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | cin>n;
| ^
/usr/include/c++/12/bits/regex.h:1363:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1363 | operator>(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/12/bits/regex.h:1363:5: note: template argument deduction/substitution failed:
/in/foo.cc:6:9: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int'
6 | cin>n;
| ^
/usr/include/c++/12/bits/regex.h:1457:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1457 | operator>(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/12/bits/regex.h:1457:5: note: template argument deduction/substitution failed:
/in/foo.cc:6:9: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | cin>n;
| ^
/usr/include/c++/12/bits/regex.h:1533:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1533 | operator>(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/12/bits/regex.h:1533:5: note: template argument deduction/substitution failed:
/in/foo.cc:6:9: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int'
6 | cin>n;
| ^
/usr/include/c++/12/bits/regex.h:1633:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1633 | operator>(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/12/bits/regex.h:1633:5: note: template argument deduction/substitution failed:
/in/foo.cc:6:9: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | cin>n;
| ^
In file included from /usr/include/c++/12/string:47,
from /usr/include/c++/12/bits/locale_classes.h:40,
from /usr/include/c++/12/bits/ios_base.h:41,
from /usr/include/c++/12/ios:42,
from /usr/include/c++/12/istream:38,
from /usr/include/c++/12/sstream:38,
from /usr/include/c++/12/complex:45,
from /usr/include/c++/12/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/12/bits/stdc++.h:54:
/usr/include/c++/12/bits/stl_iterator.h:465:5: note: candidate: 'template<class _Iterator> bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
465 | operator>(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/12/bits/stl_iterator.h:465:5: note: template argument deduction/substitution failed:
/in/foo.cc:6:9: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
6 | cin>n;
| ^
/usr/include/c++/12/bits/stl_iterator.h:510:5: note: candidate: 'template<class _IteratorL, class _IteratorR> bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
510 | operator>(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/12/bits/stl_iterator.h:510:5: note: template argument deduction/substitution failed:
/in/foo.cc:6:9: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
6 | cin>n;
| ^
/usr/include/c++/12/bits/stl_iterator.h:1703:5: note: candidate: 'template<class _IteratorL, class _IteratorR> bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1703 | operator>(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/12/bits/stl_iterator.h:1703:5: note: template argument deduction/substitution failed:
/in/foo.cc:6:9: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
6 | cin>n;
| ^
/usr/include/c++/12/bits/stl_iterator.h:1762:5: note: candidate: 'template<class _Iterator> bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1762 | operator>(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/12/bits/stl_iterator.h:1762:5: note: template argument deduction/substitution failed:
/in/foo.cc:6:9: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
6 | cin>n;
| ^
In file included from /usr/include/c++/12/bits/stl_algobase.h:64,
from /usr/include/c++/12/string:50:
/usr/include/c++/12/bits/stl_pair.h:676:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator>(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
676 | operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/12/bits/stl_pair.h:676:5: note: template argument deduction/substitution failed:
/in/foo.cc:6:9: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::pair<_T1, _T2>'
6 | cin>n;
| ^
In file included from /usr/include/c++/12/string:53:
/usr/include/c++/12/bits/basic_string.h:3729:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const __cxx11::basic_string<_CharT, _Traits, _Alloc>&, cons