timeismoney.cpp: In function 'int main()':
timeismoney.cpp:207:16: error: no match for 'operator!=' (operand types are 'Solution' and 'Solution')
207 | if (left_sol != right_sol) solve(left_v, right_v, left_sol, right_sol);
| ~~~~~~~~ ^~ ~~~~~~~~~
| | |
| Solution Solution
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from timeismoney.cpp:5:
/usr/include/c++/9/bits/regex.h:1037:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator!=(const std::__cxx11::sub_match<_BiIter>&, const std::__cxx11::sub_match<_BiIter>&)'
1037 | operator!=(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/9/bits/regex.h:1037:5: note: template argument deduction/substitution failed:
timeismoney.cpp:207:19: note: 'Solution' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
207 | if (left_sol != right_sol) solve(left_v, right_v, left_sol, right_sol);
| ^~~~~~~~~
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from timeismoney.cpp:5:
/usr/include/c++/9/bits/regex.h:1112:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator!=(std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const std::__cxx11::sub_match<_BiIter>&)'
1112 | operator!=(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/9/bits/regex.h:1112:5: note: template argument deduction/substitution failed:
timeismoney.cpp:207:19: note: 'Solution' is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
207 | if (left_sol != right_sol) solve(left_v, right_v, left_sol, right_sol);
| ^~~~~~~~~
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from timeismoney.cpp:5:
/usr/include/c++/9/bits/regex.h:1186:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator!=(const std::__cxx11::sub_match<_BiIter>&, std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1186 | operator!=(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/9/bits/regex.h:1186:5: note: template argument deduction/substitution failed:
timeismoney.cpp:207:19: note: 'Solution' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
207 | if (left_sol != right_sol) solve(left_v, right_v, left_sol, right_sol);
| ^~~~~~~~~
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from timeismoney.cpp:5:
/usr/include/c++/9/bits/regex.h:1260:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator!=(const typename std::iterator_traits<_Iter>::value_type*, const std::__cxx11::sub_match<_BiIter>&)'
1260 | operator!=(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/9/bits/regex.h:1260:5: note: template argument deduction/substitution failed:
timeismoney.cpp:207:19: note: 'Solution' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
207 | if (left_sol != right_sol) solve(left_v, right_v, left_sol, right_sol);
| ^~~~~~~~~
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from timeismoney.cpp:5:
/usr/include/c++/9/bits/regex.h:1334:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator!=(const std::__cxx11::sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1334 | operator!=(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/9/bits/regex.h:1334:5: note: template argument deduction/substitution failed:
timeismoney.cpp:207:19: note: 'Solution' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
207 | if (left_sol != right_sol) solve(left_v, right_v, left_sol, right_sol);
| ^~~~~~~~~
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from timeismoney.cpp:5:
/usr/include/c++/9/bits/regex.h:1408:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator!=(const typename std::iterator_traits<_Iter>::value_type&, const std::__cxx11::sub_match<_BiIter>&)'
1408 | operator!=(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/9/bits/regex.h:1408:5: note: template argument deduction/substitution failed:
timeismoney.cpp:207:19: note: 'Solution' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
207 | if (left_sol != right_sol) solve(left_v, right_v, left_sol, right_sol);
| ^~~~~~~~~
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from timeismoney.cpp:5:
/usr/include/c++/9/bits/regex.h:1486:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator!=(const std::__cxx11::sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1486 | operator!=(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/9/bits/regex.h:1486:5: note: template argument deduction/substitution failed:
timeismoney.cpp:207:19: note: 'Solution' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
207 | if (left_sol != right_sol) solve(left_v, right_v, left_sol, right_sol);
| ^~~~~~~~~
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from timeismoney.cpp:5:
/usr/include/c++/9/bits/regex.h:2015:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator!=(const std::__cxx11::match_results<_BiIter, _Alloc>&, const std::__cxx11::match_results<_BiIter, _Alloc>&)'
2015 | operator!=(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/9/bits/regex.h:2015:5: note: template argument deduction/substitution failed:
timeismoney.cpp:207:19: note: 'Solution' is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
207 | if (left_sol != right_sol) solve(left_v, right_v, left_sol, right_sol);
| ^~~~~~~~~
In file included from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/ios:38,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from timeismoney.cpp:5:
/usr/include/c++/9/bits/postypes.h:227:5: note: candidate: 'template<class _StateT> bool std::operator!=(const std::fpos<_StateT>&, const std::fpos<_StateT>&)'
227 | operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/9/bits/postypes.h:227:5: note: template argument deduction/substitution failed:
timeismoney.cpp:207:19: note: 'Solution' is not derived from 'const std::fpos<_StateT>'
207 | if (left_sol != right_sol) solve(left_v, right_v, left_sol, right_sol);
| ^~~~~~~~~
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from timeismoney.cpp:5:
/usr/include/c++/9/bits/stl_pair.h:461:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator!=(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)'
461 | operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/9/bits/stl_pair.h:461:5: note: template argument deduction/substitution failed:
timeismoney.cpp:207:19: note: 'Solution' is not derived from 'const std::pair<_T1, _T2>'
207 | if (left_sol != right_sol) solve(left_v, right_v, left_sol, right_sol);
| ^~~~~~~~~
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from timeismoney.cpp:5:
/usr/include/c++/9/bits/stl_iterator.h:337:5: note: candidate: 'template<class _Iterator> bool std::operator!=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)'
337 | operator!=(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/9/bits/stl_iterator.h:337:5: note: template argument deduction/substitution failed:
timeismoney.cpp:207:19: note: 'Solution' is not derived from 'const std::reverse_iterator<_Iterator>'
207 | if (left_sol != right_sol) solve(left_v, right_v, left_sol, right_sol);
| ^~~~~~~~~
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from timeismoney.cpp:5:
/usr/include/c++/9/bits/stl_iterator.h:375:5: note: candidate: 'template<class _IteratorL, class _IteratorR> bool std::operator!=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)'
375 | operator!=(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/9/bits/stl_iterator.h:375:5: note: template argument deduction/substitution failed:
timeismoney.cpp:207:19: note: 'Solution' is not derived from 'const std::reverse_iterator<_Iterator>'
207 | if (left_sol != right_sol) solve(left_v, right_v, left_sol, right_sol);
| ^~~~~~~~~
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from timeismoney.cpp:5:
/usr/include/c++/9/bits/stl_iterator.h:1151:5: note: candidate: 'template<class _IteratorL, class _IteratorR> bool std::operator!=(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorR>&)'
1151 | operator!=(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/9/bits/stl_iterator.h:1151:5: note: template argument deduction/substitution failed:
timeismoney.cpp:207:19: note: 'Solution' is not derived from 'const std::move_iterator<_IteratorL>'
207 | if (left_sol != right_sol) solve(left_v, right_v, left_sol, right_sol);
| ^~~~~~~~~
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from timeismoney.cpp:5:
/usr/include/c++/9/bits/stl_iterator.h:1157:5: note: candidate: 'template<class _Iterator> bool std::operator!=(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorL>&)'
1157 | operator!=(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/9/bits/stl_iterator.h:1157:5: note: template argument deduction/substitution failed:
timeismoney.cpp:207:19: note: 'Solution' is not derived from 'const std::move_iterator<_IteratorL>'
207 | if (left_sol != right_sol) solve(left_v, right_v, left_sol, right_sol);
| ^~~~~~~~~
In file included from /usr/include/c++/9/string:41,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from timeismoney.cpp:5:
/usr/include/c++/9/bits/allocator.h:174:5: note: candidate: 'template<class _T1, class _T2> bool std::operator!=(const std::allocator<_CharT>&, const std::allocator<_T2>&)'
174 | operator!=(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/9/bits/allocator.h:174:5: note: template argument deduction/substitution failed:
timeismoney.cpp:207:19: note: 'Solution' is not derived from 'const std::allocator<_CharT>'
207 | if (left_sol != right_sol) solve(left_v, right_v, left_sol, right_sol);
| ^~~~~~~~~
In file included from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from timeismoney.cpp:5:
/usr/include/c++/9/bits/basic_string.h:6188:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator!=(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)'
6188 | operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/9/bits/basic_string.h:6188:5: note: template argument deduction/substitution failed:
timeismoney.cpp:207:19: note: 'Solution' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>'
207 | if (left_sol != right_sol) solve(left_v, right_v, left_sol, right_sol);
| ^~~~~~~~~
In file included from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from timeismoney.cpp:5:
/usr/include/c++/9/bits/basic_string.h:6201:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator!=(const _CharT*, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)'
6201 | operator!=(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/9/bits/basic_string.h:6201:5: note: template argument deduction/substitution failed:
timeismoney.cpp:207:19: note: mismatched types 'const _CharT*' and 'Solution'
207 | if (left_sol != right_sol) solve(left_v, right_v, left_sol, right_sol);
| ^~~~~~~~~
In file included from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from timeismoney.cpp:5:
/usr/include/c++/9/bits/basic_string.h:6213:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator!=(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)'
6213 | operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/9/bits/basic_string.h:6213:5: note: template argument deduction/substitution failed:
timeismoney.cpp:207:19: note: 'Solution' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>'
207 | if (left_sol != right_sol) solve(left_v, right_v, left_sol, right_sol);
| ^~~~~~~~~
In file included from /usr/include/c++/9/bits/ios_base.h:46,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from timeismoney.cpp:5:
/usr/include/c++/9/system_error:319:3: note: candidate: 'bool std::operator!=(const std::error_code&, const std::error_code&)'
319 | operator!=(const error_code& __lhs, const error_code& __rhs) noexcept
| ^~~~~~~~
/usr/include/c++/9/system_error:319:32: note: no known conversion for argument 1 from 'Solution' to 'const std::error_code&'
319 | operator!=(const error_code& __lhs, const error_code& __rhs) noexcept
| ~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/9/system_error:323:3: note: candidate: 'boo