criyle/codenet-compile-errors huggingface dataset:
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 s;
    cin >> s;
    
    if (s=="Y"){
      ans="Four";
      break
    }
      
}
  cout << ans << endl;
}


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

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

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: 'ifelse' was not declared in this scope; did you mean 'sigrelse'?
   16 |     ifelse(N==i+1){
      |     ^~~~~~
      |     sigrelse
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:8: error: expected '(' before 'else'
   16 |     if else(N==i+1){
      |        ^~~~
      |        (
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: 'evenif' was not declared in this scope
   16 |     evenif(N==i+1){
      |     ^~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: 'even' was not declared in this scope
   16 |     even(N==i+1){
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
union A{
  struct{
    unsigned char none:4;
    unsigned char P:1;
    unsigned char W:1;
    unsigned char G:1;
    unsigned char Y:1;
  };
  unsigned char flag;
};
  
int main() {
  int N,j;
  cin >> N;
  for(int i = 0 ; i < N ; i ++){
    cin >> j;
    if(j == 'P'){
      A.P = 1;
    }else if(j == 'W'){
      A.W = 1;
    }else if(j == 'G'){
      A.G = 1;
    }else{
      A.Y = 1;
    }
  }
  
  if(A.flag == 0x0f){
    cout << "Four" << endl;
  }else{
    cout << "Three" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:8: error: expected unqualified-id before '.' token
   21 |       A.P = 1;
      |        ^
a.cc:23:8: error: expected unqualified-id before '.' token
   23 |       A.W = 1;
      |        ^
a.cc:25:8: error: expected unqualified-id before '.' token
   25 |       A.G = 1;
      |        ^
a.cc:27:8: error: expected unqualified-id before '.' token
   27 |       A.Y = 1;
      |        ^
a.cc:31:7: error: expected unqualified-id before '.' token
   31 |   if(A.flag == 0x0f){
      |       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
union A{
  struct{
    unsigned char none:4;
    unsigned char P:1;
    unsigned char W:1;
    unsigned char G:1;
    unsigned char Y:1;
  };
  unsigned char flag;
};
  
int main() {
  int N,j;
  cin >> N;
  for(int i = 0 ; i < N ; i ++){
    cin >> j;
    if(j == "P"){
      A.P = 1;
    }else if(j == "W"){
      A.W = 1;
    }else if(j == "G"){
      A.G = 1;
    }else{
      A.Y = 1;
    }
  }
  
  if(A.flag == 0x0f){
    cout << "Four" << endl;
  }else{
    cout << "Three" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   20 |     if(j == "P"){
      |        ~~^~~~~~
a.cc:21:8: error: expected unqualified-id before '.' token
   21 |       A.P = 1;
      |        ^
a.cc:22:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   22 |     }else if(j == "W"){
      |              ~~^~~~~~
a.cc:23:8: error: expected unqualified-id before '.' token
   23 |       A.W = 1;
      |        ^
a.cc:24:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   24 |     }else if(j == "G"){
      |              ~~^~~~~~
a.cc:25:8: error: expected unqualified-id before '.' token
   25 |       A.G = 1;
      |        ^
a.cc:27:8: error: expected unqualified-id before '.' token
   27 |       A.Y = 1;
      |        ^
a.cc:31:7: error: expected unqualified-id before '.' token
   31 |   if(A.flag == 0x0f){
      |       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
union A{
  struct{
    unsigned char none:4;
    unsigned char P:1;
    unsigned char W:1;
    unsigned char G:1;
    unsigned char Y:1;
  };
  unsigned char flag;
}
  
int main() {
  int N,j;
  cin >> N;
  for(int i = 0 ; i < N ; i ++){
    cin >> j;
    if(j == "P"){
      A.P = 1;
    }else if(j == "W"){
      A.W = 1;
    }else if(j == "G"){
      A.G = 1;
    }else{
      A.Y = 1;
    }
  }
  
  if(A.flag == 0x0f){
    cout << "Four" << endl;
  }else{
    cout << "Three" << endl;
  }
}

Compiler output:
a.cc:13:2: error: expected ';' after union definition
   13 | }
      |  ^
      |  ;
a.cc: In function 'int main()':
a.cc:20:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   20 |     if(j == "P"){
      |        ~~^~~~~~
a.cc:21:8: error: expected unqualified-id before '.' token
   21 |       A.P = 1;
      |        ^
a.cc:22:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   22 |     }else if(j == "W"){
      |              ~~^~~~~~
a.cc:23:8: error: expected unqualified-id before '.' token
   23 |       A.W = 1;
      |        ^
a.cc:24:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   24 |     }else if(j == "G"){
      |              ~~^~~~~~
a.cc:25:8: error: expected unqualified-id before '.' token
   25 |       A.G = 1;
      |        ^
a.cc:27:8: error: expected unqualified-id before '.' token
   27 |       A.Y = 1;
      |        ^
a.cc:31:7: error: expected unqualified-id before '.' token
   31 |   if(A.flag == 0x0f){
      |       ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected ';' before 't'
    8 |   count t = 0;
      |        ^~
      |        ;
a.cc:8:14: error: statement cannot resolve address of overloaded function
    8 |   count t = 0;
      |              ^
a.cc:12:12: error: no post-increment operator for type
   12 |       count++;
      |            ^~
a.cc:16:12: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator=='
   16 |   if(count == 0){
      |      ~~~~~~^~~~
Language: C++

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

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


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

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

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


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

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

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'for'
    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 <stdio.h>

int main(){
    int N;
    char c;
    bool f = false;
    scanf("%d",&N);

    for(int i = 0; i < N;i++){
        scanf("%s",&c)
        if(c == 'Y')
            f = true;
    }
    if(f)
        puts("Four");
    else
        puts("Three");
    

}


Compiler output:
main.c: In function 'main':
main.c:6:5: error: unknown type name 'bool'
    6 |     bool f = false;
      |     ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:6:14: error: 'false' undeclared (first use in this function)
    6 |     bool f = false;
      |              ^~~~~
main.c:6:14: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:6:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:23: error: expected ';' before 'if'
   10 |         scanf("%s",&c)
      |                       ^
      |                       ;
   11 |         if(c == 'Y')
      |         ~~
Language: C++

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>n;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |      if(a[i]=="Y"){
      |         ~~~~^~~~~
a.cc:9:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |        cout<<"Four"<<endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |        cout<<"Four"<<endl;
      |                      ^~~~
      |                      std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:13:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |   cout<<"Three"<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |   cout<<"Three"<<endl;
      |                  ^~~~
      |                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

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

Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

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

int main() {
  int N;
  cin >> N;
  for ( int i = 0; i < N; i++){
    string co;
    int k, l, m, n;
    k = 0;
    l = 0;
    m = 0;
    n = 0;
    cin >> co;
    if ( co == "G"){
      k = 1;
    }
    if ( co == "W"){
      l = 1;
    }
    if ( co == "P"){
      m = 1;
    }
    if ( co == "Y"){
      n = 1;
    }
  }
  int d;
  d = k + l + m + n;
  if (d == 1){
    cout << "One" << endl;
  }
   if (d == 2){
    cout << "Tue" << endl;
  }
   if (d == 3){
    cout << "Three" << endl;
  }
   if (d == 4){
    cout << "Four" << endl;
  }
      
      
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:7: error: 'k' was not declared in this scope
   29 |   d = k + l + m + n;
      |       ^
a.cc:29:11: error: 'l' was not declared in this scope
   29 |   d = k + l + m + n;
      |           ^
a.cc:29:15: error: 'm' was not declared in this scope
   29 |   d = k + l + m + n;
      |               ^
a.cc:29:19: error: 'n' was not declared in this scope
   29 |   d = k + l + m + n;
      |                   ^
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)
      break;
  }
  
  if(S == Y)
    cout << "Four" << endl;
  else cout << "Three" << endl;
}


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

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

int main(){
  int N;
  cin >> N;
  
  vector<char> vec
  for(int i=0;i<N;i++){
    cin >> vec.at(i);
  }

  sort(vec.begin(),vec.end());
  
  bool ans=false;
 
  
  for(int i-0;i<N;i++){
  if(vec.at(i)=='Y'){
    ans=true;
  }
  }
  
    if(ans==true){
      cout << "Four" << endl;
    }
    else{
      cout << "Three" << endl;
    }
  
}
      
      

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected initializer before 'for'
    9 |   for(int i=0;i<N;i++){
      |   ^~~
a.cc:9:15: error: 'i' was not declared in this scope
    9 |   for(int i=0;i<N;i++){
      |               ^
a.cc:13:8: error: 'vec' was not declared in this scope
   13 |   sort(vec.begin(),vec.end());
      |        ^~~
a.cc:18:12: error: expected ';' before '-' token
   18 |   for(int i-0;i<N;i++){
      |            ^
      |            ;
a.cc:18:18: error: expected ')' before ';' token
   18 |   for(int i-0;i<N;i++){
      |      ~           ^
      |                  )
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: no match for 'operator=' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   12 |     cin = S;
      |           ^
In file included from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127,
                 from a.cc:1:
/usr/include/c++/14/istream:718:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator=(std::basic_istream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits<char>]'
  718 |       operator=(basic_istream&& __rhs)
      |       ^~~~~~~~
/usr/include/c++/14/istream:718:33: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'std::basic_istream<char>&&'
  718 |       operator=(basic_istream&& __rhs)
      |                 ~~~~~~~~~~~~~~~~^~~~~
Language: C++

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

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

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

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

#include <bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin>>n;
  vector<string> vec(n);
  for(int i=0;i<n;i++){
    cin>>vec.at(i);
  }
  bool y=false;
  for(int i=0;i<n;i++){
    if(vec.at(j)=='Y') y=true;
  }
  if(y) cout<<"Four"<<endl;
  else cout<<"Three"<<endl;
}

  

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: 'j' was not declared in this scope
   12 |     if(vec.at(j)=='Y') y=true;
      |               ^
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;
    }
    if(s=="P"||"W"||"G"){
      continue;
      if(i==N-1){
        cout<<Three<<endl;
      }
    }
  }
}


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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  	int N; //number of calculation
  	cin >> N;
  
  	for (int i=0; i<N; i++){
		int V = 0; //variety
      	string C; //color
      	cin >> C;
      
	　if (C == "Y"){
        cout << "Four" << endl;
        break;
      }
      
      else if (C == "W" || C == "G" || C == "P"){
        V++;
        if (V = N){
			cout << "Three" << endl;
          	break;}
    }

}
}

Compiler output:
a.cc:13:9: error: extended character 　 is not valid in an identifier
   13 |         　if (C == "Y"){
      |         ^
a.cc: In function 'int main()':
a.cc:13:9: error: '\U00003000if' was not declared in this scope
   13 |         　if (C == "Y"){
      |         ^~~~
a.cc:18:7: error: 'else' without a previous 'if'
   18 |       else if (C == "W" || C == "G" || C == "P"){
      |       ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  	int N; //number of calculation
  	cin >> N;
  
  	for (int i=0; i<N; i++){
		int V; //variety
      	string C; //color
      	cin >> C;
      
	　if (C == "Y"){
        cout << "Four" << endl;
        break;
      }
      
      else if (C == "W" || C == "G" || C == "P"){
        V++;
        if (V = N){
			cout << "Three" << endl;
          	break;}
    }

}
}

Compiler output:
a.cc:13:9: error: extended character 　 is not valid in an identifier
   13 |         　if (C == "Y"){
      |         ^
a.cc: In function 'int main()':
a.cc:13:9: error: '\U00003000if' was not declared in this scope
   13 |         　if (C == "Y"){
      |         ^~~~
a.cc:18:7: error: 'else' without a previous 'if'
   18 |       else if (C == "W" || C == "G" || C == "P"){
      |       ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  	int N; //number of calculation
  	cin >> N;
  
  	for (int i=0; i<N; i++){
		int V; //variety
      	string C; //color
      	cin >> C;
      
      if (V = N){
		cout << "Three" << endl;
        break;
      }
      else if (C == "Y"){
        cout << "Four" << endl;
        break;
      }
      
      else if (C == "W" || C == "G" || C == "P")
        V++;
    }

}
}

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

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

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


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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  	int N; //number of calculation
  	cin >> N;
  
  	for (int i=0; i<N; i++){
		int V; //variety
      	int C; //color
      	cin >> C;
      
      if (C == "Y"){
        V + 2;
      }
      
      else if (C == "W" || C == "G" || C == "P")
        V++;
    }
  	break;
  	if (V = N){
    cout << "Three" << endl;
    }
  	else {
      cout << "Four" << endl;
    }
}}
    
     
      
  
  
  
  
  
  
  
  
  
  
  
    

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |       if (C == "Y"){
      |           ~~^~~~~~
a.cc:17:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |       else if (C == "W" || C == "G" || C == "P")
      |                ~~^~~~~~
a.cc:17:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |       else if (C == "W" || C == "G" || C == "P")
      |                            ~~^~~~~~
a.cc:17:42: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |       else if (C == "W" || C == "G" || C == "P")
      |                                        ~~^~~~~~
a.cc:20:9: error: break statement not within loop or switch
   20 |         break;
      |         ^~~~~
a.cc:21:13: error: 'V' was not declared in this scope
   21 |         if (V = N){
      |             ^
a.cc: At global scope:
a.cc:27:2: error: expected declaration before '}' token
   27 | }}
      |  ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:15:6: error: expected '(' before 'else'
   15 |   if else(Y==0){
      |      ^~~~
      |      (
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: 'Y' was not declared in this scope
   10 |     if(S[i]=="Y"){Y=1;}}
      |                   ^
a.cc:11:6: error: 'Y' was not declared in this scope
   11 |   if(Y==1){
      |      ^
Language: C++

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

int main() {
  int N;
  char S[100];
  int P=0;
  int W=0;
  int G=0;
  int Y=0;
  cin >> N;
  for(int i=1; i<=N; i++){
    cin >> S[i];
    if(S[i]=="P"){P=1;}
    if(S[i]=="W"){W=1;}
    if(S[i]=="G"){G=1;}
    if(S[i]=="Y"){Y=1;}}
  int result=P+W+G+Y;
  if(result==3){
    cout << "Three" << endl;}
  if(result==4){
    cout << "Four" << endl;}
}
  
  


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

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

int main() {
  int N;
  char S[100];
  int P=0;
  int W=0;
  int G=0;
  int Y=0;
  for(int i=1; i<=N; i++){
    cin >> S[i];
    if(S[i]=="P"){P=1;}
    if(S[i]=="W"){W=1;}
    if(S[i]=="G"){G=1;}
    if(S[i]=="Y"){Y=1;}}
  int result=P+W+G+Y;
  if(result==3){
    cout << "Three" << endl;}
  if(result==4){
    cout << "Four" << endl;}
}
  
  


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

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

int main() {
    int n;
    cin >> n;
    int count = 0;
    char x;
    int i = 0;

    while (i < n) {
        cin >> x;
        if (x == "Y") {
            count++;
        }
        i++;
    }
    if (count) {
        cout << "Four" << endl;
    } else {
        cout << "Three" << endl;
    }
}

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

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

int main() {
    int n;
    cin >> n;
    int count = 0;
    int x;
    int i = 0;

    while (i < n) {
        cin >> x;
        if (c == "Y") {
            count++;
        }
        i++;
    }
    if (count) {
        cout << "Four" << endl;
    } else {
        cout << "Three" << endl;
    }
}

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

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

int main() {
    int n;
    cin >> n;
    int count = 0;
    int x;
    int i = 0;

    while (i < n) {
        cin >> x;
        if (c == 'Y') {
            count++;
        }
        i++;
    }
    if (count) {
        cout << 'Four' << endl;
    } else {
        cout << 'Three' << endl;
    }
}

Compiler output:
a.cc:19:17: warning: multi-character character constant [-Wmultichar]
   19 |         cout << 'Four' << endl;
      |                 ^~~~~~
a.cc:21:17: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
   21 |         cout << 'Three' << endl;
      |                 ^~~~~~~
a.cc: In function 'int main()':
a.cc:13:13: error: 'c' was not declared in this scope
   13 |         if (c == 'Y') {
      |             ^
Language: C++

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

int main() {
  int N ,count ,c;
  string S;
  cin >> N;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:19:6: error: redeclaration of 'int c'
   19 |  int c = 0
      |      ^
a.cc:5:17: note: 'int c' previously declared here
    5 |   int N ,count ,c;
      |                 ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: expected unqualified-id before '}' token
    8 | }
      | ^
a.cc:7:10: error: expected ';' before '}' token
    7 |   for(int
      |          ^
      |          ;
    8 | }
      | ~         
a.cc:8:1: error: expected primary-expression before '}' token
    8 | }
      | ^
a.cc:7:10: error: expected ';' before '}' token
    7 |   for(int
      |          ^
      |          ;
    8 | }
      | ~         
a.cc:8:1: error: expected primary-expression before '}' token
    8 | }
      | ^
a.cc:7:10: error: expected ')' before '}' token
    7 |   for(int
      |      ~   ^
      |          )
    8 | }
      | ~         
a.cc:8:1: error: expected primary-expression before '}' token
    8 | }
      | ^
Language: C++

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

int main() {
  int N ,count;
  string S;
  cin >> N;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: expected ';' before '}' token
   13 |    count = 1
      |             ^
      |             ;
   14 |  }
      |  ~           
a.cc:16:13: error: expected ';' before '}' token
   16 |    count = 0
      |             ^
      |             ;
   17 |  }
      |  ~           
a.cc:19:2: error: 'c' was not declared in this scope
   19 |  c = c + count;
      |  ^
a.cc:27:2: error: expected '}' at end of input
   27 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C

#include <stdio.h>
 
int main(void)
{
    int n,i;
    char s[100];
  
    scanf("%d",&n);
    
    int flag=0;
  
    for(i=0;i<n;i++){
        scanf("%c",s[i]);
        if(s[i]=='Y') {
           flag=1;
           break;
        }
      
      if(flag==1) printf("Four\n");
      else        printf("Three\n");
      
      return 0;
    }     

Compiler output:
main.c: In function 'main':
main.c:23:5: error: expected declaration or statement at end of input
   23 |     }
      |     ^
Language: C

#include <stdio.h>

int main(void)
{
    int n,i;
    char s[100];
  
    scanf("%d",&n);
    
    int flag=0;
  
    for(i=0;i<n;i++){
        scanf("%c",s[i])
        if(s[i]=='Y') {
           flag=1;
           break;
        }
      
      if(flag==1) printf("Four\n");
      else        printf("Three\n");
      
      return 0;
    }     

Compiler output:
main.c: In function 'main':
main.c:13:25: error: expected ';' before 'if'
   13 |         scanf("%c",s[i])
      |                         ^
      |                         ;
   14 |         if(s[i]=='Y') {
      |         ~~               
main.c:20:7: error: 'else' without a previous 'if'
   20 |       else        printf("Three\n");
      |       ^~~~
main.c:23:5: error: expected declaration or statement at end of input
   23 |     }
      |     ^
Language: C

#include <stdio.h>
 
int main(void)
{
    int n,s[100],a={0},i;
      
    scanf("%d",&n);
  
    for(i=0;i<n;i++)  scanf("%d",&s[i]);
  
    for(i=0;i<n;i++){
        if(s[i]=='Y'){
          a=1;
          break;
    }
  
    if(a==1)  printf("Four\n");
    else      printf("Three\n");
  
    return 0;
}  

Compiler output:
main.c: In function 'main':
main.c:21:1: error: expected declaration or statement at end of input
   21 | }
      | ^
Language: C++

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

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


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

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

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


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

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

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

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

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

int main() {
  int N,i;
  for(i=1;i<=N;i++){
    if(i!=Y)
      continue;
    else
    cout<< "Four" << endl;
    break;}
  cout << "Three" <<endl;
  
}


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

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

int main() {
  int N,i;
  for(i=1;i<=N;i++){
    if(i!="Y")
      continue
    else
    cout<< "Four" << endl;
    break}
  cout << "Three" <<endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |     if(i!="Y")
      |        ~^~~~~
a.cc:8:15: error: expected ';' before 'else'
    8 |       continue
      |               ^
      |               ;
    9 |     else
      |     ~~~~       
a.cc:11:10: error: expected ';' before '}' token
   11 |     break}
      |          ^
      |          ;
Language: C++

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

int main() {
  intN,i;
  for(i=1;i<=N;i++){
    if(i!=Y)
      continue
    else
    cout<< "Four" << endl;
    break}
  cout << "Three" <<endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'intN' was not declared in this scope; did you mean 'int'?
    5 |   intN,i;
      |   ^~~~
      |   int
a.cc:5:8: error: 'i' was not declared in this scope
    5 |   intN,i;
      |        ^
a.cc:6:14: error: 'N' was not declared in this scope
    6 |   for(i=1;i<=N;i++){
      |              ^
a.cc:7:11: error: 'Y' was not declared in this scope
    7 |     if(i!=Y)
      |           ^
a.cc:8:15: error: expected ';' before 'else'
    8 |       continue
      |               ^
      |               ;
    9 |     else
      |     ~~~~       
a.cc:11:10: error: expected ';' before '}' token
   11 |     break}
      |          ^
      |          ;
Language: C++

int n;
cin >> n;
int bP, bY, bG, bW;

while(n > 0)
{
 String s ;
  cin >> s;
  switch(s)
  {
    case 'P' : bP = true;
  	case 'Y' : bY = true;
    case 'G' : bY = true;
    case 'W' : bW = true;
  }
  n--;
}

n = 0;
if ( bP + bY + bG + bW = 4) cout << "Four";
else cout<<"Three";

Compiler output:
a.cc:2:1: error: 'cin' does not name a type
    2 | cin >> n;
      | ^~~
a.cc:5:1: error: expected unqualified-id before 'while'
    5 | while(n > 0)
      | ^~~~~
a.cc:19:1: error: 'n' does not name a type
   19 | n = 0;
      | ^
a.cc:20:1: error: expected unqualified-id before 'if'
   20 | if ( bP + bY + bG + bW = 4) cout << "Four";
      | ^~
a.cc:21:1: error: expected unqualified-id before 'else'
   21 | else cout<<"Three";
      | ^~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i=0; i<(n); ++i)
#define rrep(i,n) for(int i=1; i<=(n); ++i)
#define drep(i,n) for(int i=(n)-1; i>=0; --i)
#define srep(i,s,t) for (int i=s; i<t; ++i)
#define pb push_back
using namespace std;
using P = pair<int,int>;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vl;
typedef tuple<int,int,int> T;
typedef vector<P> vp;
typedef vector<T> vt;

// head
int main(void){
  int n;
  string s;
  cin >> n >> s;
  for(int i=0;i<n; i++){
    if(s[i]=="Y") {
      cout << "Four" << endl;
      return 0;
    }
  }
  cout << "Three" << endl;
  return 0;
}

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

#include <bits/stdc++.h>
#define rep(i,n) for (int i=0; i<(n); ++i)
#define rrep(i,n) for(int i=1; i<=(n); ++i)
#define drep(i,n) for(int i=(n)-1; i>=0; --i)
#define srep(i,s,t) for (int i=s; i<t; ++i)
#define pb push_back
using namespace std;
using P = pair<int,int>;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vl;
typedef tuple<int,int,int> T;
typedef vector<P> vp;
typedef vector<T> vt;

// head
int main(void){
  int n;
  string s;
  cin >> n >> s;
  for(int i=0;i<n; i++){
    if(s[i]=="Y") {
      cout << "Four" << endl;
    } else {
      cout << "Three" << endl;
      return 0;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   23 |     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++){
    string color;
    cin >> color;
    if(color=="Y"){
      cout << "Four" << endl;
      color="end";
    }
  }
  if(color!="end"){
    cout << "Three" << endl;
  }
  
}

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

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

int main() {
  string s;
  int n;
  bool y = false;
  cin >> n;
  cin >> s;
  n *= 2;
  
  for (int i = 0; i < n; i++) {
	if( s[i] == "Y" ) {
      y = true;
      break;
    }
  }
  if( y ) {
  	cout << "Four" << endl;
  } else {
  	cout << "Three" << endl;
  }  
}


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:23: error: 'stdl' was not declared in this scope; did you mean 'std'?
   16 |     cout << "Four" << stdl;
      |                       ^~~~
      |                       std
a.cc:18:24: error: 'stdl' was not declared in this scope; did you mean 'std'?
   18 |     cout << "Three" << stdl;
      |                        ^~~~
      |                        std
Language: C++

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

      cout<<"Three"<<endl;
}


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

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin>>N;
  string s;
  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:9:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(s.at(i)=="Y"){
      |        ~~~~~~~^~~~~
Language: C++

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

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: 'reutn' was not declared in this scope
   11 |       reutn 0;
      |       ^~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: 'N' was not declared in this scope
    6 |   for(int i = 0; i < N; i++){
      |                      ^
a.cc:9:10: error: expected unqualified-id before string constant
    9 |   string "P","W","G","Y";
      |          ^~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: 'i' was not declared in this scope
    6 |   for(i = 0; i < N; i++){
      |       ^
a.cc:6:18: error: 'N' was not declared in this scope
    6 |   for(i = 0; i < N; i++){
      |                  ^
a.cc:8:12: error: expected unqualified-id before string constant
    8 |   string S,"P","W","G","Y";
      |            ^~~
a.cc:12:15: error: expected ';' before '}' token
   12 |       continue
      |               ^
      |               ;
   13 |     }
      |     ~          
a.cc:16:12: error: expected ';' before '}' token
   16 |       break
      |            ^
      |            ;
   17 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n, flg = 0;
  string s[100]

  for(int i = 0; i < n; i++)
  {
      cin >> s[i];
      if(s[i] == "Y")
      {
          flg = 1;
      }
  }

  if(flg == 0)
  {
      cout << "Three" << endl;
  }
  else
  {
      cout << "Four" << endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected initializer 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 <stdio.h>
#define ON1
#define OFF0
 
int main(void)
{
    int n,s[100],i,a={0},flag;
      
    scanf("%d",&n);
  
    for(i=0;i<n;i++) scanf("%d",&s[i]);
    
    flag==OFF;
  
    for(i=0;i<n;i++)
        if(s[i]=='Y') flag=ON;
    
    if(flag) printf("Four\n");
    else     printf("Three\n");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:11: error: 'OFF' undeclared (first use in this function); did you mean 'OFF0'?
   13 |     flag==OFF;
      |           ^~~
      |           OFF0
main.c:13:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:28: error: 'ON' undeclared (first use in this function); did you mean 'ON1'?
   16 |         if(s[i]=='Y') flag=ON;
      |                            ^~
      |                            ON1
Language: C

#include <stdio.h>
 
int main(void)
{
    int n,s[100],i,a={0},flag;
      
    scanf("%d",&n);
  
    for(i=0;i<n;i++) scanf("%d",&s[i]);
    
    flag==OFF;
  
    for(i=0;i<n;i++)
        if(s[i]=='Y') flag=ON;
    
    if(flag) printf("Four\n");
    else     printf("Three\n");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:11: error: 'OFF' undeclared (first use in this function)
   11 |     flag==OFF;
      |           ^~~
main.c:11:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:28: error: 'ON' undeclared (first use in this function)
   14 |         if(s[i]=='Y') flag=ON;
      |                            ^~
Language: C

#include <stdio.h>
 
int main(void)
{
    int n,s[100],i,a={0},flag;
      
    scanf("%d",&n);
  
    for(i=0;i<n;i++) scanf("%d",&s[i]);
  
    for(i=0;i<n;i++)
        if(s[i]=='Y') flag=true;
    
    if(flag) printf("Four\n");
    else     printf("Three\n");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:28: error: 'true' undeclared (first use in this function)
   12 |         if(s[i]=='Y') flag=true;
      |                            ^~~~
main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:12:28: note: each undeclared identifier is reported only once for each function it appears in
   12 |         if(s[i]=='Y') flag=true;
      |                            ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:13:27: error: expected ';' before 'if'
   13 |         else          a==a
      |                           ^
      |                           ;
   14 |     if(a==1) printf("Four\n");
      |     ~~                     
main.c:15:5: error: 'else' without a previous 'if'
   15 |     else     printf("Three\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;
      break;
    }
    else {
      cout<<"Three"<<endl;
    }
  }
}

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