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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:32:3: error: 'else' without a previous 'if'
   32 |   else
      |   ^~~~
a.cc:33:29: error: expected '}' at end of input
   33 |     cout << "error" << endl;
      |                             ^
a.cc:10:27: note: to match this '{'
   10 |     for(int i = 0;i<N;i++){
      |                           ^
a.cc:33:29: error: expected '}' at end of input
   33 |     cout << "error" << endl;
      |                             ^
a.cc:9:23: note: to match this '{'
    9 |   if((N>=1)&&(N<=100)){
      |                       ^
a.cc:33:29: error: expected '}' at end of input
   33 |     cout << "error" << endl;
      |                             ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:28:13: error: 'j' was not declared in this scope
   28 |     else if(j>0)
      |             ^
a.cc:32:3: error: 'else' without a previous 'if'
   32 |   else
      |   ^~~~
a.cc:33:29: error: expected '}' at end of input
   33 |     cout << "error" << endl;
      |                             ^
a.cc:10:27: note: to match this '{'
   10 |     for(int i = 0;i<N;i++){
      |                           ^
a.cc:33:29: error: expected '}' at end of input
   33 |     cout << "error" << endl;
      |                             ^
a.cc:9:23: note: to match this '{'
    9 |   if((N>=1)&&(N<=100)){
      |                       ^
a.cc:33:29: error: expected '}' at end of input
   33 |     cout << "error" << endl;
      |                             ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'i' was not declared in this scope
    9 |   for(i=0,i<N,i++){
      |       ^
a.cc:16:5: error: expected primary-expression before 'if'
   16 |     if(x=0){
      |     ^~
a.cc:15:4: error: expected ';' before 'if'
   15 |   }
      |    ^
      |    ;
   16 |     if(x=0){
      |     ~~
a.cc:16:5: error: expected primary-expression before 'if'
   16 |     if(x=0){
      |     ^~
a.cc:15:4: error: expected ')' before 'if'
   15 |   }
      |    ^
      |    )
   16 |     if(x=0){
      |     ~~
a.cc:9:6: note: to match this '('
    9 |   for(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;
    }
    if(N==i-1){cout<<"Three"<<endl;
    return 0;}
  }

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: expected ';' before 'for'
    8 |   ans = "Three"
      |                ^
      |                ;
    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;
  cin >> N;
  
  for(int i = 0; i < N; i++){
    
    string color;
    cin >> color;
    
    if(color == "P" && color == "W" && color == "G"){
      cout << "Three" << endl;
    }
    
    else if(color == "P" && color == "W" && color == "Y"){
      cout << "Three" << endl;
      
    else if(color == "W" && color == "G" && color == "Y"){
      cout << "Three" << endl;
    }
    else if(color == "P" && color == "G" && color == "Y")
    
    else if((color == "P" && color == "W" && color == "G" && color == "Y"){
      cout << "Four" << endl;
      break;
    }
    
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:5: error: expected '}' before 'else'
   20 |     else if(color == "W" && color == "G" && color == "Y"){
      |     ^~~~
a.cc:17:58: note: to match this '{'
   17 |     else if(color == "P" && color == "W" && color == "Y"){
      |                                                          ^
a.cc:25:5: error: expected primary-expression before 'else'
   25 |     else if((color == "P" && color == "W" && color == "G" && color == "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 == "P" && color == "W" && color == "G"){
      cout << "Three" << endl;
    }
    
    else if(color == "P" && color == "W" && color == "Y"){
      cout << "Three" << endl;
      
    else if(color == "W" && color == "G" && color == "Y"){
      cout << "Three" << endl;
    }
    else if(color == "P" && color == "G" && color == "Y")
    
    else if((color == "P" && color == "W" && color == "G" && color == "Y"){
      cout << "Four" << endl;
      break;
    }
    
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:5: error: expected '}' before 'else'
   20 |     else if(color == "W" && color == "G" && color == "Y"){
      |     ^~~~
a.cc:17:58: note: to match this '{'
   17 |     else if(color == "P" && color == "W" && color == "Y"){
      |                                                          ^
a.cc:25:5: error: expected primary-expression before 'else'
   25 |     else if((color == "P" && color == "W" && color == "G" && color == "Y"){
      |     ^~~~
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);
    if (vec.at(i) = 'Y') {
      cout << "Four" << endl;
      break;
    }
  }
  cout << "Three" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: could not convert '(& vec.std::vector<std::__cxx11::basic_string<char> >::at(((std::vector<std::__cxx11::basic_string<char> >::size_type)i)))->std::__cxx11::basic_string<char>::operator=(89)' from 'std::__cxx11::basic_string<char>' to 'bool'
   10 |     if (vec.at(i) = 'Y') {
      |         ~~~~~~~~~~^~~~~
      |                   |
      |                   std::__cxx11::basic_string<char>
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin >> n;
  vector<char> s(n);
  for (int i-0;i<n;i++){
    cin >> s[i];
  }
  bool f=false;
  for (int i=0;i<n;i++){
    if(s[i]=='Y'){
      f=true;
    }
  }
  if(f){
    cout << "Four" << endl;
  }
  else {
    cout << "Three" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: expected ';' before '-' token
    7 |   for (int i-0;i<n;i++){
      |             ^
      |             ;
a.cc:7:19: error: expected ')' before ';' token
    7 |   for (int i-0;i<n;i++){
      |       ~           ^
      |                   )
a.cc:7:20: error: 'i' was not declared in this scope
    7 |   for (int i-0;i<n;i++){
      |                    ^
Language: C++

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

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  car s[100];
  bool yellow = false;
  cin >> N;
  
  int i = 0;
  int count = 0;
  for(int i; i < N; i++){
    cin >> s;
    if (s == yellow){
		yellow = true;
    } 
  }
  if(yellow){
	cout << "Four";
  }else{
	cout << "Three";
  }
}
 


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'car' was not declared in this scope; did you mean 'char'?
    6 |   car s[100];
      |   ^~~
      |   char
a.cc:13:12: error: 's' was not declared in this scope
   13 |     cin >> s;
      |            ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 'G' was not declared in this scope
   10 |     if(x == G,W,P){
      |             ^
a.cc:10:15: error: 'W' was not declared in this scope
   10 |     if(x == G,W,P){
      |               ^
a.cc:10:17: error: 'P' was not declared in this scope
   10 |     if(x == G,W,P){
      |                 ^
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;
    
    int p=0;
    int w=0;
    int g=0;
    int y=0;
    
    if (s=="p"){
      p += 1;
    }
    else if (s=="w"){
      w += 1;
    }
    else if (s=="g"){
      g += 1;
    }
    else if (s=="y"){
      y += 1;
    }
  }
  
  if (y == 0){
    cout << "three" << endl;
  }
  else {
    cout << "four" << endl;
  }

}


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     if (S == "P") {
      |         ~~^~~~~~
a.cc:15:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     else if (S == "W") {
      |              ~~^~~~~~
a.cc:18:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |     else if (S == "G") {
      |              ~~^~~~~~
a.cc:21:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |     else if (S == "Y") {
      |              ~~^~~~~~
a.cc:28:15: error: 'Three' was not declared in this scope
   28 |       cout << Three << endl;
      |               ^~~~~
a.cc:31:15: error: 'Four' was not declared in this scope
   31 |       cout << Four << endl;
      |               ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: 'W' was not declared in this scope
    6 |   bool P = W = G = Y = 0;
      |            ^
a.cc:6:16: error: 'G' was not declared in this scope
    6 |   bool P = W = G = Y = 0;
      |                ^
a.cc:6:20: error: 'Y' was not declared in this scope
    6 |   bool P = W = G = Y = 0;
      |                    ^
a.cc:12:13: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   12 |     if (S = "P") {
      |             ^~~
      |             |
      |             const char*
a.cc:15:18: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   15 |     else if (S = "W") {
      |                  ^~~
      |                  |
      |                  const char*
a.cc:18:18: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   18 |     else if (S = "G") {
      |                  ^~~
      |                  |
      |                  const char*
a.cc:21:18: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   21 |     else if (S = "Y") {
      |                  ^~~
      |                  |
      |                  const char*
a.cc:28:15: error: 'Three' was not declared in this scope
   28 |       cout << Three << endl;
      |               ^~~~~
a.cc:31:15: error: 'Four' was not declared in this scope
   31 |       cout << Four << endl;
      |               ^~~~
Language: C++

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

Compiler output:
a.cc:3:1: error: 'in' does not name a type; did you mean 'int'?
    3 | in main() {
      | ^~
      | int
Language: C++

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

int main(){
  int N;
  char a;
  int P = 0, W = 0, G = 0, Y = 0;
  cin >> N;
  for(int i = 0; i < N;i++){
    cin >> a;
    
    switch(a){
      case 'P':
        P=1;
        break;
      case 'W':
        W=1;
        break;
      case 'G':
        G=1;
        break;
      case 'Y':
        Y=1;
        break;
    }
  }
  if(B+W+G+Y == 3){
    cout << "Three" << endl;
  }
  else{
    cout << "Four" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:6: error: 'B' was not declared in this scope
   27 |   if(B+W+G+Y == 3){
      |      ^
Language: C++

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

int main(){
  int N;
  char a;
  int P = 0, W = 0, G = 0, Y = 0;
  cin >> N;
  for(int i = 0; i < N;i++){
    cin >> a;
    
    switch(a){
      case 'P':
        B=1;
        break;
      case 'W':
        W=1;
        break;
      case 'G':
        G=1;
        break;
      case 'Y':
        Y=1;
        break;
    }
  }
  if(B+W+G+Y == 3){
    cout << "Three" << endl;
  }
  else{
    cout << "Four" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'B' was not declared in this scope
   14 |         B=1;
      |         ^
a.cc:27:6: error: 'B' was not declared in this scope
   27 |   if(B+W+G+Y == 3){
      |      ^
Language: C++

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

int main(){
  int N;
  char a;
  int B = W = G = Y = 0;
  cin >> N;
  for(int i = 0; i < N;i++){
    cin >> a;
    
    switch(a){
      case 'B':
        B=1;
        break;
      case 'W':
        W=1;
        break;
      case 'G':
        G=1;
        break;
      case 'Y':
        Y=1;
        break;
    }
  }
  if(B+W+G+Y == 3){
    cout << "Three" << endl;
  }
  else{
    cout << "Four" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'W' was not declared in this scope
    7 |   int B = W = G = Y = 0;
      |           ^
a.cc:7:15: error: 'G' was not declared in this scope
    7 |   int B = W = G = Y = 0;
      |               ^
a.cc:7:19: error: 'Y' was not declared in this scope
    7 |   int B = W = G = Y = 0;
      |                   ^
Language: C++

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

int main(){
  int N;
  char a;
  int B = W = G = Y = 0;
  for(int i = 0; i < N;i++){
    cin >> a;
    
    switch(a){
      case 'B':
        B=1;
        break;
      case 'W':
        W=1;
        break;
      case 'G':
        G=1;
        break;
      case 'Y':
        Y=1;
        break;
    }
  }
  if(B+W+G+Y == 3){
    cout << "Three" << endl;
  }
  else{
    cout << "Four" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'W' was not declared in this scope
    7 |   int B = W = G = Y = 0;
      |           ^
a.cc:7:15: error: 'G' was not declared in this scope
    7 |   int B = W = G = Y = 0;
      |               ^
a.cc:7:19: error: 'Y' was not declared in this scope
    7 |   int B = W = G = Y = 0;
      |                   ^
Language: C++

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

#define REP(i, n) for(int i = 0; i < (int)(n); i++)

int main(){
    int n;cin>>n;
    char s[n];
    bool y=false;
    REP(i,n){
        cin>>s[i];
        if (s[i]=='Y')
        {
            y=true;
        
    }
    if (y)
    {
        /* code */
        cout<<"Four"<<endl;
    }
    else
    {
        cout<<"Three"<<endl;
    }

    }

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

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

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

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

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: 'Y' was not declared in this scope
   11 |       if( S == Y )
      |                ^
a.cc:12:17: error: 'four' was not declared in this scope
   12 |         cout << four;
      |                 ^~~~
a.cc:15:11: error: 'three' was not declared in this scope
   15 |   cout << three;
      |           ^~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: expected ';' before 'if'
   10 |     cin >>  S
      |              ^
      |              ;
   11 |       if( S == Y )
      |       ~~      
a.cc:15:11: error: 'three' was not declared in this scope
   15 |   cout << three;
      |           ^~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: expected ';' before 'if'
   10 |     cin >>  S
      |              ^
      |              ;
   11 |       if( S = Y )
      |       ~~      
a.cc:15:11: error: 'three' was not declared in this scope
   15 |   cout << three;
      |           ^~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: expected ';' before '<' token
    9 |   for( int i = 0,i < N, i++ ){
      |                   ^~
      |                   ;
a.cc:9:20: error: expected primary-expression before '<' token
    9 |   for( int i = 0,i < N, i++ ){
      |                    ^
a.cc:9:28: error: expected ';' before ')' token
    9 |   for( int i = 0,i < N, i++ ){
      |                            ^~
      |                            ;
a.cc:10:14: error: expected ';' before 'if'
   10 |     cin >>  S
      |              ^
      |              ;
   11 |       if( S = Y )
      |       ~~      
a.cc:15:11: error: 'three' was not declared in this scope
   15 |   cout << three;
      |           ^~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: expected '(' before '{' token
   13 |     else if {
      |             ^
      |             (
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if (S == "Y"){
      |         ~~^~~~~~
a.cc:13:13: error: expected '(' before '{' token
   13 |     else if {
      |             ^
      |             (
a.cc:18:4: 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, i;
  int x = 0;
  cin >> N;
  for (i = 0; i < N; i++){
  int S;
    if (S == "Y"){
      cout << Four << endl;
    }
    else if {
      x++;}
  }
  if (x == 0){
    cout << Three << endl;
  }
  

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if (S == "Y"){
      |         ~~^~~~~~
a.cc:11:15: error: 'Four' was not declared in this scope
   11 |       cout << Four << endl;
      |               ^~~~
a.cc:13:13: error: expected '(' before '{' token
   13 |     else if {
      |             ^
      |             (
a.cc:17:13: error: 'Three' was not declared in this scope
   17 |     cout << Three << endl;
      |             ^~~~~
a.cc:18:4: 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;
  int x = 0;
  cin >> N;
  for (i = 0; i < N; i++){
  int S;
    if (S == "Y"){
      cout << Four << endl;
    }
    else if {
      x++;}
  }
  if (x == 0){
    cout << Three << endl;
  }
  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'i' was not declared in this scope
    8 |   for (i = 0; i < N; i++){
      |        ^
a.cc:10:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if (S == "Y"){
      |         ~~^~~~~~
a.cc:11:15: error: 'Four' was not declared in this scope
   11 |       cout << Four << endl;
      |               ^~~~
a.cc:13:13: error: expected '(' before '{' token
   13 |     else if {
      |             ^
      |             (
a.cc:17:13: error: 'Three' was not declared in this scope
   17 |     cout << Three << endl;
      |             ^~~~~
a.cc:18:4: 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;
  int x = 0
  cin >> N;
  for (i = 0; i < N; i++){
  int S;
    if (S == Y){
      cout << Four << endl;
    }
    else if {
      x++;}
  }
  if (x == 0){
    cout << Three << endl;
  }
  

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected ',' or ';' before 'cin'
    7 |   cin >> N;
      |   ^~~
a.cc:8:8: error: 'i' was not declared in this scope
    8 |   for (i = 0; i < N; i++){
      |        ^
a.cc:10:14: error: 'Y' was not declared in this scope
   10 |     if (S == Y){
      |              ^
a.cc:11:15: error: 'Four' was not declared in this scope
   11 |       cout << Four << endl;
      |               ^~~~
a.cc:13:13: error: expected '(' before '{' token
   13 |     else if {
      |             ^
      |             (
a.cc:17:13: error: 'Three' was not declared in this scope
   17 |     cout << Three << endl;
      |             ^~~~~
a.cc:18:4: 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;
  bool ans=false;
  for(int i=0;i<N;i++){
    char c;
    cin >> c;
    if(c=='Y')ans=true;
  }
  if(ans)cout << "Four";
  else << "Three";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:8: error: expected primary-expression before '<<' token
   13 |   else << "Three";
      |        ^~
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"){
      break;
    }
  }
  if(S=="Y"){
    cout<<"Four"
  }
  else{
    cout<<"Three"
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: expected ';' before '}' token
   15 |     cout<<"Four"
      |                 ^
      |                 ;
   16 |   }
      |   ~              
a.cc:18:18: error: expected ';' before '}' token
   18 |     cout<<"Three"
      |                  ^
      |                  ;
   19 |   }
      |   ~
Language: C++

program main
  implicit none
  integer i,num
  character c
  read(*,*) num
  do i = 1,num
    read(*,*) c
    if (c=='Y') then
      write(*,*) 'Four'
    else 
      write(*,*) 'Three' 
    end if
  end do
end main

Compiler output:
a.cc:9:18: warning: multi-character character constant [-Wmultichar]
    9 |       write(*,*) 'Four'
      |                  ^~~~~~
a.cc:11:18: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
   11 |       write(*,*) 'Three'
      |                  ^~~~~~~
a.cc:1:1: error: 'program' does not name a type
    1 | program main
      | ^~~~~~~
Language: C++

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

int main(){
  int n; cin>>n;
  char a[n]; cin>>a;
  ans=0;
  for(int i=0;i<n;i++){
    if(a[i] == 'Y')ans=1;
  }
  if(ans==1)cout<<"Four"<<endl;
  else cout<<"Three"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   ans=0;
      |   ^~~
      |   abs
Language: C

 int N,i;
   int a=0;
   char s[100];
   scanf("%d",&N);
   for(i=0;i<N;i++){
        scanf("%s",&s[i]);
        if(s[i]=='Y'){
            a=1;
        }
    }
        if(a==1){
            printf("Four");
    }
        else{
            printf("Three");
    }

Compiler output:
main.c:4:10: error: expected declaration specifiers or '...' before string constant
    4 |    scanf("%d",&N);
      |          ^~~~
main.c:4:15: error: expected declaration specifiers or '...' before '&' token
    4 |    scanf("%d",&N);
      |               ^
main.c:5:4: error: expected identifier or '(' before 'for'
    5 |    for(i=0;i<N;i++){
      |    ^~~
main.c:5:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    5 |    for(i=0;i<N;i++){
      |             ^
main.c:5:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    5 |    for(i=0;i<N;i++){
      |                 ^~
main.c:11:9: error: expected identifier or '(' before 'if'
   11 |         if(a==1){
      |         ^~
main.c:14:9: error: expected identifier or '(' before 'else'
   14 |         else{
      |         ^~~~
Language: C

 int N,i;
   int a=0;
   char s[i];
   scanf("%d",&N);
    for(i=0;i<N;i++){
    
        scanf("%c",s[i]);
        if(s[i]=='Y'){
            //printf("Four");
            a=1;
        }
        /*else {
            printf("Three");
        }*/
    }
    if(a==1){
        printf("Four");
    }
    else{
        printf("Three");
    }

Compiler output:
main.c:3:9: error: variably modified 's' at file scope
    3 |    char s[i];
      |         ^
main.c:4:10: error: expected declaration specifiers or '...' before string constant
    4 |    scanf("%d",&N);
      |          ^~~~
main.c:4:15: error: expected declaration specifiers or '...' before '&' token
    4 |    scanf("%d",&N);
      |               ^
main.c:5:5: error: expected identifier or '(' before 'for'
    5 |     for(i=0;i<N;i++){
      |     ^~~
main.c:5:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    5 |     for(i=0;i<N;i++){
      |              ^
main.c:5:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    5 |     for(i=0;i<N;i++){
      |                  ^~
main.c:16:5: error: expected identifier or '(' before 'if'
   16 |     if(a==1){
      |     ^~
main.c:19:5: error: expected identifier or '(' before 'else'
   19 |     else{
      |     ^~~~
Language: C

 int N,i;
   char s[i];
   scanf("%d",&N);
    for(i=0;i<N;i++)
    
    scanf("%c",s[i]);
    if(s[i]=='Y'){
        printf("Four");
    }
    else {
        printf("Three");
    }

Compiler output:
main.c:2:9: error: variably modified 's' at file scope
    2 |    char s[i];
      |         ^
main.c:3:10: error: expected declaration specifiers or '...' before string constant
    3 |    scanf("%d",&N);
      |          ^~~~
main.c:3:15: error: expected declaration specifiers or '...' before '&' token
    3 |    scanf("%d",&N);
      |               ^
main.c:4:5: error: expected identifier or '(' before 'for'
    4 |     for(i=0;i<N;i++)
      |     ^~~
main.c:4:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    4 |     for(i=0;i<N;i++)
      |              ^
main.c:4:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    4 |     for(i=0;i<N;i++)
      |                  ^~
main.c:7:5: error: expected identifier or '(' before 'if'
    7 |     if(s[i]=='Y'){
      |     ^~
main.c:10:5: error: expected identifier or '(' before 'else'
   10 |     else {
      |     ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected unqualified-id before '>>' token
    8 |     string >> S;
      |            ^~
a.cc:9:12: error: 'S' was not declared in this scope
    9 |     cin >> S;
      |            ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: expected ')' before ';' token
    9 |   while( i<N;){
      |        ~    ^
      |             )
a.cc:9:14: error: expected primary-expression before ')' token
    9 |   while( i<N;){
      |              ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'i' was not declared in this scope
    8 |   while( i<N;){
      |          ^
a.cc:8:13: error: expected ')' before ';' token
    8 |   while( i<N;){
      |        ~    ^
      |             )
a.cc:8:14: error: expected primary-expression before ')' token
    8 |   while( i<N;){
      |              ^
Language: C++

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(S == "Y"){
      |        ~~^~~~~~
a.cc:9:15: error: 'Four' was not declared in this scope
    9 |       cout << Four << endl;
      |               ^~~~
a.cc:13:15: error: 'Three' was not declared in this scope
   13 |       cout << Three << endl;
      |               ^~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: 'S' was not declared in this scope
    9 |     cin >> S;
      |            ^
a.cc:12:5: error: break statement not within loop or switch
   12 |     break;
      |     ^~~~~
a.cc:14:7: error: 'i' was not declared in this scope
   14 |   if (i == N-1){
      |       ^
a.cc:16:3: error: break statement not within loop or switch
   16 |   break;
      |   ^~~~~
Language: C++

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

int main() {

  int N;
  vector <char> S (100);
  string ans;

  cin >> N;

  for ( int i = 0; i < N; i++ ) cin >> S.at(i);
  

  ans = "Three";

  for ( int i = 0; i < N; i++ ) {
   if ( S.at(i) == 'Y' ) {
    ans = "Four";
    break;
   }
  
  }

  cout << ans << endl;

}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector <char> S (100);
      |   ^~~~~~
a.cc:7:11: error: expected primary-expression before 'char'
    7 |   vector <char> S (100);
      |           ^~~~
a.cc:8:3: error: 'string' was not declared in this scope
    8 |   string ans;
      |   ^~~~~~
a.cc:10:3: error: 'cin' was not declared in this scope
   10 |   cin >> N;
      |   ^~~
a.cc:12:40: error: 'S' was not declared in this scope
   12 |   for ( int i = 0; i < N; i++ ) cin >> S.at(i);
      |                                        ^
a.cc:15:3: error: 'ans' was not declared in this scope
   15 |   ans = "Three";
      |   ^~~
a.cc:18:9: error: 'S' was not declared in this scope
   18 |    if ( S.at(i) == 'Y' ) {
      |         ^
a.cc:25:3: error: 'cout' was not declared in this scope
   25 |   cout << ans << endl;
      |   ^~~~
a.cc:25:18: error: 'endl' was not declared in this scope
   25 |   cout << ans << endl;
      |                  ^~~~
Language: C++

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

int main() {
  int N;
  string S;
  cin>>N>>S;
  for (int i = 0; i < N; i++) {

    if (S.at(i)=='Y') {
      cout << "Four" << endl;
      break; 
    }
  }
  if (S.at(i)!='Y'){
      cout << "Three" <<endl;
      
    }
}


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

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

int main() {
  int N;
  string S;
  cin>>N>>S;
  for (int i = 0; i < N; i++) {

    if (S.at(i)==Y) {
      cout << "Four" << endl;
      break; 
    }
    if (S.at(N-1)!=Y){
      cout << "Three" <<endl;
      break;
    }
    
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: 'Y' was not declared in this scope
   10 |     if (S.at(i)==Y) {
      |                  ^
a.cc:14:20: error: 'Y' was not declared in this scope
   14 |     if (S.at(N-1)!=Y){
      |                    ^
Language: C++


#include <iostream>
using namespace std;

	int main() {
		int N ,i;
		char Si ,Y,W,P,G;
		cin >> N;
		for (i == 0; i < N; i++) {
			cin >> Si;
			if (Si == Y) {
				cout << "Four";
				break;
			}
			else (Si!=Y ) {
				cout << "Three";
			}
		}
	}

  



Compiler output:
a.cc: In function 'int main()':
a.cc:15:38: error: expected ';' before '{' token
   15 |                         else (Si!=Y ) {
      |                                      ^~
      |                                      ;
Language: C++

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

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

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

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

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     if(S == "Y")
      |        ~~^~~~~~
a.cc:22:8: error: 'b' was not declared in this scope
   22 |     if(b)
      |        ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     if(S == "Y")
      |        ~~^~~~~~
a.cc:22:8: error: 'b' was not declared in this scope
   22 |     if(b)
      |        ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: expected initializer before '==' token
    8 |   bool a == false;
      |          ^~
a.cc:15:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     if(S == "Y")
      |        ~~^~~~~~
a.cc:18:7: error: 'a' was not declared in this scope
   18 |       a == true;
      |       ^
a.cc:22:8: error: 'b' was not declared in this scope
   22 |     if(b)
      |        ^
Language: C++

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

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

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

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

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

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

    if (op == "Y") {
      cout << "Four" << endl;
    }
    else {
      cout << "Three" << endl;
     
    }

  }

}


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

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

int main()
{
  int N;
  string S;
  
  cin >> N >> S;
  
  while
  {
    if(S == "P")
    {
      cout << S;
    }
    else if(S == "W")
    {
      cout << S;
    }
    else if(S == "G")
    {
      cout << S;
    }
    else if(S == "Y")
    {
      cout << "Four";
    }
    
    
    
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: expected '(' before '{' token
   12 |   {
      |   ^
      |   (
a.cc:12:3: error: expected primary-expression before '{' token
a.cc:11:8: error: expected ')' before '{' token
   11 |   while
      |        ^
      |        )
   12 |   {
      |   ~
Language: C++

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

int main()
{
  int N;
  string S;
  
  cin >> N >> S;
  
  while( )
  {
    if(S == "P")
    {
      cout << S;
    }
    else if(S == "W")
    {
      cout << S;
    }
    else if(S == "G")
    {
      cout << S;
    }
    else if(S == "Y")
    {
      cout << "Four";
    }
    
    
    
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: expected primary-expression before ')' token
   11 |   while( )
      |          ^
Language: C++

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

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

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

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

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

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