criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  string color, result;
  result = "Three"
  cin >> N;
  
  for (i = 0; i < N; i++) {
    cin >> color;
    
    if (color == "Y") {
      result = "Four"
    }
  }
  
  cout << result << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: expected ';' before 'cin'
    7 |   result = "Three"
      |                   ^
      |                   ;
    8 |   cin >> N;
      |   ~~~              
a.cc:10:8: error: 'i' was not declared in this scope
   10 |   for (i = 0; i < N; i++) {
      |        ^
a.cc:14:22: error: expected ';' before '}' token
   14 |       result = "Four"
      |                      ^
      |                      ;
   15 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  string color, result;
  result = "Three"
  cin >> N;
  
  for (i = 0; i < N; i++) {
    cin >> color;
    
    if (color == "Y") {
      result = "Four"
    }
  }
  
  cout << result;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: expected ';' before 'cin'
    7 |   result = "Three"
      |                   ^
      |                   ;
    8 |   cin >> N;
      |   ~~~              
a.cc:10:8: error: 'i' was not declared in this scope
   10 |   for (i = 0; i < N; i++) {
      |        ^
a.cc:14:22: error: expected ';' before '}' token
   14 |       result = "Four"
      |                      ^
      |                      ;
   15 |     }
      |     ~
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){
  
  int N,i;
  int p,w,g,y;
  string S;
  cin >> N;
  cout << endl;
  
  for(i = 0;i < N;i++){
    cin >> S;
    
    if(S == "P"){
      f1 = true;
    }
    
    if(S == "W"){
      f2 = true;
    } 
    
    if(S == "G"){
      f3 = true;
    }
    
    if(S == "Y"){
      f4 = true;
    }
  }
  
  if(p + w + g + y == 4){
    cout << "Four" << endl;
  }else if(p + w + g + y == 3){
    cout << "Three" << endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:7: error: 'f1' was not declared in this scope; did you mean 'y1'?
   16 |       f1 = true;
      |       ^~
      |       y1
a.cc:20:7: error: 'f2' was not declared in this scope
   20 |       f2 = true;
      |       ^~
a.cc:24:7: error: 'f3' was not declared in this scope
   24 |       f3 = true;
      |       ^~
a.cc:28:7: error: 'f4' was not declared in this scope
   28 |       f4 = true;
      |       ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin >> N;
  string S;
  for ( int i=0; i<N; i++){
    cin >> S;
    if (S == "Y"){
      break;}
  }
    if (S=="Y"){
      cout << "Four" << endl;
    else{
      cout << "Three" << endl;}
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: expected '}' before 'else'
   14 |     else{
      |     ^~~~
a.cc:12:16: note: to match this '{'
   12 |     if (S=="Y"){
      |                ^
a.cc: At global scope:
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin >> N;
  string S;
  for ( int i=0; i<N; i++){
    cin >> S;
    if (S == "Y"){
      cout << "Four" << endl;}
      break;}
    else{
      cout << "Three" << endl;}
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'else' without a previous 'if'
   12 |     else{
      |     ^~~~
a.cc: At global scope:
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main() {
  int N;
  cin >> N;
  int Z = 0;
  for (i = 1;i <= N;i++) {
    string s;
    cin >> s;
    if (s == "Y") {
      Z += 1;
    }
  }
    if (Z == 0) {
      cout << "three" <<endl;
    }
    else {
      cout << "four" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'i' was not declared in this scope
    9 |   for (i = 1;i <= N;i++) {
      |        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main() {
  int N,i;
  cin >> N >> i;
  int X = 0;
  int Z = 0;
  while (i <= N) {
    string s;
    cin >> s;
    if ( s == "P" || s == "W" || s == "G" ) {
      X += 1;
      Z += 1;
    }
    else ( s == "Y") {
      Z += 1;
    }
  }
    if (Z >= 4) {
      cout << "four" <<endl;
    }
    else {
      cout << "three" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:21: error: expected ';' before '{' token
   17 |     else ( s == "Y") {
      |                     ^~
      |                     ;
a.cc:17:14: warning: ignoring return value of 'bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
   17 |     else ( s == "Y") {
      |          ~~~~^~~~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3772:5: note: declared here
 3772 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main() {
  int N,i;
  cin >> N >> i;
  int X = 0;
  int Z = 0;
  while (i <= N) {
    string s;
    cin >> s;
    if ( s == "P" || s == "W" || s == "G" ) {
      X += 1;
      Z += 1;
    }
    else if ( s == "Y") {
      Z += 1;
    }
  }
  if (X => 3) {
    cout << "three" <<endl;
  }
  else if (Z => 4) {
    cout << "four" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:10: error: expected primary-expression before '>' token
   21 |   if (X => 3) {
      |          ^
a.cc:24:15: error: expected primary-expression before '>' token
   24 |   else if (Z => 4) {
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main() {
  int N,i;
  cin >> N >> i;
  int 3X = 0;
  int 4X = 0;
  while (i <= N) {
    string s;
    cin >> s;
    if ( s == "P" || s == "W" || s == "G" ) {
      3X += 1;
      4X += 1;
    }
    else if ( s == "Y") {
      4X += 1;
    }
  }
  if (3X => 3) {
    cout << "three" <<endl;
  }
  else if (4X => 4) {
    cout << "four" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: expected unqualified-id before numeric constant
    8 |   int 3X = 0;
      |       ^~
a.cc:9:7: error: expected unqualified-id before numeric constant
    9 |   int 4X = 0;
      |       ^~
a.cc:14:7: error: unable to find numeric literal operator 'operator""X'
   14 |       3X += 1;
      |       ^~
a.cc:15:7: error: unable to find numeric literal operator 'operator""X'
   15 |       4X += 1;
      |       ^~
a.cc:18:7: error: unable to find numeric literal operator 'operator""X'
   18 |       4X += 1;
      |       ^~
a.cc:21:7: error: unable to find numeric literal operator 'operator""X'
   21 |   if (3X => 3) {
      |       ^~
a.cc:21:11: error: expected primary-expression before '>' token
   21 |   if (3X => 3) {
      |           ^
a.cc:24:12: error: unable to find numeric literal operator 'operator""X'
   24 |   else if (4X => 4) {
      |            ^~
a.cc:24:16: error: expected primary-expression before '>' token
   24 |   else if (4X => 4) {
      |                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main() {
  int N,3X,4X,i;
  cin >> N >> 3X >> 4X >> i;
  while (i <= N) {
    int s;
    cin >> s;
    if ( s == "P" || s == "W" || s == "G" ) {
      3X += 1;
      4X += 1;
    }
    else if ( s == "Y") {
      4X += 1;
    }
  }
  if (3X => 3) {
    cout << "three" <<endl;
  }
  else if (4X => 4) {
    cout << "four" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected unqualified-id before numeric constant
    6 |   int N,3X,4X,i;
      |         ^~
a.cc:7:15: error: unable to find numeric literal operator 'operator""X'
    7 |   cin >> N >> 3X >> 4X >> i;
      |               ^~
a.cc:7:21: error: unable to find numeric literal operator 'operator""X'
    7 |   cin >> N >> 3X >> 4X >> i;
      |                     ^~
a.cc:7:27: error: 'i' was not declared in this scope
    7 |   cin >> N >> 3X >> 4X >> i;
      |                           ^
a.cc:11:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if ( s == "P" || s == "W" || s == "G" ) {
      |          ~~^~~~~~
a.cc:11:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if ( s == "P" || s == "W" || s == "G" ) {
      |                      ~~^~~~~~
a.cc:11:36: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if ( s == "P" || s == "W" || s == "G" ) {
      |                                  ~~^~~~~~
a.cc:12:7: error: unable to find numeric literal operator 'operator""X'
   12 |       3X += 1;
      |       ^~
a.cc:13:7: error: unable to find numeric literal operator 'operator""X'
   13 |       4X += 1;
      |       ^~
a.cc:15:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     else if ( s == "Y") {
      |               ~~^~~~~~
a.cc:16:7: error: unable to find numeric literal operator 'operator""X'
   16 |       4X += 1;
      |       ^~
a.cc:19:7: error: unable to find numeric literal operator 'operator""X'
   19 |   if (3X => 3) {
      |       ^~
a.cc:19:11: error: expected primary-expression before '>' token
   19 |   if (3X => 3) {
      |           ^
a.cc:22:12: error: unable to find numeric literal operator 'operator""X'
   22 |   else if (4X => 4) {
      |            ^~
a.cc:22:16: error: expected primary-expression before '>' token
   22 |   else if (4X => 4) {
      |                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main() {
  int N,3X,4X;
  cin >> N >> 3X >> 4X;
  for (int i = 1; i =< N; i++) {
    int s;
    cin >> s;
    if ( s == "P" || s == "W" || s == "G" ) {
      3X += 1;
      4X += 1;
    }
    else if ( s == "Y") {
      4X += 1;
    }
  }
  if (3X => 3) {
    cout << "three" <<endl;
  }
  else if (4X => 4) {
    cout << "four" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected unqualified-id before numeric constant
    6 |   int N,3X,4X;
      |         ^~
a.cc:7:15: error: unable to find numeric literal operator 'operator""X'
    7 |   cin >> N >> 3X >> 4X;
      |               ^~
a.cc:7:21: error: unable to find numeric literal operator 'operator""X'
    7 |   cin >> N >> 3X >> 4X;
      |                     ^~
a.cc:8:22: error: expected primary-expression before '<' token
    8 |   for (int i = 1; i =< N; i++) {
      |                      ^
a.cc:11:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if ( s == "P" || s == "W" || s == "G" ) {
      |          ~~^~~~~~
a.cc:11:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if ( s == "P" || s == "W" || s == "G" ) {
      |                      ~~^~~~~~
a.cc:11:36: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if ( s == "P" || s == "W" || s == "G" ) {
      |                                  ~~^~~~~~
a.cc:12:7: error: unable to find numeric literal operator 'operator""X'
   12 |       3X += 1;
      |       ^~
a.cc:13:7: error: unable to find numeric literal operator 'operator""X'
   13 |       4X += 1;
      |       ^~
a.cc:15:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     else if ( s == "Y") {
      |               ~~^~~~~~
a.cc:16:7: error: unable to find numeric literal operator 'operator""X'
   16 |       4X += 1;
      |       ^~
a.cc:19:7: error: unable to find numeric literal operator 'operator""X'
   19 |   if (3X => 3) {
      |       ^~
a.cc:19:11: error: expected primary-expression before '>' token
   19 |   if (3X => 3) {
      |           ^
a.cc:22:12: error: unable to find numeric literal operator 'operator""X'
   22 |   else if (4X => 4) {
      |            ^~
a.cc:22:16: error: expected primary-expression before '>' token
   22 |   else if (4X => 4) {
      |                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  cin >> N;
  
  for (int i = 0; i < N; i++) {
  	spring s;
  	cin >> s;
  	if (s == "Y") {
    	cout << "four" << endl;
    	break;
    }
  }
  
  if (i == N) {
    cout << "three" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'spring' was not declared in this scope; did you mean 'sprintf'?
    9 |         spring s;
      |         ^~~~~~
      |         sprintf
a.cc:10:16: error: 's' was not declared in this scope
   10 |         cin >> s;
      |                ^
a.cc:17:7: error: 'i' was not declared in this scope
   17 |   if (i == N) {
      |       ^
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){
  int N;
  bool ans=0;
  for(int i=0;i<N;i++){
    char s;
    cin >> s;
    if(s=="Y"){
      ans=1;
      break;
    }
  }
  if(ans) cout << "Four" << endl;
  else cout << "Three" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if(s=="Y"){
      |        ~^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin >> N;
  int colors;
  colors = 0;
  string = C;
    for(int i=0;i<N;i++){
      cin >> C;
      if(C=="Y"){
        colors++;
      }
      break
    }
    for(int i=0;i<N;i++){
      cin >> C;
      if(C=="G"){
        colors++;
      }
      break
    }
    for(int i=0;i<N;i++){
      cin >> C;
      if(C=="W"){
        colors++;
      }
      break
    }
    for(int i=0;i<N;i++){
      cin >> C;
      if(C=="P"){
        colors++;
      }
      break
    }
    if(C==3){
      cout << "Three" << endl;
    }
    if(C==4){
      cout << "Four" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: expected unqualified-id before '=' token
    8 |   string = C;
      |          ^
a.cc:10:14: error: 'C' was not declared in this scope
   10 |       cin >> C;
      |              ^
a.cc:14:12: error: expected ';' before '}' token
   14 |       break
      |            ^
      |            ;
   15 |     }
      |     ~       
a.cc:17:14: error: 'C' was not declared in this scope
   17 |       cin >> C;
      |              ^
a.cc:21:12: error: expected ';' before '}' token
   21 |       break
      |            ^
      |            ;
   22 |     }
      |     ~       
a.cc:24:14: error: 'C' was not declared in this scope
   24 |       cin >> C;
      |              ^
a.cc:28:12: error: expected ';' before '}' token
   28 |       break
      |            ^
      |            ;
   29 |     }
      |     ~       
a.cc:31:14: error: 'C' was not declared in this scope
   31 |       cin >> C;
      |              ^
a.cc:35:12: error: expected ';' before '}' token
   35 |       break
      |            ^
      |            ;
   36 |     }
      |     ~       
a.cc:37:8: error: 'C' was not declared in this scope
   37 |     if(C==3){
      |        ^
a.cc:40:8: error: 'C' was not declared in this scope
   40 |     if(C==4){
      |        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin >> N;
  int colors;
  colors = 0
  string = C;
    for(int i=0;i<N;i++){
      cin >> C;
      if(C=="Y"){
        colors++;
      }
      break
    }
    for(int i=0;i<N;i++){
      cin >> C;
      if(C=="G"){
        colors++;
      }
      break
    }
    for(int i=0;i<N;i++){
      cin >> C;
      if(C=="W"){
        colors++;
      }
      break
    }
    for(int i=0;i<N;i++){
      cin >> C;
      if(C=="P"){
        colors++;
      }
      break
    }
    if(C==3){
      cout << "Three" << endl;
    }
    if(C==4){
      cout << "Four" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: expected ';' before 'string'
    7 |   colors = 0
      |             ^
      |             ;
    8 |   string = C;
      |   ~~~~~~     
a.cc:10:14: error: 'C' was not declared in this scope
   10 |       cin >> C;
      |              ^
a.cc:14:12: error: expected ';' before '}' token
   14 |       break
      |            ^
      |            ;
   15 |     }
      |     ~       
a.cc:17:14: error: 'C' was not declared in this scope
   17 |       cin >> C;
      |              ^
a.cc:21:12: error: expected ';' before '}' token
   21 |       break
      |            ^
      |            ;
   22 |     }
      |     ~       
a.cc:24:14: error: 'C' was not declared in this scope
   24 |       cin >> C;
      |              ^
a.cc:28:12: error: expected ';' before '}' token
   28 |       break
      |            ^
      |            ;
   29 |     }
      |     ~       
a.cc:31:14: error: 'C' was not declared in this scope
   31 |       cin >> C;
      |              ^
a.cc:35:12: error: expected ';' before '}' token
   35 |       break
      |            ^
      |            ;
   36 |     }
      |     ~       
a.cc:37:8: error: 'C' was not declared in this scope
   37 |     if(C==3){
      |        ^
a.cc:40:8: error: 'C' was not declared in this scope
   40 |     if(C==4){
      |        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  string h;
  cin >> N;
  
  for (int i = 0; i < N; i++) {
  cin >> h;
  
  if (h == "Y") {
  cout << "four" << endl;
  break;
  }
  else if (i + 1 = N) {
  cout << "three" << endl;
  }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:14: error: lvalue required as left operand of assignment
   16 |   else if (i + 1 = N) {
      |            ~~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  string h;
  cin >> N;
  
  for (int i = 0; i < N; i++) {
  cin >> h;
  
  if (h == "Y") {
  cout << "four" << endl;
  break;
  }
  }
  if (i = N) {
  cout << "three" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:7: error: 'i' was not declared in this scope
   17 |   if (i = N) {
      |       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  string h;
  cin >> N;
  
  for (int i = 0; i < N; i++) {
  cin >> h;
  
  if (h == "Y") {
  cout << "four" << endl;
  break;
  }
  }
  else if{
  cout << "three" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:3: error: 'else' without a previous 'if'
   17 |   else if{
      |   ^~~~
a.cc:17:10: error: expected '(' before '{' token
   17 |   else if{
      |          ^
      |          (
Language: C++

#include <bits/stdc++.h>
using namespace std;
 #define rep(i , n) for (int i = 0; i < (int)(n); i++)

int main() {
  int N, J;
  J = 0
  rep(i , N){
    string A;
    cin >> A;
    if(A == "Y")
      J += 1;
  }
  if(J > 0)
    cout << "Four" << endl;
  else
    cout << "Three" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected ';' before 'for'
    7 |   J = 0
      |        ^
      |        ;
a.cc:8:7: error: 'i' was not declared in this scope
    8 |   rep(i , N){
      |       ^
a.cc:3:37: note: in definition of macro 'rep'
    3 |  #define rep(i , n) for (int i = 0; i < (int)(n); i++)
      |                                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 #define rep(i , n) for (int i = 0; i < (int)(n); i++)

int main() {
  int N, J;
  rep(i , N){
    string A;
    cin >> A;
    if(A == "Y")
      J += 1;
  }
  if(j)
    cout << Four << endl;
  else
    cout << Three << endl;
}#include <bits/stdc++.h>
using namespace std;
 #define rep(i , n) for (int i = 0; i < (int)(n); i++)

int main() {
  int N, J;
  rep(i , N){
    string A;
    cin >> A;
    if(A == "Y")
      J += 1;
  }
  if(J)
    cout << "Four" << endl;
  else
    cout << "Three" << endl;
}

Compiler output:
a.cc:17:2: error: stray '#' in program
   17 | }#include <bits/stdc++.h>
      |  ^
a.cc: In function 'int main()':
a.cc:13:6: error: 'j' was not declared in this scope
   13 |   if(j)
      |      ^
a.cc:14:13: error: 'Four' was not declared in this scope
   14 |     cout << Four << endl;
      |             ^~~~
a.cc:16:13: error: 'Three' was not declared in this scope
   16 |     cout << Three << endl;
      |             ^~~~~
a.cc: At global scope:
a.cc:17:3: error: 'include' does not name a type
   17 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:21:5: error: redefinition of 'int main()'
   21 | int main() {
      |     ^~~~
a.cc:5:5: note: 'int main()' previously defined here
    5 | int main() {
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  cin >> N ;
  
  for (int i = 0 ; i < N ; i++ ){
    string X;
    cin >> X ;

  // ここにプログラムを追記
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:2: error: expected '}' at end of input
   13 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  int N;
  int x = 0;
  string S;
  cin >> N ;
  for (i = 0; i < N; i++){
    cin >> S;
    if(S=="Y"){
      x = 1;
    }
  }
  if(x == 1){
    cout << "Four";
  }else{
    cout << "Three";
  }
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'i' was not declared in this scope
    9 |   for (i = 0; i < N; i++){
      |        ^
Language: C++


import "fmt"

func main() {
	var n int
	fmt.Scan(&n)
	var shurui []rune
	for i := 0; i < n; i++ {
		var char rune
		fmt.Scan(&char)
		for i,c := range shurui {
			if c == char{
				break
			}
			if i == len(shurui)-1{
				shurui = append(shurui, char)
			} 
		}
		if len(shurui) == 3{
			fmt.Println("Three")
		} else if len(shurui) == 4{
			fmt.Println("Four")
		}
	}
}


Compiler output:
a.cc:2:1: error: 'import' does not name a type
    2 | import "fmt"
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

package main

import "fmt"

func main() {
	var n int
	fmt.Scan(&n)
	var shurui []rune
	for i := 0; i < n; i++ {
		var char rune
		fmt.Scan(&char)
		for i,c := range shurui {
			if c == char{
				break
			}
			if i == len(shurui)-1{
				shurui = append(shurui, char)
			} 
		}
		if len(shurui) == 3{
			fmt.Println("Three")
		} else if len(shurui) == 4{
			fmt.Println("Four")
		}
	}
}


Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package main
      | ^~~~~~~
Language: C++

package main

import "fmt"

func main() {
	var n int
	fmt.Scan(&n)
	var shurui []rune
	for i := 0; i < n; i++ {
		var char rune
		fmt.Scan(&char)
		for i,c := range shurui {
			if c == char{
				break
			}
			if i == len(shurui)-1{
				shurui = append(shurui, char)
			} 
		}
		if len(shurui) == 3{
			fmt.Pintln("Three")
		} else if len(shurui) == 4{
			fmt.Println("Four")
		}
	}
}


Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package main
      | ^~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  int N;
  cin >> N;
  for(int i = 0; i < N; i++){
    int C;
    cin >> C;
    if (C != "Y"){
      if (i == N - 1){
        cout << "Three" << endl;
      }
      else{
        continue;
      }
    }
    else{
      cout << "Four" << endl;
      break;
    }
  }
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if (C != "Y"){
      |         ~~^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  cin >> N;

  for (int i=0; i< N; i++) {
    string S;
    cin >> S;

    int p = 0;
    int w = 0;
    int g = 0;
    int y = 0;
    if (S=="P" && p==0) {
      p += 1;
    } else if (S=="W" && w==0) {
      w += 1;
    } else if (S=="G" && g==0) {
      g += 1;
    } else if (S=="Y" && y==0) {
      y += 1;
    }
  }
  if (p+w+g+y==4){
    cout << "Four" << endl;
  } else if (p+w+g+y==3) {
    cout << "Three" << endl;
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:7: error: 'p' was not declared in this scope
   26 |   if (p+w+g+y==4){
      |       ^
a.cc:26:9: error: 'w' was not declared in this scope
   26 |   if (p+w+g+y==4){
      |         ^
a.cc:26:11: error: 'g' was not declared in this scope
   26 |   if (p+w+g+y==4){
      |           ^
a.cc:26:13: error: 'y' was not declared in this scope
   26 |   if (p+w+g+y==4){
      |             ^
Language: C++

#include <cstdio>
#include <cmath>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <algorithm>

#ifdef _DEBUG
#define DMP(x) cerr << #x << ": " << x << "\n"
#else
#define DMP(x) ((void)0)
#endif

const int MOD = 1000000007, INF = 1111111111; 
using namespace std;
using lint = long long;

int main() {

	cin.tie(nullptr);
	ios::sync_with_stdio(false);

	int N;
	cin >> N;

  int tmp;
  set<int> s;
	for(int i=0;i<N;i++){
      cin >> tmp;
      s.emplace(tmp);
    }
  
  if(s.size()==3) cout << "Three\n";
  else cout<<"Four\n";
      

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:3: error: 'set' was not declared in this scope
   30 |   set<int> s;
      |   ^~~
a.cc:10:1: note: 'std::set' is defined in header '<set>'; this is probably fixable by adding '#include <set>'
    9 | #include <algorithm>
  +++ |+#include <set>
   10 | 
a.cc:30:7: error: expected primary-expression before 'int'
   30 |   set<int> s;
      |       ^~~
a.cc:33:7: error: 's' was not declared in this scope
   33 |       s.emplace(tmp);
      |       ^
a.cc:36:6: error: 's' was not declared in this scope
   36 |   if(s.size()==3) cout << "Three\n";
      |      ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  string color;
  cin >> N;
  
  for( i=0; i<N; i++){
    cin >> color;
    
    if(color=="Y"){
      cout << "Four" << endl;
      break;
    }
  }
  cout << "Three" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'i' was not declared in this scope
    9 |   for( i=0; i<N; i++){
      |        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  
  int N,P,Y,W,G;
  P = 0;
  Y = 0;
  W = 0;
  G = 0;
  string color;
  
  for ( i=N ; i>=1 ; i--)
  {
    cin >> color;
    
    if (color == "P")
      P = 1;
    if (color == "Y")
      Y = 1;
    if (color == "W")
      W = 1;
    if (color == "G")
      G = 1;
    
    if (P+Y+W+G == 4)
      break;
  }
  cout << P+W+Y+G << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'i' was not declared in this scope
   13 |   for ( i=N ; i>=1 ; i--)
      |         ^
Language: C

/*
	submission # - User: herp_sy
	https://atcoder.jp/contests/
*/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <stdbool.h>

#define _CRT_SECURE_NO_WARNINGS
#define TLong long long
#define TBMod 1000000007

int main(int argc, char const *argv[])
{
	int n
	int cnt[256] = { 0 };
	int vcnt = 0;
  	char s;
  	
	scanf("%d",&n);
	for (int i = 0; i < n; ++i)
	{
		scanf(" %c",&s);
		++cnt[(int)s];
	}
	for (int i = 0x30; i <= 0xFF; ++i)
	{
		if(cnt[i] > 0)	++vcnt;
	}
	switch(vcnt){
	  case 3:
	    puts("Three");
	    break;
	   case 4:
	    puts("Four");
	    break;
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:18:14: error: expected ';' before 'int'
   18 |         int n
      |              ^
      |              ;
   19 |         int cnt[256] = { 0 };
      |         ~~~   
main.c:23:21: error: 'n' undeclared (first use in this function)
   23 |         scanf("%d",&n);
      |                     ^
main.c:23:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  int N;
  cin >> N;
  cout << N;
  int p,y,w,g;
  p=0;
  y=0;
  w=0;
  g=0;
  string co = "hoge";
  cout << co;
  
  cin >> co;
  for(int i = 0; i << N; i++)
  {
   cin >> co;
   if(co == P)
     p = 1;
   else if(co == Y)
     y = 1;
   else if(co == W)
     w = 1;
   else if(co == G)
     g = 1;
  }
  
  int judge;
  judge = p+y+w+g;
  if(judge == 3){
    cout << "three" << endl;
  }
  else if(judge == 4){
    cout << "four" << endl;
  }
    
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:13: error: 'P' was not declared in this scope
   20 |    if(co == P)
      |             ^
a.cc:22:18: error: 'Y' was not declared in this scope
   22 |    else if(co == Y)
      |                  ^
a.cc:24:18: error: 'W' was not declared in this scope
   24 |    else if(co == W)
      |                  ^
a.cc:26:18: error: 'G' was not declared in this scope
   26 |    else if(co == G)
      |                  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  int N;
  cin >> N;
  cout << N;
  int p,y,w,g;
  p=0;
  y=0;
  w=0;
  g=0;
  string co;
  for(int i = 0; i << N; i++)
  {
   cin >> co;
   if(co == P)
     p = 1;
   else if(co == Y)
     y = 1;
   else if(co == W)
     w = 1;
   else if(co == G)
     g = 1;
  }
  
  int judge;
  judge = p+y+w+g;
  if(judge == 3){
    cout << "three" << endl;
  }
  else if(judge == 4){
    cout << "four" << endl;
  }
    
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: 'P' was not declared in this scope
   17 |    if(co == P)
      |             ^
a.cc:19:18: error: 'Y' was not declared in this scope
   19 |    else if(co == Y)
      |                  ^
a.cc:21:18: error: 'W' was not declared in this scope
   21 |    else if(co == W)
      |                  ^
a.cc:23:18: error: 'G' was not declared in this scope
   23 |    else if(co == G)
      |                  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  int N;
  cin >> N;
  
  int p,y,w,g;
  p=0;
  y=0;
  w=0;
  g=0;
  string co;
  for(int i = 0; i << N; i++)
  {
   cin >> co;
   if(co == P)
     p = 1;
   else if(co == Y)
     y = 1;
   else if(co == W)
     w = 1;
   else if(co == G)
     g = 1;
  }
  
  int judge;
  judge = p+y+w+g;
  if(judge == 3){
    cout << "three" << endl;
  }
  else if(judge == 4){
    cout << "four" << endl;
  }
    
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: 'P' was not declared in this scope
   17 |    if(co == P)
      |             ^
a.cc:19:18: error: 'Y' was not declared in this scope
   19 |    else if(co == Y)
      |                  ^
a.cc:21:18: error: 'W' was not declared in this scope
   21 |    else if(co == W)
      |                  ^
a.cc:23:18: error: 'G' was not declared in this scope
   23 |    else if(co == G)
      |                  ^
Language: C++

#include <bits/stdc++.h>
using namescope std;
int main() {
  int num;
  bool flag = 0;
  char color;
  for(int i = 0; i<num; i++){
    cin >> color;
    if(color == 'Y'){
      bool flag=1;
    }
  }
  if(flag == True){
    cout >> "four" >> endl;
  else cout >> "Three" >> endl;
  }
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namescope'
    2 | using namescope std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |     cin >> color;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:13:14: error: 'True' was not declared in this scope
   13 |   if(flag == True){
      |              ^~~~
a.cc:14:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |     cout >> "four" >> 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:14:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |     cout >> "four" >> endl;
      |                       ^~~~
      |                       std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:15:3: error: expected '}' before 'else'
   15 |   else cout >> "Three" >> endl;
      |   ^~~~
a.cc:13:19: note: to match this '{'
   13 |   if(flag == True){
      |                   ^
a.cc:15:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |   else cout >> "Three" >> 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:15:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |   else cout >> "Three" >> endl;
      |                           ^~~~
      |                           std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc: At global scope:
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

#include <bits/stdc++.h>

int main() {
  int num;
  bool flag = 0;
  char color;
  for(int i = 0; i<num; i++){
    cin >> color;
    if(color == 'Y'){
      bool flag=1;
    }
  }
  if(flag == True){
    cout >> "four" >> endl;
  else cout >> "Three" >> endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |     cin >> color;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:13:14: error: 'True' was not declared in this scope
   13 |   if(flag == True){
      |              ^~~~
a.cc:14:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |     cout >> "four" >> 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:14:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |     cout >> "four" >> endl;
      |                       ^~~~
      |                       std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:15:3: error: expected '}' before 'else'
   15 |   else cout >> "Three" >> endl;
      |   ^~~~
a.cc:13:19: note: to match this '{'
   13 |   if(flag == True){
      |                   ^
a.cc:15:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |   else cout >> "Three" >> 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:15:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |   else cout >> "Three" >> endl;
      |                           ^~~~
      |                           std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc: At global scope:
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N,count=0,NUM;
  vector<char> S(N);
  cin >> N;
  for(int i=0;i<N;i++){
    cin >> S[i];
  }
  for(int i=0;i<N;i++){
    for(int j=1;j<N;j<++){
      if(S[i]==S[i+j]) count++;
    }
  }
  if(count==3)
  cout << "Three";
  if(count==4)
  cout << "Four";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: expected primary-expression before ')' token
   12 |     for(int j=1;j<N;j<++){
      |                         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N,count=0,NUM;
  vector<char> S;
  cin >> N;
  for(int i=0;i++;i<N){
    cin >> S[i];
  }
  for(i=0;i++;i<N){
    for(j=1;j++;j<N){
      if(S[i]==S[i+j]) count++;
    }
  }
  if(count==3)
  cout << Three;
  if(count==4)
  cout << Four;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: 'i' was not declared in this scope
   11 |   for(i=0;i++;i<N){
      |       ^
a.cc:12:9: error: 'j' was not declared in this scope
   12 |     for(j=1;j++;j<N){
      |         ^
a.cc:17:11: error: 'Three' was not declared in this scope
   17 |   cout << Three;
      |           ^~~~~
a.cc:19:11: error: 'Four' was not declared in this scope
   19 |   cout << Four;
      |           ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  for (int i = 0; i < N; i++) {
    
    string S;
    cin >> S;
    string A;
  
    if (S == "Y"){
      A == "Four";
    cout << "A" << endl;
    }
  }
     if (!(A == "Four")) {
    cout << "Three" << endl;
    }
  
}
    
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: warning: ignoring return value of 'bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
   13 |       A == "Four";
      |       ~~^~~~~~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3772:5: note: declared here
 3772 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
a.cc:17:12: error: 'A' was not declared in this scope
   17 |      if (!(A == "Four")) {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  for (int i = 0; i < N; i++) {
    
    string S;
    cin >> S;
  
    if (S == "Y"){
    cout << "Four" << endl;
    }
  }
    else {
    cout << "Three" << endl;
    }
  
}
    
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: 'else' without a previous 'if'
   15 |     else {
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  for (int i = 0; i < N; i++)
    string S;
  cin >> S;
  
  if (S == "Y"){
    cout << "Four" << endl;
  }
  else {
    cout << "Three" << endl;
  }
}
    
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'S' was not declared in this scope
    8 |   cin >> S;
      |          ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
  int N;
  string s;
  int Y = 0;
  
  for (int i=0; i < N; i++) {
    cin >> s;
    if (s == "Y") {
      Y = 1;
      break;
    }
  }
  
  if (Y) {
    cout << "Three" << endl;
  } else {
    cour << "Four" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:5: error: 'cour' was not declared in this scope
   21 |     cour << "Four" << endl;
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, t=0;
  string col;
  for(int i=0;i<N;i++){
    cin >> col;
    if(col =="Y"){
      t++;
    }
    if(i+1==N && t==1){
      cout << "Three" << endl;
    } else if{i+1==N && t==0){
      cout << "Four" << endl;
    }
             }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: expected '(' before '{' token
   13 |     } else if{i+1==N && t==0){
      |              ^
      |              (
Language: C++

#include <bits/c++.h>
using namespace std;
int main(){
  int N, i, g=0, p=0, y=0, w=0,total;
  string col;
  for(i=0;i<N;i++){
    cin >> col;
    if(col=="G" && g==0){
      g++;
    } else if(col=="P" && p==0){
      p++;
    } else if(col=="Y" && y==0){
      y++;
    } else if(col=="W" && w==0){
      w++;
    }
    if(i+1 == N){
      total=g+p+w+y;
      if(total==3){
        cout << "Three" << endl;
      } else{
        cout << "Four" << endl;
      }
    }
  }
}
      

Compiler output:
a.cc:1:10: fatal error: bits/c++.h: No such file or directory
    1 | #include <bits/c++.h>
      |          ^~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{int N;
 cin >> N;
 for(int M = 0; M < N; M++){
   string S;
   cin >> S;  
}
 if(S != Y)
   cout <<"Three" << endl;
 else 
   cout <<"Four" << endl;
 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'S' was not declared in this scope
   10 |  if(S != Y)
      |     ^
a.cc:10:10: error: 'Y' was not declared in this scope
   10 |  if(S != Y)
      |          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N,p,w,g,y;
  string Num;
  cin >> N;
  
  for(int i =0; i<N; i++){
    string B;
    cin >> B;
    if(B=="P"){
      p=1;
    }
    else if(B=="W"){
      w=1;
    }
    else if(B=="G"){
      g=1;
    }
    else if(B=="Y"){
      y=1;
    }
    else{
      cout << "error" <<endl;
      break;
    }
  }
  if(p+w+g+y ==3){
    Num ="Three"
  }
  else{
    Num ="Four";
  }
  cout << Num << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:17: error: expected ';' before '}' token
   30 |     Num ="Three"
      |                 ^
      |                 ;
   31 |   }
      |   ~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N,p,w,g,y;
  string Num;
  cin >> N;
  
  for(int i =0; i<N; i++){
    string B;
    cin >> B;
    if(B=="P"){
      p=1;
    }
    else if(B=="W"){
      w=1;
    }
    else if(B=="G"){
      g=1;
    }
    else if(B=="Y"){
      y=1;
    }
    else{
      cout << "error" <<endl;
      break;
    }
  }
  if(p+w+g+y ==3){
    Num ="three";
  }
  else{
    Num ="Four"
  }
  cout << Num << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:16: error: expected ';' before '}' token
   33 |     Num ="Four"
      |                ^
      |                ;
   34 |   }
      |   ~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
 int N;
  cin>>N;
  string s;
  for(int i=0;i<N;i++){
    static string t;
    cin>>s;
    t=s;
     
  }
   if(t!="Y"){
    cout<<"three"<<endl;
 	 }
  else{
    cout<<"four"<<endl;
  	}

}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:14:7: error: 't' was not declared in this scope
   14 |    if(t!="Y"){
      |       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
 int N;
  cin>>N;
  string s;
  for(int i=0;i<N;i++){
    static string t;
    cin>>s,t;
     
  }
   if(t!="Y"){
    cout<<"three"<<endl;
 	 },
  else{
    cout<<"four"<<endl;
  	}

}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:13:7: error: 't' was not declared in this scope
   13 |    if(t!="Y"){
      |       ^
a.cc:15:11: error: expected primary-expression before ',' token
   15 |          },
      |           ^
a.cc:16:3: error: expected primary-expression before 'else'
   16 |   else{
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
 int N;
  cin>>N;
  string s;
  for(i=0;i<N;i++){
    cin>>s;
  }
  if(s!="Y"){
    cout<<"three"<<endl;
  }
  else{
    cout<<"four"<<endl;
  }
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'i' was not declared in this scope
    8 |   for(i=0;i<N;i++){
      |       ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define pb push_back
#define fio ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);

typedef long long ll;
typedef pair <ll, ll> pi;

string ans = "Three";
char c;
ll n;

int main() {
    cin >> n;
    for (int i = 0; i < n; i++) {
        cin >> c;
        if (c == 'Y')
            ans = "Four";
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:2: error: expected '}' at end of input
   23 | }
      |  ^
a.cc:15:12: note: to match this '{'
   15 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  cin >> N;

  for (int i = 0; i < N; i++) {
    int S;
    cin >> S;
    if ( S == "Y" ) {
      break;
      cout << "Four" <<endl;
    }
  cout << "Three" << endl;
  }
}
    
    

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if ( S == "Y" ) {
      |          ~~^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  cin >> N;

  for (int i = 0; i < N; i++) {
    int S;
    cin >> S;
    if ( S == "y" ) {
      break;
      cout << "Four" <<endl;
    }
  cout << "Three" << endl;
  }
}
    
    

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if ( S == "y" ) {
      |          ~~^~~~~~
Language: C++

#include <iostream>
#include <map>

using namespace std;

int main(){
  int N;
  cin >> N;
  map<char, int> m;
  vector<char> S(N);
  for(int i = 0; i < N; i++){
    cin >> S[i];
  }
  for(int i = 0; i < N; i++){
    m[S[i]]++;
  }
  if(m['Y'] > 0) cout << "Four";
  else cout << "Three";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'vector' was not declared in this scope
   10 |   vector<char> S(N);
      |   ^~~~~~
a.cc:3:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    2 | #include <map>
  +++ |+#include <vector>
    3 | 
a.cc:10:10: error: expected primary-expression before 'char'
   10 |   vector<char> S(N);
      |          ^~~~
a.cc:12:12: error: 'S' was not declared in this scope
   12 |     cin >> S[i];
      |            ^
a.cc:15:7: error: 'S' was not declared in this scope
   15 |     m[S[i]]++;
      |       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  string a;
  cin >> N;
  int p,w,g,y = 0;
  if((N>=1)&&(N<=100)){
    for(int i = 0;i<N;i++){
      cin >> a;
      if((a == "P")||(a == "W")||(a == "G")||(a == "Y")){
        if(a == "P")
          p++;
        if(a == "W")
          w++;
        if(a == "G")
          g++;
        if(a == "Y")
          y++;
      }
      else{
        cout << "error" << endl;
      }
      
    if((p==0)||(w==0)||(g==0)){
        cout << "error" << endl;
    }
    else if(y>0){
      cout << "Four" << endl;
    }
    else{
      cout << "Three" << endl;
    }
  else{
    cout << "error" << endl;
  }
}   

Compiler output:
a.cc: In function 'int main()':
a.cc:35:3: error: 'else' without a previous 'if'
   35 |   else{
      |   ^~~~
a.cc:38:2: error: expected '}' at end of input
   38 | }
      |  ^
a.cc:9:23: note: to match this '{'
    9 |   if((N>=1)&&(N<=100)){
      |                       ^
a.cc:38:2: error: expected '}' at end of input
   38 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^