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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if (a == "Y"){
      |         ~~^~~~~~
a.cc:14:12: error: expected ')' before '}' token
   14 |   if (b > 0}{
      |      ~     ^
      |            )
a.cc:14:12: error: expected primary-expression before '}' token
a.cc: At global scope:
a.cc:14:13: error: expected unqualified-id before '{' token
   14 |   if (b > 0}{
      |             ^
a.cc:17:3: error: expected unqualified-id before 'else'
   17 |   else {
      |   ^~~~
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

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

int main() {
  string H;
  int a;
  int b = 0;
  for (int i = 0; i < H.size(); i++){
    a = H.at(i);
    if (a == Y){
      b += 1;
    }
  }
  if (b > 0}{
    cout << Four << endl;
  }
  else {
    cout << Three << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: 'Y' was not declared in this scope
   10 |     if (a == Y){
      |              ^
a.cc:14:12: error: expected ')' before '}' token
   14 |   if (b > 0}{
      |      ~     ^
      |            )
a.cc:14:12: error: expected primary-expression before '}' token
a.cc: At global scope:
a.cc:14:13: error: expected unqualified-id before '{' token
   14 |   if (b > 0}{
      |             ^
a.cc:17:3: error: expected unqualified-id before 'else'
   17 |   else {
      |   ^~~~
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

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

int main() {
  string H;
  int a;
  int b = 0;
  for (int i = 0; i < H.size(); i++){
    a = H.at(i);
    if (H.at(i) == Y){
      b += 1:
    }
  }
  if (b > 0}{
    cout << Four << endl;
  }
  else {
    cout << Three << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: 'Y' was not declared in this scope
   10 |     if (H.at(i) == Y){
      |                    ^
a.cc:11:13: error: expected ';' before ':' token
   11 |       b += 1:
      |             ^
      |             ;
a.cc:14:12: error: expected ')' before '}' token
   14 |   if (b > 0}{
      |      ~     ^
      |            )
a.cc:14:12: error: expected primary-expression before '}' token
a.cc: At global scope:
a.cc:14:13: error: expected unqualified-id before '{' token
   14 |   if (b > 0}{
      |             ^
a.cc:17:3: error: expected unqualified-id before 'else'
   17 |   else {
      |   ^~~~
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

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

int main() {
  string H;
  int a;
  int b = 0;
  for (int i = 0; i < H.size(); i++){
    a = H.at(i);
    if (H(i) == Y){
      b += 1:
    }
  }
  if (b > 0}{
    cout << Four << endl;
  }
  else {
    cout << Three << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int&)'
   10 |     if (H(i) == Y){
      |         ~^~~
a.cc:10:17: error: 'Y' was not declared in this scope
   10 |     if (H(i) == Y){
      |                 ^
a.cc:11:13: error: expected ';' before ':' token
   11 |       b += 1:
      |             ^
      |             ;
a.cc:14:12: error: expected ')' before '}' token
   14 |   if (b > 0}{
      |      ~     ^
      |            )
a.cc:14:12: error: expected primary-expression before '}' token
a.cc: At global scope:
a.cc:14:13: error: expected unqualified-id before '{' token
   14 |   if (b > 0}{
      |             ^
a.cc:17:3: error: expected unqualified-id before 'else'
   17 |   else {
      |   ^~~~
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

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

int main() {
  string H;
  int a;
  int b = 0;
  for (int i = 0; i < H.size; i++){
    a = H.at(i);
    if (H(i) == Y){
      b += 1:
    }
  }
  if (b > 0}{
    cout << Four << endl;
  }
  else {
    cout << Three << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    8 |   for (int i = 0; i < H.size; i++){
      |                       ~~^~~~
      |                             ()
a.cc:10:10: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int&)'
   10 |     if (H(i) == Y){
      |         ~^~~
a.cc:10:17: error: 'Y' was not declared in this scope
   10 |     if (H(i) == Y){
      |                 ^
a.cc:11:13: error: expected ';' before ':' token
   11 |       b += 1:
      |             ^
      |             ;
a.cc:14:12: error: expected ')' before '}' token
   14 |   if (b > 0}{
      |      ~     ^
      |            )
a.cc:14:12: error: expected primary-expression before '}' token
a.cc: At global scope:
a.cc:14:13: error: expected unqualified-id before '{' token
   14 |   if (b > 0}{
      |             ^
a.cc:17:3: error: expected unqualified-id before 'else'
   17 |   else {
      |   ^~~~
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'False' was not declared in this scope
    7 | jud = False;
      |       ^~~~~
a.cc:12:12: error: 'True' was not declared in this scope
   12 |      jud = True;
      |            ^~~~
a.cc:15:12: error: 'True' was not declared in this scope
   15 | if (jud == True){
      |            ^~~~
Language: C++

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

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

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

int main(){
  int n;
  char c;
  bool flag = false;
  cin >> n;
  for(int i=0;i<n;i++){
    cin >> c;
    is(c == 'Y')
      flag = true;
  }
  if(flag) cout<<"Four"<<endl;
  else cout<<"Three"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'is' was not declared in this scope; did you mean 'i'?
   11 |     is(c == 'Y')
      |     ^~
      |     i
Language: C++

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

int main(){
  int n;
  char c;
  bool isY = false;
  cin >> n;
  for(int i=0;i<n;i++){
    cin >> c;
    is(c == 'Y')
      isY =true;
  }
  if(isY) cout<<"Four"<<endl;
  else cout<<"Three"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'is' was not declared in this scope; did you mean 'i'?
   11 |     is(c == 'Y')
      |     ^~
      |     i
Language: C++

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

int main(){
  int n;
  char c;
  bool isY = false;
  cin >> n;
  for(int i=0;i<n;i++){
    cin >> a;
    is(a == 'Y')
      isY =true;
  }
  if(isY) cout<<"Four"<<endl;
  else cout<<"Three"<<endl;
}

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

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

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


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

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

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

Compiler output:
a.cc:1:10: fatal error: bits/c++std.h: No such file or directory
    1 | #include <bits/c++std.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
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;
      return 0;
    }
    
  }
  cout<<"Three"<<endl;
    return 0;
  }


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

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

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> N;
      |   ^~~
a.cc:6:5: error: 'string' was not declared in this scope
    6 |     string s;
      |     ^~~~~~
a.cc:7:10: error: 's' was not declared in this scope
    7 |     cin>>s;
      |          ^
a.cc:9:7: error: 'cout' was not declared in this scope
    9 |       cout<<"Four"<<endl;
      |       ^~~~
a.cc:9:21: error: 'endl' was not declared in this scope
    9 |       cout<<"Four"<<endl;
      |                     ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout<<"Three"<<endl;
      |     ^~~~
a.cc:12:20: error: 'endl' was not declared in this scope
   12 |     cout<<"Three"<<endl;
      |                    ^~~~
a.cc:14:4: error: expected '}' at end of input
   14 |   }
      |    ^
a.cc:1:11: note: to match this '{'
    1 | 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:16:26: error: expected primary-expression before '<<' token
   16 |         cout << "Three"; << endl;
      |                          ^~
Language: C++

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


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

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


Compiler output:
a.cc:13:9: warning: missing terminating " character
   13 |  cout <<"four<<endl;
      |         ^
a.cc:13:9: error: missing terminating " character
   13 |  cout <<"four<<endl;
      |         ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:14:2: error: expected primary-expression before 'break'
   14 |  break; }
      |  ^~~~~
Language: C++

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


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

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: return-statement with no value, in function returning 'int' [-fpermissive]
   14 |             return;
      |             ^~~~~~
a.cc:18:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   18 |     return;
      |     ^~~~~~
Language: C++

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

int main()
{
  int N;
  int P=0,W=0,G=0,Y=0;
  string S;

  cin >> N;
  
  for (int i=0;i<N;i++)
  {
    cin >> S;
    if(S=="P")
      P == 1;
    else if (S=="W")
      W == 1;
    else if (S=="G")
      G == 1;
    else if (S=="Y")
      Y == 1;
  }
  
  if ( P+W+G+Y == 3)
    cout << "Three" << endl;
  else
    coutn << "Four" << endl;
}


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

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

int main() {
 int N;
 string S;
  cin >> N;
  for(n=0;n<N;n++){
    cin >> S;
    if(S=="G"){
      cout << "four";
      n=n+N;
    }
  }
  if(n==N)
    cout << "Three";
}


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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
	int N;
  cin >> N;
  string s;
  int num_P = 0, num_Y = 0, num_G = 0, num_W = 0;
  for (int i = 0; i < N; i++)
  {
  	cin >> s[i];
    if (s[i] == "P") num_P++;
    else if (s[i] == "Y") num_Y++;
    else if (s[i] == "G") num_G++;
    else (s[i] == "W") num_W++;
  }
  if (num_Y > 0) cout << "Four" << endl;
  else 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 (s[i] == "P") num_P++;
a.cc:13:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |     else if (s[i] == "Y") num_Y++;
a.cc:14:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     else if (s[i] == "G") num_G++;
a.cc:15:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     else (s[i] == "W") num_W++;
a.cc:15:23: error: expected ';' before 'num_W'
   15 |     else (s[i] == "W") num_W++;
      |                       ^~~~~~
      |                       ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
	int N;
  string s;
  int num_P = 0, num_Y = 0, num_G = 0, num_W = 0;
  for (int i = 0; i < N; i++)
  {
  	cin >> s[i];
    if (s[i] == "P") num_P++;
    else if (s[i] == "Y") num_Y++;
    else if (s[i] == "G") num_G++;
    else (s[i] == "W") num_W++;
  }
  if (num_Y > 0) cout << "Four" << endl;
  else 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] == "P") num_P++;
a.cc:12:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     else if (s[i] == "Y") num_Y++;
a.cc:13:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |     else if (s[i] == "G") num_G++;
a.cc:14:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     else (s[i] == "W") num_W++;
a.cc:14:23: error: expected ';' before 'num_W'
   14 |     else (s[i] == "W") num_W++;
      |                       ^~~~~~
      |                       ;
Language: C++

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

int main()
{
    string s;
    cin >> s;

    for (int i = 0; i < s.size(); i++) 
    {
        if (s.at(i) !== 'Y') {
            puts("Three"); 
            break;
        }else{
            puts("Four");
            break;
        }
        break;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:23: error: expected primary-expression before '=' token
   11 |         if (s.at(i) !== 'Y') {
      |                       ^
Language: C++

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

int main()
{
    string s;
    cin >> s;

    for (int i = 0; i < s.size(); i++) 
    {
        if (s.at(i) == "Y") {
            puts("Four"); 
        }else{
            puts("Three");
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:21: 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()
{
    string s;
    cin >> s;

    for (int i = 0; i < str.size(); i++) 
    {
        if (str.at(i) == 'Y') {
            puts("Four"); 
        }else{
            puts("Three");
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: 'str' was not declared in this scope; did you mean 'std'?
    9 |     for (int i = 0; i < str.size(); i++)
      |                         ^~~
      |                         std
Language: C++

#include <vector>
#include <math.h>
#include <iostream>
#include <string>
#include <algorithm>
#include <queue>
#include <iomanip>
#include <deque>
#include <cctype>

using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
using pii = pair<int,int>;
using pll = pair<long, long>;
template <class T> using V = vector<T>;
template <class T> using VV = V<V<T>>;
#define rep(i, n) for(int i = 0; i<n; i++)
#define rep_s(i, start, n) for(int i= start;  i<n; i++)
#define ALL(a) (a).begin(), (a).end()
#define ALL_str(a) (a).cbegin(), (a).cend()

string alphabet_upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
string alphabet_lower  = "abcdefghijklmnopqrstuvwxyz";
string numbers = "0123456789";

/*
using edge = struct {int to; ll cost;};
vector<edge> tree[limit];
ll depth[limit];

void dfs(int v, int p, ll d){
  depth[v] = d;
  //cout <<"v: " << v << endl;
  for (auto &e: tree[v]){
    //cout << "e.to: " << e.to << endl;
    if (e.to == p) continue;
    dfs(e.to, v, d+e.cost);
  }
}
*/
int keta_sum(int num){
  int dig, sum = 0;
  while(num){
    dig = num % 10;
    sum = sum + dig;
    num = num / 10;
  }
  return sum;
}

ll binary_search(ll left_key, ll border, ll low, ll high) {
     // 配列 a の左端と右端
    ll mid = (low+high)/2;
    while (high > low+1) {
       mid = (low+high)/2;
        if (left_key*mid>border) high = mid;
        else if (left_key*mid<border) low = mid;
        else {
          mid =mid-1;
          break;
        }
    }
    return mid;
}


int main(void){
  ll N, A, B, W, H, C, D, Q, X, Y;
  string S, T;
  cin >> N;
  char s[N];
  rep(i, N) cin>>s[i];
  rep(i, N) {
    (if (s[i] == 'Y'){
      cout << "Four" << endl;
      return 0;
    }
  }
  cout <<"Three" << endl;
  return 0;           

}


Compiler output:
a.cc: In function 'int main()':
a.cc:76:6: error: expected primary-expression before 'if'
   76 |     (if (s[i] == 'Y'){
      |      ^~
a.cc:76:6: error: expected ')' before 'if'
   76 |     (if (s[i] == 'Y'){
      |     ~^~
      |      )
Language: C++

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

int main(){
  int N;
  cin >> N;
  
  char arare;
  vector<int> colorCheck(N);
  int color=0;
  
  for(int i=0;i<N;i++){
    cin >> arare;
    if(arare=="P"){
      colorCheck.at(0)=1;
    }
    else if(arare=="W"){
      colorCheck.at(1)=1;
    }
    else if(arare=="G"){
      colorCheck.at(2)=1;
    }
    else if(arare=="Y"){
      colorCheck.at(3)=1;
    }
  }
  
  for(int i=0;i<4;i++){
    color+=colorCheck.at(i);
  }
  
  if (color==3){
    cout << "Three" << endl;
  }
  else if(color==4){
    cout << "Four" << endl;
  }
}
    
    
    
    

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     if(arare=="P"){
      |        ~~~~~^~~~~
a.cc:17:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |     else if(arare=="W"){
      |             ~~~~~^~~~~
a.cc:20:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   20 |     else if(arare=="G"){
      |             ~~~~~^~~~~
a.cc:23:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   23 |     else if(arare=="Y"){
      |             ~~~~~^~~~~
Language: C++

#include <iostream>
#include <string.h>
#include "stdio.h"
#define SIZE 101
using namespace std;

int main()
{
    int n, chack = 0;
    cin>>n;
    cin>>ws;
    char str[SIZE];
    gets(str);
    for(int i = 0; str[i]!='\0'; i++)
    {
        if(str[i] == 'Y')
        {
            chack++;
            break;
        }
    }
    if(!chack)
        cout<<"Three"<<endl;
    else
        cout<<"Four"<<endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
   13 |     gets(str);
      |     ^~~~
      |     getw
Language: C++

#include <iostream>
#include <bits/stdc++.h>
#include <string.h>
#define SIZE 101
using namespace std;

int main()
{
    int n, chack = 0;
    cin>>n;
    cin>>ws;
    char str[SIZE];
    gets(str);
    for(int i = 0; str[i]!='\0'; i++)
    {
        if(str[i] == 'Y')
        {
            chack++;
            break;
        }
    }
    if(!chack)
        cout<<"Three"<<endl;
    else
        cout<<"Four"<<endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
   13 |     gets(str);
      |     ^~~~
      |     getw
Language: C++

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

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




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

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

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





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

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

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




Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: expected ';' before '<' token
    8 |   for(int i=0, i<N-1, i++){
      |                 ^
      |                 ;
a.cc:8:17: error: expected primary-expression before '<' token
a.cc:8:26: error: expected ';' before ')' token
    8 |   for(int i=0, i<N-1, i++){
      |                          ^
      |                          ;
a.cc:20:18: error: 'G' was not declared in this scope
   20 |     else if(col==G){
      |                  ^
Language: C++

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

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




Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'i' was not declared in this scope
    8 |   for(i=0, i<N-1, i++){
      |       ^
a.cc:24:2: error: expected primary-expression before 'if'
   24 |  if(p==0||w==0||y==0||g==0){
      |  ^~
a.cc:23:4: error: expected ';' before 'if'
   23 |   }
      |    ^
      |    ;
   24 |  if(p==0||w==0||y==0||g==0){
      |  ~~ 
a.cc:24:2: error: expected primary-expression before 'if'
   24 |  if(p==0||w==0||y==0||g==0){
      |  ^~
a.cc:23:4: error: expected ')' before 'if'
   23 |   }
      |    ^
      |    )
   24 |  if(p==0||w==0||y==0||g==0){
      |  ~~ 
a.cc:8:6: note: to match this '('
    8 |   for(i=0, i<N-1, i++){
      |      ^
Language: C++

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

int main() {
  int N;
  string R;
  string S;
  for (int i = 0; i < N; i++) {
    cin >> S;
    R+=S
  }
  if (R.find("P") == string::npos || R.find("W") == string::npos || R.find("G") == string::npos || R.find("Y") == string::npos) {
    cout << "Three" << endl;
  }
  else {
    cout << "Four" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected ';' before '}' token
   10 |     R+=S
      |         ^
      |         ;
   11 |   }
      |   ~
Language: C++

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

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

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


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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:13: error: 'Four' was not declared in this scope
   18 |     cout << Four << endl;
      |             ^~~~
a.cc:19:3: error: expected '}' before 'else'
   19 |   else{
      |   ^~~~
a.cc:17:16: note: to match this '{'
   17 |   if(count > 0){
      |                ^
a.cc:20:13: error: 'Three' was not declared in this scope
   20 |     cout << Three << endl;
      |             ^~~~~
Language: C++

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

int main(){
  int n,s,s1,s2,s3,s4;
  s1=false;
  s2=false;
  s3=false;
  s4=false;
 
  cin >> n;
  while(n){
    cin >> s;
    if(s=="P")s1=true;
	if(s=="Y")s2=true;
	if(s=="G")s3=true;
	if(s=="W")s4=true;
  n--;
  }
  cout << (s1+s2+s3+s4 == 3 ? "Three" : "Four") << endl;
}
    
    

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     if(s=="P")s1=true;
      |        ~^~~~~
a.cc:15:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |         if(s=="Y")s2=true;
      |            ~^~~~~
a.cc:16:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |         if(s=="G")s3=true;
      |            ~^~~~~
a.cc:17:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |         if(s=="W")s4=true;
      |            ~^~~~~
Language: C++

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

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

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

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

int main(){
  int N,kind;
  char color;
  kind = 3;
  cin >> N;
  for(int i = 0;i<N;i++){
  	cin >> color;
    if(color == "Y"){
    	kind = 4;
    }
  }
  cout << kind << 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(color == "Y"){
      |        ~~~~~~^~~~~~
Language: C++

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

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

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

int main() {
  int N;
  bool is_four = false;
  cin >> N;
  
  for (int i = 1; i < N; i++) {
    string c;
    cin >> c;
    if (c == "Y") {
      is_four = true;
    }
  }
  
  if (is_four) {
    cout << "Four" << endl;
  }else{
    cout << "Three"
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:20: error: expected ';' before '}' token
   20 |     cout << "Three"
      |                    ^
      |                    ;
   21 |   }
      |   ~
Language: C++

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

int main() {
  int N;
  bool is_four = false;
  cin >> N;
  
  for (int i = 1; i < N; i++) {
    str c;
    cin >> c;
    if (c == "Y") {
      is_four = true;
    }
  }
  
  if (is_four) {
    cout << "Four" << endl;
  }else{
    cout << "Three"
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'str' was not declared in this scope; did you mean 'std'?
   10 |     str c;
      |     ^~~
      |     std
a.cc:11:12: error: 'c' was not declared in this scope
   11 |     cin >> c;
      |            ^
a.cc:20:20: error: expected ';' before '}' token
   20 |     cout << "Three"
      |                    ^
      |                    ;
   21 |   }
      |   ~
Language: C++

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

int main() {
  int N;
  cin >> N;
  bool p, w, g, y;
  int res;
  
  for (int i = 0; i < N; i++) {
    if (res == 4){
      break;
    }
    string A;
    cin >> A;
    if (!p) {
      if (A == P) {
        p = true;
      }
    }
    if (!w) {
      if (A == W) {
        w = true;
      }
    }
    if (!g) {
      if (A == G) {
        g = true;
      }
    }
    if (!y) {
      if (A == Y) {
        y = true;
      }
    }
    res = p + w + g + y;
  }
  if (res == 3) {
    cout << "Three" << endl;
  }
  else if (res == 4) {
    cout << "Four" << endl;
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:16: error: 'P' was not declared in this scope
   17 |       if (A == P) {
      |                ^
a.cc:22:16: error: 'W' was not declared in this scope
   22 |       if (A == W) {
      |                ^
a.cc:27:16: error: 'G' was not declared in this scope
   27 |       if (A == G) {
      |                ^
a.cc:32:16: error: 'Y' was not declared in this scope
   32 |       if (A == Y) {
      |                ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: could not convert 'a.std::__cxx11::basic_string<char>::operator=(((const char*)"Y"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |     if (a="Y") {
      |         ~^~~~
      |          |
      |          std::__cxx11::basic_string<char>
a.cc:15:11: error: expected primary-expression before 'continue'
   15 |     else (continue)
      |           ^~~~~~~~
a.cc:15:11: error: expected ')' before 'continue'
   15 |     else (continue)
      |          ~^~~~~~~~
      |           )
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: could not convert 'a.std::__cxx11::basic_string<char>::operator=(((const char*)"Y"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |     if (a="Y") {
      |         ~^~~~
      |          |
      |          std::__cxx11::basic_string<char>
a.cc:15:11: error: expected primary-expression before 'continue'
   15 |     else (continue);
      |           ^~~~~~~~
a.cc:15:11: error: expected ')' before 'continue'
   15 |     else (continue);
      |          ~^~~~~~~~
      |           )
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(89)' from 'std::__cxx11::basic_string<char>' to 'bool'
    9 |     if (s = 'Y'){
      |         ~~^~~~~
      |           |
      |           std::__cxx11::basic_string<char>
a.cc:10:10: error: expected ';' before '}' token
   10 |       a++
      |          ^
      |          ;
   11 |     }
      |     ~
Language: C++

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

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

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

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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:18: error: expected ';' before 'cout'
   14 |       ans ="Four"
      |                  ^
      |                  ;
   15 |       cout << ans << endl;
      |       ~~~~
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(Sx == "Y"){
      cout << "Four" << endl;
      break;
    }
  }       

}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:8: error: 'Sx' was not declared in this scope; did you mean 'S'?
   12 |     if(Sx == "Y"){
      |        ^~
      |        S
Language: C++

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

 	for(i=0;i++;i<n){
 		cin >> s;
 		if(s=="Y"){
 			cout << "Four" << endl;
 			return 0;
 		}
 	}
 	cout << "Three" << endl;
}

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

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

 	for(i=0;i++;i<n){
 		cin >> s;
 		if(s=="Y"){
 			cout << "Four" << endl;
 			return 0;
 		}
 	}
 	cout << "Three" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'i' was not declared in this scope
    8 |         for(i=0;i++;i<n){
      |             ^
a.cc:10:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |                 if(s=="Y"){
      |                    ~^~~~~
Language: C++

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

 	for(i=0;i++;i<n){
 		cin >> s;
 		if(s==Y){
 			cout << "Four" << endl;
 			return 0;
 		}
 	}
 	cout << "Three" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'i' was not declared in this scope
    8 |         for(i=0;i++;i<n){
      |             ^
a.cc:10:23: error: 'Y' was not declared in this scope
   10 |                 if(s==Y){
      |                       ^
Language: C++

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

int main() {
  int N;
  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:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
 int N ;
  cin >> N ;
  rep(i, N) {
  string Si;
  cin >> Si;
  if(Si == "Y"){
   cout << "Four" << endl;
   break;
  }
  }
if(Si !="Y"){
cout  <<"Three" << endl;
}
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> N ;
      |   ^~~
a.cc:9:3: error: 'string' was not declared in this scope
    9 |   string Si;
      |   ^~~~~~
a.cc:10:10: error: 'Si' was not declared in this scope; did you mean 'i'?
   10 |   cin >> Si;
      |          ^~
      |          i
a.cc:12:4: error: 'cout' was not declared in this scope
   12 |    cout << "Four" << endl;
      |    ^~~~
a.cc:12:22: error: 'endl' was not declared in this scope
   12 |    cout << "Four" << endl;
      |                      ^~~~
a.cc:16:4: error: 'Si' was not declared in this scope
   16 | if(Si !="Y"){
      |    ^~
a.cc:17:1: error: 'cout' was not declared in this scope
   17 | cout  <<"Three" << endl;
      | ^~~~
a.cc:17:20: error: 'endl' was not declared in this scope
   17 | cout  <<"Three" << endl;
      |                    ^~~~
Language: C++

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

int main() {
 int N ;
  cin >> N ;
  rep(i, N) {
  string Si;
  cin >> Si;
  if(Si == "Y"){
   cout << "Four" << endl;
   break;
  }
  else {
   continue;
  }  
    cout  <<"Three" << endl;
}

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

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

int main() {

  int N,i;
  bool frag;
  frag = false;
  string name;
  
  cin >> N ;
  
  for (int i = 0; i < N; i++) {
    cin >> name;
    
    if(N == "Y" ){
    frag = true;
    }
  }
  
  if(frag == true){
    cout << "Four" << endl;
  }
  else{
    cout << "Three" <<endl;
  }
}


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

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

int main() {

  int N,i;
  bool frag;
  frag = false;
  string name;
  
  cin >> N ;
  
  for (int i = 0; i < N; i++) {
    cin >> name;
    
    if(N = "Y" ){
    frag = true;
    }
  }
  
  if(frag == true){
    cout << "Four" << endl;
  }
  else{
    cout << "Three" <<endl;
  }
}


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected unqualified-id before '=' token
    8 |   bool = false;
      |        ^
a.cc:13:12: error: expected unqualified-id before '=' token
   13 |       bool = true;
      |            ^
a.cc:16:12: error: expected unqualified-id before '==' token
   16 |   if( bool == true ){
      |            ^~
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;
  string S;
  cin >> N;
  
  rep (i, N-1){
    cin >> S;
    if (S == "Y"){
      cout << "Four" << endl;
      break;
    }
    else if (i = N-1){
      cout << "Three" << endl;
      break;
    }
  }

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   12 |       return;
      |       ^~~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before 'count'
    5 |   int N count = 0;
      |         ^~~~~
a.cc:6:10: error: 'N' was not declared in this scope
    6 |   cin >> N;
      |          ^
a.cc:11:12: error: no post-increment operator for type
   11 |       count++;
      |            ^~
a.cc:13:12: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator=='
   13 |   if(count == 0)
      |      ~~~~~~^~~~
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
  }
  cout << "Three" << endl;
}


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