| Problem | twochoices | 
|---|---|
| User | dooweidde | 
| Submission Time | 2025-04-09 14:42:37 | 
| Score | 0 | 
| Max Time | N/A | 
| Max Memory | N/A | 
Owl Get a Life
 twochoices.cpp: In function ‘int main()’:
twochoices.cpp:18:32: error: no matching function for call to ‘count(std::string&, const char [2])’
   18 |         if (count(inputnum, "1")%2 == 1){
      |                                ^
In file included from /usr/include/c++/9/algorithm:62,
                 from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
                 from twochoices.cpp:3:
/usr/include/c++/9/bits/stl_algo.h:4113:5: note: candidate: ‘template<class _IIter, class _Tp> typename std::iterator_traits<_Iterator>::difference_type std::count(_IIter, _IIter, const _Tp&)’
 4113 |     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
      |     ^~~~~
/usr/include/c++/9/bits/stl_algo.h:4113:5: note:   template argument deduction/substitution failed:
twochoices.cpp:18:32: note:   deduced conflicting types for parameter ‘_IIter’ (‘std::__cxx11::basic_string<char>’ and ‘const char*’)
   18 |