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

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

int main()
{
  int n;
  char c;
  
  cin >> n;
    
  for ( n ; n > 0 ; n-- )
  {
    cin >> c;
    
    if ( c = "Y" )
    {
      cout << "Four";
      break;
    }
    else if ( n == 0 )
    {
      cout << "Three";
    }
    else
    {
      continue;
    }
  }
  
    
    


Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   15 |     if ( c = "Y" )
      |              ^~~
      |              |
      |              const char*
a.cc:28:4: error: expected '}' at end of input
   28 |   }
      |    ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

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

int main()
{
  int n;
  char c;
  
  cin >> n;
    
  for ( n ; n > 0 ; n-- )
  {
    cin >> c;
    
    if ( c == "Y" )
    {
      cout << "Four";
      break;
    }
    else if ( n == 0 )
    {
      cout << "Three";
    }
    else
    {
      continue;
    }
  }
  
    
    


Compiler output:
a.cc: In function 'int main()':
a.cc:15:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     if ( c == "Y" )
      |          ~~^~~~~~
a.cc:28:4: error: expected '}' at end of input
   28 |   }
      |    ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     if (i == "Y") {
      |         ~~^~~~~~
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,count;
  cin >> n;
  char c;
  
  rep(i,n){
    cin >> c;
    if(c=="Y"){
      count++;
    }
  }
  
  if(count==0){
    cout << "Three" << endl;
  }else{
    cout << "Four" << endl;
  }    
}

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

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

int main() {
  int n;
  cin >> n;
  string ans = "Three";
  for (int i = 0; i < n; i++) {
    string c;
    cin >> c;
    if (c == "Y") {
      ans = "Four";
    }
  }
  cout << ans << ednl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:18: error: 'ednl' was not declared in this scope
   15 |   cout << ans << ednl;
      |                  ^~~~
Language: C++

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

int main() {

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: missing template arguments before '(' token
   10 |   vector(string) S;
      |         ^
a.cc:10:16: error: expected primary-expression before ')' token
   10 |   vector(string) S;
      |                ^
a.cc:13:12: error: 'S' was not declared in this scope
   13 |     cin << S.at(i);
      |            ^
a.cc:17:12: error: 'S' was not declared in this scope
   17 |         if(S.at(j) == "Y") {
      |            ^
a.cc:19:14: error: expected ';' before '}' token
   19 |         break
      |              ^
      |              ;
   20 |     }
      |     ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: 'Y' was not declared in this scope
   10 |    if ( k == Y )
      |              ^
a.cc: At global scope:
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
a.cc:16:1: error: expected unqualified-id before 'if'
   16 | if (k == 0){
      | ^~
a.cc:18:2: error: expected unqualified-id before 'else'
   18 | }else{
      |  ^~~~
Language: C++

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

int main() {
  int n,k = 0;
  cin >> n;
  for(int i = 0;i<n;i++){
    char s;
    if (s == 'Y'){
      k++;
      break;
  }
    if (k == 0){
      cout<<"Three"<<endl;
    }
     else{
      cout<<"Four"<<endl;
    }

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


Compiler output:
a.cc: In function 'int main()':
a.cc:21:2: 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;
  cin >> N;
  
  int i = 0;
  for (; i < N;) {
    string S;
    cin >> S;
    if (S == "Y") {
      cout << "Four" << endl;  
      break;
    }
    eles
    i++;
  } 
  if (i == N-1)
    cout << "Three" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: 'eles' was not declared in this scope
   16 |     eles
      |     ^~~~
Language: C++

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

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

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

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

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

int main(void){
  int n;
  string s;
  rep(i, n){
     cin >> c;
     if(c == "Y"){
       cout << "Four" << endl;
       break;
     }
    if(n == (n - 1)){
       cout << "Three" << endl;
    }
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'c' was not declared in this scope
    9 |      cin >> c;
      |             ^
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" || P == "G") {
      if (i < N - 1) {
        continue;
      }
      if (i == N - 1) {
        cout << "Three" << endl;
      }
    }
    else if (S == "Y") {
      cout << "Four" << endl;
      break;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:33: error: 'P' was not declared in this scope
   10 |     if (S == "P" || S == "W" || P == "G") {
      |                                 ^
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 == P || S == W || P == G) {
      if (i < N - 1) {
        continue;
      }
      if (i == N - 1) {
        cout << "Three" << endl;
      }
    }
    else if (S == Y) {
      cout << "Four" << endl;
      break;
    }
  }
}

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

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

int main(){
int N,p,w,g,y,c;
p = 0;
w = 0;
g = 0;
y = 0;

char color;

cin >> N;

for(int i = N;i>0;i--){
	cin >> color;
	if(color = "p"){
		p=1;
		}
	else if(color = "w"){
		w=1;
		}
	else if(color = "g"){
		g = 1;
		}
	else{
		y = 1;
		}
	}

c =p+w+g+y;

if(c>3){
	cout << "Four" <<endl;
	}
else{
	cout << "Three" <<endl;
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:20: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   17 |         if(color = "p"){
      |                    ^~~
      |                    |
      |                    const char*
a.cc:20:25: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   20 |         else if(color = "w"){
      |                         ^~~
      |                         |
      |                         const char*
a.cc:23:25: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   23 |         else if(color = "g"){
      |                         ^~~
      |                         |
      |                         const char*
Language: C++

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

int main(){
int N,p,w,g,y,c;
p = 0;
w = 0;
g = 0;
y = 0;

string color;

cin >> N;

for(int i = N;i>0;i--){
	cin >> color;
	if(color = "p"){
		p=1;
		}
	else if(color = "w"){
		w=1;
		}
	else if(color = "g"){
		g = 1;
		}
	else{
		y = 1;
		}
	}

c =p+w+g+y;

if(c>3){
	cout << "Four" <<endl;
	}
else{
	cout << "Three" <<endl;
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:18: error: could not convert 'color.std::__cxx11::basic_string<char>::operator=(((const char*)"p"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   17 |         if(color = "p"){
      |            ~~~~~~^~~~~
      |                  |
      |                  std::__cxx11::basic_string<char>
a.cc:20:23: error: could not convert 'color.std::__cxx11::basic_string<char>::operator=(((const char*)"w"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   20 |         else if(color = "w"){
      |                 ~~~~~~^~~~~
      |                       |
      |                       std::__cxx11::basic_string<char>
a.cc:23:23: error: could not convert 'color.std::__cxx11::basic_string<char>::operator=(((const char*)"g"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   23 |         else if(color = "g"){
      |                 ~~~~~~^~~~~
      |                       |
      |                       std::__cxx11::basic_string<char>
Language: C++

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

int main(){

}

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

int main(){
int N,p,w,g,y,c;
p = 0;
w = 0;
g = 0;
y = 0;

string color;

cin >> N;

for(int i = N;i>0;i--){
	cin >> color;
	if(color = "p"){
		p=1;
		}
	else if(color = "w"){
		w=1;
		}
	else if(color = "g"){
		g = 1;
		}
	else{
		y = 1;
		}
	}

c =p+w+g+y;

if(c>3){
	cout << "Four" <<endl;
	}
else{
	cout << "Three" <<endl;
	}
}


Compiler output:
a.cc:11:5: error: redefinition of 'int main()'
   11 | int main(){
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main(){
      |     ^~~~
a.cc: In function 'int main()':
a.cc:24:18: error: could not convert 'color.std::__cxx11::basic_string<char>::operator=(((const char*)"p"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   24 |         if(color = "p"){
      |            ~~~~~~^~~~~
      |                  |
      |                  std::__cxx11::basic_string<char>
a.cc:27:23: error: could not convert 'color.std::__cxx11::basic_string<char>::operator=(((const char*)"w"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   27 |         else if(color = "w"){
      |                 ~~~~~~^~~~~
      |                       |
      |                       std::__cxx11::basic_string<char>
a.cc:30:23: error: could not convert 'color.std::__cxx11::basic_string<char>::operator=(((const char*)"g"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   30 |         else if(color = "g"){
      |                 ~~~~~~^~~~~
      |                       |
      |                       std::__cxx11::basic_string<char>
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         if(si == "Y"){
      |            ~~~^~~~~~
a.cc:11:25: error: expected primary-expression before ';' token
   11 |           cout<<"Four"<<;
      |                         ^
a.cc:19:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |        if(si == "Y"){
      |           ~~~^~~~~~
a.cc:20:25: error: expected primary-expression before ';' token
   20 |           cout<<"Four"<<;
      |                         ^
a.cc:24:25: error: expected primary-expression before ';' token
   24 |          cout<<"Three"<<;
      |                         ^
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;
      break;
    }
    else if (i == N - 1)
      cout << "Three" << endl;
  }
  // ここにプログラムを追記
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"Y"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |     if (s = "Y") {
      |         ~~^~~~~
      |           |
      |           std::__cxx11::basic_string<char>
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;
      break;
    }
    else if (i == N - 1)
      cout << "Three" << endl;
  }
  // ここにプログラムを追記
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"y"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |     if (s = "y") {
      |         ~~^~~~~
      |           |
      |           std::__cxx11::basic_string<char>
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;
      break
    }
    else if (i == N - 1)
      cout << "Three" << endl;
  }
  // ここにプログラムを追記
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"y"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |     if (s = "y") {
      |         ~~^~~~~
      |           |
      |           std::__cxx11::basic_string<char>
a.cc:13:12: error: expected ';' before '}' token
   13 |       break
      |            ^
      |            ;
   14 |     }
      |     ~
Language: C++

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

int main {
  
  int N;
  cin>>N;
  
  char vector(N);
  for(int = i = 0; i < N; i++) {
    cin>>vector.at(i);
  }
  
  string benki == "Three"
    
    for(int i = 0; i < N; i++) {
      if(vector.at(i) == "Y") {
        benki = "Four";
        break;
      }
    }
  
  cout << benki <<endl;
  return 0;
}


Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main {
      |     ^~~~
a.cc:6:3: error: expected primary-expression before 'int'
    6 |   int N;
      |   ^~~
a.cc:6:3: error: expected '}' before 'int'
a.cc:4:10: note: to match this '{'
    4 | int main {
      |          ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin>>N;
      |   ^~~
a.cc:9:15: error: 'N' was not declared in this scope
    9 |   char vector(N);
      |               ^
a.cc:10:3: error: expected unqualified-id before 'for'
   10 |   for(int = i = 0; i < N; i++) {
      |   ^~~
a.cc:10:20: error: 'i' does not name a type
   10 |   for(int = i = 0; i < N; i++) {
      |                    ^
a.cc:10:27: error: 'i' does not name a type
   10 |   for(int = i = 0; i < N; i++) {
      |                           ^
a.cc:14:16: error: expected initializer before '==' token
   14 |   string benki == "Three"
      |                ^~
a.cc:16:20: error: 'i' does not name a type
   16 |     for(int i = 0; i < N; i++) {
      |                    ^
a.cc:16:27: error: 'i' does not name a type
   16 |     for(int i = 0; i < N; i++) {
      |                           ^
a.cc:23:3: error: 'cout' does not name a type
   23 |   cout << benki <<endl;
      |   ^~~~
a.cc:24:3: error: expected unqualified-id before 'return'
   24 |   return 0;
      |   ^~~~~~
a.cc:25:1: error: expected declaration before '}' token
   25 | }
      | ^
Language: C++

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

int main {
  
  int N;
  cin>>N;
  
  char vector(N);
  for(int = i = 0, i < N; i++) {
    cin>>vector.at(i);
  }
  
  string benki = "Three"
    for(int i = 0; i < N; i++) {
      if(vector.at(i) == "Y") {
        benki = "Four";
        break;
      }
    }
  
  cout << benki <<endl;
  return 0;
}


Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main {
      |     ^~~~
a.cc:6:3: error: expected primary-expression before 'int'
    6 |   int N;
      |   ^~~
a.cc:6:3: error: expected '}' before 'int'
a.cc:4:10: note: to match this '{'
    4 | int main {
      |          ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin>>N;
      |   ^~~
a.cc:9:15: error: 'N' was not declared in this scope
    9 |   char vector(N);
      |               ^
a.cc:10:3: error: expected unqualified-id before 'for'
   10 |   for(int = i = 0, i < N; i++) {
      |   ^~~
a.cc:10:27: error: 'i' does not name a type
   10 |   for(int = i = 0, i < N; i++) {
      |                           ^
a.cc:15:5: error: expected ',' or ';' before 'for'
   15 |     for(int i = 0; i < N; i++) {
      |     ^~~
a.cc:15:20: error: 'i' does not name a type
   15 |     for(int i = 0; i < N; i++) {
      |                    ^
a.cc:15:27: error: 'i' does not name a type
   15 |     for(int i = 0; i < N; i++) {
      |                           ^
a.cc:22:3: error: 'cout' does not name a type
   22 |   cout << benki <<endl;
      |   ^~~~
a.cc:23:3: error: expected unqualified-id before 'return'
   23 |   return 0;
      |   ^~~~~~
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
Language: C++

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

int main {
  
  int N;
  cin>>N;
  
  char vector(N);
  for(int = i = 0, i < N; i++) {
    cin>>vector.at(i);
  }
  
  char benki = "Three"
    for(int i = 0; i < N; i++) {
      if(vector.at(i) == "Y") {
        benki = "Four";
        break;
      }
    }
  
  cout << benki <<endl;
  return 0;
}


Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main {
      |     ^~~~
a.cc:6:3: error: expected primary-expression before 'int'
    6 |   int N;
      |   ^~~
a.cc:6:3: error: expected '}' before 'int'
a.cc:4:10: note: to match this '{'
    4 | int main {
      |          ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin>>N;
      |   ^~~
a.cc:9:15: error: 'N' was not declared in this scope
    9 |   char vector(N);
      |               ^
a.cc:10:3: error: expected unqualified-id before 'for'
   10 |   for(int = i = 0, i < N; i++) {
      |   ^~~
a.cc:10:27: error: 'i' does not name a type
   10 |   for(int = i = 0, i < N; i++) {
      |                           ^
a.cc:14:16: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   14 |   char benki = "Three"
      |                ^~~~~~~
      |                |
      |                const char*
a.cc:15:5: error: expected ',' or ';' before 'for'
   15 |     for(int i = 0; i < N; i++) {
      |     ^~~
a.cc:15:20: error: 'i' does not name a type
   15 |     for(int i = 0; i < N; i++) {
      |                    ^
a.cc:15:27: error: 'i' does not name a type
   15 |     for(int i = 0; i < N; i++) {
      |                           ^
a.cc:22:3: error: 'cout' does not name a type
   22 |   cout << benki <<endl;
      |   ^~~~
a.cc:23:3: error: expected unqualified-id before 'return'
   23 |   return 0;
      |   ^~~~~~
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
Language: C++

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

int main {
  
  int N;
  cin>>N;
  
  char vector(N);
  for(int = i, i < N; i++) {
    cin>>vector.at(i);
  }
  
  char benki = "Three"
    for(int i = 0; i < N; i++) {
      if(vector.at(i) == "Y") {
        benki = "Four";
        break;
      }
    }
  
  cout << benki <<endl;
  return 0;
}


Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main {
      |     ^~~~
a.cc:6:3: error: expected primary-expression before 'int'
    6 |   int N;
      |   ^~~
a.cc:6:3: error: expected '}' before 'int'
a.cc:4:10: note: to match this '{'
    4 | int main {
      |          ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin>>N;
      |   ^~~
a.cc:9:15: error: 'N' was not declared in this scope
    9 |   char vector(N);
      |               ^
a.cc:10:3: error: expected unqualified-id before 'for'
   10 |   for(int = i, i < N; i++) {
      |   ^~~
a.cc:10:23: error: 'i' does not name a type
   10 |   for(int = i, i < N; i++) {
      |                       ^
a.cc:14:16: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   14 |   char benki = "Three"
      |                ^~~~~~~
      |                |
      |                const char*
a.cc:15:5: error: expected ',' or ';' before 'for'
   15 |     for(int i = 0; i < N; i++) {
      |     ^~~
a.cc:15:20: error: 'i' does not name a type
   15 |     for(int i = 0; i < N; i++) {
      |                    ^
a.cc:15:27: error: 'i' does not name a type
   15 |     for(int i = 0; i < N; i++) {
      |                           ^
a.cc:22:3: error: 'cout' does not name a type
   22 |   cout << benki <<endl;
      |   ^~~~
a.cc:23:3: error: expected unqualified-id before 'return'
   23 |   return 0;
      |   ^~~~~~
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
Language: C++

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

int main {
  
  int N;
  cin>>N;
  
  char vector(N);
  for(int = i, i < N; i++) {
    cin>>vector.at(i);
  }
  
  char benki = "Three"
    for(int i = 0; i < N; i++) {
      if(vector.at(i) == "Y") {
        benki = "Four";
        break;
      }
    }
  
  cout << benki <<endl;
  return 0;
}

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

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

int main() {
 int n;
 cin >> n;
 string s;
 bool a = false;
 for(int i = 0;i < n;++i){
   cin >> s;
   if(s == "Y"){
     a = true;
     break;
   }
 }
 if(bool == true) cout << "Four" << endl;
 else cout << "Three" << endl;
}

  

  


Compiler output:
a.cc: In function 'int main()':
a.cc:16:10: error: expected unqualified-id before '==' token
   16 |  if(bool == true) cout << "Four" << endl;
      |          ^~
Language: C++

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

int main() {
  int n;
  cin >> n;
  char s[n];
  bool a = false;
  for(int i = 0;i < n;++i) cin >> s[i];
  for(int i = 0;i < n;++i){
    if(s[i] == 'Y') a = true,break;
  }
  if(a == true)cout << "Four" << endl;
  else cout << "Three" << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: expected primary-expression before 'break'
   11 |     if(s[i] == 'Y') a = true,break;
      |                              ^~~~~
Language: C++

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

int main() {
  int x;
  bool a = false;
  bool b = false;
  bool c = false;
  bool d = false;
  string color;
  cin >> x;

  for (i = 0; i < x; i++){
    
    cin >> color;
    
    if (color == "P"){
      a = true;
    }
    
    else if(color == "G"){
      b = true;
    }
    
    else if(color == "W"){
      c = true;
    }
    
    else if(color == "Y"){
      d = ture;
    }
  }
  
  if(a && b && c && d){
    cout << "Four" << endl;
  }
  
  else{
    cout << "Three" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:8: error: 'i' was not declared in this scope
   13 |   for (i = 0; i < x; i++){
      |        ^
a.cc:30:11: error: 'ture' was not declared in this scope
   30 |       d = ture;
      |           ^~~~
a.cc:40:2: error: expected '}' at end of input
   40 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'i' was not declared in this scope
    8 |   for (i = 0;i < N;i++) {
      |        ^
a.cc:14:31: error: expected '}' at end of input
   14 |   else cout << "Four" << endl;
      |                               ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected ';' before 'string'
    7 |   c = 0
      |        ^
      |        ;
    8 |   string color;
      |   ~~~~~~
a.cc:9:8: error: 'i' was not declared in this scope
    9 |   for (i = 0;i < N;i++) {
      |        ^
a.cc:10:12: error: 'color' was not declared in this scope
   10 |     cin >> color;
      |            ^~~~~
a.cc:14:31: error: expected '}' at end of input
   14 |   else cout << "Four" << endl;
      |                               ^
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 p,w,g,y;
  cin >> n;
  
  for(int i=0;i<n;i++){
    string op;
    cin >> op;
    if(op=y){
      cout << "four" << endl;
      break;
    }
    if(i==n-1 && op!=y)
      cout << "three" << endl;
    else
      continue;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: could not convert 'op.std::__cxx11::basic_string<char>::operator=(y)' from 'std::__cxx11::basic_string<char>' to 'bool'
   12 |     if(op=y){
      |        ~~^~
      |          |
      |          std::__cxx11::basic_string<char>
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long int

int main(){
    int n;
    cin>>n;
    while(n--){
        char c;
        cin>>c;
        int f=0;
        if(c=='Y')f=1;
    }
    if(f==1)cout<<"Four";
    else cout<<"Three";
}    

Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: 'f' was not declared in this scope
   14 |     if(f==1)cout<<"Four";
      |        ^
Language: C++

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

 
int main(){
  int N,temp,flag = 0;
  cin >> N;
  for(int i = 0; i < N; i++){
  	cin >> temp;
  	if(temp == 'Y') flag = 1;
  }
  
  if(n < 3){
    
  }  
  else if(flag == 1){
    cout << "Four" << endl;
  }else if(flag = 0){
    cout << "Three" << endl;
  }
  
  return 0;
}

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'spring' was not declared in this scope; did you mean 'sprintf'?
    8 |     spring S;
      |     ^~~~~~
      |     sprintf
a.cc:9:14: error: 'S' was not declared in this scope
    9 |       cin >> S;
      |              ^
Language: C++

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


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

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


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

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

Compiler output:
a.cc:2:20: error: expected ';' before '.' token
    2 | using namespace std.
      |                    ^
      |                    ;
a.cc:2:20: error: expected unqualified-id before '.' token
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
	int N;
  	cin>>N;
  	bool flag = false;
  	for(int i=0;i<N;i++){
      string x;
      cin>>x;
      if(x=="Y")flag=true;
    }
  	cout<<flag?"four":"three"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:34: error: invalid operands of types 'const char [6]' and '<unresolved overloaded function type>' to binary 'operator<<'
   13 |         cout<<flag?"four":"three"<<endl;
      |                           ~~~~~~~^~~~~~
Language: C++

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

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

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

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

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

Compiler output:
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >> N;
      | ^~~
a.cc:7:1: error: expected unqualified-id before 'for'
    7 | for (i = 0, i < N, i++) {
      | ^~~
Language: C++

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

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

Compiler output:
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >> N;
      | ^~~
a.cc:7:1: error: expected unqualified-id before 'for'
    7 | for (i = 0, i < N, i++) {
      | ^~~
Language: C++

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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'P' was not declared in this scope
   12 |   if(c==P&&c==W&&c==G&&c==Y){
      |         ^
a.cc:12:15: error: 'W' was not declared in this scope
   12 |   if(c==P&&c==W&&c==G&&c==Y){
      |               ^
a.cc:12:21: error: 'G' was not declared in this scope
   12 |   if(c==P&&c==W&&c==G&&c==Y){
      |                     ^
a.cc:12:27: error: 'Y' was not declared in this scope
   12 |   if(c==P&&c==W&&c==G&&c==Y){
      |                           ^
Language: C++

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

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

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
int limit;
int pink=0;
int yellow=0;
int white=0;
int green=0;
string p = "P";
string y = "Y";
string w = "W";
string g = "G";
int sum;
cin>>limit;
while(limit>0)
{string i;
cin>>i
if(i=="P")
{pink=1;
}
else if(i=="Y")
{yellow=1;
}
else if(i=="W")
{w=1;
}
else if(i=="G")
{green=1;
}
limit--;
}
sum=pink+yellow+white+green;
 
if(sum==4){cout <<"Four"<< endl;}
else if(sum==3){cout <<"Three"<< endl;}
else if(sum==2){cout <<"Two"<< endl;}
else if(sum==1){cout <<"One"<< endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:7: error: expected ';' before 'if'
   18 | cin>>i
      |       ^
      |       ;
   19 | if(i=="P")
      | ~~     
a.cc:22:1: error: 'else' without a previous 'if'
   22 | else if(i=="Y")
      | ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){

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

    
    

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: expected ';' before 'break'
   12 |       pin = 1
      |              ^
      |              ;
   13 |       break;
      |       ~~~~~
Language: C++

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

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

  for (int i = 0; i < N; i++) {
    char a;
    cin >> a;
    
    if (a == 'Y') {
      b = 'Y';
    }
  }
  
  if (b == "Y") {
    cout << "Four" << endl;
  }
  
  else {
    cout << "Three" << endl;
  }
    
}


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

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

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

  for (int i = 0; i < N; i++) {
    char a, b;
    cin >> a;
    
    if (a == 'Y') {
      b = 'Y';
    }
  }
  
  if (b == "Y") {
    cout << "Four" << endl;
  }
  
  else {
    cout << "Three" << endl;
  }
    
}


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

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

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

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


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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N, i, p;
  cin >> N;
  char s, Str[2][4] = {{'P','W','G','Y'},{0,0,0,0}};
  for(i=0;i<N;i++){
    cin >> s;
    p = 0;
    for(int j=0;j<4;j++){
      if(Str[0][j]==s)
        Str[1][j]=1;
      p += Str[1][j];
    }
  }
  cout << (p-3)?"Four":"Three" << endl;
 
  // ここにプログラムを追記
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:32: error: invalid operands of types 'const char [6]' and '<unresolved overloaded function type>' to binary 'operator<<'
   17 |   cout << (p-3)?"Four":"Three" << endl;
      |                        ~~~~~~~~^~~~~~~
Language: C++

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

int main() {
    int N;
    string S;
    cin >> N >> S;
    bool HINA = false;
    for (i = 0; i < N; i++){
        if (S[i] == 'Y') HINA = true;
    }

    if (HINA) cout << "Four" << endl;
    else cout << "Three" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: 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;
  cin >> 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;
    }
      else {
      continue;
    }
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:21:4: error: expected '}' at end of input
   21 |   }
      |    ^
a.cc:7:29: note: to match this '{'
    7 |   for(int i = 0; i < N; i++){
      |                             ^
a.cc:21:4: 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;
  cin >> 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;
    }
      else {
      continue;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | 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 S;
    cin S;
    if(S == "Y"){
      cout << "four" << endl;
      break;
    }
    else if (i == N - 1){
      cout << "three" << endl;
    }
    else {
      continue;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: expected ';' before 'S'
    9 |     cin S;
      |        ^~
      |        ;
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#iclude <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;
      break;
    }
    else
    {
      if(i == N - 1)
      {
        cout << "Three" << endl;
      }
      else
        continue;
    }
  }
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #iclude; did you mean #include?
    1 | #iclude <bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   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 | #iclude <bits/stdc++.h>
a.cc:11:5: error: 'string' was not declared in this scope
   11 |     string S;
      |     ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #iclude <bits/stdc++.h>
a.cc:12:12: error: 'S' was not declared in this scope
   12 |     cin >> S;
      |            ^
a.cc:16:7: error: 'cout' was not declared in this scope
   16 |       cout << "Four" << endl;
      |       ^~~~
a.cc:16:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:25: 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 | #iclude <bits/stdc++.h>
a.cc:23:9: error: 'cout' was not declared in this scope
   23 |         cout << "Three" << endl;
      |         ^~~~
a.cc:23:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:23:28: error: 'endl' was not declared in this scope
   23 |         cout << "Three" << endl;
      |                            ^~~~
a.cc:23:28: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <bitsc++.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;
      break;
    }
    else
    {
      if(i < N - 1)
        continue;
      else
        cout << "Three" << endl;
    }
  }
}

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

#include <bits/stdc++.h>    //C++の標準ライブラリのヘッダを全て読み込む
 using namespace std;
int main() {
    

    int N;
    string s;
    int P = 0, W = 0, G = 0, Y = 0;
    cin >> N;
 
    for(int i = 0; i < N; i++)
    {
        cin >> s[i];
    }

    for(int i = 0; i < N; i++)
    {
        if(s[i] == "P"){
            P = 1;
        } else if(s[i] == "W"){
            W = 1;
        } else if(s[i] == "G"){
            G = 1;
        } else if(s[i] == "Y"){
            Y = 1;
        } 
            
        
    }

    if(P+W+G+Y > 3){
        cout << "Four" << endl;
    } else {
        cout << "Three" << endl;
    }


}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |         if(s[i] == "P"){
a.cc:20:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   20 |         } else if(s[i] == "W"){
a.cc:22:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   22 |         } else if(s[i] == "G"){
a.cc:24:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   24 |         } else if(s[i] == "Y"){
Language: C++

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


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

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'i' was not declared in this scope
    9 |   for(i=0;i<N;i++) {
      |       ^
a.cc:16:6: error: expected '}' at end of input
   16 |     }
      |      ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: 'four' was not declared in this scope
   14 |     cout << four << endl;
      |             ^~~~
a.cc:17:13: error: 'three' was not declared in this scope
   17 |     cout << three << endl;
      |             ^~~~~
Language: C++

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

int main() {
  int N; 
  int judge = 0;
  string S;
  
  cin >> N;
  
  for(int i = 0; i < N; i++)
  {
    cin >> S;
    
    if(S == "Y")
      judge = 1;
      break
  }

  if(judge == 1)
    cout << "Four" << endl;
  else
    cout << "Three" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:12: error: expected ';' before '}' token
   17 |       break
      |            ^
      |            ;
   18 |   }
      |   ~
Language: C++

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

int main() {
  int n,a,b;
  cin >> n;
  b = 0;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a = "Y") {
      cout << "Four" << endl;
      break;
    }
    else {
      b++
    }
  }
  if (b = n) {
    cout << "Three" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   10 |     if (a = "Y") {
      |             ^~~
      |             |
      |             const char*
a.cc:15:10: error: expected ';' before '}' token
   15 |       b++
      |          ^
      |          ;
   16 |     }
      |     ~
Language: C++

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

int main() {
  int n,a,b;
  cin >> n;
  b = 0;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a = "Y") {
      cout << "Four" << endl;
      break;
    }
    else {
      b++
    }
  }
  if (b = n) {
    cout << Three << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   10 |     if (a = "Y") {
      |             ^~~
      |             |
      |             const char*
a.cc:15:10: error: expected ';' before '}' token
   15 |       b++
      |          ^
      |          ;
   16 |     }
      |     ~     
a.cc:19:13: error: 'Three' was not declared in this scope
   19 |     cout << Three << endl;
      |             ^~~~~