answer.code:26:1: error: expected primary-expression before ‘void’
26 | void init() { }
| ^~~~
answer.code: In function ‘int morning(int, int)’:
answer.code:42:12: error: ‘f’ was not declared in this scope
42 | return f(my_num, right_num);
| ^
answer.code: In function ‘int afternoon(int, int, int)’:
answer.code:46:14: error: ‘f’ was not declared in this scope
46 | return f(f(left_num, my_num), f(my_num, right_num));
| ^
answer.code:46:12: error: ‘f’ was not declared in this scope
46 | return f(f(left_num, my_num), f(my_num, right_num));
| ^
answer.code: In function ‘int evening(int, int, int)’:
answer.code:50:13: error: ‘f’ was not declared in this scope
50 | int L = f(left_num, my_num), R = f(my_num, right_num);
| ^
answer.code:53:17: error: no match for ‘operator==’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type’ {aka ‘std::__cxx11::basic_string<char>’} and ‘char’)
53 | if(S[L] == '0' && S[R] == '1') return j;
In file included from /usr/include/c++/11/bits/stl_algobase.h:67,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from answer.code:3:
/usr/include/c++/11/bits/stl_iterator.h:1118:5: note: candidate: ‘template<class _IteratorL, class _IteratorR, class _Container> bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator<_IteratorL, _Container>&, const __gnu_cxx::__normal_iterator<_IteratorR, _Container>&)’
1118 | operator==(const __normal_iterator<_IteratorL, _Container>& __lhs,
| ^~~~~~~~
/usr/include/c++/11/bits/stl_iterator.h:1118:5: note: template argument deduction/substitution failed:
answer.code:53:20: note: ‘__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const __gnu_cxx::__normal_iterator<_IteratorL, _Container>’
53 | if(S[L] == '0' && S[R] == '1') return j;
| ^~~
In file included from /usr/include/c++/11/bits/stl_algobase.h:67,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from answer.code:3:
/usr/include/c++/11/bits/stl_iterator.h:1126:5: note: candidate: ‘template<class _Iterator, class _Container> bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator<_Iterator, _Container>&, const __gnu_cxx::__normal_iterator<_Iterator, _Container>&)’
1126 | operator==(const __normal_iterator<_Iterator, _Container>& __lhs,
| ^~~~~~~~
/usr/include/c++/11/bits/stl_iterator.h:1126:5: note: template argument deduction/substitution failed:
answer.code:53:20: note: ‘__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const __gnu_cxx::__normal_iterator<_Iterator, _Container>’
53 | if(S[L] == '0' && S[R] == '1') return j;
| ^~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/c++allocator.h:33,
from /usr/include/c++/11/bits/allocator.h:46,
from /usr/include/c++/11/string:41,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from answer.code:3:
/usr/include/c++/11/ext/new_allocator.h:177:9: note: candidate: ‘template<class _Up> bool __gnu_cxx::operator==(const __gnu_cxx::new_allocator<char>&, const __gnu_cxx::new_allocator<_Tp>&)’
177 | operator==(const new_allocator&, const new_allocator<_Up>&)
| ^~~~~~~~
/usr/include/c++/11/ext/new_allocator.h:177:9: note: template argument deduction/substitution failed:
answer.code:53:20: note: mismatched types ‘const __gnu_cxx::new_allocator<_Tp>’ and ‘char’
53 | if(S[L] == '0' && S[R] == '1') return j;
| ^~~
In file included from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from answer.code:3:
/usr/include/c++...