Language: C++

#include<iostream>
#include<cmath>
using namespace std;

class Dice{
public:
  int face[6];
  int tmp[6];

  Dice(int f1,f2,f3,f4,f5,f6){
    face[0] = f1;
    face[1] = f2;
    face[2] = f3;
    face[3] = f4;
    face[4] = f5;
    face[5] = f6;
  }
};

int main(){
  string dir;
  int f1,f2,f3,f4,f5,f6;
  cin >> f1 >> f2 >> f3 >> f4 >> f5 >> f6;
  cin >> dir;

  Dice(f1,f2,f3,f4,f5,f6);

  for ( int i = 0; i < dir.size(); i++){
    tmp[:] = face[:]

    if(dir[i] == "S"){
      face[1] = tmp[5];
      face[2] = tmp[1];
      face[5] = tmp[6];
      face[6] = tmp[2];
    }
    else if (dir[i] == "E"){
      face[1] = tmp[4];
      face[3] = tmp[1];
      face[4] = tmp[6];
      face[6] = tmp[3];
    }
    else if (dir[i] == "N"){
      face[1] = tmp[2];
      face[2] = tmp[6];
      face[5] = tmp[1];
      face[6] = tmp[5];
    }
    else if (dir[i] == "W"){
      face[1] = tmp[3];
      face[3] = tmp[6];
      face[4] = tmp[1];
      face[6] = tmp[4];
    }
  }

  return 0;
}

Compiler output:
a.cc:10:15: error: 'f2' has not been declared
   10 |   Dice(int f1,f2,f3,f4,f5,f6){
      |               ^~
a.cc:10:18: error: 'f3' has not been declared
   10 |   Dice(int f1,f2,f3,f4,f5,f6){
      |                  ^~
a.cc:10:21: error: 'f4' has not been declared
   10 |   Dice(int f1,f2,f3,f4,f5,f6){
      |                     ^~
a.cc:10:24: error: 'f5' has not been declared
   10 |   Dice(int f1,f2,f3,f4,f5,f6){
      |                        ^~
a.cc:10:27: error: 'f6' has not been declared
   10 |   Dice(int f1,f2,f3,f4,f5,f6){
      |                           ^~
a.cc: In constructor 'Dice::Dice(int, int, int, int, int, int)':
a.cc:12:15: error: 'f2' was not declared in this scope; did you mean 'f1'?
   12 |     face[1] = f2;
      |               ^~
      |               f1
a.cc:13:15: error: 'f3' was not declared in this scope; did you mean 'f1'?
   13 |     face[2] = f3;
      |               ^~
      |               f1
a.cc:14:15: error: 'f4' was not declared in this scope; did you mean 'f1'?
   14 |     face[3] = f4;
      |               ^~
      |               f1
a.cc:15:15: error: 'f5' was not declared in this scope; did you mean 'f1'?
   15 |     face[4] = f5;
      |               ^~
      |               f1
a.cc:16:15: error: 'f6' was not declared in this scope; did you mean 'f1'?
   16 |     face[5] = f6;
      |               ^~
      |               f1
a.cc: In function 'int main()':
a.cc:29:5: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   29 |     tmp[:] = face[:]
      |     ^~~
      |     tm
a.cc:29:9: error: expected primary-expression before ':' token
   29 |     tmp[:] = face[:]
      |         ^
a.cc:29:9: error: expected ']' before ':' token
   29 |     tmp[:] = face[:]
      |         ^
      |         ]
a.cc:37:5: error: 'else' without a previous 'if'
   37 |     else if (dir[i] == "E"){
      |     ^~~~
a.cc:37:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   37 |     else if (dir[i] == "E"){
a.cc:38:7: error: 'face' was not declared in this scope
   38 |       face[1] = tmp[4];
      |       ^~~~
a.cc:43:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   43 |     else if (dir[i] == "N"){
a.cc:44:7: error: 'face' was not declared in this scope
   44 |       face[1] = tmp[2];
      |       ^~~~
a.cc:49:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   49 |     else if (dir[i] == "W"){
a.cc:50:7: error: 'face' was not declared in this scope
   50 |       face[1] = tmp[3];
      |       ^~~~