Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  string n;
  int a,b,c;
  cin >> n;
  a = count(n[1],n[3],'a');
  b = count(n[1],n[3],'b');
  c = count(n[1],n[3],'c');
  if(a => 2 || b => 2 || c => 2){
    cout << "No" << endl;
  }else{
    cout << "Yes" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: no matching function for call to 'count(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, char)'
    8 |   a = count(n[1],n[3],'a');
      |       ~~~~~^~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4025:5: note: candidate: 'template<class _IIter, class _Tp> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&)'
 4025 |     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
      |     ^~~~~
/usr/include/c++/14/bits/stl_algo.h:4025:5: note:   template argument deduction/substitution failed:
/usr/include/c++/14/bits/stl_algo.h: In substitution of 'template<class _IIter, class _Tp> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&) [with _IIter = char; _Tp = char]':
a.cc:8:12:   required from here
    8 |   a = count(n[1],n[3],'a');
      |       ~~~~~^~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4025:5: error: no type named 'difference_type' in 'struct std::iterator_traits<char>'
 4025 |     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
      |     ^~~~~
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:101:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, typename std::iterator_traits<_II>::difference_type> std::count(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, const _Tp&)'
  101 | count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
      | ^~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:101:1: note:   candidate expects 4 arguments, 3 provided
a.cc:9:12: error: no matching function for call to 'count(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, char)'
    9 |   b = count(n[1],n[3],'b');
      |       ~~~~~^~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4025:5: note: candidate: 'template<class _IIter, class _Tp> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&)'
 4025 |     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
      |     ^~~~~
/usr/include/c++/14/bits/stl_algo.h:4025:5: note:   template argument deduction/substitution failed:
/usr/include/c++/14/bits/stl_algo.h: In substitution of 'template<class _IIter, class _Tp> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&) [with _IIter = char; _Tp = char]':
a.cc:9:12:   required from here
    9 |   b = count(n[1],n[3],'b');
      |       ~~~~~^~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4025:5: error: no type named 'difference_type' in 'struct std::iterator_traits<char>'
 4025 |     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
      |     ^~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:101:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, typename std::iterator_traits<_II>::difference_type> std::count(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, const _Tp&)'
  101 | count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
      | ^~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:101:1: note:   candidate expects 4 arguments, 3 provided
a.cc:10:12: error: no matching function for call to 'count(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, char)'
   10 |   c = count(n[1],n[3],'c');
      |       ~~~~~^~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4025:5: note: candidate: 'template<class _IIter, class _Tp> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&)'
 4025 |     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
      |     ^~~~~
/usr/include/c++/14/bits/stl_algo.h:4025:5: note:   template argument deduction/substitution failed:
/usr/include/c++/14/bits/stl_algo.h: In substitution of 'template<class _IIter, class _Tp> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&) [with _IIter = char; _Tp = char]':
a.cc:10:12:   required from here
   10 |   c = count(n[1],n[3],'c');
      |       ~~~~~^~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4025:5: error: no type named 'difference_type' in 'struct std::iterator_traits<char>'
 4025 |     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
      |     ^~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:101:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, typename std::iterator_traits<_II>::difference_type> std::count(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, const _Tp&)'
  101 | count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
      | ^~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:101:1: note:   candidate expects 4 arguments, 3 provided
a.cc:11:9: error: expected primary-expression before '>' token
   11 |   if(a => 2 || b => 2 || c => 2){
      |         ^
a.cc:11:19: error: expected primary-expression before '>' token
   11 |   if(a => 2 || b => 2 || c => 2){
      |                   ^
a.cc:11:29: error: expected primary-expression before '>' token
   11 |   if(a => 2 || b => 2 || c => 2){
      |                             ^