Language: C++

#include<iostream>                                                                                                                                    
#include<string>                                                                                                                                      
#include<cmath>                                                                                                                                       
using namespace std;                                                                                                                                  
                                                                                                                                                      
class Dice{                                                                                                                                           
public:                                                                                                                                               
  int a,b,c,d,e,f;                                                                                                                                    
  string comand;                                                                                                                                      
  int tmp1,tmp2,tmp3;                                                                                                                                 
                                                                                                                                                      
  Dice(){                                                                                                                                             
    a = 0;                                                                                                                                            
    b = 0;                                                                                                                                            
    c = 0;                                                                                                                                            
    d = 0;                                                                                                                                            
    e = 0;                                                                                                                                            
    f = 0;                                                                                                                                            
  }                                                                                                                                                   
                                                                                                                                                      
  void scan(){                                                                                                                                        
    cin >> a >> b >> c >> d >> e >> f;                                                                                                                
  }                                                                                                                                                   
                                                                                                                                                      
  void move(){                                                                                                                                        
    cin >> comand;                                                                                                                                    
    for(int i=0;i<comand.size();i++){                                                                                                                 
      if(comand[i] == 'N'){                                                                                                                           
        tmp1 = a;                                                                                                                                     
        a = b;                                                                                                                                        
        tmp2 = e;                                                                                                                                     
        e = tmp1;                                                                                                                                     
        tmp3 = f;                                                                                                                                     
        f = tmp2;                                                                                                                                     
        b = tmp3;                                                                                                                                     
      }                                                                                                                                               
     else if(comand[i] == 'E'){                                                                                                                      
        tmp1 = a;                                                                                                                                     
        a = d;                                                                                                                                        
        tmp2 = c;                                                                                                                                     
        c = tmp1;                                                                                                                                     
        tmp3 = f;                                                                                                                                     
        f = tmp2;                                                                                                                                     
        d = tmp3;                                                                                                                                     
      }                                                                                                                                               
      else if(comand[i] == 'W'){                                                                                                                      
        tmp1 = a;                                                                                                                                     
        a = c;                                                                                                                                        
        tmp2 = d;                                                                                                                                     
        d = tmp1;                                                                                                                                     
        tmp3 = f;                                                                                                                                     
        f = tmp2;                                                                                                                                     
        c = tmp3;                                                                                                                                     
      }                                                                                                                                               
      else if(comand[i] == 'S'){                                                                                                                      
        tmp1 = a;                                                                                                                                     
        a = e;                                                                                                                                        
        tmp2 = b;                                                                                                                                     
        b = tmp1;                                                                                                                                     
        tmp3 = f;                                                                                                                                     
        f = tmp2;                                                                                                                                     
        e = tmp3;                                                                                                                                     
      }      
                                                                                                                                         
  void print(){                                                                                                                                       
    cout << a << endl;                                                                                                                                
  }                                                                                                                                                   
};                                                                                                                                                    
                                                                                                                                                      
int main(){                                                                                                                                           
  Dice d1;                                                                                                                                            
                                                                                                                                                      
  d1.scan();                                                                                                                                          
  d1.move();                                                                                                                                          
  d1.print();                                                                                                                                         
                                                                                                                                                      
  return 0;                                                                                                                                           
}

Compiler output:
a.cc:78:2: error: expected '}' at end of input
   78 | }
      |  ^
a.cc:6:11: note: to match this '{'
    6 | class Dice{
      |           ^
a.cc: In member function 'void Dice::move()':
a.cc:65:15: error: a function-definition is not allowed here before '{' token
   65 |   void print(){
      |               ^
a.cc:70:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   70 | int main(){
      |         ^~
a.cc:70:9: note: remove parentheses to default-initialize a variable
   70 | int main(){
      |         ^~
      |         --
a.cc:70:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:70:11: error: a function-definition is not allowed here before '{' token
   70 | int main(){
      |           ^
a.cc:78:2: error: expected '}' at end of input
   78 | }
      |  ^
a.cc:25:14: note: to match this '{'
   25 |   void move(){
      |              ^
a.cc: At global scope:
a.cc:78:2: error: expected unqualified-id at end of input
   78 | }
      |  ^