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

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: expected '(' before 'b'
   10 |     if b[i]=="Y"{
      |        ^
      |        (
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: expected '(' before 'b'
   10 |     if b[i]=="Y"{
      |        ^
      |        (
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: expected '(' before 'b'
   10 |     if b[i]=="Y"{
      |        ^
      |        (
a.cc:15:8: error: expected ';' before 'cout'
   15 |     i++
      |        ^
      |        ;
   16 |   cout <<"Three" <<endl;
      |   ~~~~  
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
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;
  int p=0, w=0, g=0, y=0;
  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 sum = 0;
  if(p != 0)
    sum++;
  if(w != 0)
    sum++;
  if(g != 0)
    sum++;
  if(y != 0)
    sum++;
  if(sum == 3)
    cout << "Three" <<endl;
  if(sum == 4)
    cout << "Four" <<endl;
}


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*)"P"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |     if(s="P")
      |        ~^~~~
      |         |
      |         std::__cxx11::basic_string<char>
a.cc:13:9: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"W"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   13 |     if(s="W")
      |        ~^~~~
      |         |
      |         std::__cxx11::basic_string<char>
a.cc:15:9: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"G"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   15 |     if(s="G")
      |        ~^~~~
      |         |
      |         std::__cxx11::basic_string<char>
a.cc:17:9: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"Y"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   17 |     if(s="Y")
      |        ~^~~~
      |         |
      |         std::__cxx11::basic_string<char>
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 int N;
  cin >> N;
  int p=0, w=0, g=0, y=0;
  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 sum = 0;
  if(p != 0)
    sum++;
  if(w != 0)
    sum++;
  if(g != 0)
    sum++;
  if(y != 0)
    sum++;
  if(sum == 3)
    cout << "Three" <<endl;
  if(sum == 4)
    cout << "Four" <<endl;
}


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*)"P"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |     if(s="P")
      |        ~^~~~
      |         |
      |         std::__cxx11::basic_string<char>
a.cc:12:10: error: expected ';' before 'if'
   12 |       p++
      |          ^
      |          ;
   13 |     if(s="W")
      |     ~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 int N;
  cin >> N;
  int p=0, w=0, g=0, y=0
  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 sum = 0;
  if(p != 0)
    sum++;
  if(w != 0)
    sum++;
  if(g != 0)
    sum++;
  if(y != 0)
    sum++;
  if(sum == 3)
    cout << "Three" <<endl;
  if(sum == 4)
    cout << "Four" <<endl;
}


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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 int N;
  cin >> N;
  int p=0, w=0, g=0, y=0
  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 sum = 0;
  if(p != 0)
    sum++
  if(w != 0)
    sum++
  if(g != 0)
    sum++
  if(y != 0)
    sum++
  if(sum == 3)
    cout << "Three" <<endl;
  if(sum == 4)
    cout << "Four" <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'for'
    8 |   for (int i = 0; i < N; i++) {
      |   ^~~
a.cc:8:19: error: 'i' was not declared in this scope
    8 |   for (int i = 0; i < N; i++) {
      |                   ^
a.cc:22:10: error: expected ';' before 'if'
   22 |     sum++
      |          ^
      |          ;
   23 |   if(w != 0)
      |   ~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:18:7: error: 'sum' was not declared in this scope
   18 |   if (sum > 0) {
      |       ^~~
Language: C++

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

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


Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | V#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'V' does not name a type
    1 | V#include <bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string S;
      |   ^~~~~~
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> N;
      |   ^~~
a.cc:9:10: error: 'S' was not declared in this scope
    9 |   cin >> S;
      |          ^
a.cc:18:7: error: 'sum' was not declared in this scope
   18 |   if (sum > 0) {
      |       ^~~
a.cc:19:5: error: 'cout' was not declared in this scope
   19 |     cout << "Four" << endl;
      |     ^~~~
a.cc:19:23: error: 'endl' was not declared in this scope
   19 |     cout << "Four" << endl;
      |                       ^~~~
a.cc:22:5: error: 'cout' was not declared in this scope
   22 |     cout << "Three" << endl;
      |     ^~~~
a.cc:22:24: error: 'endl' was not declared in this scope
   22 |     cout << "Three" << endl;
      |                        ^~~~
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> N;
      |   ^~~
a.cc:9:22: error: 'N' was not declared in this scope
    9 |   for (int i =0; i < N; i++){
      |                      ^
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.at(i) == "Y"){
      cout << "Four" << endl;
    }
    else{
      cout << "Three" << endl;
    }
  }
}


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

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

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

  
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'i' was not declared in this scope; did you mean 'si'?
    8 |   for(i=0;i<n;i++){
      |       ^
      |       si
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;
      break;
}


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

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

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


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

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

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

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

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

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


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

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

int main() {
  int N;
  cin >> N;
  
  for (int i = 0; i < N; i++) {
    char s[i];
    if (s[i] == "P" && s[i+1] == "W" && k == "G" ) {
      cout << "Three" << endl;
    else if (i == "P" && j == "W" && k == "G" && l == "Y") {
      cout << "Four" << endl;
    }
    else {
      cout << "error" <<endl;
    }
  }
    cout << 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if (s[i] == "P" && s[i+1] == "W" && k == "G" ) {
      |         ~~~~~^~~~~~
a.cc:10:31: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if (s[i] == "P" && s[i+1] == "W" && k == "G" ) {
      |                        ~~~~~~~^~~~~~
a.cc:10:41: error: 'k' was not declared in this scope
   10 |     if (s[i] == "P" && s[i+1] == "W" && k == "G" ) {
      |                                         ^
a.cc:12:5: error: expected '}' before 'else'
   12 |     else if (i == "P" && j == "W" && k == "G" && l == "Y") {
      |     ^~~~
a.cc:10:52: note: to match this '{'
   10 |     if (s[i] == "P" && s[i+1] == "W" && k == "G" ) {
      |                                                    ^
a.cc:12:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     else if (i == "P" && j == "W" && k == "G" && l == "Y") {
      |              ~~^~~~~~
a.cc:12:26: error: 'j' was not declared in this scope
   12 |     else if (i == "P" && j == "W" && k == "G" && l == "Y") {
      |                          ^
a.cc:12:50: error: 'l' was not declared in this scope
   12 |     else if (i == "P" && j == "W" && k == "G" && l == "Y") {
      |                                                  ^
a.cc:20:1: error: expected primary-expression before '}' token
   20 | }
      | ^
Language: C++

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

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


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

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:19:7: error: 'y' was not declared in this scope
   19 |   if (y == "0"){
      |       ^
a.cc:22:7: error: 'y' was not declared in this scope
   22 |   if (y == "1"){
      |       ^
Language: C++

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

int main() {
  int N;
  char c;
  
  cin >> N;
  
  for(int i =0; i<N; i++){
    cin >> c;
    if(c == "Y"){
      cout << "four" << endl;
      break;
    }
  }
  
  if(c != "Y")
    cout << "three" << endl;

  
}


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected ';' before 'if'
   11 |     cin >> S
      |             ^
      |             ;
   12 |     if ( S == "Y" )
      |     ~~
Language: C++

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: 'else' without a previous 'if'
   16 |   else
      |   ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a;
  cin >> a;
  int c=1;
    int d=1;
    int e=1;
    int f=1;
  while(a > 0){
    string b;
    cin >> b;
    if(b == "P")
      c = 0;
    else if(b == "Y")
      d = 0;
    else if(b == "W")
      e = 0;
    else if(b == "G")
      f = 0;
    a--
  }
  if(d == 0)
    cout << "Four" << endl;
  else
    cout << "Three" << endl;
}
  

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:21:17: error: expected ';' before '}' token
   21 |             d+=1
      |                 ^
      |                 ;
   22 |         }
      |         ~
Language: C++

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

//////全探索したいときに開けよ////////
vector<vector<int>> fspattern;
vector<int> fspattern_draft;
int fspcnt = 0;

void setfspattern_core(int floor,int number,int degree){
  if(floor==degree){
    fspattern.at(fspcnt) = fspattern_draft;
    fspcnt++;
  }else{
    rep(i,number){
      fspattern_draft.at(floor) = i;
      setfspattern_core(floor+1,number,degree);
    }
  }
}

void setfspattern(int number,int degree){
  fspcnt = 0;
  int64_t array_num = 1;
  rep(i,degree){
    array_num *= number;
  }
  fspattern = vector<vector<int>>(array_num,vector<int>(degree));
  fspattern_draft = vector<int>(degree);
  setfspattern_core(0,number,degree);
}

//////nCrのmodを求めたいときに開けよ/////////
//int64_t univMod = 1000000007;
//int64_t factnum = 100000
//vector<int64_t> modfact(factnum);
//vector<int64_t> modinvfact(factnum);

/*void setmodfact(){
  for(int i=0;i<factnum;i++){
    if(i == 0){
      modfact.at(i) = 1;
    }else{
      modfact.at(i) = (modfact.at(i-1)*i)%univMod;
    }
  }
}

int64_t calcmodpower(int64_t a,int64_t n){
  int64_t res = 1;
  while(n != 0){
    if(n & 1){
      res = (res * a) % univMod;
    }
    a = (a*a) % univMod;
    n = n >> 1;
  }
  return res;
}

int64_t calcinverse(int64_t n){
	return calcmodpower(n,univMod-2);
}

void setmodinvfact(){
  for(int i=0;i<factnum;i++){
    if(i==0){
      modinvfact.at(i) = 1;
    }else{
      modinvfact.at(i) = calcmodpower(modfact.at(i),univMod-2);
    }
  }
}*/


/*
int64_t calcGCD(int64_t a,int64_t b){
	int64_t p = a;
	int64_t q = b;
	int64_t c = a%b;
	while(c != 0){
		p = q;
		q = c;
		c = p%q;
	}
	return q;
}
*/
struct position{
  int x;
  int y;
};

int main(){
  int n;
  cin >> n;
  set<char> S;
  rep(i,n){
    char hoge;
    cin >> hoge;
    S.insert(hoge);
  }
  if(S.size() == 4){
    cout << "Four" << nedl;
  }else{
    cout << "Three" << endl;
  }
      
      
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:105:23: error: 'nedl' was not declared in this scope
  105 |     cout << "Four" << nedl;
      |                       ^~~~
Language: C++

# include <bits/stdc++.h>
# define pb push_back
# define ll long long
# define fi first
# define se second
# define speed ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
# define mkp make_pair
//# define time cerr << "\nTime elapsed: " << 1.0 * clock() / CLOCKS_PER_SEC << " s.\n"

using namespace std;

ll q , w , e , z ;

ll a , b , c , d ;

int main()
{
	speed;

    int n ;
    cin >> n ;
    for(int i = 0 ; i < n ; i ++ ){
        char s ;
        cin >> s ;
        if( s == 'P' ){
            a=1;
        }
        if( s == 'W' ){
            b=1;
        }
        if( s == 'G' ){
            c=1;
        }
        if( s == 'Y' ){
            d=1;
        }
    }
    vc.push_back(a);
    vc.push_back(b);
    vc.push_back(c);
    vc.push_back(d);
    for(int i = 0 ; i < 4 ; i ++ ){
        if(vc[i]==1){
            z++;
        }
    }
    if(z==3){
        cout<<"Three"<<endl;
    }
    else{
        cout<<"Four"<<endl;
    }

	time;
}


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

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

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

  // ここにプログラムを追記
  for (int i = 0; i < N; i++) {
    string x;
    cin >> x;
    if (x == Y) {
      cout << "Four" << endl;
      break;
    }
    else if (i == N-1)
      cout << "Three" << endl;
  }
}


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:21:7: error: 'P' was not declared in this scope
   21 |   if (P*W*G*Y==0)
      |       ^
a.cc:21:9: error: 'W' was not declared in this scope
   21 |   if (P*W*G*Y==0)
      |         ^
a.cc:21:11: error: 'G' was not declared in this scope
   21 |   if (P*W*G*Y==0)
      |           ^
a.cc:21:13: error: 'Y' was not declared in this scope
   21 |   if (P*W*G*Y==0)
      |             ^
Language: C++

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

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

    


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

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

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

    

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
int N;
string S;
for(int i = 0; i<N;i++){
if( S!="Y"){

continue;
cout<<"Four"<<endl;
break;
}
if(i==9&& S!="Y"){
cout<<"Three"<<endl;
}


}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ';' before '<' token
    8 |   for (string S =0, i < N; i++){
      |                      ^~
      |                      ;
a.cc:8:23: error: expected primary-expression before '<' token
    8 |   for (string S =0, i < N; i++){
      |                       ^
a.cc:8:28: error: 'i' was not declared in this scope
    8 |   for (string S =0, i < N; i++){
      |                            ^
a.cc:15:2: 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;
	cin >> N;

	string ouput = "Three";
	string arare;
	for (int i=0; i<N; i++){
		cin >> arare;
		if (arare == "Y") output = "Four";

	}
	printf("%s\n", output.c_str());
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:35: error: 'output' was not declared in this scope; did you mean 'ouput'?
   12 |                 if (arare == "Y") output = "Four";
      |                                   ^~~~~~
      |                                   ouput
a.cc:15:24: error: 'output' was not declared in this scope; did you mean 'ouput'?
   15 |         printf("%s\n", output.c_str());
      |                        ^~~~~~
      |                        ouput
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:17:15: warning: missing terminating " character
   17 |       cout << "Three << endl;
      |               ^
a.cc:17:15: error: missing terminating " character
   17 |       cout << "Three << endl;
      |               ^~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:18:5: error: expected primary-expression before '}' token
   18 |     }
      |     ^
Language: C++

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

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

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

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

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


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

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

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


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

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

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


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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N, type=0, p, w, g, y;
  string arare;
  cin >> N;
  for (int i=0; i<N; i++){
    cin >> arare[i];
  }
  for (int i=0; i<N; i++){
    if(arare[i]=="P")
      p = 1;
    else if(arare[i]=="G")
      g=1;
    else if(arare[i]=="W")
      w=1;
    else if(arare[i]=="Y")
      y=1;
  }
  type = p+g+w+y;
  if(type==3)
    cout << "Three" << endl;
  else if(type==4)
    cout << "Four" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     if(arare[i]=="P")
a.cc:14:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     else if(arare[i]=="G")
a.cc:16:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |     else if(arare[i]=="W")
a.cc:18:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |     else if(arare[i]=="Y")
Language: C++

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

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

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

int main(void){
  int N = 0;
  int color;
  cin>>N;
  for(int i=0,i<N,i++;){
    cin>>color;
    if(color=='Y'){
      cout<<"four"<<endl;
      return 0;
    }
  }
  cout<<"three"<<endl;
  return 0;
}

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

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

int main(void){
  int N = 0;
  char color;
  cin>>N;
  for(int i=0,i<N,i++;){
    cin>>color;
    if(color=='Y'){
      cout<<"four"<<endl;
      return 0;
    }
  }
  cout<<"three"<<endl;
  return 0;
}
    

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected unqualified-id before ';' token
    5 |   int N,;
      |         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  cin >> N;
  int a=0,b=0,c=0,d=0;
  for (int i = 0; i < N; i++) {
    int x;
    string op;
    cin >> op >> x;
 
    if (op == "P") {
      a=1;
    }
    else if (op == "Y") {
      b=1;
    }
    else if (op == "W") {
      c=1;
    }
    else if (op == "G") {
      d=1;
    }
  }
  if(a==1 && b==1 && c==1 && d==1){
    cout << "Three" << endl;}else{
    cout << "four" <<endl;}
  }
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  cin >> N;
  int a=0,b=0,c=0,d=0;
  for (int i = 0; i < N; i++) {
    int x;
    string op;
    cin >> op >> x;
 
    if (op == "P") {
      a=1;
    }
    else if (op == "Y") {
      b=1;
    }
    else if (op == "W") {
      c=1;
    }
    else if (op == "G") {
      d=1;
    }
  }
  if(a==1　&& b==1 && c==1 && d==1){
    cout << "Three" << endl;}else{
    cout << "four" <<endl:}
  }
}

Compiler output:
a.cc:26:9: error: extended character 　 is not valid in an identifier
   26 |   if(a==1　&& b==1 && c==1 && d==1){
      |         ^
a.cc: In function 'int main()':
a.cc:26:9: error: unable to find numeric literal operator 'operator""\U00003000'
   26 |   if(a==1　&& b==1 && c==1 && d==1){
      |         ^~~
a.cc:28:26: error: expected ';' before ':' token
   28 |     cout << "four" <<endl:}
      |                          ^
      |                          ;
a.cc: At global scope:
a.cc:30:1: error: expected declaration before '}' token
   30 | }
      | ^
Language: C++

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

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

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

int main(){
  int g, p, w, y;
  g = 0;
  p = 0;
  w = 0;
  y = 0;
  int n;
  cin >> n;
  int s = 0;
  char k;
  for(int i = 0; i < n; i++){
    cin >> k;
    if(k == G) g++;
    if(k == P) p++;
    if(k == W) w++;
    if(k == Y) y++;
  }
  vector<int> vec{g, p, w, y};
  for(int i = 0; i < 4; i++){
    if(vec.at(i) != 0) s++;
  }
  cout << s << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: 'G' was not declared in this scope
   16 |     if(k == G) g++;
      |             ^
a.cc:17:13: error: 'P' was not declared in this scope
   17 |     if(k == P) p++;
      |             ^
a.cc:18:13: error: 'W' was not declared in this scope
   18 |     if(k == W) w++;
      |             ^
a.cc:19:13: error: 'Y' was not declared in this scope
   19 |     if(k == Y) y++;
      |             ^
Language: C++

#pragma GCC optimize("Ofast")
#include<bits/stdc++.h>
using namespace std;
using ll=long long;
using datas=pair<ll,ll>;
using ddatas=pair<double,double>;
using tdata=pair<ll,datas>;
using vec=vector<ll>;
using mat=vector<vec>;
using pvec=vector<datas>;
using pmat=vector<pvec>;
#define For(i,a,b) for(i=a;i<(ll)b;i++)
#define bFor(i,a,b) for(i=a;i>=(ll)b;i--)
#define rep(i,N) For(i,0,N)
#define rep1(i,N) For(i,1,N)
#define brep(i,N) bFor(i,N-1,0)
#define all(v) (v).begin(),(v).end()
#define allr(v) (v).rbegin(),(v).rend()
#define vsort(v) sort(all(v))
#define vrsort(v) sort(allr(v))
#define endl "\n"
#define pb push_back
#define printyes cout<<"Yes"<<endl
#define printno cout<<"No"<<endl
#define output(v) do{bool f=0;for(auto outi:v){cout<<(f?" ":"")<<outi;f=1;}cout<<endl;}while(0)
const ll mod=1000000007;
const ll inf=1LL<<60;
const double PI = acos(-1);
const double eps = 1e-9;
template<class T> inline bool chmax(T& a,T b){bool x=a<b;if(x)a=b;return x;} 
template<class T> inline bool chmin(T& a,T b){bool x=a>b;if(x)a=b;return x;} 

void startupcpp(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout<<fixed<<setprecision(15);
}

double distance(ddatas& x,ddatas& y){
  double a=x.first-y.first,b=x.second-y.second;
  return sqrt(a*a+b*b);
}

ll modinv(ll a) {
  ll b=mod,u=1,v=0,t;
  while(b){
    t=a/b;
    a-=t*b; swap(a,b);
    u-=t*v; swap(u,v);
  }
  return (u+mod)%mod;
}

ll moddevide(ll a,ll b){return (a*modinv(b))%mod;}

vec modncrlistp,modncrlistm;

ll modncr(ll n,ll r){
  ll i,size=modncrlistp.size();
  if(size<=n){
    modncrlistp.resize(n+1);
    modncrlistm.resize(n+1);
    if(!size){
      modncrlistp[0]=modncrlistm[0]=1;
      size++;
    }
    For(i,size,n+1){
      modncrlistp[i]=modncrlistp[i-1]*i%mod;
      modncrlistm[i]=modinv(modncrlistp[i]);
    }
  }
  return modncrlistp[n]*modncrlistm[r]%mod*modncrlistm[n-r]%mod;
}

ll modpow(ll a,ll n){
  ll res=1;
  while(n){
    if(n&1)res=res*a%mod;
    a=a*a%mod;
    n>>=1;
  }
  return res;
}

ll gcd(ll a,ll b){if(!b)return a;return (a%b==0)?b:gcd(b,a%b);}
ll lcm(ll a,ll b){return a/gcd(a,b)*b;}

ll countdigits(ll n){
  ll ans=0;
  while(n){n/=10;ans++;}
  return ans;
}

ll sumdigits(ll n){
  ll ans=0;
  while(n){ans+=n%10;n/=10;}
  return ans;
}

int main(){
  ll N,M;
  cin>>N>>M;
  string s;
  while(N--){
    cin>>s;
    if(s[0]=='Y')f=1;
  }
  cout<<3+f<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:106:18: error: 'f' was not declared in this scope
  106 |     if(s[0]=='Y')f=1;
      |                  ^
a.cc:108:11: error: 'f' was not declared in this scope
  108 |   cout<<3+f<<endl;
      |           ^
Language: C++

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

int main() {
  int N;
  cin >> N;
  
  int G, W, Y, P;
  G = W = Y = P = 0;

  for (int i = 0; i < N; i++) {
    string s;
    cin >> s;
    if ( s == "G" ) {
      G = 1;
    } else if ( s == "W" ) {
      W = 1;
    } else if ( s == "Y" ) {
      Y = 1;
    } else if ( s == "P" ) {
      P = 1;
    }
  }
  if (G == 1 && W == 1 && Y == 1 && P == 1) { 
    cout << "Four" << endl;
  } else {
    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:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> N;
      |   ^~~
a.cc:12:5: error: 'string' was not declared in this scope
   12 |     string s;
      |     ^~~~~~
a.cc:13:12: error: 's' was not declared in this scope
   13 |     cin >> s;
      |            ^
a.cc:25:5: error: 'cout' was not declared in this scope
   25 |     cout << "Four" << endl;
      |     ^~~~
a.cc:25:23: error: 'endl' was not declared in this scope
   25 |     cout << "Four" << endl;
      |                       ^~~~
a.cc:27:5: error: 'cout' was not declared in this scope
   27 |     cout << "Three" << endl;
      |     ^~~~
a.cc:27:24: error: 'endl' was not declared in this scope
   27 |     cout << "Three" << endl;
      |                        ^~~~
Language: C++

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

int main() {
  int N;
  cin >> N;
  
  int G, W, Y, P;

  for (int i = 0; i < N; i++) {
    string s;
    if ( s == "G" ) {
      G = 1;
    } else if ( s == "W" ) {
      W = 1;
    } else if ( s == "Y" ) {
      Y = 1;
    } else if ( s == "P" ) {
      P = 1;
    }
  }
  if (G == 1 && W == 1 && Y == 1 && P == 1) 
    cout << "Four" << endl;
  } else {
    cout << "Three" << endl;
  }
}


Compiler output:
a.cc:24:5: error: expected unqualified-id before 'else'
   24 |   } else {
      |     ^~~~
a.cc:27:1: error: expected declaration before '}' token
   27 | }
      | ^
Language: C++

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

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

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

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

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


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

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

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

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

#include <iostream>
#include <string>
#include <math.h>
#include <vector>
#include <algorithm>
#include <iomanip>
#include <set>
#include <queue>
#define mod 1000000007
#define ten5 100005
#define PI 3.1415926
using namespace std;

int num[201];

int main()
{
    //int m,n,o=0,i,j,k;
    long long int sum=0,sum2=0,n1=0,n2=0,n3;
    double ans=0.0,half;
    long long int m,n,o,i,j,k=1,now=1;
    long long int a,a1,a2,a3,a4;
    //float f,g,h;
    char now,pre,c;
    string s,s1;
    priority_queue<int> pq;
    cin>>n;
    for(i=0;i<n;i++)
    {
        cin>>c;
        if(c=='Y') sum=1;
    }
    if(sum==1) cout<<"Four";
    else cout<<"Three";
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:24:10: error: conflicting declaration 'char now'
   24 |     char now,pre,c;
      |          ^~~
a.cc:21:33: note: previous declaration as 'long long int now'
   21 |     long long int m,n,o,i,j,k=1,now=1;
      |                                 ^~~
Language: C++

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

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



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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: expected unqualified-id before '=' token
    5 |   int = N;
      |       ^
a.cc:6:10: error: 'N' was not declared in this scope
    6 |   cin >> N;
      |          ^
Language: C++

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


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

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


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

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: 'N' was not declared in this scope
    5 |   string H(N);
      |            ^
a.cc:10:14: error: 'at' was not declared in this scope; did you mean 'a'?
   10 |     cin >> H,at(i);
      |              ^~
      |              a
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:15:13: error: 'Four' was not declared in this scope
   15 |     cout << Four << endl;
      |             ^~~~
a.cc:18:13: error: 'Three' was not declared in this scope
   18 |     cout << Three << endl;
      |             ^~~~~
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: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 | }
      | ^