运行 ID: 139979

Main.cc: In function ‘int loc(int)’:
Main.cc:17:2: error: ‘rt’ was not declared in this scope
  rt ( x % 6 == 0 ? 6 : x % 6 ) ;
  ^~
Main.cc:18:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
Main.cc: In function ‘int Check(int)’:
Main.cc:29:50: error: expected primary-expression before ‘)’ token
  if ( c == 3 && ( s == 2 || s == 5 || s == 7 ) ) )
                                                  ^
Main.cc: In function ‘int main()’:
Main.cc:52:11: error: ‘flg’ was not declared in this scope
  memset ( flg , -1 , sizeof ( flg ) ) ;
           ^~~
Main.cc:52:11: note: suggested alternative: ‘flag’
  memset ( flg , -1 , sizeof ( flg ) ) ;
           ^~~
           flag
Main.cc:54:17: error: ‘k’ was not declared in this scope
  while ( cin >> k && k != -1 )
                 ^
Main.cc:58:17: error: ‘k’ was not declared in this scope
  while ( cin >> k && k != -1 )
                 ^
Main.cc:64:11: error: ‘chk’ was not declared in this scope
      if ( chk ( i ) )
           ^~~
Main.cc:68:13: error: ‘stt’ was not declared in this scope
     cout << stt [i] [loc ( j )] ;
             ^~~
Main.cc:68:13: note: suggested alternative: ‘state’
     cout << stt [i] [loc ( j )] ;
             ^~~
             state
Main.cc:71:11: error: incompatible types in assignment of ‘int’ to ‘int [7]’
    flag = 1 ;
           ^
Main.cc:78:2: error: ‘rt’ was not declared in this scope
  rt 0 ;
  ^~
Main.cc: At global scope:
Main.cc:79:2: error: ‘urn’ does not name a type; did you mean ‘uint’?
 }urn 0;
  ^~~
  uint
Main.cc:80:1: error: expected declaration before ‘}’ token
 }
 ^