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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected ';' before 'for'
    8 |   b = 0
      |        ^
      |        ;
    9 |   for (int i = 0; i < n; i++) {
      |   ~~~   
a.cc:9:19: error: 'i' was not declared in this scope
    9 |   for (int i = 0; i < n; i++) {
      |                   ^
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 y;
  int i=0;
  string s;
  int N;
  
  cin >> N;
  
  for(i<N){
    cin >> s;
    
    if(s=="Y"){
      cout << "Four" << endl;
      break;
    }
    
    i++;
  }
  
  if(i+1<N)
    cout << "Three";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: expected ';' before ')' token
   12 |   for(i<N){
      |          ^
      |          ;
a.cc:23:3: error: expected primary-expression before 'if'
   23 |   if(i+1<N)
      |   ^~
a.cc:21:4: error: expected ';' before 'if'
   21 |   }
      |    ^
      |    ;
   22 | 
   23 |   if(i+1<N)
      |   ~~
a.cc:23:3: error: expected primary-expression before 'if'
   23 |   if(i+1<N)
      |   ^~
a.cc:21:4: error: expected ')' before 'if'
   21 |   }
      |    ^
      |    )
   22 | 
   23 |   if(i+1<N)
      |   ~~
a.cc:12:6: note: to match this '('
   12 |   for(i<N){
      |      ^
Language: C++

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

int main() {
  int a;
  string t;
  string u;
  cin >> a;
  for (int i = 0; i < a; i++)
  {
    cin >> t;
    if (t == "Y")
    {
      u = "four";
      break; 
    }
    u = "three";
  }
  cout << u << endl ;
}



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

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

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

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

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

int main() {

  int hinaArares;
  cin >> hinaArares;
  char color;
  int P,W,G,Y = 0;
  
  for ( int i = 0; i < hinaArares; i++) {
    cin >> color;
    
    if ( color == "P" ) {
      P = 1;
    }
    else if ( color == "W" ) {
      W = 1;
    }
    else if ( color == "G" ) {
      G = 1;
    }
    else if ( color == "Y" ) {
      Y = 1;
    }
  }
  
  int colors = P + W + G + Y;
  
  if ( colors == 3 ) {
    cout << "Three";
  }
  else if (colors == 4 ) {
    cout << "Four";
  }
  
}


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

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

int main() {

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     if ( color == "P" ) {
      |          ~~~~~~^~~~~~
a.cc:17:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |     else if ( color == "W" ) {
      |               ~~~~~~^~~~~~
a.cc:20:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   20 |     else if ( color == "G" ) {
      |               ~~~~~~^~~~~~
a.cc:23:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   23 |     else if ( color == "Y" ) {
      |               ~~~~~~^~~~~~
a.cc:28:7: error: conflicting declaration 'int color'
   28 |   int color = P + W + G + Y;
      |       ^~~~~
a.cc:8:8: note: previous declaration as 'char color'
    8 |   char color;
      |        ^~~~~
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected ';' before 'for'
    7 |   cin >> N
      |           ^
      |           ;
    8 | 
    9 |   for (int i = 0; i < N; i++) {
      |   ~~~      
a.cc:9:19: error: 'i' 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(void) {
  
  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:7:11: error: expected ';' before 'for'
    7 |   cin >> N
      |           ^
      |           ;
    8 | 
    9 |   for (int i = 0; i < N; i++) {
      |   ~~~      
a.cc:9:19: error: 'i' 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
 
  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:7:11: error: expected ';' before 'for'
    7 |   cin >> N
      |           ^
      |           ;
    8 | 
    9 |   for (int i = 0; i < N; i++) {
      |   ~~~      
a.cc:9:19: error: 'i' 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
 
  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:7:11: error: expected ';' before 'for'
    7 |   cin >> N
      |           ^
      |           ;
    8 | 
    9 |   for (int i = 0; i < N; i++) {
      |   ~~~      
a.cc:9:19: error: 'i' was not declared in this scope
    9 |   for (int i = 0; i < N; i++) {
      |                   ^
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected ';' before 'for'
    7 |   cin >> N
      |           ^
      |           ;
    8 | 
    9 |   for (int i = 0; i < N; i++) {
      |   ~~~      
a.cc:9:19: error: 'i' was not declared in this scope
    9 |   for (int i = 0; i < N; i++) {
      |                   ^
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++) { 
    string s;
    cin >> s;
    if (s=="Y"){
      cout<< "Four" <<endl;
    } 
    else{
      cout<<"Third"<<endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected ';' before 'for'
    7 |   cin >> N
      |           ^
      |           ;
    8 | 
    9 |   for (int i = 0; i < N; i++) {
      |   ~~~      
a.cc:9:19: error: 'i' 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()
{
   
   set<int > s;
   string s1;
   cin>>s1;
  int i;
  for(i=0;i<s1.length();++i)
  {
    if(s1[i]=='G')
        s.insert(1);
    
    else if(s1[i]=='W')
        s.insert(2);
    
    else if(s1[i]=='Y')
        s.insert(3);
    
    else if(s[i]=='P')
       s.insert(4);
  }
  
  if(s.size()==3)
      printf("Three");
  
  else
     printf("Four");
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:14: error: no match for 'operator[]' (operand types are 'std::set<int>' and 'int')
   24 |     else if(s[i]=='P')
      |              ^
Language: C++

#include <bits/stdc++.h>
 
using namespace std;
 
int main()
{
   
   set<int > s;
   string s1;
   cin>>s1;
  int i;
  for(i=0;i<s.length();++i)
  {
    if(s1[i]=='G')
        s.insert(1);
    
    else if(s1[i]=='W')
        s.insert(2);
    
    else if(s1[i]=='Y')
        s.insert(3);
    
    else
       s.insert(4);
  }
  
  if(s.size()==3)
      printf("Three");
  
  else
     printf("Four");
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: 'class std::set<int>' has no member named 'length'
   12 |   for(i=0;i<s.length();++i)
      |               ^~~~~~
Language: C++

#include <bits/stdc++.h>
 
using namespace std;
 
int main()
{
   
   set<int > s;
   string s1;
   cin>>s1;
  int i;
  for(i=0;i<s.length();++i)
  {
    if(s1[i]=='G')
        s.insert(1);
    
    else if(s1[i]=='w')
        s.insert(2);
    
    else if(s1[i]=='Y')
        s.insert(3);
    
    else
       s.insert(4);
  }
  
  if(s.size()==3)
      printf("Three");
  
  else
     printf("Four");
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: 'class std::set<int>' has no member named 'length'
   12 |   for(i=0;i<s.length();++i)
      |               ^~~~~~
Language: C++

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

int main(){

  int N;
  int P,W,G,Y;

  cin>>N;

  rep(i,N){
  
    string x;
    cin>>x;
  
  if(x=="P")
    P++;
   
    else if(x=="W")
    W++;
  
    else if(x=="G")
    G++;
  
    else if(x=="Y")
    Y++;
}
  if(Y>0)
    cout << "Four" << endl;
  else
    cout << "Three" <<endl;
}
    



Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: 'i' was not declared in this scope
   12 |   rep(i,N){
      |       ^
a.cc:3:22: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(i=0;i<(int)(n);i++)
      |                      ^
Language: C++

#include <bits/stdc++.h>
 
using namespace std;
 
int main()
{
   
   set<int > s;
   string s1;
   cin>>s1;
  int i;
  for(i=0;i<s.length();++i)
  {
    if(s1[i]=='G')
        s.insert(1);
    
    else if(s1[i]=='w')
        s.insert(2);
    
    else if(s1[i]=='Y')
        s.insert(3);
    
    else
       s.insert(4);
  }
  
  printf("%d",s.size());
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: 'class std::set<int>' has no member named 'length'
   12 |   for(i=0;i<s.length();++i)
      |               ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin >> n;
  int check[4] = 0;
  for(int i = 0;i < n;i++) {
    char c;
    cin >> c;
    if(c == 'P')
      check[0] = 1;
    if(c == 'G')
      check[1] = 1;
    if(c == 'Y')
      check[2] = 1;
    if(c == 'W')
      check[3] = 1;
  }
  int sum = 0;
  for(int i = 0; i < 4; i++)
    sum += check[i];
  if(sum == 3)
    cout << "Three" << endl;
  else
    cout << "Four" << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: array must be initialized with a brace-enclosed initializer
    6 |   int check[4] = 0;
      |                  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin >> n;
  int check[4] = 0;
  for(int i = 0;i < n;i++) {
    char c;
    cin >> c;
    if(c == "P")
      check[0] = 1;
    if(c == "G")
      check[1] = 1;
    if(c == "Y")
      check[2] = 1;
    if(c == "W")
      check[3] = 1;
  }
  int sum = 0;
  for(int i = 0; i < 4; i++)
    sum += check[i];
  if(sum == 3)
    cout << "Three" << endl;
  else
    cout << "Four" << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: array must be initialized with a brace-enclosed initializer
    6 |   int check[4] = 0;
      |                  ^
a.cc:10:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if(c == "P")
      |        ~~^~~~~~
a.cc:12:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     if(c == "G")
      |        ~~^~~~~~
a.cc:14:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     if(c == "Y")
      |        ~~^~~~~~
a.cc:16:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |     if(c == "W")
      |        ~~^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:10: error: expected ';' before 'break'
   15 |       i--
      |          ^
      |          ;
   16 |       break;
      |       ~~~~~
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,p,w,g,y;
   cin >> N;
   y=0;
   rep (i,N) {
string x;
     cin >> x;
     if(x == Y){
    y= y+1;
     break;
     }
}
   if(y==0){
     cout << "Three";
   }else{
     cout << "Four";
        }
   
   
   
   
   
   
   
}


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

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

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


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

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

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

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

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

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

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

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

int main() {
  int n;
  string x;
  cin >> n;
  while (n>0) {
    cin >> x;
    if (x="Y") {
      cout << "Four";
      break;
    }
    n--;
  }
  if (n=0) cout << "Three";
}

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

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

int main(){
  string Si = "";
  int i = 0;
  int N;
  cin >> N;
  for(i=0; i<N; i++){
    cin >> Si;
  }
    if(Si == "P" || "W" || "G" || "Y"){
      if(Si == Y){
        cout << "Four" << endl;
      }else{
      cout << "Tree" << endl;
      }
    }
}


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

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

int main(){
  string Si = "";
  int i = 0;
  cin >> N;
  for(i=0; i<N; i++){
    cin >> Si;
  }
    if(Si == P || W || G || Y){
      if(Si == Y){
        cout << "Four" << endl;
      }else{
      cout << "Tree" << endl;
      }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'N' was not declared in this scope
    7 |   cin >> N;
      |          ^
a.cc:11:14: error: 'P' was not declared in this scope
   11 |     if(Si == P || W || G || Y){
      |              ^
a.cc:11:19: error: 'W' was not declared in this scope
   11 |     if(Si == P || W || G || Y){
      |                   ^
a.cc:11:24: error: 'G' was not declared in this scope
   11 |     if(Si == P || W || G || Y){
      |                        ^
a.cc:11:29: error: 'Y' was not declared in this scope
   11 |     if(Si == P || W || G || Y){
      |                             ^
Language: C++

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

int main () {
  int N;
  cin >> N ;
  
  string S;
  
  for (int i = 0; i < N; i++){
    cin >> S;
    if (S == Y) {
      cout << "Four" << endl;
      break;
    }
  }
  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 (S == Y) {
      |              ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a;
  cin >> a;
  char s[n];
  for(int i=0;i<n;i++){
    cin >> s[i];
    if(s[i]=='Y'){
      cout << "Four";
      return 0;
    }
  }
  cout << "Three";
}


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

#include<bits/std.c++>
using namespace std;
int main(){
    int n,i,flag = 0;
    string s[100];
    
    cin >> n;
    for(i = 0 ; i < n ; i++){
        cin >> s[i];
    }
    for(i = 0 ; i < n ; i++){
        if(s[i] == 'Y'){
            flag = 1;
            break;
        }
    }
    if(flag == 0) cout << "Three" << endl;
    else cout << "Four" << endl;
}


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

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

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

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

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

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


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

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

int main(){
  int N;
  string S;
  bool flg = false;
  
  for(i=0; i<N; i++){
    cin >> S;
    if(S == "Y")
      flg = true;
  }
  if(flg){
    cout << "Four" << enel;
  }else{
    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++){
      |       ^
a.cc:15:23: error: 'enel' was not declared in this scope
   15 |     cout << "Four" << enel;
      |                       ^~~~
Language: C++

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

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


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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: found ':' in nested-name-specifier, expected '::'
    7 |   string s:
      |           ^
      |           ::
a.cc:7:10: error: 's' has not been declared
    7 |   string s:
      |          ^
a.cc:8:6: error: qualified-id in declaration before '>>' token
    8 |   cin>>n;
      |      ^~
a.cc:11:10: error: 's' was not declared in this scope
   11 |     cin>>s;
      |          ^
a.cc:16:11: error: 'Three' was not declared in this scope
   16 |     cout<<Three;
      |           ^~~~~
a.cc:18:11: error: 'Four' was not declared in this scope
   18 |     cout<<Four;
      |           ^~~~
Language: C++

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

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



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

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

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



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

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

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

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

 int N;
 cin >> N;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected initializer before 'cin'
   11 |   cin >> S;
      |   ^~~
a.cc:13:7: error: 'S' was not declared in this scope
   13 |   if (S == "Y"){
      |       ^
a.cc:21:3: error: expected '}' at end of input
   21 |  }
      |   ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

 int N;
 cin >> N;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: expected initializer before 'if'
   12 |   if (S == "Y"){
      |   ^~
a.cc:16:3: error: 'else' without a previous 'if'
   16 |   else {
      |   ^~~~
a.cc:20:3: 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;
 
int main() {

 int N;
 cin >> N;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: expected ';' before '<' token
    9 |  for (int i=0, i < N, i++){
      |                 ^~
      |                 ;
a.cc:9:18: error: expected primary-expression before '<' token
    9 |  for (int i=0, i < N, i++){
      |                  ^
a.cc:9:26: error: expected ';' before ')' token
    9 |  for (int i=0, i < N, i++){
      |                          ^
      |                          ;
a.cc:12:3: error: expected initializer before 'if'
   12 |   if (S == "Y"){
      |   ^~
a.cc:16:4: error: 'else' without a previous 'if'
   16 |    else {
      |    ^~~~
a.cc:20:3: 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;
 
int main() {

 int N;
 cin >> N;

 for (i=0, i < N, i++){
  string S
 
  if (S == "Y"){
   cout << "Four" << endl;
  }
 
   else {
   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++){
      |       ^
a.cc:22:3: error: expected primary-expression before '}' token
   22 |   }
      |   ^
a.cc:20:3: error: expected ';' before '}' token
   20 |  }
      |   ^
      |   ;
   21 | 
   22 |   }
      |   ~
a.cc:22:3: error: expected primary-expression before '}' token
   22 |   }
      |   ^
a.cc:20:3: error: expected ')' before '}' token
   20 |  }
      |   ^
      |   )
   21 | 
   22 |   }
      |   ~
a.cc:9:6: note: to match this '('
    9 |  for (i=0, i < N, i++){
      |      ^
a.cc:22:3: error: expected primary-expression before '}' token
   22 |   }
      |   ^
Language: C++

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

int main(){
  int N;
  char C;
  cin >> N;
  
  for(int i =O; i<N; i++){
    cin >> C;
    
    if(i == N-1){
      cout << "Three" << endl;
    }
    
   if(C == 'Y'){
     cout << "Four" << endl;
     break;
   }
    
    else{
      continue;
    }
    
  }
  
}

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

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

int main(){
  int N;
  char C;
  cin >> N;
  
  for(int i =O; i<N; i++){
    cin >> C;
    
    if(i == N-1){
      cout << "Three" << endl;
    }
    
   else if(C == 'Y'){
     cout << "Four" << endl;
     break;
   }
    
    else{
      continue;
    }
    
  }
  
}

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

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

int main(){
  int N;
  cin >> N;
  char C;
    int i = 0;
  while(i < N){
    cin >> C;
      
    if(C == 'Y'){
        cout << "Four" << endl;
        break;
    }
    
    else {
        continue;
    }
      
      if(i == N-1){
          cout << "Three" << endl;
      }
      i++;
  }
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclrde; did you mean #include?
    1 | #inclrde<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> N;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclrde<bits/stdc++.h>
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout << "Four" << endl;
      |         ^~~~
a.cc:13:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:27: error: 'endl' was not declared in this scope
   13 |         cout << "Four" << endl;
      |                           ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inclrde<bits/stdc++.h>
a.cc:22:11: error: 'cout' was not declared in this scope
   22 |           cout << "Three" << endl;
      |           ^~~~
a.cc:22:11: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:22:30: error: 'endl' was not declared in this scope
   22 |           cout << "Three" << endl;
      |                              ^~~~
a.cc:22:30: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'i' was not declared in this scope
    9 |   for (i=0;i<n;i++){
      |        ^
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 <set>
using namespace std;

int main() {
  int n,ans;
  cin >> n;
  vector<char> vec1(n);
  for(int i=0;i<n;i++){
    cin >> vec1.at(i);
  }
  for(int i=0;i<n;i++){
    if (vec1.at(i) == 'Y'){
        ans += 1;
    }
  }
  if (ans == 0){
    cout << "Three" << endl;
  }
  else{
  	cout << "Four" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> n;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <set>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<char> vec1(n);
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <set>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:7:10: error: expected primary-expression before 'char'
    7 |   vector<char> vec1(n);
      |          ^~~~
a.cc:9:12: error: 'vec1' was not declared in this scope
    9 |     cin >> vec1.at(i);
      |            ^~~~
a.cc:12:9: error: 'vec1' was not declared in this scope
   12 |     if (vec1.at(i) == 'Y'){
      |         ^~~~
a.cc:17:5: error: 'cout' was not declared in this scope
   17 |     cout << "Three" << endl;
      |     ^~~~
a.cc:17:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:24: error: 'endl' was not declared in this scope
   17 |     cout << "Three" << endl;
      |                        ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <set>
  +++ |+#include <ostream>
    2 | using namespace std;
a.cc:20:9: error: 'cout' was not declared in this scope
   20 |         cout << "Four" << endl;
      |         ^~~~
a.cc:20:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:20:27: error: 'endl' was not declared in this scope
   20 |         cout << "Four" << endl;
      |                           ^~~~
a.cc:20:27: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:19:4: 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;
  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;
      break;
    }
  }
}

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

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

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


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

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

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


Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:10:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if(x == "Y"){
      |        ~~^~~~~~
Language: C++

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

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


Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(x == "Y"){
      |        ~~^~~~~~
Language: C++

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

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


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


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

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

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


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

#include<iostream>
using namespace std;
int main(){
  int n;
  cin>>n;
  string ans="Three";
  char a[n];
  for(int i=0;i<n;i++)cin>>a[i];
  for(int i=0;i<n;i++)
    if(a[i]=="Y")ans="Four";
  cout<<ans<<endl;
  return 0;
}


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

#include<iostream>
using namespace std;
int main(){
  int n;
  cin>>n;
  string ans="Three";
  char a[n];
  for(i=0;i<n;i++)cin>>a[i];
  for(i=0;i<n;i++)
    if(a[i]=="Y")ans="Four";
  cout<<ans<<endl;
  return 0;
}

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;i++)cin>>a[i];
      |       ^
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 a;
  a=0;

  for(int i=1;i<N+1;i++){
    string Si;
    cin>>Si;
    
  if (Si="P","W","G"){
      continue;
    }
  else{
      a++;
      break;
}
}
if(a=0){
    cout<<Three;
}
else{
    cout<<Four;
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:11: error: 'Three' was not declared in this scope
   24 |     cout<<Three;
      |           ^~~~~
a.cc:27:11: error: 'Four' was not declared in this scope
   27 |     cout<<Four;
      |           ^~~~
Language: C++

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

int main(){

  int N;
  cin>>N;
  int a;
  a=0;

  for(i=1;i<N+1;i++){
    string Si;
    cin>>Si;
    
  if (Si=P,W,G){
      continue;
    }
  else{
      a++;
      break;
}
}
if(a=0){
    cout<<Three;
}
else{
    cout<<Four;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: 'i' was not declared in this scope
   11 |   for(i=1;i<N+1;i++){
      |       ^
a.cc:15:10: error: 'P' was not declared in this scope
   15 |   if (Si=P,W,G){
      |          ^
a.cc:15:12: error: 'W' was not declared in this scope
   15 |   if (Si=P,W,G){
      |            ^
a.cc:15:14: error: 'G' was not declared in this scope
   15 |   if (Si=P,W,G){
      |              ^
a.cc:24:11: error: 'Three' was not declared in this scope
   24 |     cout<<Three;
      |           ^~~~~
a.cc:27:11: error: 'Four' was not declared in this scope
   27 |     cout<<Four;
      |           ^~~~
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"){
      S = "Four";
      cout << S << endl;
      break;
    }
    else{
    }
  }
  if (S == "Four"){
  }
  else{
    cout << "Three" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'String' was not declared in this scope
    6 |   String S;
      |   ^~~~~~
a.cc:9:12: error: 'S' was not declared in this scope
    9 |     cin >> S;
      |            ^
a.cc:18:7: error: 'S' was not declared in this scope
   18 |   if (S == "Four"){
      |       ^
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"){
      S = "Four";
      cout << S << endl;
      break;
    }
    else{
    }
  }
  if (S == "Four"){
  }
  else{
    cout << "Three" << endl;
  }
}


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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: 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]
   11 |       S == "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:18:7: error: 'S' was not declared in this scope
   18 |   if (S == "Four"){
      |       ^
Language: C++

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

int main() {
  int flag = 0;
  cin >> num;
  for(int i = 0;i < num;i++){

    string c; 
    cin >> c;
    if(c == "Y"){
      flag = 1;
      cout << "Four" << endl;
    break;
    }
  }
  if(flag != 0){
    cout << "Three" << endl;
  }
}


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:17:6: error: 'flag' was not declared in this scope
   17 |   if(flag != 0){
      |      ^~~~
Language: C++

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

int main() {
 int num;
  cin >> num;
  for(int i = 0;i < num;i++){
    int n = 0,flagP = 0,flagY = 0,flagW = 0,flagG = 0;
    string c; 
    cin >> c;
    if(c == "P"){
      if(flagP == 0){
        flagP = 1;
      	n++;
      }
    }else if(c == "Y"){
      if(flagY == 0){
        flagY = 1;
      	n++;
      }
    }else if(c == "W"){
      if(flagW == 0){
        flagW = 1;
      	n++;
      }
    }else if(c == "G"){
      if(flagG == 0){
        flagP = 1;
      	n++;
      }
    }
  }
  if(n == 3){
    cout << "Three" << endl;
  }else if(n == 4){
    cout << "Four" << endl;
  }
      
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:6: error: 'n' was not declared in this scope; did you mean 'yn'?
   33 |   if(n == 3){
      |      ^
      |      yn
Language: C++

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

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

  // ここにプログラムを追記
  for(int i = 1; i <= N ; i++) {
    string s;
    int B;
    cin >> s;
    if( s == "P") {
      P = true
    } else if (s == "W") {
      W = true;
    } else if (s == "G") {
      G = true;
    } else if (s == "Y") {
      Y = true;
    } 
  }
  if(P && W && G && !Y) {
    cout << "Three" << endl;
  } else if (P && W && G && Y) {
    cout << "Four" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:15: error: expected ';' before '}' token
   15 |       P = true
      |               ^
      |               ;
   16 |     } else if (s == "W") {
      |     ~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: conflicting declaration 'std::string S'
    7 |   string S,Ans;
      |          ^
a.cc:5:10: note: previous declaration as 'int S'
    5 |   int N, S;
      |          ^
a.cc:10:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if (S == "Y") {
      |         ~~^~~~~~
Language: C++

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

int(int argc, char *argv[]){
	int n;
	string s;
	cin >> n >> s;
	for(int i=0;i<n;++i){
		if(s[i]!='p' && s[i]!='W' && s[i]!='G') {
			cout << "Four" << endl;
		} else {
			cout << "Three" << endl;
		}
	}
}

Compiler output:
a.cc:4:5: error: expected unqualified-id before 'int'
    4 | int(int argc, char *argv[]){
      |     ^~~
a.cc:4:5: error: expected ')' before 'int'
    4 | int(int argc, char *argv[]){
      |    ~^~~
      |     )