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: In member function 'void Dice::rotation(char)':
a.cc:23:25: error: expected ':' before 'tmp'
   23 |                 case 'E'
      |                         ^
      |                         :
   24 |                         tmp = top;
      |                         ~~~
a.cc:30:25: error: expected ':' before 'tmp'
   30 |                 case 'W'
      |                         ^
      |                         :
   31 |                         tmp = top;
      |                         ~~~
a.cc:37:25: error: expected ':' before 'tmp'
   37 |                 case 'S'
      |                         ^
      |                         :
   38 |                         tmp = top;
      |                         ~~~
a.cc:44:25: error: expected ':' before 'tmp'
   44 |                 case 'N'
      |                         ^
      |                         :
   45 |                         tmp = top;
      |                         ~~~
a.cc: In function 'int main()':
a.cc:57:9: error: 'string' was not declared in this scope
   57 |         string ope;
      |         ^~~~~~
a.cc:57: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:58:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   58 |         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:61:16: error: 'ope' was not declared in this scope; did you mean 'popen'?
   61 |         cin >> ope;
      |                ^~~
      |                popen
a.cc:68:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   68 |         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:68:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   68 |         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)
      |     ^~~~