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

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'i' was not declared in this scope
    7 |         for(i=0;i<n;i++){
      |             ^
a.cc:9:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |       if(s=="Y"){
      |          ~^~~~~
Language: C

#include <stdio.h>
int main(){
  char c[4]="0000" , d;
  for (int i = 0; i < 100; i++){
    scanf("%c ", %d);
    if (d == "P" && c[0] == "0"){
      c[0]=1;
    }
    if (d == "W" && c[1] == "0"){
      c[1]=1;
    }
    if (d == "G" && c[2] == "0"){
      c[2]=1;
    }
    if (d == "Y" && c[3] == "0"){
      c[3]=1;
    }
  }
  if (c[0]=="1" && c[1]=="1" &&c[2]=="1" &&c[3]=="1"){
    printf("Four\%");
  }
  else{
    printf("Three\%");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:18: error: expected expression before '%' token
    5 |     scanf("%c ", %d);
      |                  ^
main.c:6:11: warning: comparison between pointer and integer
    6 |     if (d == "P" && c[0] == "0"){
      |           ^~
main.c:6:26: warning: comparison between pointer and integer
    6 |     if (d == "P" && c[0] == "0"){
      |                          ^~
main.c:9:11: warning: comparison between pointer and integer
    9 |     if (d == "W" && c[1] == "0"){
      |           ^~
main.c:9:26: warning: comparison between pointer and integer
    9 |     if (d == "W" && c[1] == "0"){
      |                          ^~
main.c:12:11: warning: comparison between pointer and integer
   12 |     if (d == "G" && c[2] == "0"){
      |           ^~
main.c:12:26: warning: comparison between pointer and integer
   12 |     if (d == "G" && c[2] == "0"){
      |                          ^~
main.c:15:11: warning: comparison between pointer and integer
   15 |     if (d == "Y" && c[3] == "0"){
      |           ^~
main.c:15:26: warning: comparison between pointer and integer
   15 |     if (d == "Y" && c[3] == "0"){
      |                          ^~
main.c:19:11: warning: comparison between pointer and integer
   19 |   if (c[0]=="1" && c[1]=="1" &&c[2]=="1" &&c[3]=="1"){
      |           ^~
main.c:19:24: warning: comparison between pointer and integer
   19 |   if (c[0]=="1" && c[1]=="1" &&c[2]=="1" &&c[3]=="1"){
      |                        ^~
main.c:19:36: warning: comparison between pointer and integer
   19 |   if (c[0]=="1" && c[1]=="1" &&c[2]=="1" &&c[3]=="1"){
      |                                    ^~
main.c:19:48: warning: comparison between pointer and integer
   19 |   if (c[0]=="1" && c[1]=="1" &&c[2]=="1" &&c[3]=="1"){
      |                                                ^~
Language: C

#include <stdio.h>

int main()
{
   scanf(%d,&N);
   int counter = 0;
  while(counter < N){
    bool flag = false;
    scanf(%c, &character);
    if (character == 'Y')
    {
      flag = true;
    }
    counter++;
  }
  if (flag == true)
  {
    printf('Four');
  }
  else{
    printf("Three");
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:10: error: expected expression before '%' token
    5 |    scanf(%d,&N);
      |          ^
main.c:7:19: error: 'N' undeclared (first use in this function)
    7 |   while(counter < N){
      |                   ^
main.c:7:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:5: error: unknown type name 'bool'
    8 |     bool flag = false;
      |     ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:8:17: error: 'false' undeclared (first use in this function)
    8 |     bool flag = false;
      |                 ^~~~~
main.c:8:17: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:9:11: error: expected expression before '%' token
    9 |     scanf(%c, &character);
      |           ^
main.c:10:9: error: 'character' undeclared (first use in this function)
   10 |     if (character == 'Y')
      |         ^~~~~~~~~
main.c:12:14: error: 'true' undeclared (first use in this function)
   12 |       flag = true;
      |              ^~~~
main.c:12:14: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:16:7: error: 'flag' undeclared (first use in this function)
   16 |   if (flag == true)
      |       ^~~~
main.c:18:12: warning: multi-character character constant [-Wmultichar]
   18 |     printf('Four');
      |            ^~~~~~
main.c:18:12: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   18 |     printf('Four');
      |            ^~~~~~
      |            |
      |            int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:22: error: expected ';' before 'break'
   14 |       cout << "Three"
      |                      ^
      |                      ;
   15 |       break;
      |       ~~~~~
Language: C++

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

int main() {
  int N;
  cin >> N
  string s;
  bool exits_Y = false;

  //N回目まで繰り返す
  for(int i = 0; i < N ; ++i){
      //ひなあられを受け取る
      cin >> s;
      if(s == "Y"){
          exits_Y = true;
          break;
      }
  }

  //フラグがたったか判断する
  if(exits_Y)cout << "Four" << endl;
  else cout << "Three" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected ';' before 'string'
    7 |   cin >> N
      |           ^
      |           ;
    8 |   string s;
      |   ~~~~~~   
a.cc:14:14: error: 's' was not declared in this scope
   14 |       cin >> s;
      |              ^
Language: Java

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <string>
#include <algorithm>
#include <vector>
#include <set>
#include <map>
#include <list>
using namespace std;

#define MOD 1000000007
#define p(x) cout << x << endl;
#define el cout << endl;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    
    int n;
    cin >> n;
    char s[n];
    rep(i, n) cin >> s[i];

    set<char> set;
    rep(i, n) set.insert(s[i]);

    if(set.size() == 4){
        p("Four");
    }else{
        p("Three");
    }
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include <iostream>
^
Main.java:2: error: illegal character: '#'
#include <cstdio>
^
Main.java:3: error: illegal character: '#'
#include <cstdlib>
^
Main.java:4: error: illegal character: '#'
#include <cmath>
^
Main.java:5: error: illegal character: '#'
#include <string>
^
Main.java:6: error: illegal character: '#'
#include <algorithm>
^
Main.java:7: error: illegal character: '#'
#include <vector>
^
Main.java:8: error: illegal character: '#'
#include <set>
^
Main.java:9: error: illegal character: '#'
#include <map>
^
Main.java:10: error: illegal character: '#'
#include <list>
^
Main.java:13: error: illegal character: '#'
#define MOD 1000000007
^
Main.java:13: error: class, interface, enum, or record expected
#define MOD 1000000007
        ^
Main.java:14: error: illegal character: '#'
#define p(x) cout << x << endl;
^
Main.java:15: error: illegal character: '#'
#define el cout << endl;
^
Main.java:15: error: class, interface, enum, or record expected
#define el cout << endl;
        ^
Main.java:16: error: illegal character: '#'
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
^
Main.java:16: error: class, interface, enum, or record expected
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
        ^
Main.java:16: error: class, interface, enum, or record expected
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
                                  ^
Main.java:16: error: class, interface, enum, or record expected
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
                                                ^
Main.java:20: error: class, interface, enum, or record expected
    ios::sync_with_stdio(false);
    ^
Main.java:22: error: unnamed classes are a preview feature and are disabled by default.
    int n;
    ^
  (use --enable-preview to enable unnamed classes)
Main.java:23: error: class, interface, enum, or record expected
    cin >> n;
    ^
Main.java:24: error: class, interface, enum, or record expected
    char s[n];
    ^
Main.java:25: error: class, interface, enum, or record expected
    rep(i, n) cin >> s[i];
    ^
Main.java:28: error: class, interface, enum, or record expected
    rep(i, n) set.insert(s[i]);
    ^
Main.java:30: error: class, interface, enum, or record expected
    if(set.size() == 4){
    ^
Main.java:32: error: class, interface, enum, or record expected
    }else{
    ^
Main.java:34: error: class, interface, enum, or record expected
    }
    ^
28 errors
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
#include <stdio.h>
#include<iostream>
#include<cmath>
using namespace std;
int main(){
  int n;
  cin >>n;
  bool ans=false;a

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: 'a' was not declared in this scope
   11 |   bool ans=false;a
      |                  ^
a.cc:13:16: error: 'i' was not declared in this scope
   13 |   for(int i=0; i<n;i++){
      |                ^
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:22:7: error: 'S' was not declared in this scope
   22 |   if (S == "Y")
      |       ^
a.cc:23:3: error: continue statement not within a loop
   23 |   continue;
      |   ^~~~~~~~
Language: C++

#include<iostream>
using namespace std;

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

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

#include <bits/stdc++.h>
using namespace std;
 
int main() 
{
    int n;
    int a = 0;
    cin >> n;

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

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n;
  string text;
  cin >> n >> text;
  int p=0; int w=0; int g=0; int y=0;
  for(int i=0;i<text.length;i++){
    //text is P or W or G or Y
    if(text[i] == "P")
      p++;
    else if (text[i] == "W")
      w++;
    else if (text[i] == "G")
      g++;
    else if (text[i] == "Y")
      y++;
  }
  if(p*w*g*y!=0)
    cout << "Four" << endl;
  else
    cout << "Three" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    9 |   for(int i=0;i<text.length;i++){
      |                 ~~~~~^~~~~~
      |                            ()
a.cc:11:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(text[i] == "P")
a.cc:13:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |     else if (text[i] == "W")
a.cc:15:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     else if (text[i] == "G")
a.cc:17:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |     else if (text[i] == "Y")
Language: C++

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

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


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


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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before 'sum'
    5 |   int N sum;
      |         ^~~
a.cc:6:10: error: 'N' was not declared in this scope
    6 |   cin >> N;
      |          ^
a.cc:7:3: error: 'sum' was not declared in this scope
    7 |   sum = 0;
      |   ^~~
a.cc:10:12: error: expected unqualified-id before '=' token
   10 |   for (int = 0; i < N; i++) {
      |            ^
a.cc:10:11: error: expected ';' before '=' token
   10 |   for (int = 0; i < N; i++) {
      |           ^~
      |           ;
a.cc:10:12: error: expected primary-expression before '=' token
   10 |   for (int = 0; i < N; i++) {
      |            ^
a.cc:10:17: error: 'i' was not declared in this scope
   10 |   for (int = 0; i < N; i++) {
      |                 ^
a.cc:10:22: error: expected ')' before ';' token
   10 |   for (int = 0; i < N; i++) {
      |       ~              ^
      |                      )
a.cc:10:24: error: 'i' was not declared in this scope
   10 |   for (int = 0; i < N; i++) {
      |                        ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:32: error: expected ')' before ';' token
   11 |       for(int i = 0; i < N; i++;){
      |          ~                     ^
      |                                )
a.cc:11:33: error: expected primary-expression before ')' token
   11 |       for(int i = 0; i < N; i++;){
      |                                 ^
a.cc:19:8: error: expected '}' at end of input
   19 |       }
      |        ^
a.cc:4:15: note: to match this '{'
    4 |     int main(){
      |               ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: 'i' was not declared in this scope
   11 |       for(i = 0; i < N; i++;){
      |           ^
a.cc:11:28: error: expected ')' before ';' token
   11 |       for(i = 0; i < N; i++;){
      |          ~                 ^
      |                            )
a.cc:11:29: error: expected primary-expression before ')' token
   11 |       for(i = 0; i < N; i++;){
      |                             ^
a.cc:19:8: error: expected '}' at end of input
   19 |       }
      |        ^
a.cc:4:15: note: to match this '{'
    4 |     int main(){
      |               ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: 'i' was not declared in this scope
   11 |       for(i = 0; i < N; i++;){
      |           ^
a.cc:11:28: error: expected ')' before ';' token
   11 |       for(i = 0; i < N; i++;){
      |          ~                 ^
      |                            )
a.cc:11:29: error: expected primary-expression before ')' token
   11 |       for(i = 0; i < N; i++;){
      |                             ^
a.cc:18:8: error: expected '}' at end of input
   18 |       }
      |        ^
a.cc:4:15: note: to match this '{'
    4 |     int main(){
      |               ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: expected primary-expression at end of input
    7 |   switch(
      |          ^
a.cc:7:10: error: expected ')' at end of input
    7 |   switch(
      |         ~^
      |          )
a.cc:7:10: error: expected statement at end of input
a.cc:7:10: error: expected '}' at end of input
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main(){
  int a;
  cin>>a;
  string b;
  int i=0;
  int d=0;
  for(i=0;i<a;i++){
    cin>>b;
    if(b=="Y")
      d++;
    break
  }
  if(d==1)
    cout<<"Four"<<endl;
  else
    cout<<"Three"<<endl;
}

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

#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <unordered_map>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define show(x) cout << #x << " = " << (x) << endl;
using namespace std;
using ll = long long;
using pii = pair<int,int>;
int main(){
    int n;
    cin >> n;
    string s;
    getlin(cin,s);
    for(char c:s)if(c=='Y'){
        cout << "Four"<< endl;
        return 0;
    }
    cout << "Three" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:5: error: 'getlin' was not declared in this scope; did you mean 'getline'?
   33 |     getlin(cin,s);
      |     ^~~~~~
      |     getline
Language: C++

#include <iostream>
using namespace std;
#include <numeric>

int main(){
    int n;
    cin >> n;
    int ans[4];
    for(int i=0; i<4; i++){
        ans[i] = 0;
    }
    for(int i = 0; i < N; i++){
        char c;
        cin >> c;
        if(c=='P'){
            ans[0] = 1;
        }else if(c=='W'){
            ans[1] = 1;
        }else if(c=='G'){
            ans[2] = 1;
        }else if(c=='Y'){
            ans[3] = 1;
        }
    }
    int res = accumulate(ans, ans+sizeof(ans)/sizeof(ans[0]), 0);
    if(res==3){
        cout << "Three" << endl;
    }else if(res==4){
        cout << "Four" << endl;
    }
    return 0;
}

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

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

int main(){
  string a[110];
  int c;
  cin >> c;
  for(int i = 0; i < c; i++){
    cin >> a[i];
  }
  if(a[i] == "Y"){
    cout << "Four" << endl;
  }else{
    cout << "Three" << endl;
  }
}

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

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

int main(){
  String a[110],b;
  int c;
  cin >> c;
  for(int i = 0; i < c; i++){
    cin >> a[i];
  }
  if(a[i] == "Y"){
    cout << "Four" << endl;
  }else{
    cout << "Three" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'String' was not declared in this scope
    5 |   String a[110],b;
      |   ^~~~~~
a.cc:9:12: error: 'a' was not declared in this scope
    9 |     cin >> a[i];
      |            ^
a.cc:11:6: error: 'a' was not declared in this scope
   11 |   if(a[i] == "Y"){
      |      ^
a.cc:11:8: error: 'i' was not declared in this scope
   11 |   if(a[i] == "Y"){
      |        ^
Language: C++

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

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

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> N;
      |   ^~~
a.cc:5:5: error: 'string' was not declared in this scope
    5 |     string s;
      |     ^~~~~~
a.cc:6:12: error: 's' was not declared in this scope
    6 |     cin >> s;
      |            ^
a.cc:8:6: error: 'cout' was not declared in this scope
    8 |     {cout << "Four" << endl;
      |      ^~~~
a.cc:8:24: error: 'endl' was not declared in this scope
    8 |     {cout << "Four" << endl;
      |                        ^~~~
a.cc:12:7: error: 'cout' was not declared in this scope
   12 |       cout << "Three" << endl;
      |       ^~~~
a.cc:12:26: error: 'endl' was not declared in this scope
   12 |       cout << "Three" << endl;
      |                          ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'string' was not declared in this scope
    4 |     string s;
      |     ^~~~~~
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin >> s;
      |     ^~~
a.cc:5:12: error: 's' was not declared in this scope
    5 |     cin >> s;
      |            ^
a.cc:7:6: error: 'cout' was not declared in this scope
    7 |     {cout << "Four" << endl;
      |      ^~~~
a.cc:7:24: error: 'endl' was not declared in this scope
    7 |     {cout << "Four" << endl;
      |                        ^~~~
a.cc:11:7: error: 'cout' was not declared in this scope
   11 |       cout << "Three" << endl;
      |       ^~~~
a.cc:11:26: error: 'endl' was not declared in this scope
   11 |       cout << "Three" << endl;
      |                          ^~~~
Language: C++

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


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

#include<iostream>
using namespace std;

int main(){
  int n,p=0,w=0,g=0,y=0;cin>>n;
  string s[n];
  for(int i=0;i<n;i++){
    cin>>s[i];
    if(s[i]="G")g++;
    if(s[i]="W")w++;
    if(s[i]="P")p++;
    if(s[i]="Y")y++;
  }
  cout<<(g==0||w==0||p==0||y==0?"Three":"Four")<<endl;
  return 0;


}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: could not convert 's[i].std::__cxx11::basic_string<char>::operator=(((const char*)"G"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    9 |     if(s[i]="G")g++;
      |        ~~~~^~~~
      |            |
      |            std::__cxx11::basic_string<char>
a.cc:10:12: error: could not convert 's[i].std::__cxx11::basic_string<char>::operator=(((const char*)"W"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   10 |     if(s[i]="W")w++;
      |        ~~~~^~~~
      |            |
      |            std::__cxx11::basic_string<char>
a.cc:11:12: error: could not convert 's[i].std::__cxx11::basic_string<char>::operator=(((const char*)"P"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |     if(s[i]="P")p++;
      |        ~~~~^~~~
      |            |
      |            std::__cxx11::basic_string<char>
a.cc:12:12: error: could not convert 's[i].std::__cxx11::basic_string<char>::operator=(((const char*)"Y"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   12 |     if(s[i]="Y")y++;
      |        ~~~~^~~~
      |            |
      |            std::__cxx11::basic_string<char>
Language: C++

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

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


Compiler output:
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
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"){
      break;
    }
  }
  if (S=="y"){
    cout << "four" << endl;
  }
  else {
    cout << "three" << endl;
  }
  }

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:23: error: expected ')' before '{' token
   16 |     else if((s == "W"){
      |            ~          ^
      |                       )
a.cc:25:3: error: expected primary-expression before '}' token
   25 |   }
      |   ^
Language: C++

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

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

  

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

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

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

  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: expected ')' before ';' token
    8 |   for(int i = 0;i < N;i++;){
      |      ~                   ^
      |                          )
a.cc:8:27: error: expected primary-expression before ')' token
    8 |   for(int i = 0;i < N;i++;){
      |                           ^
a.cc:19:4: error: expected '}' at end of input
   19 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		sc.nextLine();
		String[] s = sc.nextLine().split(" ");
		if (Arrays.stream(s).filter(e -> e.equals("Y")).count() > 0L) {
			System.out.println("Four");
		} else {
			System.out.println("Three");
		}

		sc.close();
	}
}

Compiler output:
Main.java:9: error: cannot find symbol
		if (Arrays.stream(s).filter(e -> e.equals("Y")).count() > 0L) {
		    ^
  symbol:   variable Arrays
  location: class Main
1 error
Language: C++

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

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

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

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

int main() {
  int N,A,B,C,D,
  a = 0,
  b = 0,
  c = 0,
  d = 0;
  string s;
  cin >> N;
  for(int i = 0 ; i < N; i++){
   cin >> s;
    if(s == "P"){
      a++;
    }
    else if(s == "W"){
      b++;
    }
    else if(s == "G"){
      c++;
    }
    else if(s == "Y"){
      d++;
    }
  else {
    cout << "error" << endl;
  }
   cout << s << endl;
  }
  A = a / a;
　B = b / b;
  C = c / c;
  D = d / d;
  N = A + B + C + D;
  if(N = 3){
    cout << "Three" << endl;
  }
  if(N = 4){
    cout << "Four" << endl;
  }
}
  

Compiler output:
a.cc:32:1: error: extended character 　 is not valid in an identifier
   32 | 　B = b / b;
      | ^
a.cc: In function 'int main()':
a.cc:32:1: error: '\U00003000B' was not declared in this scope
   32 | 　B = b / b;
      | ^~~
Language: C++

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

int main() {
  int N,A,B,C,D;
  a = 0,
  b = 0,
  c = 0,
  d = 0;
  string s;
  cin >> N;
  for(int i = 0 ; i < N; i++){
   cin >> s;
    if(s == "P"){
      a++;
    }
    else if(s == "W"){
      b++;
    }
    else if(s == "G"){
      c++;
    }
    else if(s == "Y"){
      d++;
    }
  else {
    cout << "error" << endl;
  }
   cout << s << endl;
  }
  A = a / a;
　B = b / b;
  C = c / c;
  D = d / d;
  N = A + B + C + D;
  if(N = 3){
    cout << "Three" << endl;
  }
  if(N = 4){
    cout << "Four" << endl;
  }
}
  

Compiler output:
a.cc:32:1: error: extended character 　 is not valid in an identifier
   32 | 　B = b / b;
      | ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'a' was not declared in this scope
    6 |   a = 0,
      |   ^
a.cc:7:3: error: 'b' was not declared in this scope
    7 |   b = 0,
      |   ^
a.cc:8:3: error: 'c' was not declared in this scope
    8 |   c = 0,
      |   ^
a.cc:9:3: error: 'd' was not declared in this scope
    9 |   d = 0;
      |   ^
a.cc:32:1: error: '\U00003000B' was not declared in this scope
   32 | 　B = b / b;
      | ^~~
Language: C++

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

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

Compiler output:
a.cc:32:1: error: extended character 　 is not valid in an identifier
   32 | 　b = b / b;
      | ^
a.cc: In function 'int main()':
a.cc:32:1: error: '\U00003000b' was not declared in this scope
   32 | 　b = b / b;
      | ^~~
Language: C++

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

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

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

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

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

#include <iostream>
using namespace std;

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

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

#include <iostream>
using namespace std;

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

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

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

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

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

		if (S == "Y") {
			cout << "Four\n";
			break;
		}
		
		cout << "Three\n";
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |                 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;
		cin >> S;

		if (S == "Y") {
			cout << "Four\n";
			break;
		}
		
		cout << "Three\n"
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |                 if (S == "Y") {
      |                     ~~^~~~~~
a.cc:17:34: error: expected ';' before '}' token
   17 |                 cout << "Three\n"
      |                                  ^
      |                                  ;
   18 |         }
      |         ~
Language: C++

#include <bits/stdc++.h>
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 \n";
		}
		else {
			cout << "Three \n";
		}

	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |                 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++) {
		int S;
		cin >> S;

		if (S == "Y") {
			cout << "Four \n";
		}
		else {
			cout << "Three \n";
		}

	}
}

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

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

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

Compiler output:
a.cc:32:1: error: extended character 　 is not valid in an identifier
   32 | 　b = b / b;
      | ^
a.cc: In function 'int main()':
a.cc:17:5: error: 'else' without a previous 'if'
   17 |     else if(s == "W"){
      |     ^~~~
a.cc: At global scope:
a.cc:31:3: error: 'a' does not name a type
   31 |   a = a / a;
      |   ^
a.cc:32:1: error: '\U00003000b' does not name a type
   32 | 　b = b / b;
      | ^~~
a.cc:33:3: error: 'c' does not name a type
   33 |   c = c / c;
      |   ^
a.cc:34:3: error: 'd' does not name a type
   34 |   d = d / d;
      |   ^
a.cc:35:3: error: 'N' does not name a type
   35 |   N = a + b +c + d;
      |   ^
a.cc:36:3: error: expected unqualified-id before 'if'
   36 |   if(N = 3){
      |   ^~
a.cc:39:3: error: expected unqualified-id before 'else'
   39 |   else if(N = 4){
      |   ^~~~
a.cc:42:1: error: expected declaration before '}' token
   42 | }
      | ^
Language: C++

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

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

Compiler output:
a.cc:29:1: error: extended character 　 is not valid in an identifier
   29 | 　b = b / b;
      | ^
a.cc: In function 'int main()':
a.cc:17:5: error: 'else' without a previous 'if'
   17 |     else if(s == "W"){
      |     ^~~~
a.cc: At global scope:
a.cc:28:3: error: 'a' does not name a type
   28 |   a = a / a;
      |   ^
a.cc:29:1: error: '\U00003000b' does not name a type
   29 | 　b = b / b;
      | ^~~
a.cc:30:3: error: 'c' does not name a type
   30 |   c = c / c;
      |   ^
a.cc:31:3: error: 'd' does not name a type
   31 |   d = d / d;
      |   ^
a.cc:32:3: error: 'N' does not name a type
   32 |   N = a + b +c + d;
      |   ^
a.cc:33:3: error: expected unqualified-id before 'if'
   33 |   if(N = 3){
      |   ^~
a.cc:36:3: error: expected unqualified-id before 'else'
   36 |   else if(N = 4){
      |   ^~~~
a.cc:39:1: error: expected declaration before '}' token
   39 | }
      | ^
Language: C++

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

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: 'P' was not declared in this scope
   14 |     if(s = P && a == 0){
      |            ^
a.cc:17:17: error: 'W' was not declared in this scope
   17 |     else if(s = W && b == 0){
      |                 ^
a.cc:20:17: error: 'G' was not declared in this scope
   20 |     else if(s = G && c == 0){
      |                 ^
a.cc:23:17: error: 'Y' was not declared in this scope
   23 |     else if(s = Y && d == 0){
      |                 ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: 'P' was not declared in this scope
   14 |     if(s == P && a == 0){
      |             ^
a.cc:17:18: error: 'W' was not declared in this scope
   17 |     else if(s == W && b == 0){
      |                  ^
a.cc:20:18: error: 'G' was not declared in this scope
   20 |     else if(s == G && c == 0){
      |                  ^
a.cc:23:18: error: 'Y' was not declared in this scope
   23 |     else if(s == Y && d == 0){
      |                  ^