Language: C++

#include<iostream>
#include<cstdio>
#include<string>
#include<cstring>

class Dice
{
public:
	int top;	// ?????¢
	int south;	// ?????¢
	int east;	// ??±??¢
	int west;	// ?\???¢
	int north;	// ?????¢
	int bottom;	// ?????¢
	int tmp;	// ?????¢????????????????????¨
	void rotation(char ope);

}

void Dice::rotation(char ope)
{
	switch(ope)
	{
		case 'E'
			tmp = top;
			top = west;
			west = bottom;
			bottom = east;
			east = top;			
			break;
		case 'W'
			tmp = top;
			top = east;
			east = bottom;
			bottom = west;
			west = top;
			break;
		case 'S'
			tmp = top;
			top = north;
			north = bottom;
			bottom = south;
			south = top;
			break;
		case 'N'
			tmp = top;
			top = south;
			south = bottom;
			bottom = north;
			north = top;
			break;
	}
}

int main()
{
	Dice dice1;
	string ope;
	cin >> dice1.top >> dice1.south >> dice1.east >> dice1.west >> dice1.north >> dice1.bottom;
	
	//???????????¢??????????????\???
	cin >> ope;
	
	for(int i = 0; i < ope.length(); i++)
	{
		dice1.rotation(ope[i]);
	}
	
	cout << dice1.top << endl;
}

Compiler output:
a.cc:18:2: error: expected ';' after class definition
   18 | }
      |  ^
      |  ;
a.cc: In member function 'void Dice::rotation(char)':
a.cc:24:25: error: expected ':' before 'tmp'
   24 |                 case 'E'
      |                         ^
      |                         :
   25 |                         tmp = top;
      |                         ~~~
a.cc:31:25: error: expected ':' before 'tmp'
   31 |                 case 'W'
      |                         ^
      |                         :
   32 |                         tmp = top;
      |                         ~~~
a.cc:38:25: error: expected ':' before 'tmp'
   38 |                 case 'S'
      |                         ^
      |                         :
   39 |                         tmp = top;
      |                         ~~~
a.cc:45:25: error: expected ':' before 'tmp'
   45 |                 case 'N'
      |                         ^
      |                         :
   46 |                         tmp = top;
      |                         ~~~
a.cc: In function 'int main()':
a.cc:58:9: error: 'string' was not declared in this scope
   58 |         string ope;
      |         ^~~~~~
a.cc:58:9: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included 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:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:59:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   59 |         cin >> dice1.top >> dice1.south >> dice1.east >> dice1.west >> dice1.north >> dice1.bottom;
      |         ^~~
      |         std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:62:16: error: 'ope' was not declared in this scope; did you mean 'popen'?
   62 |         cin >> ope;
      |                ^~~
      |                popen
a.cc:69:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   69 |         cout << dice1.top << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:69:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   69 |         cout << dice1.top << endl;
      |                              ^~~~
      |                              std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~