Language: C++

#include <cstdio>
#include <cmath>
using namespace std;
int main()
{
    char a [10];
    scanf("%s",a);
    if(a[1]==a[2]&&(a[1]==a[0]||a[1]==[3]))
    printf("Yes");
    else 
    printf("No");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:40: error: expected identifier before numeric constant
    8 |     if(a[1]==a[2]&&(a[1]==a[0]||a[1]==[3]))
      |                                        ^
a.cc: In lambda function:
a.cc:8:42: error: expected '{' before ')' token
    8 |     if(a[1]==a[2]&&(a[1]==a[0]||a[1]==[3]))
      |                                          ^
a.cc: In function 'int main()':
a.cc:8:37: error: no match for 'operator==' (operand types are 'char' and 'main()::<lambda()>')
    8 |     if(a[1]==a[2]&&(a[1]==a[0]||a[1]==[3]))
      |                                 ~~~~^~~~~
      |                                    |  |
      |                                    |  main()::<lambda()>
      |                                    char
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
                 from /usr/include/c++/14/bits/specfun.h:43,
                 from /usr/include/c++/14/cmath:3906,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
 1033 |     operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
      |     ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note:   template argument deduction/substitution failed:
a.cc:8:42: note:   mismatched types 'const std::pair<_T1, _T2>' and 'char'
    8 |     if(a[1]==a[2]&&(a[1]==a[0]||a[1]==[3]))
      |                                          ^
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
  441 |     operator==(const reverse_iterator<_Iterator>& __x,
      |     ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note:   template argument deduction/substitution failed:
a.cc:8:42: note:   mismatched types 'const std::reverse_iterator<_Iterator>' and 'char'
    8 |     if(a[1]==a[2]&&(a[1]==a[0]||a[1]==[3]))
      |                                          ^
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
  486 |     operator==(const reverse_iterator<_IteratorL>& __x,
      |     ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note:   template argument deduction/substitution failed:
a.cc:8:42: note:   mismatched types 'const std::reverse_iterator<_Iterator>' and 'char'
    8 |     if(a[1]==a[2]&&(a[1]==a[0]||a[1]==[3]))
      |                                          ^
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
 1667 |     operator==(const move_iterator<_IteratorL>& __x,
      |     ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note:   template argument deduction/substitution failed:
a.cc:8:42: note:   mismatched types 'const std::move_iterator<_IteratorL>' and 'char'
    8 |     if(a[1]==a[2]&&(a[1]==a[0]||a[1]==[3]))
      |                                          ^
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
 1737 |     operator==(const move_iterator<_Iterator>& __x,
      |     ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note:   template argument deduction/substitution failed:
a.cc:8:42: note:   mismatched types 'const std::move_iterator<_IteratorL>' and 'char'
    8 |     if(a[1]==a[2]&&(a[1]==a[0]||a[1]==[3]))
      |                                          ^