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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  string S;
  bool bP=false,bW=false,bG=false,bY=false;
  cin >> N;
  
  for(int n = 0; n < N; n++){
  	cin >> S;
    if(S=="P"){
    	bP=true;
    }else if(S=="W"){
    	bW=true;
    }else if(S="G"){
    	bG=true;
    }else if(S=="Y"){
    	bY=true;
    }
  }
  
  if(bP && bW && bG && bY){
  	cout << "Four" << endl;
  }else{
  	cout << "Three" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:15: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"G"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   16 |     }else if(S="G"){
      |              ~^~~~
      |               |
      |               std::__cxx11::basic_string<char>
Language: C++

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: expected ';' before 'break'
   13 |         j == 1
      |               ^
      |               ;
   14 |         break;
      |         ~~~~~  
a.cc:22:4: 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 op; 
		cin >> op;
		if(op = Y){
			cout << "Four" <<endl;
		}else{
			cout << "Three" <<endl;
		}
		return 0;
		}
	
  
    

Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: 'Y' was not declared in this scope
    9 |                 if(op = Y){
      |                         ^
a.cc:15:18: error: expected '}' at end of input
   15 |                 }
      |                  ^
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; 
	for (int i = 0; i < N; i++) {
		string op;
		if(op = Y){
			cout << "Four" <<endl;
		}else{
			cout << "Three" <<endl;
		}
		return 0;
		}
	
  
    

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: 'Y' was not declared in this scope
    8 |                 if(op = Y){
      |                         ^
a.cc:14:18: error: expected '}' at end of input
   14 |                 }
      |                  ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<string>
using namespace std;

int main(){
	int n; cin>>n;
	vector<char>a(n);
	bool p=false,w=false,g=false,y=false;
	for(int i=0;i<n;i++){
		cin>>a[i];
	}
	for(int i=0;i<n;i++){
		if(a[i]=='P'){
			p=true;
		}
		else if(a[i]=='W'){
			w=true;
		}
		else if(a[i]=='G'){
			g=true;
		}
		else if(a[i]=='Y'){
			y=true;
		}
	}
	int ans=0;
	if(p){
		ans++;
	}
	if(w){
		ans++;
	}
	if(g){
		ans++;
	}
	if(y){
		ans++;
	}
	if(ans==3){
		cout<<"Three"<<endl;
	}
	else{
		cout<<"Four"<<endl;
	}
	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:47:18: error: expected '}' at end of input
   47 |         return 0;
      |                  ^
a.cc:7:11: note: to match this '{'
    7 | int main(){
      |           ^
Language: C++

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

int main() {
  int modev = 0, N;
  cin >> N;

  vector<strings> vec(N);
  for (int i = 0; i < N; i++) {
    cin >> vec.at(i);
  }
  for (int i = 0; i < N; i++) {
    if (vec.at(i) == "Y") {
      modev++;
      break;
    }
  }
  if (mode = 1) {
    cout << "Four" << endl;

  }
  else {
    cout << "Three" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'strings' was not declared in this scope; did you mean 'stdin'?
    8 |   vector<strings> vec(N);
      |          ^~~~~~~
      |          stdin
a.cc:8:17: error: template argument 1 is invalid
    8 |   vector<strings> vec(N);
      |                 ^
a.cc:8:17: error: template argument 2 is invalid
a.cc:10:16: error: request for member 'at' in 'vec', which is of non-class type 'int'
   10 |     cin >> vec.at(i);
      |                ^~
a.cc:13:13: error: request for member 'at' in 'vec', which is of non-class type 'int'
   13 |     if (vec.at(i) == "Y") {
      |             ^~
a.cc:18:7: error: 'mode' was not declared in this scope; did you mean 'modev'?
   18 |   if (mode = 1) {
      |       ^~~~
      |       modev
Language: C++

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

int main() {
  int mode = 0, N;
  cin >> N;

  vector<char> vec(N);
  for (int i = 0; i < N; i++) {
    cin >> vec.at(i);
  }
  for (int i = 0; i < N; i++) {
    if (vec.at(i) == "Y") {
      mode = 1;
      break;
    } else {}
  }
  if (mode = 1) {
    cout << "Four" << endl;
    
  } else {
    cout << "Three" << endl;
  }
}


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

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

int main() {
  cin >> N;

  vector<string> vec(N);
  for (int i = 0; i < N; i++) {
    cin >> vec.at(i);
  }
  for (int i = 0; i < N; i++) {
    if (vec.at(i) == "Y") {
      cout << "Four" << endl;
      break;
    } else {}
  }
}


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'N' was not declared in this scope
    5 |   cin >> N;
      |          ^
a.cc:8:12: error: 'color' was not declared in this scope
    8 |     cin >> color;
      |            ^~~~~
a.cc:16:2: 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;
 
int main() {

    int N;
    cin >> N;
  
    int i = 0;
    while (i<N){
      string a;
      cin >> a;
      if(a=="Y"){
        cout << "Four" << endl;
        A=1;
        i=N+1;
      }
      i++;
  }
  if(i==N){
	cout << "Tree" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'A' was not declared in this scope
   15 |         A=1;
      |         ^
Language: C++

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

int main(){
  int N;
  cin>>N;
  vector<int> A(N);
  for(int i=0;i<N;i++){
cin>>A.at(i);
  }
  char B='Y'
for(int i=0;i<N;i++){
   if(A.at(i)==B){
     cout<<"Four"<<endl;
  break;
   }
  if(i==N-1){
    cout<<"Three"<<endl;
  }
}
}
     

Compiler output:
a.cc: In function 'int main()':
a.cc:12:1: error: expected ',' or ';' before 'for'
   12 | for(int i=0;i<N;i++){
      | ^~~
a.cc:12:13: error: 'i' was not declared in this scope
   12 | for(int i=0;i<N;i++){
      |             ^
Language: C++

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

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

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

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

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

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

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

int main() {
  int N;
  int i,l = 0;
  string S;
  cin >> N;
  while(i < N){
    cin >> S.at(i);
    if(S.at(i) == "Y"){
        l = 1;
      }
    i++;
  }
  
  if(l == 0){
    cout << "Three" << endl;
  }
  else{
    cout << "Four" <<endl;
  }
  
  
}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:4: error: expected primary-expression before '}' token
   14 |    }
      |    ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

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

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

#include<bits/stdc++.h>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |       if(s[i]=="Y"){
a.cc:12:23: error: 'Four' was not declared in this scope
   12 |                 cout<<Four<<endl;
      |                       ^~~~
a.cc:15:12: error: 'Three' was not declared in this scope
   15 |      cout<<Three<<endl;
      |            ^~~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

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

Compiler output:
a.cc:6:6: error: expected primary-expression before 'int'
    6 |      int N;
      |      ^~~
a.cc:5:12: error: expected ']' before 'int'
    5 | int main()[
      |            ^
      |            ]
    6 |      int N;
      |      ~~~    
a.cc:8:6: error: 'cin' does not name a type
    8 |      cin>>N>>s;
      |      ^~~
a.cc:10:4: error: expected unqualified-id before 'for'
   10 |    for(int i=0;i<N;i++){
      |    ^~~
a.cc:10:16: error: 'i' does not name a type
   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:18:3: error: expected unqualified-id before ']' token
   18 |   ]
      |   ^
Language: C++

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'Si' was not declared in this scope; did you mean 'i'?
    8 |     cin >> Si;
      |            ^~
      |            i
Language: C++

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: 'N' was not declared in this scope
    5 |   for(int i=0; i<N; i++;){
      |                  ^
a.cc:5:24: error: expected ')' before ';' token
    5 |   for(int i=0; i<N; i++;){
      |      ~                 ^
      |                        )
a.cc:5:25: error: expected primary-expression before ')' token
    5 |   for(int i=0; i<N; i++;){
      |                         ^
Language: C++

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

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

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

int main() {
  int N;
  cin >> N;
  for (i = 0; i < N; i++) {
   string P, W, G, Y;
    cin 
  }
    if ( x =
    

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'i' was not declared in this scope
    7 |   for (i = 0; i < N; i++) {
      |        ^
a.cc:9:8: error: expected ';' before '}' token
    9 |     cin
      |        ^
      |        ;
   10 |   }
      |   ~     
a.cc:11:10: error: 'x' was not declared in this scope
   11 |     if ( x =
      |          ^
a.cc:11:13: error: expected primary-expression at end of input
   11 |     if ( x =
      |             ^
a.cc:11:13: error: expected ')' at end of input
   11 |     if ( x =
      |        ~    ^
      |             )
a.cc:11:13: error: expected statement at end of input
a.cc:11:13: error: expected '}' at end of input
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  int n;
  vector<char>data(n);
  for(int i = 0;i < n;i++){
    cin >> data.at(i);
    if(data.at(i) == 'Y'){
      cout << "Four" << endl;
      break;
    }
    if(i == n-1){
      cout << "Three" << edl;
      break;
    }
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:26: error: 'edl' was not declared in this scope
   14 |       cout << "Three" << edl;
      |                          ^~~
Language: C++

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

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

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

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

int main(){
  int N;
  cin >>N;
  vector<int>vec(N);
  int yellow =0;
  for(int i=0;i<N;i++){
    cin >>vec.at(i);
    if(vec.at(i)==Y){
      yellow++;
    }
  }
  if(yellow>0){
    cout << "Four" <<endl;
  }else{
    cout << "Three" <<endl;
  }
}
  
  
    

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

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

int main(){
  int N;
  cin >>N;
  vector<int>vec(N);
  int yellow =0;
  for(int i=0;i<N;i++){
    cin >>vec.at(i);
    if(vec.at(i)==Y){
      yellow++
    }
  }
  if(yellow>0){
    cout << "Four" <<endl;
  }else{
    cout << "Three" <<endl;
  }
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: 'Y' was not declared in this scope
   11 |     if(vec.at(i)==Y){
      |                   ^
a.cc:12:15: error: expected ';' before '}' token
   12 |       yellow++
      |               ^
      |               ;
   13 |     }
      |     ~
Language: C++

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: expected '(' before 'else'
   14 |     if else ( A == "W" ) {
      |        ^~~~
      |        (
a.cc:17:8: error: expected '(' before 'else'
   17 |     if else ( A == "G" ) {
      |        ^~~~
      |        (
a.cc:20:8: error: expected '(' before 'else'
   20 |     if else ( A == "Y" ) {
      |        ^~~~
      |        (
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: 'G' was not declared in this scope
   11 |     if ( A == G ) {
      |               ^
a.cc:14:8: error: expected '(' before 'else'
   14 |     if else ( A == W ) {
      |        ^~~~
      |        (
a.cc:17:8: error: expected '(' before 'else'
   17 |     if else ( A == G ) {
      |        ^~~~
      |        (
a.cc:20:8: error: expected '(' before 'else'
   20 |     if else ( A == Y ) {
      |        ^~~~
      |        (
Language: C++

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

int main(){
    int N;
    cin >> N;
    bool isfour = false;
    for(int i = 0; i < N; i++){
        cin >> S;
        if(S == 'Y'){
            isfour = true;
        }
    }
    if(isfour){
        cout << "Four" << endl;
    }
    else{
        cout << "Three" << endl;
    }
}

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

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

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

 







Compiler output:
a.cc: In function 'int main()':
a.cc:18:5: error: break statement not within loop or switch
   18 |     break ;
      |     ^~~~~
Language: C++

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

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

 






Compiler output:
a.cc: In function 'int main()':
a.cc:15:10: error: 'j' was not declared in this scope
   15 |     if ( j>0 ) {
      |          ^
a.cc:17:5: error: break statement not within loop or switch
   17 |     break ;
      |     ^~~~~
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{
      cout << "Three" << endl;
    }
    }
}
    

 




Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: expected primary-expression before 'break'
   12 |       break ;
      |       ^~~~~
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{
      cout << "Three" << endl;
    }
    }
}
    

 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: expected ')' before ';' token
    7 |   for (int i=0; i<N ; i++;){
      |       ~                  ^
      |                          )
a.cc:7:27: error: expected primary-expression before ')' token
    7 |   for (int i=0; i<N ; i++;){
      |                           ^
a.cc: At global scope:
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:21: error: 'n' was not declared in this scope
   15 |       else if (i == n - 1) cout << "Three" << endl;
      |                     ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int mani()':
a.cc:26:1: warning: no return statement in function returning non-void [-Wreturn-type]
   26 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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

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

Compiler output:
a.cc: In function 'int mani()':
a.cc:14:10: error: expected ';' before '}' token
   14 |       S++
      |          ^
      |          ;
   15 |     }
      |     ~     
a.cc:26:1: warning: no return statement in function returning non-void [-Wreturn-type]
   26 | }
      | ^
Language: C++

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

int main() {
  int N;
  cin >> N;
  int p,y,w,g;
  p = 0;
  y = 0;
  w = 0;
  g = 0;
  
  for (int i = 0; i < N; i++){
    string x;
    cin >> x;
          
    if (x == "P") p = 1;
    else if (x == "Y") y = 2;
    else if (x == "W") w = 4;
    else g = 8;
  }
  int sum = p + y + w + g;
  if (sum ==15) cout << Four << endl;
  if (sum == 7 || sum == 14 || sum == 13 || sum == 11) cout << Three << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:23:25: error: 'Four' was not declared in this scope
   23 |   if (sum ==15) cout << Four << endl;
      |                         ^~~~
a.cc:24:64: error: 'Three' was not declared in this scope
   24 |   if (sum == 7 || sum == 14 || sum == 13 || sum == 11) cout << Three << endl;
      |                                                                ^~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   11 |     if (s = "Y"){
      |             ^~~
      |             |
      |             const char*
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: expected ';' before '<' token
    8 |   for (int i = 0, i < N, i++){
      |                    ^~
      |                    ;
a.cc:8:21: error: expected primary-expression before '<' token
    8 |   for (int i = 0, i < N, i++){
      |                     ^
a.cc:8:29: error: expected ';' before ')' token
    8 |   for (int i = 0, i < N, i++){
      |                             ^
      |                             ;
a.cc:11:13: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   11 |     if (s = "Y"){
      |             ^~~
      |             |
      |             const char*
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: expected ';' before '<' token
    8 |   for (int i = 0, i < N, i++){
      |                    ^~
      |                    ;
a.cc:8:21: error: expected primary-expression before '<' token
    8 |   for (int i = 0, i < N, i++){
      |                     ^
a.cc:8:29: error: expected ';' before ')' token
    8 |   for (int i = 0, i < N, i++){
      |                             ^
      |                             ;
a.cc:11:13: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   11 |     if (s = "Y"){
      |             ^~~
      |             |
      |             const char*
a.cc:12:17: error: expected ';' before 'cout'
   12 |     ans = "four"
      |                 ^
      |                 ;
   13 |     cout << ans << endl;
      |     ~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: expected ';' before ')' token
    9 |   for (i = 0, i<N, i++){
      |                       ^
      |                       ;
a.cc:20:1: error: expected primary-expression before '}' token
   20 | }
      | ^
a.cc:18:4: error: expected ';' before '}' token
   18 |   }
      |    ^
      |    ;
   19 | 
   20 | }
      | ~   
a.cc:20:1: error: expected primary-expression before '}' token
   20 | }
      | ^
a.cc:18:4: error: expected ')' before '}' token
   18 |   }
      |    ^
      |    )
   19 | 
   20 | }
      | ~   
a.cc:9:7: note: to match this '('
    9 |   for (i = 0, i<N, i++){
      |       ^
a.cc:20:1: error: expected primary-expression before '}' token
   20 | }
      | ^
Language: C++

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

int main() {
  string ans = "Three";
  int i;
  int N;
  cin >> N;
  for (i = 0, i<N){
    char s;
    cin >> s;
    if (s = "Y"){
    ans = "four"
    cout << ans << endl;
      break;
    }
  cout << ans << endl;
  }
 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected ';' before ')' token
    9 |   for (i = 0, i<N){
      |                  ^
      |                  ;
a.cc:20:1: error: expected primary-expression before '}' token
   20 | }
      | ^
a.cc:18:4: error: expected ';' before '}' token
   18 |   }
      |    ^
      |    ;
   19 | 
   20 | }
      | ~   
a.cc:20:1: error: expected primary-expression before '}' token
   20 | }
      | ^
a.cc:18:4: error: expected ')' before '}' token
   18 |   }
      |    ^
      |    )
   19 | 
   20 | }
      | ~   
a.cc:9:7: note: to match this '('
    9 |   for (i = 0, i<N){
      |       ^
a.cc:20:1: error: expected primary-expression before '}' token
   20 | }
      | ^
Language: C++

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

int main() {
  string ans = "Three";
  int N;
  cin >> N;
  for (i = 0, i<N){
    char s;
    cin >> s;
    if (s = "Y"){
    ans = "four"
    cout << ans << endl;
    }
  cout << ans << 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){
      |        ^
a.cc:18:1: error: expected primary-expression before '}' token
   18 | }
      | ^
a.cc:16:4: error: expected ';' before '}' token
   16 |   }
      |    ^
      |    ;
   17 | 
   18 | }
      | ~   
a.cc:18:1: error: expected primary-expression before '}' token
   18 | }
      | ^
a.cc:16:4: error: expected ')' before '}' token
   16 |   }
      |    ^
      |    )
   17 | 
   18 | }
      | ~   
a.cc:8:7: note: to match this '('
    8 |   for (i = 0, i<N){
      |       ^
a.cc:18:1: error: expected primary-expression before '}' token
   18 | }
      | ^
Language: C++

#include <iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main(){
  int i,n;
  char s;
  cin>>n;
  
  for(i=0;i<n;i++){
    cin>>s;
    if(s=='Y'){
       else cout<<"Four"<<endl;
    return 0;
     // break;
    }
  }
    cout<<"Three"<<endl;
 
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:13:8: error: expected '}' before 'else'
   13 |        else cout<<"Four"<<endl;
      |        ^~~~
a.cc:12:15: note: to match this '{'
   12 |     if(s=='Y'){
      |               ^
a.cc: At global scope:
a.cc:18:5: error: 'cout' does not name a type
   18 |     cout<<"Three"<<endl;
      |     ^~~~
a.cc:20:3: error: expected declaration before '}' token
   20 |   }
      |   ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  int i,n;
  char s;
  cin>>n;
  
  for(i=0;i<n;i++){
    cin>>s;
    if(s=="Y"){
      cout<<"Four"<<endl;
      break;
    }
    if(i==n-1) cout<<"Three"<<endl;
    return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if(s=="Y"){
      |        ~^~~~~
a.cc:16:4: error: expected '}' at end of input
   16 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <iostream>
using nanespace std;
int main(){
  int i,n;
  char s;
  cin<<n;
  
  for(i=0;i<n;i++){
    cin<<s;
    if(s=="Y"){
      cout>>"Four">>endl;
      break;
    }
    if(i==n-1) cout>>"Three">>endl;
    return 0;
  }

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'nanespace'
    2 | using nanespace std;
      |       ^~~~~~~~~
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 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:10:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if(s=="Y"){
      |        ~^~~~~
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:21: 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/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:14:16: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |     if(i==n-1) 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:14:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |     if(i==n-1) cout>>"Three">>endl;
      |                               ^~~~
      |                               std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:16:4: error: expected '}' at end of input
   16 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <iostream>
using nanespace std::
int main(){
  int i,n;
  char s;
  cin<<n;
  
  for(i=0;i<n;i++){
    cin<<s;
    if(s=="Y"){
      cout>>"Four">>endl;
      break;
    }
    if(i==n-1) cout>>"Three">>endl;
    return 0;
  }

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'nanespace'
    2 | using nanespace std::
      |       ^~~~~~~~~
Language: C++

#include <iostream>
int main(){
  int i,n;
  char s;
  cin<<n;
  
  for(i=0;i<n;i++){
    cin<<s;
    if(s=="Y"){
      cout>>"Four">>endl;
      break;
    }
    if(i==n-1) cout>>"Three">>endl;
    return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin<<n;
      |   ^~~
      |   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:9:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(s=="Y"){
      |        ~^~~~~
a.cc:10:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |       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:10:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |       cout>>"Four">>endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:13:16: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     if(i==n-1) 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:13:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |     if(i==n-1) cout>>"Three">>endl;
      |                               ^~~~
      |                               std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:15:4: error: expected '}' at end of input
   15 |   }
      |    ^
a.cc:2:11: note: to match this '{'
    2 | int main(){
      |           ^
Language: C++

#include <iostream>
int main(){
  int i,n;
  char s;
  cin>>n;
  
  for(i=0;i<n;i++){
    cin>>s;
    if(s=="Y"){
      cout<<"Four"<<endl;
      break;
    }
    if(i==n-1) cout<<"Three"<<endl;
    return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>n;
      |   ^~~
      |   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:9:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(s=="Y"){
      |        ~^~~~~
a.cc:10:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |       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:10:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |       cout<<"Four"<<endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:13:16: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     if(i==n-1) 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:13:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |     if(i==n-1) cout<<"Three"<<endl;
      |                               ^~~~
      |                               std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:15:4: error: expected '}' at end of input
   15 |   }
      |    ^
a.cc:2:11: note: to match this '{'
    2 | int main(){
      |           ^
Language: C++

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

int main() {
int n;
  cin>>n;
  int sum=0;
  for(int i=0;i<n;i++){
string s;
    cin>>s;
if(s=="Y"){
  sum+=1;
}
    if(0<sum){
      cout<<"Four"<<endl;
    }
    else{
      cout<<"Three"<<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;
  string S;
  cin >> N;
  for (int i=0; i < N; i++) {
    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:11: 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>
Language: C++

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

int main() {
  int N;
  string S;
  cin >> N;
  for (int i=0; i < N; i++) {
    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:12: 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>
Language: C++

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

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


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

#include <bits/stdc++.h>
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;
      
    }
    else if (i < N-1)
      continue;
    
    else
      cout << "Three" << endl;
    
    
    
  
  
  
    
  
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:32:4: error: expected '}' at end of input
   32 |   }
      |    ^
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 a;
    cin >> a;
    
    if(a == "Y"){
    cout << "Four" << endl;
      
      break;
      
    }
    else if (i < N-1)
      continue;
    
    else
      cout << "Three" << endl;
    
    
    
  
  
  
  
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:31:4: error: expected '}' at end of input
   31 |   }
      |    ^
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 a;
    cin >> a;
    
    if(a == "Y"){
    cout << "Four" << endl;
      
      break;
      
    }
    else if (i < N-1)
      continue;
    
    else
    
    cout << "Three" << endl;
    
    
    
  
  
  
  
  }


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

#include<bits/stdc++.h>
#include<algorithm>
using namespace std;
#define str string
#define rep(x,y) for(int i=x;i<y;i++)
#define REP(x,y) for(int j=x;j<y;j++)
#define all(x) x.begin(),x.end()
int main(){
  int A,B,C,D=0;
  str N;
  cin>>A;
  vector<int>S(A);
  rep(0,A)cin>>a.at(i);
  rep(0,A)if(S.at(i)=='Y')D+=1;
  if(D>0)cout<<"Four"<<endl;
  else cout<<"Three"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: 'a' was not declared in this scope
   13 |   rep(0,A)cin>>a.at(i);
      |                ^
Language: C++

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

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

    

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:19:29: error: expected '}' at end of input
   19 |     cout << "Three" << endl;
      |                             ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:19:28: error: expected '}' at end of input
   19 |     cout << "Four" << endl;
      |                            ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^