Language: C++

#include <iostream>
#include <string>

using namespace std;;

int main() {
  int i, n, 1p, 2p;
  string p1, p2;
  
  cin >> n;
  
  p1, p2 = 0;
  for (i=0; i < n; i++) {
    cin >> p1 >> p2;
    if (p1 === p2) {
      1p += 1;
      2p += 1;
    }
    else if (p1 > p2) {
      1p += 3;
    }
    else if (p1 < p2) {
      2p += 3;
    }
  }
  
  cout << 1p << 2p << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: expected unqualified-id before numeric constant
    7 |   int i, n, 1p, 2p;
      |             ^~
a.cc:12:12: error: ambiguous overload for 'operator=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
   12 |   p1, p2 = 0;
      |            ^
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:817:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
  817 |       operator=(const basic_string& __str)
      |       ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:828:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
  828 |       operator=(const _CharT* __s)
      |       ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:840:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(_CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
  840 |       operator=(_CharT __c)
      |       ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:858:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
  858 |       operator=(basic_string&& __str)
      |       ^~~~~~~~
a.cc:15:14: error: expected primary-expression before '=' token
   15 |     if (p1 === p2) {
      |              ^
a.cc:16:7: error: unable to find numeric literal operator 'operator""p'
   16 |       1p += 1;
      |       ^~
a.cc:17:7: error: unable to find numeric literal operator 'operator""p'
   17 |       2p += 1;
      |       ^~
a.cc:20:7: error: unable to find numeric literal operator 'operator""p'
   20 |       1p += 3;
      |       ^~
a.cc:23:7: error: unable to find numeric literal operator 'operator""p'
   23 |       2p += 3;
      |       ^~
a.cc:27:11: error: unable to find numeric literal operator 'operator""p'
   27 |   cout << 1p << 2p << endl;
      |           ^~
a.cc:27:17: error: unable to find numeric literal operator 'operator""p'
   27 |   cout << 1p << 2p << endl;
      |                 ^~