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

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

int main() {
  int N,
  int a = 0;
  int b = 0;
  int c = 0;
  int 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:6:3: error: expected unqualified-id before 'int'
    6 |   int a = 0;
      |   ^~~
a.cc:14:20: error: 'a' was not declared in this scope
   14 |     if(s == "P" && a == 0){
      |                    ^
a.cc:28:7: error: 'a' was not declared in this scope
   28 |   N = a + b + c + d;
      |       ^
Language: C++

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

int main() {
  int N,
  int a = 0;
  int b = 0;
  int c = 0;
  int d = 0;
  string s;
  
  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:6:3: error: expected unqualified-id before 'int'
    6 |   int a = 0;
      |   ^~~
a.cc:14:20: error: 'a' was not declared in this scope
   14 |     if(s == "P" && a == 0){
      |                    ^
a.cc:28:7: error: 'a' was not declared in this scope
   28 |   N = a + b + c + d;
      |       ^
Language: C++

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

int main() {
  int N,
  int a=0;
  int b=0;
  int c=0;
  int d=0;
  string s;
  
  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:6:3: error: expected unqualified-id before 'int'
    6 |   int a=0;
      |   ^~~
a.cc:14:20: error: 'a' was not declared in this scope
   14 |     if(s == "P" && a == 0){
      |                    ^
a.cc:28:7: error: 'a' was not declared in this scope
   28 |   N = a + b + c + d;
      |       ^
Language: C++

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

int main() {
  int N,
  int a=0;
  int b=0;
  int c=0;
  int d=0;
  string s;
  
  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: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;

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;
    }
    i++;
  }
}


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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     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" << endl;
      break;
    }
    i++;
  }
  cout << "Three" <<endl;
}


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

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

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

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

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

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


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

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

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


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>
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N,result;
  string S;//PWGY
  cin >> N;
  for(int i = 0;4 > i;i++){
    if (S == P){
      result += 1;
      continue;
    }else if(S == W){
      result += 1;
      continue;
    }else if(S == G){
      result += 1;
      continue
    }else if(S == Y){
      result += 1;
      continue
}cout << result << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: 'P' was not declared in this scope
    8 |     if (S == P){
      |              ^
a.cc:11:19: error: 'W' was not declared in this scope
   11 |     }else if(S == W){
      |                   ^
a.cc:14:19: error: 'G' was not declared in this scope
   14 |     }else if(S == G){
      |                   ^
a.cc:16:15: error: expected ';' before '}' token
   16 |       continue
      |               ^
      |               ;
   17 |     }else if(S == Y){
      |     ~          
a.cc:17:19: error: 'Y' was not declared in this scope
   17 |     }else if(S == Y){
      |                   ^
a.cc:19:15: error: expected ';' before '}' token
   19 |       continue
      |               ^
      |               ;
   20 | }cout << result << endl;
      | ~              
a.cc:20:25: error: expected '}' at end of input
   20 | }cout << result << endl;
      |                         ^
a.cc:7:27: note: to match this '{'
    7 |   for(int i = 0;4 > i;i++){
      |                           ^
a.cc:20:25: error: expected '}' at end of input
   20 | }cout << result << endl;
      |                         ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N;
  string S;//PWGY
  cin >> N;
  for(int i = 0;N > i;i++){
    int result = 0;
    if (S == P){
      result += 1;
      continue;
    }else if(S == W){
      result += 1;
      continue;
    }else if(S == G){
      result += 1;
      continue
    }else if(S == Y){
      result += 1;
      continue
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: 'P' was not declared in this scope
    9 |     if (S == P){
      |              ^
a.cc:12:19: error: 'W' was not declared in this scope
   12 |     }else if(S == W){
      |                   ^
a.cc:15:19: error: 'G' was not declared in this scope
   15 |     }else if(S == G){
      |                   ^
a.cc:17:15: error: expected ';' before '}' token
   17 |       continue
      |               ^
      |               ;
   18 |     }else if(S == Y){
      |     ~          
a.cc:18:19: error: 'Y' was not declared in this scope
   18 |     }else if(S == Y){
      |                   ^
a.cc:20:15: error: expected ';' before '}' token
   20 |       continue
      |               ^
      |               ;
   21 | }
      | ~              
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
a.cc:7:27: note: to match this '{'
    7 |   for(int i = 0;N > i;i++){
      |                           ^
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
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;
    bool a=false;
  for (int i = 0; i < N; i++){
    char s;
    cin >> s;
    if(s=="Y") a=true;

  }  
  
  if(a) cout<<"Four";
  else cout<<"Three";

}

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

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

int main() {
  int N;
  cin >> N;
    bool a=false;
  for (int i = 0; i < N; i++){
    string s;
    cin >> s;
    if(s=="Y") bool=true;

  }  

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected unqualified-id before '=' token
   11 |     if(s=="Y") bool=true;
      |                    ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:25:2: error: expected '}' at end of input
   25 | }
      |  ^
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;
  string color;

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

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

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

int main() {
  int n;
  cin >> n;
  string color;

  for (int i = 0; i < n; i++) {
    string s;
    cin >> s;
    
    if (s == "Y") {
      color = Four;
      break;
    }
    color = "Tree";
  }
  cout << color << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:15: error: 'Four' was not declared in this scope
   14 |       color = Four;
      |               ^~~~
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;
    }
    else {
      cout << "Tree" << endl;
    }
  }
}

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

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: 'S' was not declared in this scope
   13 |     cin >> S;
      |            ^
a.cc:17:7: error: continue statement not within a loop
   17 |       continue;
      |       ^~~~~~~~
a.cc:22:7: error: continue statement not within a loop
   22 |       continue;
      |       ^~~~~~~~
a.cc:27:7: error: continue statement not within a loop
   27 |       continue;
      |       ^~~~~~~~
a.cc:32:7: error: continue statement not within a loop
   32 |       continue;
      |       ^~~~~~~~
a.cc: At global scope:
a.cc:36:3: error: expected unqualified-id before 'if'
   36 |   if (P > 0 && W > 0 && G > 0 && Y > 0) {
      |   ^~
a.cc:39:3: error: expected unqualified-id before 'else'
   39 |   else {
      |   ^~~~
a.cc:42:1: error: expected declaration before '}' token
   42 | }
      | ^
Language: C++

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

	}
	set <char> st;
	for (int i = 0; i < N; i++) {
		st, insert(S);

	}
	if (st.size() == 3) {
		cout << "Three" << endl;

	}
	else {
		cout << "Four" << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:21: error: 'insert' was not declared in this scope; did you mean 'assert'?
   13 |                 st, insert(S);
      |                     ^~~~~~
      |                     assert
Language: C++

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

	}
	for (int i = 0; i < N; i++) {
		if (S[i] == 'Y') {
			cout << "Four" << endl;
			return 0;
		}
	}
	else {
		cout << "Three" << endl;

	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: 'S' was not declared in this scope
    8 |                 cin >> S[i];
      |                        ^
a.cc:12:21: error: 'S' was not declared in this scope
   12 |                 if (S[i] == 'Y') {
      |                     ^
a.cc:17:9: error: 'else' without a previous 'if'
   17 |         else {
      |         ^~~~
Language: C++

#include<iostream>

namespace std;

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

Compiler output:
a.cc:3:14: error: expected '{' before ';' token
    3 | namespace std;
      |              ^
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin >> N;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:12:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     if (c == "Y") Y = true;
      |         ~~^~~~~~
a.cc:15:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |     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:15:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |     cout << "Four" << endl;
      |                       ^~~~
      |                       std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:17:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |     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:17:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   17 |     cout << "Three" << endl;
      |                        ^~~~
      |                        std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:5:15: note: to match this '{'
    5 | int main(void){
      |               ^
Language: C++

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

int main() {
  int N;
  cin >> N;
  int j=0;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: declaration does not declare anything [-fpermissive]
   10 |     string; S;
      |     ^~~~~~
a.cc:10:13: error: 'S' was not declared in this scope
   10 |     string; S;
      |             ^
a.cc:12:13: error: 'Y' was not declared in this scope
   12 |       if(S==Y) {
      |             ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(89)' from 'std::__cxx11::basic_string<char>' to 'bool'
   10 |     if(s = 'Y') cout << "Four" << endl;
      |        ~~^~~~~
      |          |
      |          std::__cxx11::basic_string<char>
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: 'flag' was not declared in this scope
   10 |     if(S[i]=='Y') flag=true;
      |                   ^~~~
a.cc:12:6: error: 'flag' was not declared in this scope
   12 |   if(flag) cout << "Four" << endl;
      |      ^~~~
Language: C++

#include <iostream>
using namespace std;


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

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

#include <iostream>
using namespace std;


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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: expected primary-expression before ')' token
    8 |         bool ans=false;()
      |                         ^
a.cc:13:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |                 if(a=="Y")
      |                    ~^~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: expected ';' before '<' token
    9 |   for (int i = 1, i < N, int++) {
      |                    ^~
      |                    ;
a.cc:9:21: error: expected primary-expression before '<' token
    9 |   for (int i = 1, i < N, int++) {
      |                     ^
a.cc:9:26: error: expected primary-expression before 'int'
    9 |   for (int i = 1, i < N, int++) {
      |                          ^~~
a.cc:9:25: error: expected ';' before 'int'
    9 |   for (int i = 1, i < N, int++) {
      |                         ^~~~
      |                         ;
a.cc:9:26: error: expected primary-expression before 'int'
    9 |   for (int i = 1, i < N, int++) {
      |                          ^~~
a.cc:9:25: error: expected ')' before 'int'
    9 |   for (int i = 1, i < N, int++) {
      |       ~                 ^~~~
      |                         )
a.cc:9:29: error: expected unqualified-id before '++' token
    9 |   for (int i = 1, i < N, int++) {
      |                             ^~
a.cc:18:16: error: expected ';' before '{' token
   18 |   else (y == 0) {
      |                ^~
      |                ;
Language: C++

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

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

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

#inculde<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;
      break;
    }
    if(i == N - 1){
      cout << "Three" << endl;
    }
  }
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inculde; did you mean #include?
    1 | #inculde<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> N;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inculde<bits/stdc++.h>
a.cc:7:3: error: 'string' was not declared in this scope
    7 |   string S;
      |   ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #inculde<bits/stdc++.h>
a.cc:10:12: error: 'S' was not declared in this scope
   10 |     cin >> S;
      |            ^
a.cc:12:7: error: 'cout' was not declared in this scope
   12 |       cout << "Four" << endl;
      |       ^~~~
a.cc:12:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:25: error: 'endl' was not declared in this scope
   12 |       cout << "Four" << endl;
      |                         ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inculde<bits/stdc++.h>
a.cc:16:7: error: 'cout' was not declared in this scope
   16 |       cout << "Three" << endl;
      |       ^~~~
a.cc:16:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:26: error: 'endl' was not declared in this scope
   16 |       cout << "Three" << endl;
      |                          ^~~~
a.cc:16:26: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

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

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

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

int main(){
  int a;
  for (i = 0;i < a;i++){
    char s[0];
    int p, y, w, g;
    if (s[0] == "P")
      p = 1;
    else if (s[0] == "Y")
      y = 1;
    else if (s[0] == "W")
      w = 1;
    else
      g = 1;
  }
  if ((p + y + w + g) == 3)
    cout << "Three" << endl;
  else
    cout << "Four" << 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 < a;i++){
      |        ^
a.cc:9:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if (s[0] == "P")
      |         ~~~~~^~~~~~
a.cc:11:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     else if (s[0] == "Y")
      |              ~~~~~^~~~~~
a.cc:13:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |     else if (s[0] == "W")
      |              ~~~~~^~~~~~
a.cc:18:8: error: 'p' was not declared in this scope
   18 |   if ((p + y + w + g) == 3)
      |        ^
a.cc:18:12: error: 'y' was not declared in this scope
   18 |   if ((p + y + w + g) == 3)
      |            ^
a.cc:18:16: error: 'w' was not declared in this scope
   18 |   if ((p + y + w + g) == 3)
      |                ^
a.cc:18:20: error: 'g' was not declared in this scope
   18 |   if ((p + y + w + g) == 3)
      |                    ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: expected ')' before ';' token
    7 |   if (int i = 0; i < N; i++)
      |      ~                ^
      |                       )
a.cc:7:25: error: 'i' was not declared in this scope
    7 |   if (int i = 0; i < N; i++)
      |                         ^
a.cc:11:7: error: break statement not within loop or switch
   11 |       break;
      |       ^~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: expected ')' before ';' token
    7 |   if (int i = 0; i < N; i++)
      |      ~                ^
      |                       )
a.cc:7:25: error: 'i' was not declared in this scope
    7 |   if (int i = 0; i < N; i++)
      |                         ^
a.cc:11:7: error: break statement not within loop or switch
   11 |       break;
      |       ^~~~~
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_i;
    cin >> S_i;
    if(S_i == "Y"){
      a = 1
    }
  }
  if(a){
    cout << "four" << endl;
  }
  else{
    cout << "three" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: expected ';' before '}' token
   12 |       a = 1
      |            ^
      |            ;
   13 |     }
      |     ~
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_i;
    cin >> S_i;
    if(S_i == "Y"){
      a = 1
    }
  }
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: break statement not within loop or switch
   12 |       break;
      |       ^~~~~
a.cc: At global scope:
a.cc:16:3: error: expected unqualified-id before 'if'
   16 |   if (Y)
      |   ^~
a.cc:18:3: error: expected unqualified-id before 'else'
   18 |   else
      |   ^~~~
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: break statement not within loop or switch
   11 |       break;
      |       ^~~~~
a.cc: At global scope:
a.cc:15:3: error: expected unqualified-id before 'if'
   15 |   if (Y)
      |   ^~
a.cc:17:3: error: expected unqualified-id before 'else'
   17 |   else
      |   ^~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: could not convert 'color.std::__cxx11::basic_string<char>::operator=(((const char*)"Y"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    9 |     if (color = "Y") {
      |         ~~~~~~^~~~~
      |               |
      |               std::__cxx11::basic_string<char>
a.cc:11:7: error: break statement not within loop or switch
   11 |       break;
      |       ^~~~~
a.cc: At global scope:
a.cc:15:3: error: expected unqualified-id before 'if'
   15 |   if (Y)
      |   ^~
a.cc:17:3: error: expected unqualified-id before 'else'
   17 |   else
      |   ^~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: could not convert 'color.std::__cxx11::basic_string<char>::operator=(((const char*)"Y"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    9 |     if (color = "Y"){
      |         ~~~~~~^~~~~
      |               |
      |               std::__cxx11::basic_string<char>
a.cc:11:7: error: break statement not within loop or switch
   11 |       break;
      |       ^~~~~
a.cc: At global scope:
a.cc:15:3: error: expected unqualified-id before 'if'
   15 |   if (Y)
      |   ^~
a.cc:17:3: error: expected unqualified-id before 'else'
   17 |   else
      |   ^~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

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

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

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

#include <iostream>
#include <cmath>
using namespace std;
using ll = long long int;
int main() {
  int n;
  bool b=false;
  cin >>n;
  vector<char> s(n);
  for (int i=0;i<n;i++) cin >>s.at(i);
  if (n<4) cout << "Three";
  else {
	for (int i=0;i<n;i++) {
	  if (s.at(i) = 'Y') b=true;
	}
	if(b) cout<<"Four";
	else cout<<"Three";
		  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'vector' was not declared in this scope
    9 |   vector<char> s(n);
      |   ^~~~~~
a.cc:3:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    2 | #include <cmath>
  +++ |+#include <vector>
    3 | using namespace std;
a.cc:9:10: error: expected primary-expression before 'char'
    9 |   vector<char> s(n);
      |          ^~~~
a.cc:10:31: error: 's' was not declared in this scope
   10 |   for (int i=0;i<n;i++) cin >>s.at(i);
      |                               ^
a.cc:14:15: error: 's' was not declared in this scope
   14 |           if (s.at(i) = 'Y') b=true;
      |               ^
Language: C++

#include <iostream>
#include <cmath>
using namespace std;
using ll = long long int;
int main() {
    return 0;
}

int main() {
  int n;
  bool b=false;
  cin >>n;
  vector<char> s(n);
  for (int i=0;i<n;i++) cin >>s.at(i);
  if (n<4) cout << "Three";
  else {
	for (int i=0;i<n;i++) {
	  if (s.at(i) = 'Y') b=true;
	}
	if(b) cout<<"Four";
	else cout<<"Three";
		  }
}

Compiler output:
a.cc:9:5: error: redefinition of 'int main()'
    9 | int main() {
      |     ^~~~
a.cc:5:5: note: 'int main()' previously defined here
    5 | int main() {
      |     ^~~~
a.cc: In function 'int main()':
a.cc:13:3: error: 'vector' was not declared in this scope
   13 |   vector<char> s(n);
      |   ^~~~~~
a.cc:3:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    2 | #include <cmath>
  +++ |+#include <vector>
    3 | using namespace std;
a.cc:13:10: error: expected primary-expression before 'char'
   13 |   vector<char> s(n);
      |          ^~~~
a.cc:14:31: error: 's' was not declared in this scope
   14 |   for (int i=0;i<n;i++) cin >>s.at(i);
      |                               ^
a.cc:18:15: error: 's' was not declared in this scope
   18 |           if (s.at(i) = 'Y') b=true;
      |               ^
Language: C++

//ヘッダ
#include <iostream>
#include <iomanip>
#include <vector>
#include <string>
#include <map>
#include <set>
#include <algorithm>
#include <numeric>
#include <functional>
#include <cmath>
#include <utility>
using namespace std;
using ll = long long int;
int main() {
    return 0;
}

int main() {
  int n;
  bool b=false;
  cin >>n;
  vector<char> s(n);
  for (int i=0;i<n;i++) cin >>s.at(i);
  if (n<4) cout << "Three";
  else {
	for (int i=0;i<n;i++) {
	  if (s.at(i) = 'Y') b=true;
	}
	if(b) cout<<"Four";
	else cout<<"Three";
		  }
}

Compiler output:
a.cc:19:5: error: redefinition of 'int main()'
   19 | int main() {
      |     ^~~~
a.cc:15:5: note: 'int main()' previously defined here
   15 | int main() {
      |     ^~~~
Language: C++

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

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

Compiler output:
a.cc:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:11:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if (c=="Y") p++;
      |         ~^~~~~
a.cc:14:11: error: expected '(' before 'cout'
   14 |   else if cout << "Three" << endl;
      |           ^~~~
      |           (
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: expected ';' before '<' token
    9 |   for(int i=0, i<N, i++){
      |                 ^
      |                 ;
a.cc:9:17: error: expected primary-expression before '<' token
a.cc:9:24: error: expected ';' before ')' token
    9 |   for(int i=0, i<N, i++){
      |                        ^
      |                        ;
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include <iostream>

#define rep(i,0,n) for(int (i) = (0);(i) < (n);(i)++)
using namespace std;

int main(){
  	int n;
  	cin >> n;
  	string s;
    bool flag[4];
  
  	rep(i,0,n){
      cin >> s;
      if(s == "Y"){
        cout << "Four" << endl;
        return 0;
      }
    }
  	cout << "Three" << endl;
 	return 0; 
}

Compiler output:
a.cc:3:15: error: expected parameter name, found "0"
    3 | #define rep(i,0,n) for(int (i) = (0);(i) < (n);(i)++)
      |               ^
a.cc: In function 'int main()':
a.cc:12:13: error: 'i' was not declared in this scope
   12 |         rep(i,0,n){
      |             ^
a.cc:12:9: error: 'rep' was not declared in this scope
   12 |         rep(i,0,n){
      |         ^~~
Language: C++

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

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

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

#include <iosteam>
using namespace std;

int main() {
  int n;
  string s;
  int f = 0;

  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> s;
    if (s == "Y") {
      f = 1;
      break;
    }
  }
  
  if (f) {
    cout << "Four";
  }
  else {
    cout << "Three";
  }
}

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

#include <iosteam>
using namespace std;

int main() {
  int n;
  string s;
  int f = 0;

  cin >> n;
  for (int i = 0; i < n; i++) {
    sin >> s;
    if (s == "Y") {
      f = 1;
      break;
    }
  }
  
  if (f) {
    cout << "Four";
  }
  else {
    cout << "Three";
  }
}

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |             ans=1;
      |             ^~~
      |             abs
a.cc:12:8: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |     if(ans==1)cout<<"Four"<<endl;
      |        ^~~
      |        abs
Language: C++

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

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

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

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

#include<bits/stdc++.h>
using namespace std;
int main(){
    int a,b;
    cin>>a;
    char c[a]
    for(int i=0;i<a;i++) cin>>c[i]
    for(int i=0;i<a;i++){
        (c[i]=='Y') b++;
    }
    if(b>0) cout<<Four<<endl;
    else cout<<Three<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected initializer before 'for'
    7 |     for(int i=0;i<a;i++) cin>>c[i]
      |     ^~~
a.cc:7:17: error: 'i' was not declared in this scope
    7 |     for(int i=0;i<a;i++) cin>>c[i]
      |                 ^
a.cc:11:19: error: 'Four' was not declared in this scope
   11 |     if(b>0) cout<<Four<<endl;
      |                   ^~~~
a.cc:12:16: error: 'Three' was not declared in this scope
   12 |     else cout<<Three<<endl;
      |                ^~~~~
Language: C++

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

int main() {
  int n;
  string g;
  cin >> n;
  for (int i = 0; i < n; i++) {

    cin >> g;
    if (g != "Y") {
      continue; 
    }
 elso (g == "Y"){
   cout << "four" << endl;
    break;
  }
  }
 if (g != "Y"){
  cout << "three" << endl;
}
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:14:2: error: 'elso' was not declared in this scope
   14 |  elso (g == "Y"){
      |  ^~~~
Language: C++

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

int main() {
  int n;
  string g;
  cin >> n;
  for (int i = 0; i < n; i++) {

    cin >> g;
    if (g != "Y" ) {
      continue; 
    }
 elso (g == "Y"){
   cout << "four" << endl;
    break;
  }
  }
 if (g != "Y"){
  cout << "three" << endl;
}
  }




Compiler output:
a.cc: In function 'int main()':
a.cc:14:2: error: 'elso' was not declared in this scope
   14 |  elso (g == "Y"){
      |  ^~~~
Language: C++

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

int main() {
  int n;
  string g;
  cin >> n;
  for (int i = 0; i < n; i++) {

    cin >> g;
    if (g != "Y" ) {
      continue; 
    }
 elso (g == "Y"){
   cout << "four" << endl;
    break;
  }
 if (g != "Y"){
  cout << "three" << endl;
}
  }



Compiler output:
a.cc: In function 'int main()':
a.cc:14:2: error: 'elso' was not declared in this scope
   14 |  elso (g == "Y"){
      |  ^~~~
a.cc:21:4: error: expected '}' at end of input
   21 |   }
      |    ^
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 g;
  cin >> n;
  for (int i = 0; i < n; i++) {

    cin >> g;
    if (g /= "Y" ) {
      continue; 
    }
 elso (g == "Y"){
   cout << "four" << endl;
    break;
  }
 if (g /= "Y"){
  cout << "three" << endl;
}
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: no match for 'operator/=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'const char [2]')
   11 |     if (g /= "Y" ) {
      |         ~~^~~~~~
a.cc:14:2: error: 'elso' was not declared in this scope
   14 |  elso (g == "Y"){
      |  ^~~~
a.cc:18:8: error: no match for 'operator/=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'const char [2]')
   18 |  if (g /= "Y"){
      |      ~~^~~~~~
a.cc:21:4: error: expected '}' at end of input
   21 |   }
      |    ^
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 g;
  cin >> n;
  for (int i = 0; i < n; i++) {

    cin >> g;
    if (g /= Y ) {
      continue; 
    }
 elso (g == Y){
   cout << "four" << endl;
    break;
  }
 if (g /= Y){
  cout << three << endl;
}
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: 'Y' was not declared in this scope
   11 |     if (g /= Y ) {
      |              ^
a.cc:14:13: error: 'Y' was not declared in this scope
   14 |  elso (g == Y){
      |             ^
a.cc:14:2: error: 'elso' was not declared in this scope
   14 |  elso (g == Y){
      |  ^~~~
a.cc:19:11: error: 'three' was not declared in this scope
   19 |   cout << three << endl;
      |           ^~~~~
a.cc:21:4: error: expected '}' at end of input
   21 |   }
      |    ^
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 g;
  cin >> n;
  for (int i = 0; i < n; i++) {

    cin >> g;
    if (g == P || g == W || g == G ) {
      continue; 
    }
 elso (g == Y)
   cout << "four" << endl;
    break;
  }

  cout <<  << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: 'P' was not declared in this scope
   11 |     if (g == P || g == W || g == G ) {
      |              ^
a.cc:11:24: error: 'W' was not declared in this scope
   11 |     if (g == P || g == W || g == G ) {
      |                        ^
a.cc:11:34: error: 'G' was not declared in this scope
   11 |     if (g == P || g == W || g == G ) {
      |                                  ^
a.cc:14:13: error: 'Y' was not declared in this scope
   14 |  elso (g == Y)
      |             ^
a.cc:14:2: error: 'elso' was not declared in this scope
   14 |  elso (g == Y)
      |  ^~~~
a.cc:19:12: error: expected primary-expression before '<<' token
   19 |   cout <<  << endl;
      |            ^~