Language: C++

//??????????????????????????????????????????
//?????????????????¨????????????????§???????
//??????????????????????????????????????????

#include<iostream>
#include<string>
#include<stack>
using namespace std;


/*
	//?????????????????????
class IntStack{
public:
	int top;
	string str;
	
	//?????????
	initialize(){
		top = 0;
	}
	
	//?????????????????????(??????)???x???????????????
	push(x){
		if isFull()
		err	//(?????????????????????)
		top++;
		str[top] = x;
	}
	
	//?????????????????????(??????)??????????´???????????????????????????????????´???????????????? push ?????????????´????
	pop()
	if isEmpty()
	err //(??¢??????????????????)
	top--;
	return str[top + 1];
	
	//??????????????????????????????
	isEmpty()
		return  top == 0;
	
	//?????????????????????????????????
	isFull()
		return  top >= MAX - 1;
	
};
*/

int main  (int argc, char *argv[])
{
	string str;
	//1?????????????????\???
	getline <std> str;	
	
	// ????????????????????¨??????????????????
	int operand1 = str[i];
	int operand2 = str[i+1];
	
	
	stack<int> sss;	//int??????????????????
	
	
	//???????????????????????????
	for(int i = 1; i < (str.length); ++ ) {
	//??????????¨?????????£??????
		if(strcmp( str[i], "+" ) == 0 ){
			sss.pop( &operand2);
			sss.pop( &operand1);
			sss.push(operand1 + operand2);
		}
		else if(strcmp( str[i], "-" ) == 0 ){
			sss.pop( &operand2);
			sss.pop( &operand1);
			sss.push(operand1 + operand2);
		}
		else if(strcmp( str[i], "*" ) == 0 ){
			sss.pop( &operand2);
			sss.pop( &operand1);
			sss.push(operand1 + operand2);	
		}
		else if(strcmp( str[i], "/" ) == 0 ){
			sss.pop( &operand2);
			sss.pop( &operand1);
			//0????????????
			if(operand2 == 0 ){
				
			}
			sss.push(operand1 + operand2);	
		}
		else{
			//????¨???\????????´??°???????????????
			sss.push();
		
		}
	//?????????????????´?????§????¢????
		if(){}
		
	
	//1???????¨???????????????????
		cout << value << endl;
		
	//??£?????????
	return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:53:9: error: parse error in template argument list
   53 |         getline <std> str;
      |         ^~~~~~~~~~~~~
a.cc:53:22: error: expected ';' before 'str'
   53 |         getline <std> str;
      |                      ^~~~
      |                      ;
a.cc:53:9: error: statement cannot resolve address of overloaded function
   53 |         getline <std> str;
      |         ^~~~~~~~~~~~~
a.cc:56:28: error: 'i' was not declared in this scope
   56 |         int operand1 = str[i];
      |                            ^
a.cc:64:33: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   64 |         for(int i = 1; i < (str.length); ++ ) {
      |                            ~~~~~^~~~~~~
      |                                        ()
a.cc:64:45: error: expected primary-expression before ')' token
   64 |         for(int i = 1; i < (str.length); ++ ) {
      |                                             ^
a.cc:66:20: error: 'strcmp' was not declared in this scope
   66 |                 if(strcmp( str[i], "+" ) == 0 ){
      |                    ^~~~~~
a.cc:8:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    7 | #include<stack>
  +++ |+#include <cstring>
    8 | using namespace std;
a.cc:67:32: error: no matching function for call to 'std::stack<int>::pop(int*)'
   67 |                         sss.pop( &operand2);
      |                         ~~~~~~~^~~~~~~~~~~~
In file included from /usr/include/c++/14/stack:63,
                 from a.cc:7:
/usr/include/c++/14/bits/stl_stack.h:291:7: note: candidate: 'void std::stack<_Tp, _Sequence>::pop() [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >]'
  291 |       pop()
      |       ^~~
/usr/include/c++/14/bits/stl_stack.h:291:7: note:   candidate expects 0 arguments, 1 provided
a.cc:68:32: error: no matching function for call to 'std::stack<int>::pop(int*)'
   68 |                         sss.pop( &operand1);
      |                         ~~~~~~~^~~~~~~~~~~~
/usr/include/c++/14/bits/stl_stack.h:291:7: note: candidate: 'void std::stack<_Tp, _Sequence>::pop() [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >]'
  291 |       pop()
      |       ^~~
/usr/include/c++/14/bits/stl_stack.h:291:7: note:   candidate expects 0 arguments, 1 provided
a.cc:72:32: error: no matching function for call to 'std::stack<int>::pop(int*)'
   72 |                         sss.pop( &operand2);
      |                         ~~~~~~~^~~~~~~~~~~~
/usr/include/c++/14/bits/stl_stack.h:291:7: note: candidate: 'void std::stack<_Tp, _Sequence>::pop() [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >]'
  291 |       pop()
      |       ^~~
/usr/include/c++/14/bits/stl_stack.h:291:7: note:   candidate expects 0 arguments, 1 provided
a.cc:73:32: error: no matching function for call to 'std::stack<int>::pop(int*)'
   73 |                         sss.pop( &operand1);
      |                         ~~~~~~~^~~~~~~~~~~~
/usr/include/c++/14/bits/stl_stack.h:291:7: note: candidate: 'void std::stack<_Tp, _Sequence>::pop() [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >]'
  291 |       pop()
      |       ^~~
/usr/include/c++/14/bits/stl_stack.h:291:7: note:   candidate expects 0 arguments, 1 provided
a.cc:77:32: error: no matching function for call to 'std::stack<int>::pop(int*)'
   77 |                         sss.pop( &operand2);
      |                         ~~~~~~~^~~~~~~~~~~~
/usr/include/c++/14/bits/stl_stack.h:291:7: note: candidate: 'void std::stack<_Tp, _Sequence>::pop() [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >]'
  291 |       pop()
      |       ^~~
/usr/include/c++/14/bits/stl_stack.h:291:7: note:   candidate expects 0 arguments, 1 provided
a.cc:78:32: error: no matching function for call to 'std::stack<int>::pop(int*)'
   78 |                         sss.pop( &operand1);
      |                         ~~~~~~~^~~~~~~~~~~~
/usr/include/c++/14/bits/stl_stack.h:291:7: note: candidate: 'void std::stack<_Tp, _Sequence>::pop() [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >]'
  291 |       pop()
      |       ^~~
/usr/include/c++/14/bits/stl_stack.h:291:7: note:   candidate expects 0 arguments, 1 provided
a.cc:82:32: error: no matching function for call to 'std::stack<int>::pop(int*)'
   82 |                         sss.pop( &operand2);
      |                         ~~~~~~~^~~~~~~~~~~~
/usr/include/c++/14/bits/stl_stack.h:291:7: note: candidate: 'void std::stack<_Tp, _Sequence>::pop() [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >]'
  291 |       pop()
      |       ^~~
/usr/include/c++/14/bits/stl_stack.h:291:7: note:   candidate expects 0 arguments, 1 provided
a.cc:83:32: error: no matching function for call to 'std::stack<int>::pop(int*)'
   83 |                         sss.pop( &operand1);
      |                         ~~~~~~~^~~~~~~~~~~~
/usr/include/c++/14/bits/stl_stack.h:291:7: note: candidate: 'void std::stack<_Tp, _Sequence>::pop() [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >]'
  291 |       pop()
      |       ^~~
/usr/include/c++/14/bits/stl_stack.h:291:7: note:   candidate expects 0 arguments, 1 provided
a.cc:92:33: error: no matching function for call to 'std::stack<int>::push()'
   92 |                         sss.push();
      |                         ~~~~~~~~^~
/usr/include/c++/14/bits/stl_stack.h:258:7: note: candidate: 'void std::stack<_Tp, _Sequence>::push(const value_type&) [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >; value_type = int]'
  258 |       push(const value_type& __x)
      |       ^~~~
/usr/include/c++/14/bits/stl_stack.h:258:7: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/stl_stack.h:263:7: note: candidate: 'void std::stack<_Tp, _Sequence>::push(value_type&&) [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >; value_type = int]'
  263 |       push(value_type&& __x)
      |       ^~~~
/usr/include/c++/14/bits/stl_stack.h:263:7: note:   candidate expects 1 argument, 0 provided
a.cc:96:20: error: expected primary-expression before ')' token
   96 |                 if(){}
      |                    ^
a.cc:100:25: error: 'value' was not declared in this scope
  100 |                 cout << value << endl;
      |                         ^~~~~
a.cc:104:2: error: expected '}' at end of input
  104 | }
      |  ^
a.cc:50:1: note: to match this '{'
   50 | {
      | ^