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

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

#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(v) v.begin(), v.end()
using llint = long long;
using vint = vector<int>;

int main () {
    int n; cin >> n;
    vector<char> s(n);
    bool four = false;
    rep (i, n) {
        if (s.at(i) == 'Y') four = true;
    }
    if (four == true) cout << "Four\n";
    else cout << "Three\n"；
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:18: error: unable to find string literal operator 'operator""；' with 'const char [7]', 'long unsigned int' arguments
   18 |     else cout << "Three\n"；
      |                  ^~~~~~~~~~~
Language: C++

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

#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(v) v.begin(), v.end()
using llint = long long;
using vint = vector<int>;

int main () {
    int n; cin >> n;
    vector<char> s(n);
    bool four = false;
    rep (i, n) {
        if (s.at(i) == 'Y') four = true;
    }
    if (four == true) cout << "Four\n";
    else cout << "Three\n"
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:27: error: expected ';' before '}' token
   18 |     else cout << "Three\n"
      |                           ^
      |                           ;
   19 | }
      | ~
Language: C++

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

int main()
{
  int N;
  cin>> N;
  char S[N];
  cin>> S;
    if(S.at(N)=="Y")
    {
      cout<< "Four"<< endl;
    }
    else
    {
      cout<< "Three"<< endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: request for member 'at' in 'S', which is of non-class type 'char [N]'
   10 |     if(S.at(N)=="Y")
      |          ^~
a.cc: At global scope:
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

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

int main()
{
  int N;
  cin>> N;
  char S[N];
  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:12:10: error: request for member 'at' in 'S', which is of non-class type 'char [N]'
   12 |     if(S.at(i)=="Y")
      |          ^~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: expected initializer before 'cin'
    9 |     cin>>S;
      |     ^~~
a.cc:10:8: error: 'S' was not declared in this scope
   10 |     if(S=="Y"){
      |        ^
Language: C++

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(S=="Y"){
      |        ~^~~~~
a.cc:16:6: error: 'yellow' was not declared in this scope
   16 |   if(yellow==0)
      |      ^~~~~~
Language: C++

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

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

}


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

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

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

}


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

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

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    7 |     if (i= "Y"){
      |            ^~~
      |            |
      |            const char*
a.cc:13:4: error: expected '}' at end of input
   13 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:10: error: 'N' was not declared in this scope
    4 |   cin >> N;
      |          ^
a.cc:6:12: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    6 |     if (i= "Y"){
      |            ^~~
      |            |
      |            const char*
a.cc:12:4: error: expected '}' at end of input
   12 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:23: error: 'N' was not declared in this scope
    4 |   for (int i = 0; i < N; i++){
      |                       ^
a.cc:5:12: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    5 |     if (i= "Y"){
      |            ^~~
      |            |
      |            const char*
a.cc:11:4: error: expected '}' at end of input
   11 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespacestd'
    2 | using namespacestd;
      |       ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:4:23: error: 'N' was not declared in this scope
    4 |   for (int i = 0; i < N; i++){
      |                       ^
a.cc:5:12: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    5 |     if (i= "Y"){
      |            ^~~
      |            |
      |            const char*
a.cc:6:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |       cout << "Four" << endl;
      |       ^~~~
      |       std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |       cout << "Four" << endl;
      |                         ^~~~
      |                         std::endl
In file included from /usr/include/c++/14/istream:41,
                 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:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:9:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |       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:9:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |       cout << "Three" << endl;
      |                          ^~~~
      |                          std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:4: error: expected '}' at end of input
   11 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

    else {
      hina = false;
    }
  }
  if (hina == true){
    cout << Four << endl;
  }
  else {
    cout << Three << endl;
  }
    
}


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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: expected '}' before 'else'
   12 |     else
      |     ^~~~
a.cc:9:18: note: to match this '{'
    9 |     if (S == "Y"){
      |                  ^
a.cc: At global scope:
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: 'Y' was not declared in this scope
   13 |       if(a==Y){
      |             ^
a.cc:14:21: error: expected ';' before 'break'
   14 |         cout<<"Four"
      |                     ^
      |                     ;
   15 |         break;
      |         ~~~~~        
a.cc:19:20: error: expected ';' before '}' token
   19 |       cout<<"Three"
      |                    ^
      |                    ;
   20 |       }
      |       ~             
a.cc:24:15: error: expected ';' before '}' token
   24 |     cout<<endl
      |               ^
      |               ;
   25 | 
   26 | }
      | ~
Language: C++

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

int main() {
  int i, j;
  int x = 0;
  int k = 0;
  string s;
  cin >> i;
  for(j=0;j<i;j++){
	cin >> s[j];
  }
  for(j=0;j<i;j++){
	if(s[j]==P){
      k++;
    } 
  }
	if(k>0) x+=1;   
  for(j=0;j<i;j++){
	if(s[j]==G){
      k++;
    } 
  }
	if(k>0) x+=1;   
  for(j=0;j<i;j++){
	if(s[j]==W){
      k++;
    } 
  }
	if(k>0) x+=1;   
  for(j=0;j<i;j++){
	if(s[j]==Y){
      k++;
    } 
  }
	if(k>0) x+=1;     
  if(x == 4) cout << "four";
  if(x == 3) cout << "three";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:18: error: 'P' was not declared in this scope
   14 |         if(s[j]==P){
      |                  ^
a.cc:20:18: error: 'G' was not declared in this scope
   20 |         if(s[j]==G){
      |                  ^
a.cc:26:18: error: 'W' was not declared in this scope
   26 |         if(s[j]==W){
      |                  ^
a.cc:32:18: error: 'Y' was not declared in this scope
   32 |         if(s[j]==Y){
      |                  ^
Language: C++


#include<iostream>
using namespace std;

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

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

        if(S == "Y") {
            cout << "Four" << endl;
        }else{
            cout << "Three" << 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(S == "Y") {
      |            ~~^~~~~~
Language: C++


#include<iostream>
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;
        }else{
            cout << "Three" << 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(S == "Y") {
      |            ~~^~~~~~
Language: C++

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

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


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

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

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

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

int main(){
  int N,Si;
  cin >> N >> S;
  int i =0

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: 'S' was not declared in this scope; did you mean 'Si'?
    6 |   cin >> N >> S;
      |               ^
      |               Si
a.cc:7:11: error: expected ',' or ';' at end of input
    7 |   int i =0
      |           ^
a.cc:7:11: error: expected '}' at end of input
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: expected unqualified-id before '=' token
    7 |   int = F = 0
      |       ^
a.cc:10:12: error: 'color' was not declared in this scope
   10 |     cin >> color;
      |            ^~~~~
a.cc:12:7: error: 'F' was not declared in this scope
   12 |       F = 1;
      |       ^
a.cc:15:7: error: 'F' was not declared in this scope
   15 |   if (F == 0){
      |       ^
a.cc:16:5: error: 'result' was not declared in this scope
   16 |     result = "Three"
      |     ^~~~~~
a.cc:18:5: error: 'result' was not declared in this scope
   18 |     result = "Four"
      |     ^~~~~~
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  int N,i;
  cin >> N;
  for(i=0;i<N;i++){
    strings;
    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:8:5: error: 'strings' was not declared in this scope; did you mean 'stdin'?
    8 |     strings;
      |     ^~~~~~~
      |     stdin
a.cc:9:11: error: 's' was not declared in this scope
    9 |     cin >>s;
      |           ^
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 a;
  char b[120];
    cin>>a;
  for(int i=0;i<a;i++)
  cin >>b[i];
  
  
    for(int i=0;i<a;i++){

   if(b[i] == 'Y'){
     cout << "Four" <<endl;
     return 0;
   }
       
    cout << "Three" << endl;
}


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

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

int main(){
  int a;
  char b[120];
    cin>>a;
  for(int i=0;i++)
  cin >>b[i];
  
  
    for(int i=0;i<a;i++){

   if(b[i] == 'Y'){
     cout << "Four" <<endl;
     return 0;
   }
       
    cout << "Three" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: expected ';' before ')' token
    8 |   for(int i=0;i++)
      |                  ^
      |                  ;
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main(){
  int i;
  string s;
  bool flag = false
  
  cin >> i;
  for(int j=0;j<i;j++){
    cin >> s;
 	
    if(s=="Y"){
      flag = true;
  	  break;
  }
  }
    if(flag)
      cout << "Four" << endl;
    else
      cout << "Three" << endk;
    
    
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'cin'
    9 |   cin >> i;
      |   ^~~
a.cc:21:26: error: 'endk' was not declared in this scope
   21 |       cout << "Three" << endk;
      |                          ^~~~
Language: C++

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


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

    string tmp;

  rep(i,N){
    cin >> tmp;
    }
  }
    if(tmp == "Y"){
      cout << "Four";
    }
    else{
      cout << "Three";
    }
}


Compiler output:
a.cc:16:5: error: expected unqualified-id before 'if'
   16 |     if(tmp == "Y"){
      |     ^~
a.cc:19:5: error: expected unqualified-id before 'else'
   19 |     else{
      |     ^~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

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


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

    string tmp;

  rep(i,N){
    cin >> tmp;
  
    if(tmp == "Y"){
      P = tmp;
    }
  }
    if(tmp == "Y"){
      cout << "Four";
    }
    else{
      cout << "Three";
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:7: error: 'P' was not declared in this scope
   16 |       P = tmp;
      |       ^
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected ',' or ';' before 'for'
   10 |   for(int i = 0; i < N; i++){
      |   ^~~
a.cc:10:18: 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, A;
  string x;
  bool P, W, G, Y;
  cin >> N;
  
  for(int i; i < N; i++){
  	
    cin >> x;
    if(x = "P" && P){
      A += 1;
      P = false;
    }
    else if(x = "W" && W){
      A += 1;
      W = false;
    }
    else if(x = "G" && G){
      A += 1;
      G = false;
    }
    else if(x = "Y" && Y){
      A += 1;
      Y = false;
    }
  }
  if(A == 3){
  cout << "Three" << endl;
  }
  if(A == 4){
  cout << "Four" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:10: error: could not convert 'x.std::__cxx11::basic_string<char>::operator=(((int)((char)((((const char*)"P") != 0) && P))))' from 'std::__cxx11::basic_string<char>' to 'bool'
   14 |     if(x = "P" && P){
      |        ~~^~~~~~~~~~
      |          |
      |          std::__cxx11::basic_string<char>
a.cc:18:15: error: could not convert 'x.std::__cxx11::basic_string<char>::operator=(((int)((char)((((const char*)"W") != 0) && W))))' from 'std::__cxx11::basic_string<char>' to 'bool'
   18 |     else if(x = "W" && W){
      |             ~~^~~~~~~~~~
      |               |
      |               std::__cxx11::basic_string<char>
a.cc:22:15: error: could not convert 'x.std::__cxx11::basic_string<char>::operator=(((int)((char)((((const char*)"G") != 0) && G))))' from 'std::__cxx11::basic_string<char>' to 'bool'
   22 |     else if(x = "G" && G){
      |             ~~^~~~~~~~~~
      |               |
      |               std::__cxx11::basic_string<char>
a.cc:26:15: error: could not convert 'x.std::__cxx11::basic_string<char>::operator=(((int)((char)((((const char*)"Y") != 0) && Y))))' from 'std::__cxx11::basic_string<char>' to 'bool'
   26 |     else if(x = "Y" && Y){
      |             ~~^~~~~~~~~~
      |               |
      |               std::__cxx11::basic_string<char>
Language: C++

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

main () {
  int N, i;
  cin >> N;
  
  for (i = 0, i < N, i++) {
    string s;
    cin >> s;
    if (s = "G") continue;
    else if (s = "W") continue;
    else if (s = "P") continue;
    else {
      break;
      cout << "four" << endl;
    }
  }
  
  cout << "three" << endl;
}

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main () {
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:25: error: expected ';' before ')' token
    8 |   for (i = 0, i < N, i++) {
      |                         ^
      |                         ;
a.cc:21:1: error: expected primary-expression before '}' token
   21 | }
      | ^
a.cc:20:27: error: expected ')' before '}' token
   20 |   cout << "three" << endl;
      |                           ^
      |                           )
   21 | }
      | ~                          
a.cc:8:7: note: to match this '('
    8 |   for (i = 0, i < N, i++) {
      |       ^
a.cc:21:1: error: expected primary-expression before '}' token
   21 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int s[N];
  int a = 0;
  for (int i = 0; i < N; i++) {
    cin >> s[i];
    if (s[i] = Y) ++a;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: 'Y' was not declared in this scope
   10 |     if (s[i] = Y) ++a;
      |                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  cin >> N;
  int s[N];
  int a = 0;
  for (int i = 0; i < N; i++) {
    cin >> s[i];
    if (s[i] = Y) ++a;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:10: error: 'N' was not declared in this scope
    4 |   cin >> N;
      |          ^
a.cc:8:12: error: 's' was not declared in this scope
    8 |     cin >> s[i];
      |            ^
a.cc:9:16: error: 'Y' was not declared in this scope
    9 |     if (s[i] = Y) ++a;
      |                ^
Language: C++

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

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

  int flag_p = 0,flag_w = 0,flag_g = 0,flag_y = 0;
  string si;
  
  for (int i = 0; i < N; i++) {
    cin >> si;
	if (si == "Y"){
      flag_y = 1;
      break;
    }
  }
/*    if (si == "P") {
      flag_p = 1;
    }
    else if (si == "W") {
      flag_w = 1;
    }
    else if (si == "G") {
      flag_g = 1;
    }
    else flag_y = 1;
  }
*/
  if (flag_y == 1){
    cout << "Four" << endl;
  else{
    cout << "Three" << endl;    
  }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:32:3: error: expected '}' before 'else'
   32 |   else{
      |   ^~~~
a.cc:30:19: note: to match this '{'
   30 |   if (flag_y == 1){
      |                   ^
Language: C++

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

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

  int flag_p = 0,flag_w = 0,flag_g = 0,flag_y = 0;
  string si;
  
  for (int i = 0; i < N; i++) {
    cin >> si;
	if (si == "Y"){
      flag_y = 1;
      break;
    }
/*    if (si == "P") {
      flag_p = 1;
    }
    else if (si == "W") {
      flag_w = 1;
    }
    else if (si == "G") {
      flag_g = 1;
    }
    else flag_y = 1;
  }
*/
  if (flag_y == 1){
    cout << "Four" << endl;
  }
  else{
    cout << "Three" << endl;    
  }
}



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

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

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

  int flag_p = 0,flag_w = 0,flag_g = 0,flag_y = 0;
  string si;
  
  for (int i = 0; i < N; i++) {
    cin >> si;
	if (si == "Y"){
      flag_y = 1;
      break;
    }
/*    if (si == "P") {
      flag_p = 1;
    }
    else if (si == "W") {
      flag_w = 1;
    }
    else if (si == "G") {
      flag_g = 1;
    }
    else flag_y = 1;
  }
*/
  if (flag_y == 1){
    cout << "Four" << endl;
  else{
    cout << "Three" << endl;    
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:31:3: error: expected '}' before 'else'
   31 |   else{
      |   ^~~~
a.cc:29:19: note: to match this '{'
   29 |   if (flag_y == 1){
      |                   ^
a.cc:34:2: error: expected '}' at end of input
   34 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  int N, Y_num;
  cin >> N;
  Y_num = 0;
  
  for (int i = 0; i < N; i++) {
    string Si;
    cin >> Si;
    if (Si == "Y") {
      Y_num++ 
    }

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: 'i' was not declared in this scope
   10 |   for (i = 0; i < N; i++) {
      |        ^
a.cc:12:8: error: expected ';' before 'S'
   12 |     cin S;
      |        ^~
      |        ;
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.at(i);
    if(s.at(i) == "P" && s.at(i) == "W" && s.at(i) == "G" && s.at(i) == "Y") {
      cout << "Four" << endl;
    } else {
      cout << "Three" << endl;
    }
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: request for member 'at' in 's', which is of non-class type 'int'
   10 |       cin >> s.at(i);
      |                ^~
a.cc:11:10: error: request for member 'at' in 's', which is of non-class type 'int'
   11 |     if(s.at(i) == "P" && s.at(i) == "W" && s.at(i) == "G" && s.at(i) == "Y") {
      |          ^~
a.cc:11:28: error: request for member 'at' in 's', which is of non-class type 'int'
   11 |     if(s.at(i) == "P" && s.at(i) == "W" && s.at(i) == "G" && s.at(i) == "Y") {
      |                            ^~
a.cc:11:46: error: request for member 'at' in 's', which is of non-class type 'int'
   11 |     if(s.at(i) == "P" && s.at(i) == "W" && s.at(i) == "G" && s.at(i) == "Y") {
      |                                              ^~
a.cc:11:64: error: request for member 'at' in 's', which is of non-class type 'int'
   11 |     if(s.at(i) == "P" && s.at(i) == "W" && s.at(i) == "G" && s.at(i) == "Y") {
      |                                                                ^~
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.at(i) == "P" && s.at(i) == "W" && s.at(i) == "G" && s.at(i) == "Y") {
      cout << "Four" << endl;
    } else {
      cout << "Three" << endl;
    }
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: request for member 'at' in 's', which is of non-class type 'int'
   11 |     if(s.at(i) == "P" && s.at(i) == "W" && s.at(i) == "G" && s.at(i) == "Y") {
      |          ^~
a.cc:11:28: error: request for member 'at' in 's', which is of non-class type 'int'
   11 |     if(s.at(i) == "P" && s.at(i) == "W" && s.at(i) == "G" && s.at(i) == "Y") {
      |                            ^~
a.cc:11:46: error: request for member 'at' in 's', which is of non-class type 'int'
   11 |     if(s.at(i) == "P" && s.at(i) == "W" && s.at(i) == "G" && s.at(i) == "Y") {
      |                                              ^~
a.cc:11:64: error: request for member 'at' in 's', which is of non-class type 'int'
   11 |     if(s.at(i) == "P" && s.at(i) == "W" && s.at(i) == "G" && s.at(i) == "Y") {
      |                                                                ^~
Language: C++

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

int main() {
  int n,s,p,w,g,y;
   cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> s(i);
    if(s(i) == p && s(i) == w && s(i) == g && s(i) == y) {
      cout << "Foru" << endl;
    } else {
      cout << "Three" << endl;
    }
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 's' cannot be used as a function
    8 |     cin >> s(i);
      |            ~^~~
a.cc:9:9: error: 's' cannot be used as a function
    9 |     if(s(i) == p && s(i) == w && s(i) == g && s(i) == y) {
      |        ~^~~
a.cc:9:22: error: 's' cannot be used as a function
    9 |     if(s(i) == p && s(i) == w && s(i) == g && s(i) == y) {
      |                     ~^~~
a.cc:9:35: error: 's' cannot be used as a function
    9 |     if(s(i) == p && s(i) == w && s(i) == g && s(i) == y) {
      |                                  ~^~~
a.cc:9:48: error: 's' cannot be used as a function
    9 |     if(s(i) == p && s(i) == w && s(i) == g && s(i) == y) {
      |                                               ~^~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:7: error: 'result' was not declared in this scope
   16 |   if (result) cout << "Four" << endl;
      |       ^~~~~~
Language: C++

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

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

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

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

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


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

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

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


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

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:15: error: could not convert 'h.std::__cxx11::basic_string<char>::operator=(89)' from 'std::__cxx11::basic_string<char>' to 'bool'
   14 |         if (h = 'Y') {
      |             ~~^~~~~
      |               |
      |               std::__cxx11::basic_string<char>
a.cc:19:13: error: 'y' was not declared in this scope
   19 |         if (y >= 1) {
      |             ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: expected initializer before 'cin'
   12 |         cin >> h;
      |         ^~~
a.cc:13:15: error: could not convert 'h.std::__cxx11::basic_string<char>::operator=(80)' from 'std::__cxx11::basic_string<char>' to 'bool'
   13 |         if (h = 'P') {
      |             ~~^~~~~
      |               |
      |               std::__cxx11::basic_string<char>
a.cc:16:20: error: could not convert 'h.std::__cxx11::basic_string<char>::operator=(87)' from 'std::__cxx11::basic_string<char>' to 'bool'
   16 |         else if (h = 'W') {
      |                  ~~^~~~~
      |                    |
      |                    std::__cxx11::basic_string<char>
a.cc:19:20: error: could not convert 'h.std::__cxx11::basic_string<char>::operator=(71)' from 'std::__cxx11::basic_string<char>' to 'bool'
   19 |         else if (h = 'G') {
      |                  ~~^~~~~
      |                    |
      |                    std::__cxx11::basic_string<char>
a.cc:22:20: error: could not convert 'h.std::__cxx11::basic_string<char>::operator=(89)' from 'std::__cxx11::basic_string<char>' to 'bool'
   22 |         else if (h = 'Y') {
      |                  ~~^~~~~
      |                    |
      |                    std::__cxx11::basic_string<char>
a.cc:23:17: error: 'y' was not declared in this scope
   23 |                 y = 1;
      |                 ^
a.cc:26:13: error: 'p' was not declared in this scope
   26 |         if (p + g + w + y == 4) {
      |             ^
a.cc:26:17: error: 'g' was not declared in this scope
   26 |         if (p + g + w + y == 4) {
      |                 ^
a.cc:26:21: error: 'w' was not declared in this scope
   26 |         if (p + g + w + y == 4) {
      |                     ^
a.cc:26:25: error: 'y' was not declared in this scope
   26 |         if (p + g + w + y == 4) {
      |                         ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: expected ';' before '<' token
    8 |         for (int i=0, i < N, i++) {
      |                        ^~
      |                        ;
a.cc:8:25: error: expected primary-expression before '<' token
    8 |         for (int i=0, i < N, i++) {
      |                         ^
a.cc:8:33: error: expected ';' before ')' token
    8 |         for (int i=0, i < N, i++) {
      |                                 ^
      |                                 ;
a.cc:12:9: error: expected initializer before 'cin'
   12 |         cin >> h;
      |         ^~~
a.cc:13:15: error: could not convert 'h.std::__cxx11::basic_string<char>::operator=(80)' from 'std::__cxx11::basic_string<char>' to 'bool'
   13 |         if (h = 'P') {
      |             ~~^~~~~
      |               |
      |               std::__cxx11::basic_string<char>
a.cc:16:20: error: could not convert 'h.std::__cxx11::basic_string<char>::operator=(87)' from 'std::__cxx11::basic_string<char>' to 'bool'
   16 |         else if (h = 'W') {
      |                  ~~^~~~~
      |                    |
      |                    std::__cxx11::basic_string<char>
a.cc:19:20: error: could not convert 'h.std::__cxx11::basic_string<char>::operator=(71)' from 'std::__cxx11::basic_string<char>' to 'bool'
   19 |         else if (h = 'G') {
      |                  ~~^~~~~
      |                    |
      |                    std::__cxx11::basic_string<char>
a.cc:22:20: error: could not convert 'h.std::__cxx11::basic_string<char>::operator=(89)' from 'std::__cxx11::basic_string<char>' to 'bool'
   22 |         else if (h = 'Y') {
      |                  ~~^~~~~
      |                    |
      |                    std::__cxx11::basic_string<char>
a.cc:23:17: error: 'y' was not declared in this scope
   23 |                 y = 1;
      |                 ^
a.cc:26:13: error: 'p' was not declared in this scope
   26 |         if (p + g + w + y == 4) {
      |             ^
a.cc:26:17: error: 'g' was not declared in this scope
   26 |         if (p + g + w + y == 4) {
      |                 ^
a.cc:26:21: error: 'w' was not declared in this scope
   26 |         if (p + g + w + y == 4) {
      |                     ^
a.cc:26:25: error: 'y' was not declared in this scope
   26 |         if (p + g + w + y == 4) {
      |                         ^