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

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

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> N;
      |   ^~~
a.cc:8:5: error: 'string' was not declared in this scope
    8 |     string S;
      |     ^~~~~~
a.cc:9:12: error: 'S' was not declared in this scope
    9 |     cin >> S;
      |            ^
a.cc:12:12: error: expected ';' before '}' token
   12 |       g = 1
      |            ^
      |            ;
   13 |     }else if(S == "W"){
      |     ~       
a.cc:14:12: error: expected ';' before '}' token
   14 |       w = 1
      |            ^
      |            ;
   15 |     }else if(S == "Y"){
      |     ~       
a.cc:16:12: error: expected ';' before '}' token
   16 |       y = 1
      |            ^
      |            ;
   17 |     }else{
      |     ~       
a.cc:18:12: error: expected ';' before '}' token
   18 |       p = 1
      |            ^
      |            ;
   19 |     }
      |     ~       
a.cc:21:13: error: 'g' was not declared in this scope
   21 |   int sum = g + w + y + p;
      |             ^
a.cc:21:17: error: 'w' was not declared in this scope
   21 |   int sum = g + w + y + p;
      |                 ^
a.cc:21:21: error: 'y' was not declared in this scope
   21 |   int sum = g + w + y + p;
      |                     ^
a.cc:21:25: error: 'p' was not declared in this scope
   21 |   int sum = g + w + y + p;
      |                         ^
a.cc:23:5: error: 'cout' was not declared in this scope
   23 |     cout << "Three" << endl;
      |     ^~~~
a.cc:23:24: error: 'endl' was not declared in this scope
   23 |     cout << "Three" << endl;
      |                        ^~~~
a.cc:25:5: error: 'cout' was not declared in this scope
   25 |     cout << "Four" << endl;
      |     ^~~~
a.cc:25:23: error: 'endl' was not declared in this scope
   25 |     cout << "Four" << endl;
      |                       ^~~~
Language: C++

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

int main() {
  int N;
  cin >> N;
  for (int i; i < N; i++){
    string y;
    cin >> y;
    if (y == y){
      cout << four << endl;
      break;
  	}
    else
      cout << three << endl;
  }
}

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

#include<stdio.h>
int main(void)
{
	int n,i,four=0;
	char ara[n];

	scanf("%d",&n);
	for(i=0;i<n;i++)
		scanf("%c",&ara[i]);

	for(i=0;i<n;i++)
		if(are[i]=='Y'){
			four=1;break;
		}

	if(four==1)
		printf("Four\n");
	else printf("Three\n");

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:20: error: 'are' undeclared (first use in this function); did you mean 'ara'?
   12 |                 if(are[i]=='Y'){
      |                    ^~~
      |                    ara
main.c:12:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void)
{
	int n,i,four=0;
	char ara[n];

	scanf("%d",&n);
	for(i=0;i<n;i++)
		scanf("%c",&ara[i]);

	for(i=0;i<n;i++)
		if(are[i]=='Y'){
			four=1;break
		}

	if(four==1)
		printf("Four\n");
	else printf("Three\n");

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:20: error: 'are' undeclared (first use in this function); did you mean 'ara'?
   12 |                 if(are[i]=='Y'){
      |                    ^~~
      |                    ara
main.c:12:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:37: error: expected ';' before '}' token
   13 |                         four=1;break
      |                                     ^
      |                                     ;
   14 |                 }
      |                 ~
Language: C

#include<stdio.h>
int main(void)
{
	int n,i;
	char ara[n];

	scanf("%d",&n);
	for(i=0;i<n;i++)
		scanf("%c",ara[i]);

	for(i=0;i<n;i++)
		if(are[i]=='Y){
			four=1;break
		}

	if(four==1)
		printf("Four\n");
	else printf("Three\n");

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:20: error: 'are' undeclared (first use in this function); did you mean 'ara'?
   12 |                 if(are[i]=='Y){
      |                    ^~~
      |                    ara
main.c:12:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:28: warning: missing terminating ' character
   12 |                 if(are[i]=='Y){
      |                            ^
main.c:12:28: error: missing terminating ' character
   12 |                 if(are[i]=='Y){
      |                            ^~~~
main.c:13:25: error: 'four' undeclared (first use in this function)
   13 |                         four=1;break
      |                         ^~~~
main.c:13:31: error: expected ')' before ';' token
   13 |                         four=1;break
      |                               ^
      |                               )
main.c:12:19: note: to match this '('
   12 |                 if(are[i]=='Y){
      |                   ^
main.c:14:17: error: expected expression before '}' token
   14 |                 }
      |                 ^
main.c: At top level:
main.c:16:9: error: expected identifier or '(' before 'if'
   16 |         if(four==1)
      |         ^~
main.c:18:9: error: expected identifier or '(' before 'else'
   18 |         else printf("Three\n");
      |         ^~~~
main.c:20:9: error: expected identifier or '(' before 'return'
   20 |         return 0;
      |         ^~~~~~
main.c:21:1: error: expected identifier or '(' before '}' token
   21 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  string S;
  bool Hina = false;
  cin >> N;
  
  for(int i=0;i<N;i++){
    cin >> S;
    if(S == "Y"){
      Hina = true;
      break;
    }
  }
  if(Hina){
    cout << "Four" << endl;
  }else{
    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;
  string S;
  bool Hina = false;
  cin >> N;
  
  for(int i=0;i<N;i++){
    cin >> S;
    if(S == "Y"){
      bool = true;
      break;
    }
  }
  if(Hina){
    cout << "Four" << endl;
  }else{
    cout << "Three" << endl;
 
  // ここにプログラムを追記
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: expected unqualified-id before '=' token
   13 |       bool = true;
      |            ^
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; 
    vector<int>S(N);
    set<string>Set;
    for(int i = 0; i < N; i++) {
        cin >> S[i];
        Set.insert[S[i]];
    }
    if(Set.size() == 4) {
        cout << "Four" << endl;
    }
    else {
        cout << "Three" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: invalid types '<unresolved overloaded function type>[__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}]' for array subscript
   11 |         Set.insert[S[i]];
      |                   ^
Language: C++

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

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

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int N;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin>>N>>endl;
      |   ^~~
a.cc:9:3: error: expected unqualified-id before 'for'
    9 |   for(int i=0; i<N i++){
      |   ^~~
a.cc:9:16: error: 'i' does not name a type
    9 |   for(int i=0; i<N i++){
      |                ^
Language: C++

#include<bits/stdc++.h>
#include<cstdlib>
using namespace std;
int main(){
  int N; cin>>N;
  int A=0; int B=0; int C=0; int D=0;
  for(int i=0; i<N; i++){
    if(S.at(i)=='P')
      A++;
    if(S.at(i)=='W')
      B++;
    if(S.at(i)=='G')
      C++;
    if(S.at(i)=='Y')
      D++;
  }
  if(A!=0&&B!=0&&C!=0&&D!=0)
    cout<<"Four"<<endl;
  else cout<<"Three"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'S' was not declared in this scope
    8 |     if(S.at(i)=='P')
      |        ^
a.cc:10:8: error: 'S' was not declared in this scope
   10 |     if(S.at(i)=='W')
      |        ^
a.cc:12:8: error: 'S' was not declared in this scope
   12 |     if(S.at(i)=='G')
      |        ^
a.cc:14:8: error: 'S' was not declared in this scope
   14 |     if(S.at(i)=='Y')
      |        ^
Language: C++

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

int main() {
  char a;
  int N, c;
  bool P = false;
  bool W = false;
  bool G = false;
  bool Y = false;
  
  cin >> N;
  
  for (int i = 0; i < N; i++){
    
    cin >> a;
    
    if (a == 'P' && P == false){
      c ++;
      P = true;
    }
    else if (a == 'W' && W == false){
      c++;
      W = true;
    }
    else if (a == 'G' && G == false){
      c++;
      G = true;
    }
    else if (a == 'Y' && Y == false){
      c++;
      Y = true;
    }

  }
  
  cout << (c == 3 ? "Three": "Four") << endl 

}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:45: error: expected ';' before '}' token
   37 |   cout << (c == 3 ? "Three": "Four") << endl
      |                                             ^
      |                                             ;
   38 | 
   39 | }
      | ~
Language: C++

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

int main() {
  char a;
  int N, c;
  bool P = false;
  bool W = false;
  bool G = false;
  bool Y = false;
  
  cin >> N;
  
  for (i = 0; i < N; i++){
    
    cin >> a;
    
    if (a == 'P' && P == false){
      c ++;
      P = true;
    }
    else if (a == 'W' && W == false){
      c++;
      W = true;
    }
    else if (a == 'G' && G == false){
      c++;
      G = true;
    }
    else if (a == 'Y' && Y == false){
      c++;
      Y = true;
    }

  }
  
  cout << (c == 3 ? "Three": "Four") << endl 

}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: 'i' was not declared in this scope
   14 |   for (i = 0; i < N; i++){
      |        ^
a.cc:37:45: error: expected ';' before '}' token
   37 |   cout << (c == 3 ? "Three": "Four") << endl
      |                                             ^
      |                                             ;
   38 | 
   39 | }
      | ~
Language: C++

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

int main() {
  char a;
  int N, c;
  bool P = false;
  bool W = false;
  bool G = false;
  bool Y = false;
  
  cin >> N;
  
  for (i = 0; i < N; i++){
    
    cin >> a;
    
    if (a == "P" && P == false){
      c ++;
      P = true;
    }
    else if (a == "W" && W == false){
      c++;
      W = true;
    }
    else if (a == "G" && G == false){
      c++;
      G = true;
    }
    else if (a == "Y" && Y == false){
      c++;
      Y = true;
    }

  }
  
  cout << (c == 3 ? "Three": "Four") << endl 

}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: 'i' was not declared in this scope
   14 |   for (i = 0; i < N; i++){
      |        ^
a.cc:18:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |     if (a == "P" && P == false){
      |         ~~^~~~~~
a.cc:22:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   22 |     else if (a == "W" && W == false){
      |              ~~^~~~~~
a.cc:26:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   26 |     else if (a == "G" && G == false){
      |              ~~^~~~~~
a.cc:30:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   30 |     else if (a == "Y" && Y == false){
      |              ~~^~~~~~
a.cc:37:45: error: expected ';' before '}' token
   37 |   cout << (c == 3 ? "Three": "Four") << endl
      |                                             ^
      |                                             ;
   38 | 
   39 | }
      | ~
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: lvalue required as left operand of assignment
   11 |     else if (x!="Y"&&i=N-1){
      |              ~~~~~~^~~
a.cc:14:4: error: expected '}' at end of input
   14 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:20:8: error: expected primary-expression before '<<' token
   20 |   else << "Three" << endl;
      |        ^~
Language: C++

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

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


Compiler output:
a.cc:12:14: error: empty character constant
   12 |     if (s == ''Y''){
      |              ^~~
a.cc:12:17: error: empty character constant
   12 |     if (s == ''Y''){
      |                 ^~
a.cc: In function 'int main()':
a.cc:12:14: error: unable to find character literal operator 'operator""Y' with 'char' argument
   12 |     if (s == ''Y''){
      |              ^~~
a.cc:12:17: error: expected ')' before '\x0'
   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" << endl;
			return;
		}
	}
	
	cout << "Three" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:25: error: return-statement with no value, in function returning 'int' [-fpermissive]
   13 |                         return;
      |                         ^~~~~~
Language: C++

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

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



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

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

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



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

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

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


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

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

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:19: error: expected ';' before '}' token
   24 |     cout << "Four"
      |                   ^
      |                   ;
   25 | 
   26 | }
      | ~
Language: C++

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

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected ';' before 'for'
    7 |   cin >> N
      |           ^
      |           ;
    8 | 
    9 |   for (int i = 0; i < N; i++){
      |   ~~~      
a.cc:9:19: error: 'i' was not declared in this scope
    9 |   for (int i = 0; i < N; i++){
      |                   ^
a.cc:21:13: error: 'Three' was not declared in this scope
   21 |     cout << Three;
      |             ^~~~~
a.cc:24:13: error: 'Four' was not declared in this scope
   24 |     cout << Four
      |             ^~~~
Language: C++

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

int main() {
  int N;
  string str;
  cin >> N >> str;
  
  int x = str.find("Y")
    
  if (x < N){
    cout << "Three"
  }
  else
    cout << "Four"



}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected ',' or ';' before 'if'
   11 |   if (x < N){
      |   ^~
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else
      |   ^~~~
a.cc:15:19: error: expected ';' before '}' token
   15 |     cout << "Four"
      |                   ^
      |                   ;
......
   19 | }
      | ~
Language: C++

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

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

  vector<int> data(N);
    for (int i = 0; i < N; i++) {
      cin >> data.at(i);
    }
  
  int answer = 0;
  
    for (int i = 0; i < N; i++) {
 
      if (data.at(i) == "Y") {
        answer++;
      }
  
      if (anawer == 0){
        cout << "Three" << endl;
      }
      else {
        cout << "Four" << endl;
      }
    
    
    
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |       if (data.at(i) == "Y") {
      |           ~~~~~~~~~~~^~~~~~
a.cc:21:11: error: 'anawer' was not declared in this scope; did you mean 'answer'?
   21 |       if (anawer == 0){
      |           ^~~~~~
      |           answer
Language: C++

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

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

  vector<int> data(N);
    for (int i = 0; i < N; i++) {
      cin >> data.at(i);
    }
  
  int answer = 0;
  
    for (int i = 0; i < N; i++) {
 
      if (data.at(i) == a) {
        answer++;
      }
  
      if (anawer == 0){
        cout << "Three" << endl;
      }
      else {
        cout << "Four" << endl;
      }
    
    
    
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:25: error: 'a' was not declared in this scope
   17 |       if (data.at(i) == a) {
      |                         ^
a.cc:21:11: error: 'anawer' was not declared in this scope; did you mean 'answer'?
   21 |       if (anawer == 0){
      |           ^~~~~~
      |           answer
Language: C++

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

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

  vector<int> data(N);
    for (int i = 0; i < N; i++) {
      cin >> data.at(i);
    }
  
  int answer = 0;
  
    for (int i = 0; i < N; i++) {
 
      if (data.at(i) == a) {
        answer++;
      }
  
      if (anawer == 0){
        cout << Three << endl;
      }
      else {
        cout << Four << endl;
      }
    
    
    
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:25: error: 'a' was not declared in this scope
   17 |       if (data.at(i) == a) {
      |                         ^
a.cc:21:11: error: 'anawer' was not declared in this scope; did you mean 'answer'?
   21 |       if (anawer == 0){
      |           ^~~~~~
      |           answer
a.cc:22:17: error: 'Three' was not declared in this scope
   22 |         cout << Three << endl;
      |                 ^~~~~
a.cc:25:17: error: 'Four' was not declared in this scope
   25 |         cout << Four << endl;
      |                 ^~~~
Language: C++

#include <bitsstdc++.h>
using namespace std;

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"Y"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   10 |     if (S = "Y"){
      |         ~~^~~~~
      |           |
      |           std::__cxx11::basic_string<char>
a.cc:12:12: error: expected ';' before '}' token
   12 |       break
      |            ^
      |            ;
   13 |     }
      |     ~       
a.cc:18:11: error: 'n' was not declared in this scope
   18 |   if (i = n - 1){
      |           ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: 'i' was not declared in this scope
    6 |   for(i=0;i<N;i++){
      |       ^
a.cc:9:8: error: 'S' was not declared in this scope; did you mean 'Si'?
    9 |     if(S == "Y")
      |        ^
      |        Si
a.cc:13:22: error: 'ednl' was not declared in this scope
   13 |   cout << "Three" << ednl;
      |                      ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N, p, w, g, y;
  p=0 w=0 g=0 y=0;
  cin >>N;
  for (int i=O; i<N; i++){
    string S;
    cin >> S;
    if (S="P"){
      p++;
    }
    else if (S="W"){
      w++;
    }
    else if (S="G"){
      g++;
    }
    else if (S="Y"){
      y++;
    }
  }
  int m;
  if (p) {
    m++;
  }
  if (w) {
    m++;
  }
  if (g) {
    m++;
  }
   if (y) {
    m++;
  }
  if (m=3) {
    cout <<"Three" <<endl;
  }
  if (m=4){
    cout <<"Four" <<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'w'
    6 |   p=0 w=0 g=0 y=0;
      |      ^~
      |      ;
a.cc:8:14: error: 'O' was not declared in this scope
    8 |   for (int i=O; i<N; i++){
      |              ^
a.cc:11:10: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"P"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |     if (S="P"){
      |         ~^~~~
      |          |
      |          std::__cxx11::basic_string<char>
a.cc:14:15: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"W"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   14 |     else if (S="W"){
      |              ~^~~~
      |               |
      |               std::__cxx11::basic_string<char>
a.cc:17:15: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"G"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   17 |     else if (S="G"){
      |              ~^~~~
      |               |
      |               std::__cxx11::basic_string<char>
a.cc:20:15: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"Y"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   20 |     else if (S="Y"){
      |              ~^~~~
      |               |
      |               std::__cxx11::basic_string<char>
a.cc:41:26: error: expected '}' at end of input
   41 |     cout <<"Four" <<endl;
      |                          ^
a.cc:40:11: note: to match this '{'
   40 |   if (m=4){
      |           ^
a.cc:41:26: error: expected '}' at end of input
   41 |     cout <<"Four" <<endl;
      |                          ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 'Y' was not declared in this scope
   10 |     if(S==Y){
      |           ^
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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


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

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

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


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

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

int main() {
  int N, Y;
  cin >> N ;
  vector<int> data(N);
   int sum =0;
  
  for (int i=0; i<N; i++ ){

    if (data.at(i)=='Y'){
      sum++;
      break;
    }
  }
   if (sum==1){
    cout << "Four" <<endl ;  
   }
  else{
    cout << "Three" << endl;
  }
   
  }
}


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

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

int main() {
  int N, Y;
  cin >> N ;
  vector<int> data(N);
   int sum =0;
  
  for (int i=0; i<N; i++ ){

    if (data.at(i)=='Y'){
      sum++;
      break;
    }
  }
   if (sum==1){
    cout << "Four" <<endl ;  
  
  else{
    cout << "Three" << endl;
  }
   
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:3: error: expected '}' before 'else'
   20 |   else{
      |   ^~~~
a.cc:17:15: note: to match this '{'
   17 |    if (sum==1){
      |               ^
a.cc: At global scope:
a.cc:25:1: error: expected declaration before '}' token
   25 | }
      | ^
Language: C++

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

int main() {
  int N, P, W, G, Y;
  cin >> N ;
  vector<int> data(N);
   int sum =0;
  
  for (i=0; i<N; i++ ){

    if (data.at(i)=='Y'){
      sum++;
    }
  }
  if(sum==0){
    cout << "Three" << endl;
  }
  else   {
    cout << "Four" <<endl ;    
  }
}


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

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

int main() {
  int N, P, W, G, Y;
  cin >> N ;
  vector<int> data(N);
   int sum(P),sum(W),sum(G),sum(Y);
  for (i=0; i<N; i++ ){
   
    if(data.at(i)=='P'){
      sum(P)++;
    }
    else (data.at(i)=='W'){
      sum(W)++;
    }
     else (data.at(i)=='G'){
       sum(G)++;
     }
    else (data.at(i)=='Y'){
      sum(Y)++;
    }
  }
  if(sum(Y)==0){
    cout << "Three" << endl;
  }
  else   {
    cout << "Four" <<endl ;    
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: redeclaration of 'int sum'
    8 |    int sum(P),sum(W),sum(G),sum(Y);
      |               ^~~
a.cc:8:8: note: 'int sum' previously declared here
    8 |    int sum(P),sum(W),sum(G),sum(Y);
      |        ^~~
a.cc:8:22: error: redeclaration of 'int sum'
    8 |    int sum(P),sum(W),sum(G),sum(Y);
      |                      ^~~
a.cc:8:8: note: 'int sum' previously declared here
    8 |    int sum(P),sum(W),sum(G),sum(Y);
      |        ^~~
a.cc:8:29: error: redeclaration of 'int sum'
    8 |    int sum(P),sum(W),sum(G),sum(Y);
      |                             ^~~
a.cc:8:8: note: 'int sum' previously declared here
    8 |    int sum(P),sum(W),sum(G),sum(Y);
      |        ^~~
a.cc:9:8: error: 'i' was not declared in this scope
    9 |   for (i=0; i<N; i++ ){
      |        ^
a.cc:12:10: error: 'sum' cannot be used as a function
   12 |       sum(P)++;
      |       ~~~^~~
a.cc:17:6: error: 'else' without a previous 'if'
   17 |      else (data.at(i)=='G'){
      |      ^~~~
a.cc:20:5: error: 'else' without a previous 'if'
   20 |     else (data.at(i)=='Y'){
      |     ^~~~
a.cc:24:9: error: 'sum' cannot be used as a function
   24 |   if(sum(Y)==0){
      |      ~~~^~~
Language: C++

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

int main() {
  int N;
  cin >> N ;
  vector<int> data(N);
   int sum(P),sum(W),sum(G),sum(Y);
  for (i=0; i<N; i++ ){
   
    if(data.at(i)=='P'){
      sum(P)++;
    }
    else (data.at(i)=='W'){
      sum(W)++;
    }
     else (data.at(i)=='G'){
       sum(G)++;
     }
    else (data.at(i)=='Y'){
      sum(Y)++;
    }
  }
  if(sum(Y)==0){
    cout << "Three" << endl;
  }
  else   {
    cout << "Four" <<endl ;    
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'P' was not declared in this scope
    8 |    int sum(P),sum(W),sum(G),sum(Y);
      |            ^
a.cc:8:15: error: redeclaration of 'int sum'
    8 |    int sum(P),sum(W),sum(G),sum(Y);
      |               ^~~
a.cc:8:8: note: 'int sum' previously declared here
    8 |    int sum(P),sum(W),sum(G),sum(Y);
      |        ^~~
a.cc:8:19: error: 'W' was not declared in this scope
    8 |    int sum(P),sum(W),sum(G),sum(Y);
      |                   ^
a.cc:8:22: error: redeclaration of 'int sum'
    8 |    int sum(P),sum(W),sum(G),sum(Y);
      |                      ^~~
a.cc:8:8: note: 'int sum' previously declared here
    8 |    int sum(P),sum(W),sum(G),sum(Y);
      |        ^~~
a.cc:8:26: error: 'G' was not declared in this scope
    8 |    int sum(P),sum(W),sum(G),sum(Y);
      |                          ^
a.cc:8:29: error: redeclaration of 'int sum'
    8 |    int sum(P),sum(W),sum(G),sum(Y);
      |                             ^~~
a.cc:8:8: note: 'int sum' previously declared here
    8 |    int sum(P),sum(W),sum(G),sum(Y);
      |        ^~~
a.cc:8:33: error: 'Y' was not declared in this scope
    8 |    int sum(P),sum(W),sum(G),sum(Y);
      |                                 ^
a.cc:9:8: error: 'i' was not declared in this scope
    9 |   for (i=0; i<N; i++ ){
      |        ^
a.cc:12:10: error: 'sum' cannot be used as a function
   12 |       sum(P)++;
      |       ~~~^~~
a.cc:17:6: error: 'else' without a previous 'if'
   17 |      else (data.at(i)=='G'){
      |      ^~~~
a.cc:20:5: error: 'else' without a previous 'if'
   20 |     else (data.at(i)=='Y'){
      |     ^~~~
a.cc:24:9: error: 'sum' cannot be used as a function
   24 |   if(sum(Y)==0){
      |      ~~~^~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    6 |   char a = "Y"
      |            ^~~
      |            |
      |            const char*
a.cc:7:5: error: expected ',' or ';' before 'for'
    7 |     for(int i = 0; i < N ; i++){
      |     ^~~
a.cc:7:20: error: 'i' was not declared in this scope
    7 |     for(int i = 0; i < N ; i++){
      |                    ^
Language: C++

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    6 |   char c = "Y"
      |            ^~~
      |            |
      |            const char*
a.cc:7:5: error: expected ',' or ';' before 'for'
    7 |     for(int i = 0; i < N ; i++){
      |     ^~~
a.cc:7:20: error: 'i' was not declared in this scope
    7 |     for(int i = 0; i < N ; i++){
      |                    ^
Language: C++

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

int main() {
  int N;
    for(i = 0; i < N ; i++){
      char S;
      char Y;
      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:9: error: 'i' was not declared in this scope
    6 |     for(i = 0; i < N ; i++){
      |         ^
Language: C++

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

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


Compiler output:
a.cc:2:1: error: 'usinng' does not name a type
    2 | usinng namespace std;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'i' was not declared in this scope
    6 |     for(i = 0; i < N ; i++){
      |         ^
a.cc:9:7: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |       cin >> S ;
      |       ^~~
      |       std::cin
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:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |         cout << "Four" << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |         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:15:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |         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:15:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |         cout << "Three" << endl;
      |                            ^~~~
      |                            std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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

Compiler output:
a.cc:2:1: error: 'usinng' does not name a type
    2 | usinng namespace std;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'for'
    6 |     for(i = 0; i < N ; i++){
      |     ^~~
a.cc:6:16: error: 'i' was not declared in this scope
    6 |     for(i = 0; i < N ; i++){
      |                ^
a.cc:6:20: error: 'N' was not declared in this scope
    6 |     for(i = 0; i < N ; i++){
      |                    ^
Language: C++

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

Compiler output:
a.cc:1:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    1 | main(void){
      | ^~~~
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin <<N;
      |   ^~~
a.cc:6:5: error: 'string' was not declared in this scope
    6 |     string s;
      |     ^~~~~~
a.cc:7:12: error: 's' was not declared in this scope
    7 |     cin << s;
      |            ^
a.cc:10:7: error: 'cout' was not declared in this scope
   10 |       cout << "Four" << endl;
      |       ^~~~
a.cc:10:25: error: 'endl' was not declared in this scope
   10 |       cout << "Four" << endl;
      |                         ^~~~
a.cc:11:7: error: 'returen' was not declared in this scope
   11 |       returen 0;
      |       ^~~~~~~
a.cc:14:3: error: 'cout' was not declared in this scope
   14 |   cout << "Three" << endl;
      |   ^~~~
a.cc:14:22: error: 'endl' was not declared in this scope
   14 |   cout << "Three" << endl;
      |                      ^~~~
a.cc:15:3: error: 'returen' was not declared in this scope
   15 |   returen 0;
      |   ^~~~~~~
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;
    }
    else if (i == N - 1) {
      cout << "Three" << endl;
    }
  }
}

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

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


int main(){
  int N, i;
  string S;

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


Compiler output:
a.cc:1:10: fatal error: bits/stdc++: No such file or directory
    1 | #include <bits/stdc++>
      |          ^~~~~~~~~~~~~
compilation terminated.
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,n;
  cin>>N;
  for(int i=0;i<N;i++){
    string S;
    cin>>S;
    if(S=="Y"){
    n++;
      break;
   }
    if (n=1){
    cout<<"Four"<<endl;
    }
    else{
      cout<<"Three"<<endl;
    }

    }


Compiler output:
a.cc: In function 'int main()':
a.cc:22:6: error: expected '}' at end of input
   22 |     }
      |      ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
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,n;
  cin>>N;
  for(int i=0;i<N;i++){
    string s;
    cin>>S;
    if(S=="Y"){
    n++;
      break;
   }
    if (n=1){
    cout<<"Four"<<endl;
    }
    else{
      cout<<"Three"<<endl;
    }

    }


Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: 'S' was not declared in this scope
   10 |     cin>>S;
      |          ^
a.cc:22:6: error: expected '}' at end of input
   22 |     }
      |      ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
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,n;
  cin>>N;
  for(int i=0;i<N;i++){
    string s;
    cin>>S;
    if(S=="Y"){
    n++;
      break;
    else{
    }
   }
    if (n=1){
    cout<<"Four"<<endl;
    }
    else{
      cout<<"Three"<<endl;
    }

    }


Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: 'S' was not declared in this scope
   10 |     cin>>S;
      |          ^
a.cc:14:5: error: expected '}' before 'else'
   14 |     else{
      |     ^~~~
a.cc:11:15: note: to match this '{'
   11 |     if(S=="Y"){
      |               ^
Language: C++

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

int main (){
  int N;
  N = 0;
  for( int i = 0; i < N ;i++ ){
    string S,Y;
    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:17:3: error: expected '}' at end of input
   17 |  }
      |   ^
a.cc:4:12: note: to match this '{'
    4 | int main (){
      |            ^
Language: C++

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

int main (){
  int N;
  N = 0;
  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:10:15: error: 'Y' was not declared in this scope
   10 |     if ( S == Y ){
      |               ^
a.cc:17:3: error: expected '}' at end of input
   17 |  }
      |   ^
a.cc:4:12: note: to match this '{'
    4 | int main (){
      |            ^
Language: C++

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

}

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

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

int main() {
  int N;
  cin >> N;
  
  bool isFour = false;
  for (int i=0; i<N; i++) {
    string s;
    cin >> s;
    if (s == "Y")
      isFour = true;
  }
  cout << isFour ? "Four" : "Three" << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:37: error: invalid operands of types 'const char [6]' and '<unresolved overloaded function type>' to binary 'operator<<'
   15 |   cout << isFour ? "Four" : "Three" << endl;
      |                             ~~~~~~~~^~~~~~~
Language: C++

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

int main(){
int N;
  cin >> N ;
  vector<char> vec(N);
  for(int i=0;i<N;i++){
    cin >> vec.at(i);
     if(vec.at(i)=='Y'){
  cout << "Four";
       break;
  }
    
 cout << "Three";
  }
  

Compiler output:
a.cc: In function 'int main()':
a.cc:16:4: error: expected '}' at end of input
   16 |   }
      |    ^
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 ;
  vector<char> vec(N);
  for(int i=0;i<N;i++){
    cin >> vec.at(i);
  }
  for(i=0;i<N;i++){
  if(vec.at(i)=='Y'){
  cout << "Four";
  }
    else{cout << "Three";
        }
  }
  
}

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

#include<stdio.h>
int main()
{
int num,i,b;
  b=0;
  scanf("%d",&num);
  char a[num];
  scanf("%s",a,num);
  
  for(i=0;i<num++i;)
  {
  if(a[i]=='Y') b++;
  }

  if(b>0) printf("Four");
  else printf("Three");
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:18: error: expected ';' before 'i'
   10 |   for(i=0;i<num++i;)
      |                  ^
      |                  ;
Language: C++

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


int main(){
    int n;
    cin >> n;
    vector<char> s(n);
    rep(i,n) cin >> s[i];
    rep(i,n){
        if(s[i] == 'Y'){
            cout << "Four" << endl;
            return 0;
        }
    }
    coout << "Three" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:5: error: 'coout' was not declared in this scope
   20 |     coout << "Three" << endl;
      |     ^~~~~