criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.util.Scanner;

public class HinaArare{
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	String output = "Tree";

    // 個数の入力
	int num = sc.nextInt();

	String[] color = new String[num];
	// 色の入力
	for(int i = 0; i < num;i++ ) {
		color[i] = sc.next();
	}

	sc.close();

	for(int i = 0;i<num;i++) {
		if(color[i].equals("Y")) {
			output = "Four";
			break;
		}
	}

	System.out.println(output);
}
}

Compiler output:
Main.java:3: error: class HinaArare is public, should be declared in a file named HinaArare.java
public class HinaArare{
       ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
void main(){
  int N;
  cin >> N;
  bool num = false;
  //char Sarray[N];
  char S;
  for(int j=0; j<N; j++){
    //cin >> Sarray[j];
    cin >> S;
    if(S == 'Y')
      num = true;
  }
  /*int i=0;
  while(Sarray[i] != 'Y')*/
  if(num)
    cout << "Four" << endl;
  else
    cout << "Three" << endl;
}
    
  


Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main(){
      | ^~~~
Language: C++

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

int main(){
    int N,tf;
    cin >> N;
    char k;
    tf = 0;
    for (int i=0;i<N;i++){
        cin >> k;
        if(k == "Y"){
            tf = 1;
        }
    }
    if(tf == 1){
        cout << "four" << endl;
    }
    else{
        cout << "three" << endl;
    }
    return 0;
}

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

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

int main(){
    int N;
    bool tf = false;
    cin >> N;
    char k;
    for (int i=0;i<N;i++){
        cin >> k;
        if(k == "Y"){
            tf = true;
        }
    }
    if(tf){
        cout << "four" << endl;
    }
    else{
        cout << "three" << endl;
    }
    return 0;
}

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

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

int main(){
  
  int N;
  cin >> N;
  int i =0;
  while(i<N){
    bool j =true;
    int s;
    cin >> s;
    if (s == "Y"){
      
      break;
    }
    i++;
    bool j = false;
  }
  if(j==true){
  cout << "Four" <<endl;}
  else{
    cout << "Three" << endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |     if (s == "Y"){
      |         ~~^~~~~~
a.cc:18:10: error: redeclaration of 'bool j'
   18 |     bool j = false;
      |          ^
a.cc:10:10: note: 'bool j' previously declared here
   10 |     bool j =true;
      |          ^
a.cc:20:6: error: 'j' was not declared in this scope
   20 |   if(j==true){
      |      ^
Language: C++

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

int main(){
  int N;
  cin >> N;
  int i =0;
  while(i<N){
    int s;
    cin >> s;
    if (s == "Y"){
      bool j =true;
      break;
    }
    i++;
  }
  if(j==true){
  cout << "Four" <<endl;}
  else{
    cout << "Three" << endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if (s == "Y"){
      |         ~~^~~~~~
a.cc:17:6: error: 'j' was not declared in this scope
   17 |   if(j==true){
      |      ^
Language: C++

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

int main(){
  int N;
  cin >> N;
  int i =0;
  while(i<N){
    int s;
    cin >> s;
    if (s == "Y"){
      bool j =True;
      break;
    }
    i++;
  }
  if(j==True){
  cout << Four <<endl;}
  else{
    cout << Tree << endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if (s == "Y"){
      |         ~~^~~~~~
a.cc:12:15: error: 'True' was not declared in this scope
   12 |       bool j =True;
      |               ^~~~
a.cc:17:6: error: 'j' was not declared in this scope
   17 |   if(j==True){
      |      ^
a.cc:17:9: error: 'True' was not declared in this scope
   17 |   if(j==True){
      |         ^~~~
a.cc:18:11: error: 'Four' was not declared in this scope
   18 |   cout << Four <<endl;}
      |           ^~~~
a.cc:20:13: error: 'Tree' was not declared in this scope; did you mean 'free'?
   20 |     cout << Tree << endl;}
      |             ^~~~
      |             free
Language: C++

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

int main(){
  int N;
  cin >> N;
  int i =0;
  while(i<N){
    int s;
    cin >> s;
    if (s == Y){
      bool j =True;
      break;
    }
    i++;
  }
  if(j==True){
  cout << Four;}
  else{
    cout << Tree;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: 'Y' was not declared in this scope
   11 |     if (s == Y){
      |              ^
a.cc:12:15: error: 'True' was not declared in this scope
   12 |       bool j =True;
      |               ^~~~
a.cc:17:6: error: 'j' was not declared in this scope
   17 |   if(j==True){
      |      ^
a.cc:17:9: error: 'True' was not declared in this scope
   17 |   if(j==True){
      |         ^~~~
a.cc:18:11: error: 'Four' was not declared in this scope
   18 |   cout << Four;}
      |           ^~~~
a.cc:20:13: error: 'Tree' was not declared in this scope; did you mean 'free'?
   20 |     cout << Tree;}
      |             ^~~~
      |             free
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:28: error: expected ')' before ';' token
    7 |   for(int i = 0; i < n; i++;){
      |      ~                     ^
      |                            )
a.cc:7:29: error: expected primary-expression before ')' token
    7 |   for(int i = 0; i < n; i++;){
      |                             ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> N;
      |   ^~~
a.cc:5:5: error: 'string' was not declared in this scope
    5 |     string S;
      |     ^~~~~~
a.cc:6:12: error: 'S' was not declared in this scope
    6 |     cin >> S;
      |            ^
a.cc:8:7: error: 'cout' was not declared in this scope
    8 |       cout << "four" << endl;
      |       ^~~~
a.cc:8:25: error: 'endl' was not declared in this scope
    8 |       cout << "four" << endl;
      |                         ^~~~
a.cc:12:7: error: 'cout' was not declared in this scope
   12 |       cout << "three" << endl;
      |       ^~~~
a.cc:12:26: error: 'endl' was not declared in this scope
   12 |       cout << "three" << endl;
      |                          ^~~~
Language: C++

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

int main() {
  int N;

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"Y"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   10 |     if(S = "Y"){
      |        ~~^~~~~
      |          |
      |          std::__cxx11::basic_string<char>
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <iostream>
using namespace std;

int N;
char c;


int main(){
  cin >> N;
  bool flag = false;
  for(int i=0; i<N;i++){
    cin >> c;
    if(c=="Y")
      flag=True;
  }
  if(flag)
    cout << "Four" << endl;
  else
    cout << "Three" << endl;
    
}





Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |     if(c=="Y")
      |        ~^~~~~
a.cc:14:12: error: 'True' was not declared in this scope
   14 |       flag=True;
      |            ^~~~
Language: C++

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

int main () {
  int N;
  string P,W,G,Y;
  
  cin >> N >> P >> W >> G >> Y;
  
  for (int i = 0; i < N;) {
    string op = P,W,G,Y;
    
    if (string op = P,W,G) {
      i++;
    }
    
    else if (string op = Y) {
      cout << "Four" << endl;
      break;
    }
    
    cout << "Three" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:22: error: expected ')' before ',' token
   13 |     if (string op = P,W,G) {
      |        ~             ^
      |                      )
a.cc:13:26: error: could not convert 'op' from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
   13 |     if (string op = P,W,G) {
      |                          ^
      |                          |
      |                          std::string {aka std::__cxx11::basic_string<char>}
a.cc:17:27: error: could not convert 'op' from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
   17 |     else if (string op = Y) {
      |                           ^
      |                           |
      |                           std::string {aka std::__cxx11::basic_string<char>}
Language: C++

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

int main () {
  int N;
  string P,W,G,Y;
  
  cin >> N >> P >> W >> G >> Y;
  
  for (int i = 0; i < N;) {
    string op = P,W,G,Y;
    
    if (string P,W,G) {
      i++;
    }
    
    else if (string Y) {
      cout << "Four" << endl;
      break;
    }
    
    cout << "Three" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: expected initializer before ',' token
   13 |     if (string P,W,G) {
      |                 ^
a.cc:13:17: error: expected ')' before ',' token
   13 |     if (string P,W,G) {
      |        ~        ^
      |                 )
a.cc:13:21: error: could not convert 'P' from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
   13 |     if (string P,W,G) {
      |                     ^
      |                     |
      |                     std::string {aka std::__cxx11::basic_string<char>}
a.cc:17:22: error: expected initializer before ')' token
   17 |     else if (string Y) {
      |                      ^
a.cc:17:22: error: could not convert 'Y' from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
   17 |     else if (string Y) {
      |                      ^
      |                      |
      |                      std::string {aka std::__cxx11::basic_string<char>}
Language: C++

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

int main () {
  int N;
  string op;
  
  cin >> N >> op;
  
  for (int i = 0; i < N;) {
    string op = P,W,G,Y;
    
    if (string op = P,W,G) {
      i++;
    }
    
    else if (string op = Y) {
      cout << "Four" << endl;
      break;
    }
    
    cout << "Three" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: 'P' was not declared in this scope
   11 |     string op = P,W,G,Y;
      |                 ^
a.cc:13:22: error: expected ')' before ',' token
   13 |     if (string op = P,W,G) {
      |        ~             ^
      |                      )
a.cc:13:26: error: could not convert 'op' from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
   13 |     if (string op = P,W,G) {
      |                          ^
      |                          |
      |                          std::string {aka std::__cxx11::basic_string<char>}
a.cc:17:26: error: 'Y' was not declared in this scope
   17 |     else if (string op = Y) {
      |                          ^
a.cc:17:27: error: could not convert 'op' from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
   17 |     else if (string op = Y) {
      |                           ^
      |                           |
      |                           std::string {aka std::__cxx11::basic_string<char>}
Language: C++

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

int main () {
  int N;
  
  for (int i = 0; i < N;) {
    string op = P,W,G,Y;
    
    if (string op = P,W,G) {
      i++;
    }
    
    else if (string op = Y) {
      cout << "Four" << endl;
      break;
    }
    
    cout << "Three" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 'P' was not declared in this scope
    8 |     string op = P,W,G,Y;
      |                 ^
a.cc:10:22: error: expected ')' before ',' token
   10 |     if (string op = P,W,G) {
      |        ~             ^
      |                      )
a.cc:10:26: error: could not convert 'op' from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
   10 |     if (string op = P,W,G) {
      |                          ^
      |                          |
      |                          std::string {aka std::__cxx11::basic_string<char>}
a.cc:14:26: error: 'Y' was not declared in this scope
   14 |     else if (string op = Y) {
      |                          ^
a.cc:14:27: error: could not convert 'op' from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
   14 |     else if (string op = Y) {
      |                           ^
      |                           |
      |                           std::string {aka std::__cxx11::basic_string<char>}
Language: C++

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

int main () {
  int N;
  
  for (int i = 0; i < N;) {
    string op = P,W,G,Y;
    
    if (op = P,W,G) {
      i++;
    }
    
    else if (op = Y) {
      cout << "Four" << endl;
      break;
    }
    
    cout << "Three" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 'P' was not declared in this scope
    8 |     string op = P,W,G,Y;
      |                 ^
a.cc:10:16: error: 'W' was not declared in this scope
   10 |     if (op = P,W,G) {
      |                ^
a.cc:10:18: error: 'G' was not declared in this scope
   10 |     if (op = P,W,G) {
      |                  ^
a.cc:14:19: error: 'Y' was not declared in this scope
   14 |     else if (op = Y) {
      |                   ^
Language: C++

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

int main () {
  int N;
  string op;
  
  for (int i = 0; i < N;) {
    string P,W,G,Y;
    
    if (op = P,W,G) {
      i++;
    }
    
    else if (op = Y) {
      cout << "Four" << endl;
      break;
    }
    
    cout << "Three" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: could not convert '((((void)op.std::__cxx11::basic_string<char>::operator=(P)), (void)0), G)' from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
   11 |     if (op = P,W,G) {
      |         ~~~~~~~~^~
      |                 |
      |                 std::string {aka std::__cxx11::basic_string<char>}
a.cc:15:17: error: could not convert 'op.std::__cxx11::basic_string<char>::operator=(Y)' from 'std::__cxx11::basic_string<char>' to 'bool'
   15 |     else if (op = Y) {
      |              ~~~^~~
      |                 |
      |                 std::__cxx11::basic_string<char>
Language: C++

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

int main () {
  int N;
  string op;
  
  for (int i = 0; i < N;) {
    string P,W,G,Y
    
    if (op = P,W,G) {
      i++;
    }
    
    else if (op = Y) {
      cout << "Four" << endl;
      break;
    }
    
    cout << "Three" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected initializer before 'if'
   11 |     if (op = P,W,G) {
      |     ^~
a.cc:15:5: error: 'else' without a previous 'if'
   15 |     else if (op = Y) {
      |     ^~~~
a.cc:15:19: error: 'Y' was not declared in this scope
   15 |     else if (op = Y) {
      |                   ^
Language: C++

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

int main () {
  int N;
  string op;
  
  for (int i = 0; i < N;) {
    
    if (op = P,W,G) {
      i++;
    }
    
    else if (op = Y) {
      cout << "Four" << endl;
      break;
    }
    
    cout << "Three" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: 'P' was not declared in this scope
   10 |     if (op = P,W,G) {
      |              ^
a.cc:10:16: error: 'W' was not declared in this scope
   10 |     if (op = P,W,G) {
      |                ^
a.cc:10:18: error: 'G' was not declared in this scope
   10 |     if (op = P,W,G) {
      |                  ^
a.cc:14:19: error: 'Y' was not declared in this scope
   14 |     else if (op = Y) {
      |                   ^
Language: C++

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

int main () {
  int N;
  string op;
  
  for (int i = 0; i < N;) {
    
    if (op == P,W,G) {
      i++;
    }
    
    else if (op == Y) {
      cout << "Four" << endl;
      break;
    }
    
    cout << "Three" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: 'P' was not declared in this scope
   10 |     if (op == P,W,G) {
      |               ^
a.cc:10:17: error: 'W' was not declared in this scope
   10 |     if (op == P,W,G) {
      |                 ^
a.cc:10:19: error: 'G' was not declared in this scope
   10 |     if (op == P,W,G) {
      |                   ^
a.cc:14:20: error: 'Y' was not declared in this scope
   14 |     else if (op == Y) {
      |                    ^
Language: C++

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

int main () {
  int N;
  string op = P,W,G,Y;
  
  for (int i = 0; i < N;) {
    
    if (op == P,W,G) {
      i++;
    }
    
    else if (op == Y) {
      cout << "Four" << endl;
      break;
    }
    
    cout << "Three" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: 'P' was not declared in this scope
    6 |   string op = P,W,G,Y;
      |               ^
a.cc:10:17: error: 'W' was not declared in this scope
   10 |     if (op == P,W,G) {
      |                 ^
a.cc:10:19: error: 'G' was not declared in this scope
   10 |     if (op == P,W,G) {
      |                   ^
a.cc:14:20: error: 'Y' was not declared in this scope
   14 |     else if (op == Y) {
      |                    ^
Language: C++

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

int main () {
  int N;
  string　op = P,W,G,Y;
  
  for (int i = 0; i < N;) {
    
    if (op == P,W,G) {
      i++;
    }
    
    else if (op == Y) {
      cout << "Four" << endl;
      break;
    }
    
    cout << "Three" << endl;
  }
}

Compiler output:
a.cc:6:3: error: extended character 　 is not valid in an identifier
    6 |   string　op = P,W,G,Y;
      |   ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'string\U00003000op' was not declared in this scope
    6 |   string　op = P,W,G,Y;
      |   ^~~~~~~~~~
a.cc:6:16: error: 'P' was not declared in this scope
    6 |   string　op = P,W,G,Y;
      |                ^
a.cc:6:18: error: 'W' was not declared in this scope
    6 |   string　op = P,W,G,Y;
      |                  ^
a.cc:6:20: error: 'G' was not declared in this scope
    6 |   string　op = P,W,G,Y;
      |                    ^
a.cc:6:22: error: 'Y' was not declared in this scope
    6 |   string　op = P,W,G,Y;
      |                      ^
a.cc:10:9: error: 'op' was not declared in this scope
   10 |     if (op == P,W,G) {
      |         ^~
Language: C++

#include <iostream>
#include <vector>

int main(){
  int N = 0;
  int pflag = 0;
  int wflag = 0;
  int gflag = 0;
  int yflag = 0;
  int colornum = 0;
  std::vector<char> color(N, '\0'); 
  
  for(int i=0; i<N; i++){
    std::cin >> color.at(i);      
  }
  for(int i=0; i<N; i++){
    switch(color.at(i)){
      case 'P':
        if(pflag == 0){
    	  pflag = 1;
    	}
        break;
      case 'W':
        if(wflag == 0){
    	  wflag = 1;
    	}
        break;
      case 'G':
        if(gflag == 0){
    	  gflag = 1;
    	}
        break;
      case 'Y':
        if(yflag == 0){
    	  yflag = 1;
    	}
        break;
    }
  }
  
  switch(colornum){
      case3:
      	std::cout << "Three\n";
      	break;
      case4:
      	ste::cout << "Four\n";
      	break;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:46:9: error: 'ste' has not been declared
   46 |         ste::cout << "Four\n";
      |         ^~~
Language: C++

#include <iostream>
#include <vector>

int main(){
  int N = 0;
  int pflag = 0;
  int wflag = 0;
  int gflag = 0;
  int yflag = 0;
  int colornum = 0;
  ste::vector<char> color(N, '\0'); 
  
  for(int i=0; i<N; i++){
    std::cin >> color.at(i);      
  }
  for(int i=0; i<N; i++){
    switch(color.at(i)){
      case 'P':
        if(pflag == 0){
    	  pflag = 1;
    	}
        break;
      case 'W':
        if(wflag == 0){
    	  wflag = 1;
    	}
        break;
      case 'G':
        if(gflag == 0){
    	  gflag = 1;
    	}
        break;
      case 'Y':
        if(yflag == 0){
    	  yflag = 1;
    	}
        break;
    }
  }
  
  switch(colornum){
      case3:
      	std::cout << "Three\n";
      	break;
      case4:
      	ste::cout << "Four\n";
      	break;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'ste' has not been declared
   11 |   ste::vector<char> color(N, '\0');
      |   ^~~
a.cc:11:15: error: expected primary-expression before 'char'
   11 |   ste::vector<char> color(N, '\0');
      |               ^~~~
a.cc:14:17: error: 'color' was not declared in this scope; did you mean 'colornum'?
   14 |     std::cin >> color.at(i);
      |                 ^~~~~
      |                 colornum
a.cc:17:12: error: 'color' was not declared in this scope; did you mean 'colornum'?
   17 |     switch(color.at(i)){
      |            ^~~~~
      |            colornum
a.cc:46:9: error: 'ste' has not been declared
   46 |         ste::cout << "Four\n";
      |         ^~~
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 == "P" || S == "W" || S == "G" && i < N - 1){
     continue;
   }
   else if (S != "Y" && i == N)
   else if (S == "Y"){
     cout << "Four" << endl;
     break;
   }    
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:4: error: expected primary-expression before 'else'
   18 |    else if (S == "Y"){
      |    ^~~~
Language: C++

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

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

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

#include <iostream>

int main(){
  int N = 0;
  int pflag = 0;
  int wflag = 0;
  int gflag = 0;
  int yflag = 0;
  int colornum = 0;
  vector<char> color(N, '\0'); 
  
  for(int i=0; i<N; i++){
    cin >> color.at(i);      
  }
  for(int i=0; i<N; i++){
    switch(color.at(i)){
      case 'P':
        if(pflag == 0){
    	  pflag = 1;
    	}
        break;
      case 'W':
        if(wflag == 0){
    	  wflag = 1;
    	}
        break;
      case 'G':
        if(gflag == 0){
    	  gflag = 1;
    	}
        break;
      case 'Y':
        if(yflag == 0){
    	  yflag = 1;
    	}
        break;
    }
  }
  
  switch(colornum){
      case3:
      	cout << "Three\n";
      	break;
      case4:
      	cout << "Four\n";
      	break;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'vector' was not declared in this scope
   10 |   vector<char> color(N, '\0');
      |   ^~~~~~
a.cc:10:10: error: expected primary-expression before 'char'
   10 |   vector<char> color(N, '\0');
      |          ^~~~
a.cc:13:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   13 |     cin >> color.at(i);
      |     ^~~
      |     std::cin
In file included 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:12: error: 'color' was not declared in this scope; did you mean 'colornum'?
   13 |     cin >> color.at(i);
      |            ^~~~~
      |            colornum
a.cc:16:12: error: 'color' was not declared in this scope; did you mean 'colornum'?
   16 |     switch(color.at(i)){
      |            ^~~~~
      |            colornum
a.cc:42:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   42 |         cout << "Three\n";
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>

int main(){
  int N = 0;
  int pflag = 0;
  int wflag = 0;
  int gflag = 0;
  int yflag = 0;
  int colornum = 0;
  vector<char> color(N, '\0'); 
  
  for(int i=0; i<N; i++){
    cin >> color.at(i);      
  }
  for(int i=0; i<N; i++){
    switch(color.at(i)){
      case 'P':
        if(pfalg == 0){
    	  pflag = 1;
    	}
        break;
      case 'G':
        if(gfalg == 0){
    	  gflag = 1;
    	}
        break;
      case 'Y':
        if(yfalg == 0){
    	  yflag = 1;
    	}
        break;
    }
  }
  
  switch(colornum){
      case3:
      	cout << "Three\n";
      	break;
      case4:
      	cout << "Four\n";
      	break;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'vector' was not declared in this scope
   10 |   vector<char> color(N, '\0');
      |   ^~~~~~
a.cc:10:10: error: expected primary-expression before 'char'
   10 |   vector<char> color(N, '\0');
      |          ^~~~
a.cc:13:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   13 |     cin >> color.at(i);
      |     ^~~
      |     std::cin
In file included 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:12: error: 'color' was not declared in this scope; did you mean 'colornum'?
   13 |     cin >> color.at(i);
      |            ^~~~~
      |            colornum
a.cc:16:12: error: 'color' was not declared in this scope; did you mean 'colornum'?
   16 |     switch(color.at(i)){
      |            ^~~~~
      |            colornum
a.cc:18:12: error: 'pfalg' was not declared in this scope; did you mean 'pflag'?
   18 |         if(pfalg == 0){
      |            ^~~~~
      |            pflag
a.cc:23:12: error: 'gfalg' was not declared in this scope; did you mean 'gflag'?
   23 |         if(gfalg == 0){
      |            ^~~~~
      |            gflag
a.cc:28:12: error: 'yfalg' was not declared in this scope; did you mean 'yflag'?
   28 |         if(yfalg == 0){
      |            ^~~~~
      |            yflag
a.cc:37:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   37 |         cout << "Three\n";
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream.h>

int main(){
  int N = 0;
  int pflag = 0;
  int wflag = 0;
  int gflag = 0;
  int yflag = 0;
  int colornum = 0;
  vector<char> color(N, '\0'); 
  
  for(int i=0; i<N; i++){
    cin >> color.at(i);      
  }
  for(int i=0; i<N; i++){
    switch(color.at(i)){
      case 'P':
        if(pfalg == 0){
    	  pflag = 1;
    	}
        break;
      case 'G':
        if(gfalg == 0){
    	  gflag = 1;
    	}
        break;
      case 'Y':
        if(yfalg == 0){
    	  yflag = 1;
    	}
        break;
    }
  }
  
  switch(colornum){
      case3:
      	cout << "Three\n";
      	break;
      case4:
      	cout << "Four\n";
      	break;
  }
  return 0;
}

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

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

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

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

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

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

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

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

int main() {
  int N, A = 0;
  string C;
  cin >> N;
  
  for (i=0; i < N; i++) {
    cin >> C;
    if (C == y) {
      A = 1;
      break;
    }
  }
  if (A == 0)
    cout << "Three";
  else
    cout << "Four";
}

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++) {
      |        ^
a.cc:11:14: error: 'y' was not declared in this scope
   11 |     if (C == y) {
      |              ^
Language: C++

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

int main () {
  int N;
  string A;
  cin >> N >> A;
  
  
  for (int i = 0; i < N) {
    if ( A == P,W,G) {
      i++;
    }
    
    else if ( A == Y) {
      cout << "Four" << endl;
      
      break;
    }
  }
  cout << "Three" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: expected ';' before ')' token
   10 |   for (int i = 0; i < N) {
      |                        ^
      |                        ;
a.cc:11:15: error: 'P' was not declared in this scope
   11 |     if ( A == P,W,G) {
      |               ^
a.cc:11:17: error: 'W' was not declared in this scope
   11 |     if ( A == P,W,G) {
      |                 ^
a.cc:11:19: error: 'G' was not declared in this scope
   11 |     if ( A == P,W,G) {
      |                   ^
a.cc:15:20: error: 'Y' was not declared in this scope
   15 |     else if ( A == Y) {
      |                    ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:8: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
   13 |       S++;
      |       ~^~
a.cc:18:7: error: 'S' was not declared in this scope
   18 |   if (S == 0)
      |       ^
Language: C++

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

int main() {
  int = N, S
    cin >> N

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

   if
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: expected unqualified-id before '=' token
    5 |   int = N, S
      |       ^
a.cc:8:21: error: 'i' was not declared in this scope
    8 |     for (int i = 0; i < N; i++) {
      |                     ^
a.cc:8:25: error: 'N' was not declared in this scope
    8 |     for (int i = 0; i < N; i++) {
      |                         ^
a.cc:13:1: error: expected '(' before '}' token
   13 | }
      | ^
      | (
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin>>n;
  char a;
  set<char> st;
  for(int i=0;i<n;i++){
    cin>>a;
    st.insert(a);
  }
  if(s.size()==3){
    cout<<"Three"<<endl;
  }else{
    cout<<"Four"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:6: error: 's' was not declared in this scope; did you mean 'st'?
   12 |   if(s.size()==3){
      |      ^
      |      st
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin>>n;
  char a;
  set<char> st;
  for(int i=0;i<n;i++){
    cin>>>a;
    st.insert(a);
  }
  cout<<st.size()<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected primary-expression before '>' token
    9 |     cin>>>a;
      |          ^
Language: C++

    int n = 0;

    cin >> n;

    bool isFour = false;

    rep(i, n) {
        char arare;
        cin >> arare;
        if(arare == 'Y'){
            isFour = true;
        }
    }


    cout <<( isFour ? "Four": "Tree" )<< endl;


Compiler output:
a.cc:3:5: error: 'cin' does not name a type
    3 |     cin >> n;
      |     ^~~
a.cc:7:8: error: expected constructor, destructor, or type conversion before '(' token
    7 |     rep(i, n) {
      |        ^
a.cc:16:5: error: 'cout' does not name a type
   16 |     cout <<( isFour ? "Four": "Tree" )<< endl;
      |     ^~~~
Language: C++

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

int main() {
  int N;
  string op;
    

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

}


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

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

int main() {
  int N;
  string op;
    

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

}


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

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

int main() {
  int N;
  string C;
    

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: could not convert 'C.std::__cxx11::basic_string<char>::operator=(((const char*)"Y"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |     if(C = "Y" ){
      |        ~~^~~~~
      |          |
      |          std::__cxx11::basic_string<char>
a.cc:19:2: error: expected '}' at end of input
   19 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  int N;
  string C;
    

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

}


Compiler output:
a.cc:12:21: warning: missing terminating " character
   12 |       cout << ""Four" << endl;
      |                     ^
a.cc:12:21: error: missing terminating " character
   12 |       cout << ""Four" << endl;
      |                     ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:11:10: error: could not convert 'C.std::__cxx11::basic_string<char>::operator=(((const char*)"Y"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |     if(C = "Y" ){
      |        ~~^~~~~
      |          |
      |          std::__cxx11::basic_string<char>
a.cc:12:15: error: unable to find string literal operator 'operator""Four' with 'const char [1]', 'long unsigned int' arguments
   12 |       cout << ""Four" << endl;
      |               ^~~~~~
a.cc:19:2: error: expected '}' at end of input
   19 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  int N;
  string C;
    

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: could not convert 'C.std::__cxx11::basic_string<char>::operator=(((const char*)"Y"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |     if(C = "Y" ){
      |        ~~^~~~~
      |          |
      |          std::__cxx11::basic_string<char>
a.cc:12:15: error: unable to find string literal operator 'operator""Four' with 'const char [1]', 'long unsigned int' arguments
   12 |       cout << ""Four! << endl;
      |               ^~~~~~
a.cc:19:2: error: expected '}' at end of input
   19 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <iostream>
using namespace std;

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

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

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: expected ';' before '(' token
   13 |       break();
      |            ^
      |            ;
a.cc:13:13: error: expected primary-expression before ')' token
   13 |       break();
      |             ^
a.cc:16:6: error: 'i' was not declared in this scope
   16 |   if(i==N){
      |      ^
Language: C++

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

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

Compiler output:
a.cc:2:17: error: 'srd' is not a namespace-name
    2 | using namespace srd;
      |                 ^~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> N;
      |   ^~~
      |   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:8:5: error: 'string' was not declared in this scope
    8 |     string S;
      |     ^~~~~~
a.cc:8:5: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:9:12: error: 'S' was not declared in this scope
    9 |     cin >> S;
      |            ^
a.cc:11:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |       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:11:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |       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: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |   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:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |   cout << "Three" << endl;
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
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;
    if (x == "Y"){
      cout << "Four" << endl;
      break;
    }
    if (i == N-1)
      cout << "Three" << endl;
  }
    

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

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

bool contain(string *str, char c){
    return str.find(c) != string::npos;
}

int main()
{
    string n, s;
    getline(cin, n);
    getline(cin, s);

    cout << contain(s, 'Y') ? "Four" : "Three" << endl;
}


Compiler output:
a.cc: In function 'bool contain(std::string*, char)':
a.cc:5:16: error: request for member 'find' in 'str', which is of pointer type 'std::string*' {aka 'std::__cxx11::basic_string<char>*'} (maybe you meant to use '->' ?)
    5 |     return str.find(c) != string::npos;
      |                ^~~~
a.cc: In function 'int main()':
a.cc:14:21: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'std::string*' {aka 'std::__cxx11::basic_string<char>*'}
   14 |     cout << contain(s, 'Y') ? "Four" : "Three" << endl;
      |                     ^
      |                     |
      |                     std::string {aka std::__cxx11::basic_string<char>}
a.cc:4:22: note:   initializing argument 1 of 'bool contain(std::string*, char)'
    4 | bool contain(string *str, char c){
      |              ~~~~~~~~^~~
a.cc:14:48: error: invalid operands of types 'const char [6]' and '<unresolved overloaded function type>' to binary 'operator<<'
   14 |     cout << contain(s, 'Y') ? "Four" : "Three" << endl;
      |                                        ~~~~~~~~^~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  int N;
  string S;
  cin >> N;
  
  //入力を並べた文字列を作成。
  for(int i = 0; i < N; i++)
  {
    string temp;
    cin >> temp;
    S += temp;
  }
  
  //Yがあるかどうかのみを確認
  string.count(
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: expected unqualified-id before '.' token
   18 |   string.count(
      |         ^
Language: C++

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

int main( ) {
  int N;
  cin>>N;
  vector<char>A(N);
  for(int i=0; i<N;i++) {
      cin>>A.at(i);
  }
  bool answer = false;
  for(int i=0; i<N; i++){
    if(A.at(i)=="Y")
      answer = true;
  }
  if(answer)
    cout<<"Four"<<endl;
  else
    cout<<"Three"<<endl;
}
    
      
    
    
  

Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |     if(A.at(i)=="Y")
      |        ~~~~~~~^~~~~
Language: C++

using namespace std;

int main( ) {
  int N;
  cin>>N;
  vector<char>A(N);
  for(int i=0; i<N;i++) {
      cin>>A.at(i);
  }
  bool answer = false;
  for(int i=0; i<N; i++){
    if(A.at(i)=="Y")
      answer = true;
  }
  if(answer)
    cout<<"Four"<<endl;
  else
    cout<<"Three"<<endl;
}
    
      
    
    
  

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>N;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector<char>A(N);
      |   ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | using namespace std;
a.cc:6:10: error: expected primary-expression before 'char'
    6 |   vector<char>A(N);
      |          ^~~~
a.cc:8:12: error: 'A' was not declared in this scope
    8 |       cin>>A.at(i);
      |            ^
a.cc:12:8: error: 'A' was not declared in this scope
   12 |     if(A.at(i)=="Y")
      |        ^
a.cc:16:5: error: 'cout' was not declared in this scope
   16 |     cout<<"Four"<<endl;
      |     ^~~~
a.cc:16:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:19: error: 'endl' was not declared in this scope
   16 |     cout<<"Four"<<endl;
      |                   ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:18:5: error: 'cout' was not declared in this scope
   18 |     cout<<"Three"<<endl;
      |     ^~~~
a.cc:18:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:20: error: 'endl' was not declared in this scope
   18 |     cout<<"Three"<<endl;
      |                    ^~~~
a.cc:18:20: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: expected ';' before ')' token
    9 |   for (int i = 0; i<N, i++){
      |                           ^
      |                           ;
Language: C++

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

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

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

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:15:24: error: expected ';' before '}' token
   15 |             A = "Three"
      |                        ^
      |                        ;
   16 |         }
      |         ~
Language: C++

#include<iostream>
using namespace std;
int main(void){
  
  int = N, i;
  char S;
  bool Y = false;
  
  cin >> N;
  
  for(i = 0; i < N; i++){
    
    cin >> S;
    if(S == 'Y'){
      Y = true;
    }
  }
  
  if(Y){
    cout << "Four" << endl;
  }else{
    cout << "Three" << endl;
  }
  
  return 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: expected unqualified-id before '=' token
    5 |   int = N, i;
      |       ^
a.cc:9:10: error: 'N' was not declared in this scope
    9 |   cin >> N;
      |          ^
a.cc:11:7: error: 'i' was not declared in this scope
   11 |   for(i = 0; i < N; i++){
      |       ^