Language: C++

#include<algorithm>//sort(all(変数),greater<型名>())　で降順に
#include<cmath>//切り上げceil(値)
#include<deque>
#include<iomanip>//setprecision(数字)
#include<iostream>
#include<list>
#include<map>
#include<numeric> //xとyの最大公約数は__gcd(x,y),xとyの最小公倍数は(x*y)/__gcd
#include<queue>//priority_queue<型名> 変数：優先度付きキュー　最大値の探索が早い
#include<set>
#include<stack>
#include<string>
#include<vector>
#include<bits/stdc++.h>
#include<cstdio>
#include<cstdlib>
#include<tuple>
#include<utility>
#define rep0(i,n)  for(ll i=0; i<n; i++)
#define rrep0(i,n) for(ll i=n-1; 0<=i; i--)
#define rep1(i,n)  for(ll i=1; i<=n; i++)
#define rrep1(i,n) for(ll i=n; 1<=i; i--)
#define vll vector<ll>
#define vi vector<int>
#define all(x) (x).begin(),(x).end()
#define mod 1000000007
using ll = long long;
using namespace std;

int main(){
  string s;  cin >> s;
  stack<int> st;
  ll ans = 0;
  rep0(i,s.size()){
    if(st.empty()){
      st.puch(atoi(s[i]));
    }else{
      if(st.tpo() != atoi(s[i])){
        ans += 2;
        st.pop();
      }else{
      	st.puch(atoi(s[i]));
      }
    }
  } 
}
      


Compiler output:
a.cc: In function 'int main()':
a.cc:36:10: error: 'class std::stack<int>' has no member named 'puch'; did you mean 'push'?
   36 |       st.puch(atoi(s[i]));
      |          ^~~~
      |          push
a.cc:36:19: error: invalid conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const char*' [-fpermissive]
   36 |       st.puch(atoi(s[i]));
      |               ~~~~^~~~~~
      |                   |
      |                   __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/c++/14/bits/stl_algo.h:71,
                 from /usr/include/c++/14/algorithm:61,
                 from a.cc:1:
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
a.cc:38:13: error: 'class std::stack<int>' has no member named 'tpo'; did you mean 'top'?
   38 |       if(st.tpo() != atoi(s[i])){
      |             ^~~
      |             top
a.cc:38:26: error: invalid conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const char*' [-fpermissive]
   38 |       if(st.tpo() != atoi(s[i])){
      |                      ~~~~^~~~~~
      |                          |
      |                          __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
a.cc:42:12: error: 'class std::stack<int>' has no member named 'puch'; did you mean 'push'?
   42 |         st.puch(atoi(s[i]));
      |            ^~~~
      |            push
a.cc:42:21: error: invalid conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const char*' [-fpermissive]
   42 |         st.puch(atoi(s[i]));
      |                 ~~~~^~~~~~
      |                     |
      |                     __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~