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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(S[i]=="Y")cout<< "Four";
      |        ~~~~^~~~~
a.cc:13:5: error: 'else' without a previous 'if'
   13 |     else cout<< "Three";
      |     ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before 'if'
   10 |     cin >> S[i]
      |                ^
      |                ;
   11 |     if(S[i]=="Y")cout<< "Four";
      |     ~~          
a.cc:12:5: error: 'else' without a previous 'if'
   12 |     else cout<< "Three";
      |     ^~~~
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";
    else cout<< "Three";
    break;
  }
}


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")cout<< "Four";
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'srting' was not declared in this scope
    6 |   srting S;
      |   ^~~~~~
a.cc:7:13: error: 'S' was not declared in this scope
    7 |   cin>> N >>S;
      |             ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: invalid types 'char[int]' for array subscript
   10 |     if(S[i]=="Y")cout<< "Four";
      |         ^
a.cc:12:5: error: 'else' without a previous 'if'
   12 |     else cout<< "Three";
      |     ^~~~
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";
    break;
    else cout<< "Three";
  }
}


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")cout<< "Four";
a.cc:12:5: error: 'else' without a previous 'if'
   12 |     else cout<< "Three";
      |     ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'srting' was not declared in this scope
    6 |   srting S;
      |   ^~~~~~
a.cc:7:13: error: 'S' was not declared in this scope
    7 |   cin>> N >>S;
      |             ^
a.cc:12:5: error: 'else' without a previous 'if'
   12 |     else cout<< "Three";
      |     ^~~~
Language: C

# include < cstdio >
int N ;
char c ;
int main ()
{
scanf ("% d " ,& N );
bool flag = false ;
for ( int i =0; i < N ; i ++)
{
scanf ("% c " ,& c );
if ( c == ’Y ’) flag = true ;
}
if ( flag ) puts (" Four ");
else puts (" Three ");
}

Compiler output:
main.c:1:11: fatal error:  cstdio : No such file or directory
    1 | # include < cstdio >
      |           ^~~~~~~~~~
compilation terminated.
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;
  int j = 0;
  string s;
  
  cin >> N;
  cin >> s;
  
  rep(i, N){
  	if (s[i] == "Y") j++;
  }
  
  if(j > 1){
  	cout << "four" << endl;
  } else {
  	cout << "three" << endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |         if (s[i] == "Y") j++;
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;
  int i;
  int j = 0;
  string s;
  
  cin >> N;
  cin >> s;
  
  rep(i, N){
  	if (s[i] == Y) j++;
  }
  
  if(j > 1){
  	cout << "four" << endl;
  } else {
  	cout << "three" << endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:21: error: 'Y' was not declared in this scope
   15 |         if (s[i] == Y) j++;
      |                     ^
Language: C++

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

int mail(){
  int n;
  cin >> n;
  
  for(int i = 0; i < n; i++){
  int c;
  cin >> c;
  
  int P=0; W=0; G=0; Y=0;
    if(c == "P"){
      P == 1;
    }
    
    if(c == "W"){
      W == 1;
    }
    
    if(c == "G"){
      G == 1;
    }
    
    if(c == "Y"){
      Y == 1;
    }
    
  num = P+W+G+Y;
  if(num==3){
    cout << "Three" << endl;
  }
  if(num==4){
    cout << "Four" << endl;
  }
  }
}


Compiler output:
a.cc: In function 'int mail()':
a.cc:12:12: error: 'W' was not declared in this scope
   12 |   int P=0; W=0; G=0; Y=0;
      |            ^
a.cc:12:17: error: 'G' was not declared in this scope
   12 |   int P=0; W=0; G=0; Y=0;
      |                 ^
a.cc:12:22: error: 'Y' was not declared in this scope
   12 |   int P=0; W=0; G=0; Y=0;
      |                      ^
a.cc:13:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |     if(c == "P"){
      |        ~~^~~~~~
a.cc:17:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |     if(c == "W"){
      |        ~~^~~~~~
a.cc:21:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |     if(c == "G"){
      |        ~~^~~~~~
a.cc:25:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   25 |     if(c == "Y"){
      |        ~~^~~~~~
a.cc:29:3: error: 'num' was not declared in this scope; did you mean 'enum'?
   29 |   num = P+W+G+Y;
      |   ^~~
      |   enum
a.cc:37:1: warning: no return statement in function returning non-void [-Wreturn-type]
   37 | }
      | ^
Language: C++

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

int mail(){
  int n;
  cin >> n;
  
  for(int i = 0; i < n; i++){
  int c;
  cin >> c;
  
  int P==0; W==0; G==0; Y==0;
    if(c == "P"){
      P == 1;
    }
    
    if(c == "W"){
      W == 1;
    }
    
    if(c == "G"){
      G == 1;
    }
    
    if(c == "Y"){
      Y == 1;
    }
    
  num = P+W+G+Y;
  if(num==3){
    cout << "Three" << endl;
  }
  if(num==4){
    cout << "Four" << endl;
  }
  }
}


Compiler output:
a.cc: In function 'int mail()':
a.cc:12:8: error: expected initializer before '==' token
   12 |   int P==0; W==0; G==0; Y==0;
      |        ^~
a.cc:12:13: error: 'W' was not declared in this scope
   12 |   int P==0; W==0; G==0; Y==0;
      |             ^
a.cc:12:19: error: 'G' was not declared in this scope
   12 |   int P==0; W==0; G==0; Y==0;
      |                   ^
a.cc:12:25: error: 'Y' was not declared in this scope
   12 |   int P==0; W==0; G==0; Y==0;
      |                         ^
a.cc:13:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |     if(c == "P"){
      |        ~~^~~~~~
a.cc:14:7: error: 'P' was not declared in this scope
   14 |       P == 1;
      |       ^
a.cc:17:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |     if(c == "W"){
      |        ~~^~~~~~
a.cc:21:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |     if(c == "G"){
      |        ~~^~~~~~
a.cc:25:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   25 |     if(c == "Y"){
      |        ~~^~~~~~
a.cc:29:3: error: 'num' was not declared in this scope; did you mean 'enum'?
   29 |   num = P+W+G+Y;
      |   ^~~
      |   enum
a.cc:29:9: error: 'P' was not declared in this scope
   29 |   num = P+W+G+Y;
      |         ^
a.cc:37:1: warning: no return statement in function returning non-void [-Wreturn-type]
   37 | }
      | ^
Language: C++

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

int mail(){
  int n;
  cin >> n;
  
  for(int i = 0; i < n; i++){
  int c;
  cin >> c;
  
  int P,W,G,Y == 0;
    if(c == "P"){
      P == 1;
    }
    
    if(c == "W"){
      W == 1;
    }
    
    if(c == "G"){
      G == 1;
    }
    
    if(c == "Y"){
      Y == 1;
    }
    
  num = P+W+G+Y;
  if(num==3){
    cout << "Three" << endl;
  }
  if(num==4){
    cout << "Four" << endl;
  }
  }
}


Compiler output:
a.cc: In function 'int mail()':
a.cc:12:15: error: expected initializer before '==' token
   12 |   int P,W,G,Y == 0;
      |               ^~
a.cc:13:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |     if(c == "P"){
      |        ~~^~~~~~
a.cc:17:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |     if(c == "W"){
      |        ~~^~~~~~
a.cc:21:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |     if(c == "G"){
      |        ~~^~~~~~
a.cc:25:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   25 |     if(c == "Y"){
      |        ~~^~~~~~
a.cc:26:7: error: 'Y' was not declared in this scope
   26 |       Y == 1;
      |       ^
a.cc:29:3: error: 'num' was not declared in this scope; did you mean 'enum'?
   29 |   num = P+W+G+Y;
      |   ^~~
      |   enum
a.cc:29:15: error: 'Y' was not declared in this scope
   29 |   num = P+W+G+Y;
      |               ^
a.cc:37:1: warning: no return statement in function returning non-void [-Wreturn-type]
   37 | }
      | ^
Language: C++

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

Compiler output:
a.cc:16:3: error: expected unqualified-id before 'if'
   16 |   if(p>0 && w>0 && g>0 && y>0) cout << "Four" << endl; else cout << "Three" << endl;
      |   ^~
a.cc:16:56: error: expected unqualified-id before 'else'
   16 |   if(p>0 && w>0 && g>0 && y>0) cout << "Four" << endl; else cout << "Three" << endl;
      |                                                        ^~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

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

Compiler output:
a.cc:16:3: error: expected unqualified-id before 'if'
   16 |   if(p>0 && w>0 && g>0 && y>0) cout << "Four" << endl;; else cout << "Three" << endl;
      |   ^~
a.cc:16:57: error: expected unqualified-id before 'else'
   16 |   if(p>0 && w>0 && g>0 && y>0) cout << "Four" << endl;; else cout << "Three" << endl;
      |                                                         ^~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

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

int main(){

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

  cin >> S(i);
  if (S(i)=="Y"){
    break;
    cout << "Four" << endl;
  }else{
    cout << "Three" << endl;
  }
}
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: no match for call to '(std::vector<char>) (int&)'
   13 |   cin >> S(i);
      |          ~^~~
a.cc:14:8: error: no match for call to '(std::vector<char>) (int&)'
   14 |   if (S(i)=="Y"){
      |       ~^~~
Language: C++

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

int main(){

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

  cin >> S(i);
  if (S(i)=="Y"){
    break;
    cout << "Four" << endl;
  }else{
    cout << "Three" << endl;
  }
}
  
}

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

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

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

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

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

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: 'False' was not declared in this scope
    8 |   bool judge = False;
      |                ^~~~~
a.cc:10:29: error: expected ';' before ')' token
   10 |   for (int i = 0; i < N, i++) {
      |                             ^
      |                             ;
a.cc:13:15: error: 'True' was not declared in this scope
   13 |       judge = True;
      |               ^~~~
a.cc:17:16: error: 'True' was not declared in this scope
   17 |   if (judge == True) {
      |                ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
  int n,p=1,w=1,g=1,y=1;
  char q;
  cin >> n;
  for(int j = 0 ; j < n ; j++ ){
    cin >> q;
    switch(q){
        case 'P':
        	p=0;
        	break;
        case 'W' :
        	w=0;
        	break;
        case 'G' :
        	g=0;
        	break;
        case 'Y' :
        	y=0;
        	break;
        default :
        	break;
    }
   }
  if( 4-w-p-g-y == 3 )
    {
  cout << "Three" ;
    }else{
    cout << "Four" ;
  	
  return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:34:3: error: expected '}' at end of input
   34 |  }
      |   ^
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;
  for(int i=0;i<N;i++){
    char A;
    cin>>A;
    char c='Y';
    if(A==c){
      cout<<"Four"<<endl;
      break;
    }
  }
   if(A!=c){
     cout<<"Three"<<endl;
   }


}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:7: error: 'A' was not declared in this scope
   16 |    if(A!=c){
      |       ^
a.cc:16:10: error: 'c' was not declared in this scope
   16 |    if(A!=c){
      |          ^
Language: C++

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


}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: 'Y' was not declared in this scope
   11 |     if(A==Y){
      |           ^
a.cc:16:7: error: 'A' was not declared in this scope
   16 |    if(A!=Y){
      |       ^
a.cc:16:10: error: 'Y' was not declared in this scope
   16 |    if(A!=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;
    cin>>A;
    char Y;
    if(A==Y){
      cout<<"Four"<<endl;
      break;
    }
  }
   if(A!=Y){
     cout<<"Three"<<endl;
   }


}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:7: error: 'A' was not declared in this scope
   16 |    if(A!=Y){
      |       ^
a.cc:16:10: error: 'Y' was not declared in this scope
   16 |    if(A!=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;
    cin>>A;
    if(A==Y){
      cout<<Four<<endl;
      break;
    }
  }
   if(A!=Y){
     cout<<"Three"<<endl;
   }


}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 'Y' was not declared in this scope
   10 |     if(A==Y){
      |           ^
a.cc:11:13: error: 'Four' was not declared in this scope
   11 |       cout<<Four<<endl;
      |             ^~~~
a.cc:15:7: error: 'A' was not declared in this scope
   15 |    if(A!=Y){
      |       ^
a.cc:15:10: error: 'Y' was not declared in this scope
   15 |    if(A!=Y){
      |          ^
Language: C++

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

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


Compiler output:
a.cc:4:17: error: 'atcoder' is not a namespace-name
    4 | using namespace atcoder;
      |                 ^~~~~~~
Language: C++

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

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


Compiler output:
a.cc:2:9: fatal error: atcoder/all: No such file or directory
    2 | #include<atcoder/all>
      |         ^~~~~~~~~~~~~
compilation terminated.
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:4: error: 's' 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 ;
for(int i=0; i<N;i++){
string s;
cin >> s  ;
}
if("Y"== s){
cout << "Four" << endl;
}
else{
cout <<"Three"<<endl;
}
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:4: error: 's' 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 ;
for(int i=0; i<N;i++){
string s;
cin >> s >> ;
if(s== "Y"){
cout << "Four" << endl;
}
cout <<"Three"<<endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: expected primary-expression before ';' token
    9 | cin >> s >> ;
      |             ^
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;
}
cout <<"Three"<<endl;
}
}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected primary-expression before ';' token
    9 | cin >> s >>;
      |            ^
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:3:11: 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 s;
cin >> s >>;
if(s==Y){
cout << "Four" << endl;
}
cout <<"Three"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected primary-expression before ';' token
    9 | cin >> s >>;
      |            ^
a.cc:10:7: error: 'Y' was not declared in this scope
   10 | if(s==Y){
      |       ^
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

Compiler output:
a.cc:23:1: error: expected declaration before '}' token
   23 | }
      | ^
Language: C++

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

Compiler output:
a.cc:23:1: error: expected declaration before '}' token
   23 | }
      | ^
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <set>
using namespace std;
int main(){
    int N;
    cin >> N;
    set<char> s;
    for(int i = 0; i < N; i++){
        char S;
        cin >> S;
        s.insert(S);
    }
    int n = S.size();
  	if(n == 3) cout << "Three" << endl;
  	else cout << "Four" << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n)for (int i = 0; i< (n); i++)
using ll = long long;
using P = pair<int, int>;
int main()
{
    int n;
    string ans = "Three"
    rep(i,n){
        char c;
        cin >> c;
        if(c == "Y") ans = "Four";
    }
    cout << ans << endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:17: error: expected ',' or ';' before 'for'
    3 | #define rep(i,n)for (int i = 0; i< (n); i++)
      |                 ^~~
a.cc:10:5: note: in expansion of macro 'rep'
   10 |     rep(i,n){
      |     ^~~
a.cc:10:9: error: 'i' was not declared in this scope
   10 |     rep(i,n){
      |         ^
a.cc:3:33: note: in definition of macro 'rep'
    3 | #define rep(i,n)for (int i = 0; i< (n); i++)
      |                                 ^
Language: C++

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

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: could not convert 'si.std::__cxx11::basic_string<char>::operator=(((const char*)"Y"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   13 |       if (si="Y")
      |           ~~^~~~
      |             |
      |             std::__cxx11::basic_string<char>
Language: C++

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

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

}

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

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

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

}

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

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

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: expected unqualified-id before ';' token
    5 |   int N, ;
      |          ^
a.cc:12:14: error: 'Y' was not declared in this scope
   12 |       if (si=Y)
      |              ^
Language: C++

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

int main(){
    int N;
    cin >> N;
    string s[i];
    int p=0,w=0,g=0,y=0;
    int i;
    for ( i = 0;i<N;i++){
    cin >> s[i];
    if (s[i] == 'p'){
        p++;
    }else if(s[i] == 'w'){
        w++;
    }else if(s[i] == 'g'){
        g++;
    }else if(s[i] == 'y'){
        y++;
    }

}
int ans = 0;
if (p>0){
    ans++;
}else if(w>0){
    ans++;
}else if(g>0){
    ans++;
}else if(y>0){
    ans++;
}

if (ans == 3){
    cout << "Three" << endl;
}else if (ans == 4){
    cout << "Four" << endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: 'i' was not declared in this scope
    7 |     string s[i];
      |              ^
a.cc:11:12: error: 's' was not declared in this scope
   11 |     cin >> s[i];
      |            ^
Language: C++

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

int main(){
    int N;
    cin >> N;
    string s[i];
    int p=0,w=0,g=0,y=0;
    for (int i = 0;i<N;i++){
    cin >> s[i];
    if (s[i] == 'p'){
        p++;
    }else if(s[i] == 'w'){
        w++;
    }else if(s[i] == 'g'){
        g++;
    }else if(s[i] == 'y'){
        y++;
    }

}
int ans = 0;
if (p>0){
    ans++;
}else if(w>0){
    ans++;
}else if(g>0){
    ans++;
}else if(y>0){
    ans++;
}

if (ans == 3){
    cout << "Three" << endl;
}else if (ans == 4){
    cout << "Four" << endl;
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: 'i' was not declared in this scope
    7 |     string s[i];
      |              ^
a.cc:10:12: error: 's' was not declared in this scope
   10 |     cin >> s[i];
      |            ^
Language: C++

int main(){
    int N;
    cin >> N;
    string s;
    int p=0,w=0,g=0,y=0;
    for (int i = 0;i<N;i++){
    cin >> s[i];
    if (s[i] == 'p'){
        p++;
    }else if(s[i] == 'w'){
        w++;
    }else if(s[i] == 'g'){
        g++;
    }else if(s[i] == 'y'){
        y++;
    }

}
int ans;
if (p>0){
    ans++;
}else if(w>0){
    ans++;
}else if(g>0){
    ans++;
}else if(y>0){
    ans++;
}

if (ans == 3){
    cout << "Three" << endl;
}else if (ans == 4){
    cout << "Four" << endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> N;
      |     ^~~
a.cc:4:5: error: 'string' was not declared in this scope
    4 |     string s;
      |     ^~~~~~
a.cc:7:12: error: 's' was not declared in this scope
    7 |     cin >> s[i];
      |            ^
a.cc:31:5: error: 'cout' was not declared in this scope
   31 |     cout << "Three" << endl;
      |     ^~~~
a.cc:31:24: error: 'endl' was not declared in this scope
   31 |     cout << "Three" << endl;
      |                        ^~~~
a.cc:33:5: error: 'cout' was not declared in this scope
   33 |     cout << "Four" << endl;
      |     ^~~~
a.cc:33:23: error: 'endl' was not declared in this scope
   33 |     cout << "Four" << endl;
      |                       ^~~~
Language: C++

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

int main(){
    int N;
    cin >> N;
    string s;
    int p=0,w=0,g=0,y=0;
    for (int i = 0;i<N;i++){
    cin >> s[i];
    if (s[i] == 'p'){
        p++;
    }else if(s[i] == 'w'){
        w++;
    }else if(s[i] == 'g'){
        g++;
    }else if(s[i] == 'y'){
        y++;
    }

}
int ans;
if (p>0){
    ans++;
}else if(w>0){
    ans++;
}else if(g>0){
    ans++;
}else if(y>0){
    ans++;
}

if (ans == 3){
    cout << "Three" << endl;
}else if (ans == 4){
    cout << "Four" << endl;
}


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: expected ';' before '}' token
   13 |       count++
      |              ^
      |              ;
   14 |     }
      |     ~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:27: error: expected '}' at end of input
   18 |   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, S;
  cin >> N;
  for (int i = 0; i < N; i++){
    cin >> S;
    if (S == "Y"){
      cout << "Four" << endl;
    }else{
      cout << "Three" << endl;
    }
  }
}

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

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:7:12: error: 'S' was not declared in this scope
    7 |     cin >> S;
      |            ^
Language: C

#include<stdio.h>
int main()
{
int n,i,sw;
  sw=0;
  scanf("%d",&n);
  char a[n];
  
  for(i=0;i<n;++i)
  {
  scanf("%c",&a[i])
  if(a[i]=='Y') sw++;
  }
if(sw>0) printf("Four");
else printf("Three");

return 0;}

Compiler output:
main.c: In function 'main':
main.c:11:20: error: expected ';' before 'if'
   11 |   scanf("%c",&a[i])
      |                    ^
      |                    ;
   12 |   if(a[i]=='Y') sw++;
      |   ~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: 'i' was not declared in this scope
    7 |  for(i=0;i<n;i++){
      |      ^
a.cc:11:11: error: expected ';' before ':' token
   11 |      break:
      |           ^
      |           ;
a.cc:11:11: error: expected primary-expression before ':' token
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
  int i;
  cin >> i;
  int k=0;
  while(k<i){
    cin >> j;
    if(j=="Y"){
      cout << "Four" << endl;
      k=i;
    }
    else if(k=i){
      cout << "Three" << endl;
    }
    else{
      k++;
    }
  }
}


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

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
  int i;
  cin >> i;
  int k=0;
  while(k<i){
    cin >> j;
    if(j=="Y"){
      cout << "four" << endl;
      k=i;
    }
    else if(k=i){
      cout << "three" << endl;
    }
    else{
      k++;
    }
  }
}


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

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
  int i;
  cin >> i;
  int k=0;
  while(k<i){
    int j;
    cin >> j;
    if(j=="Y"){
      cout << "four" << endl;
      k=i;
    }
    else{
      k++;
    }
  }
}


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

#include <algorithm>
#include <cassert>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;

#define rep(i, n) for(ll i = 0; i < n; i++)
#define REP(i, n) for(ll i = 1; i < n + 1; i++)
#define PI 3.14159265359
#define EPS 0.0000000001
#define MOD 1000000007
//cout << std::fixed << std::setprecision(15) << y << endl;


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

    char S;
    bool if3 = true;
    rep(i, N){
        cin >> S;
        if(S == 'Y'){
            if3 = false;
        }
    }

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

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:38:8: error: 'ife3' was not declared in this scope; did you mean 'if3'?
   38 |     if(ife3){
      |        ^~~~
      |        if3
Language: C++

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

int main() {

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:2: error: expected '}' at end of input
   23 | }
      |  ^
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 c;
    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:11:13: error: expected ';' before 'if'
   11 |     cin >> c
      |             ^
      |             ;
   12 | 
   13 |       if (c == "Y") {
      |       ~~     
a.cc:17:5: error: 'else' without a previous 'if'
   17 |     else if (i == n-1) {
      |     ^~~~
a.cc:23:2: error: expected '}' at end of input
   23 | }
      |  ^
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;
  
  while (int i = 0; i < n ; i++) {
    string c;
    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:9:19: error: expected ')' before ';' token
    9 |   while (int i = 0; i < n ; i++) {
      |         ~         ^
      |                   )
a.cc:9:21: error: 'i' was not declared in this scope
    9 |   while (int i = 0; i < n ; i++) {
      |                     ^
a.cc:23:2: error: expected '}' at end of input
   23 | }
      |  ^
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;
    string ans = "Three";

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

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

#include <bits/stdc++.h>
#include <string.h>
#include <vector>
//s#define rep(i, n) for (int i = 0; i < (n); i++)
#define MAX 10000

using namespace std;

#define ll long long
#define pb push_back
//#define mp make_pair
#define all(a) (a).begin(),(a).end()
#define rep(i,a,n) for(int i=a; i<n; i++)
#define INF (int)1e15
#define MOD 1000000007
//#define N 12
#define sz 1000*1000

 int main(){

     int n; cin>>n;
     set<char>ani;
     for(int i=0;i<n;i++)  {
       cin>>x;
       ani.insert(x); }

       if(ani.size() == 3 ) cout<<"Three"<<endl;
       else if(ani.size() == 4)
            cout<<"Four"<<endl;


  return 0;
 }

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

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

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

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

#include <iostream>
using namespace std;
int main(void){
  int N;
  cin >> N;
  string S = "Four";
  
  for(int i=0; i<N; i++){
    string X;
    cin >> X;
    if(X="Y"){
      S = "Five";
      break;
    }
  cout << S << endl;
}


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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
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;
  bool ans =false;
  for(int i=0; i<N; i++) cin >> S[i];
  for(int i=0; i<N; i++) if(S[i]=='Y') ans = true; 

  if(ans== true;) cout << "Four" << endl;
  else cout << "Three" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: expected primary-expression before ')' token
   10 |   if(ans== true;) cout << "Four" << endl;
      |                 ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: 'n' was not declared in this scope
    7 |     string hasY = n;
      |                   ^
a.cc:12:17: error: 'y' was not declared in this scope
   12 |         hasY == y;
      |                 ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: 'n' was not declared in this scope
    7 |     string hasY = n;
      |                   ^
a.cc:12:17: error: 'y' was not declared in this scope
   12 |         hasY == y;
      |                 ^
a.cc:16:15: error: 'Four' was not declared in this scope
   16 |       cout << Four;
      |               ^~~~
a.cc:18:15: error: 'Three' was not declared in this scope
   18 |       cout << Three;
      |               ^~~~~
Language: C++

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

int main() {
  int N;
  cin >> N;
  int pf, wf, gf, yf, cf;

  for(int n = 0; n < N; n++){
    cin >> S;
    if(S == p){
      if(pf == 0){
        pf = 1;
      }
    }else if(S == w){
      if(wf == 0){
        wf = 1;
      }
    }else if(S == g){
      if(gf == 0){
        gf = 1;
      }
    }else if(S == y){
      if(yf == 0){
        yf = 1;
      }
    }
    cf = pf + wf + gf + yf;
    if(cf == 3){
      cout << "Three";
    }else{
      cout << "Four";
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 'S' was not declared in this scope
   10 |     cin >> S;
      |            ^
a.cc:11:13: error: 'p' was not declared in this scope
   11 |     if(S == p){
      |             ^
a.cc:15:19: error: 'w' was not declared in this scope
   15 |     }else if(S == w){
      |                   ^
a.cc:19:19: error: 'g' was not declared in this scope
   19 |     }else if(S == g){
      |                   ^
a.cc:23:19: error: 'y' was not declared in this scope
   23 |     }else if(S == y){
      |                   ^
Language: C++

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

int main() {
  int N;
  cin >> N;
  int pf, wf, gf, yf, cf

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

    if(S == p){
      if(pf == 0){
        pf = 1;
      }
    }else if(S == w){
      if(wf == 0){
        wf = 1;
      }
    }else if(S == g){
      if(gf == 0){
        gf = 1;
      }
    }else if(S == y){
      if(yf == 0){
        yf = 1;
      }
    }
    cf = pf + wf + gf + yf;
    if(cf == 3){
      cout << "Three";
    }else{
      cout << "Four";
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected initializer before 'for'
    9 |   for(int n = 0; n < N; n++){
      |   ^~~
a.cc:9:18: error: 'n' was not declared in this scope
    9 |   for(int n = 0; n < N; n++){
      |                  ^
Language: C++

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

int main() {
  int N,E;
  cin >> N;
  E=0;
  string A="a";
  string B="b";
  string C="c";
  for(int i=0;i<N;i++) {
    string x;
    cin >> x;
    if(A=="a"||A==x) {
      if(A=="a") {
        E++;
      }
      A=x;
    } else {
      if(B=="b"||B==x) {
        if(B=="b") {
          E++;
        }
        B=x;
      } else {
        if(C=="c"||C==x) {
          if(C=="c") {
            E++;
          }
          C=x;
        } else {
          E++;
          break;
        }
      }
    }
  }
  if(E==3) {
    cout << "Three" << endl;
  } else {
    if(E==4) {
      cout << "Four" << endl;
    }
  }

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

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

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


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

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

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


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