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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication11
{
    class Program
    {
        static void Main(string[] args)
        {
            string a = Console.ReadLine();
            for (int b = 0; b < a.Length; b++)
            {
                for (int c = 1; b < c && c < a.Length; c++)
                {
                    if (a[b] == 'C' && a[c] == 'F')
                        Console.WriteLine("YES");


                    else
                        Console.WriteLine("NO");
                }
            }
        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:9:26: error: 'string' has not been declared
    9 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:9:35: error: expected ',' or '...' before 'args'
    9 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:25:6: error: expected ';' after class definition
   25 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ConsoleApplication11::Program::Main(int*)':
a.cc:11:13: error: 'string' was not declared in this scope
   11 |             string a = Console.ReadLine();
      |             ^~~~~~
a.cc:12:33: error: 'a' was not declared in this scope
   12 |             for (int b = 0; b < a.Length; b++)
      |                                 ^
a.cc:17:25: error: 'Console' was not declared in this scope
   17 |                         Console.WriteLine("YES");
      |                         ^~~~~~~
a.cc:21:25: error: 'Console' was not declared in this scope
   21 |                         Console.WriteLine("NO");
      |                         ^~~~~~~
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		// 出力
        boolean cok = false;
        boolean fok = false;
        for(int i=0; i<s.length; i++){
            if(String.valueOf(s.charAt(i)).equals("C")){
                if(cok = false){
                cok = true;
                }
            }
            else if(cok = true && String.valueOf(s.charAt(i)).equals("F")){
                fok = true;
            }
        }
        if(fok){
		System.out.println("Yes");
        }
        else{
System.out.println("No");
        }
	}
}

Compiler output:
Main.java:9: error: cannot find symbol
        for(int i=0; i<s.length; i++){
                        ^
  symbol:   variable length
  location: variable s of type String
1 error
Language: C++

#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <string>
#include <cctype>
#include <stack>
#include <queue>
#include <vector>
#include <cstdlib>

using namespace std;

int main(void){

	int Slen, i = 0, j = 0, count = -1;
	char S[100];

	cin >> S;

	Slen = strlen(S);

	for (i = 0; i < Slen; i++) {
		if (S[i] == 'C') {
			count = i;

		}
	}

	if (count != -1) {
		for (i = count + 1; i < Slen; i++) {
			if (S[i] == 'F') {
				cout << "Yes" << endl;
				break;
			}
			else if (i == Slen - 1) {
				cout << "No" << endl;
				break;
			}
			
		}
	}
	else
		cout << "No" << endl;

	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:21:16: error: 'strlen' was not declared in this scope
   21 |         Slen = strlen(S);
      |                ^~~~~~
a.cc:11:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
   10 | #include <cstdlib>
  +++ |+#include <cstring>
   11 |
Language: C

#include <stdio.h>

int main(void)
{
  char S[102];
  int i,ans = 0;
  fgets(S,sizeof(S),stdin);
  for (i = 0;i < sizeof(S);i++) {
    if (ans == 0) {
      if (S[i] == 'C') {
        ans = 1;
      }
    } else {
      if (S[i] == 'F') {
        printf("Yes\n");
    }
  }
  if (i + 1 == sizeof(S) && S[i] != 'F') printf("No\n");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		// 出力
        boolean cok = false;
        boolean fok = false;
        for(int i=0; i<s.length; i++){
            if(String.valueOf(s.charAt(i)).equals("C")){
                if(cok = false){
                cok = true;
                }
            }
            else if(cok = true && String.valueOf(s.charAt(i).)equals("F")){
                fok = true;
            }
        }
        if(fok){
		System.out.println("Yes");
        }
        else{
System.out.println("No");
        }
	}
}

Compiler output:
Main.java:15: error: <identifier> expected
            else if(cok = true && String.valueOf(s.charAt(i).)equals("F")){
                                                             ^
Main.java:15: error: ')' expected
            else if(cok = true && String.valueOf(s.charAt(i).)equals("F")){
                                                              ^
Main.java:15: error: ';' expected
            else if(cok = true && String.valueOf(s.charAt(i).)equals("F")){
                                                                         ^
3 errors
Language: C

#include <stdio.h>
#include <string.h>
int main() {

	int x = 0;
	int y = 0;
	char s[100] = {0};
	char tmp[2] = {0};

	scanf("%d", &s);
	x = strlen(s);
	for (int i = 0; i < x,i++){

		if (s[i] == 'C') {
			tmp[i] = s[i];
			for (int j=0, j < x, j++) {
				if (s[j] == 'F') {
					y = 1;
					break;
				}
				if (y == 1) { break; }
				tmp[i + 1] = s[i + j];
			}

		}
		if (y == 1) { break; }
	}

	if (y == 1) {
		printf("YES");
	}
	else {
		printf("NO");
	}
}


}

Compiler output:
main.c: In function 'main':
main.c:12:34: error: expected ';' before ')' token
   12 |         for (int i = 0; i < x,i++){
      |                                  ^
      |                                  ;
main.c:16:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   16 |                         for (int j=0, j < x, j++) {
      |                                         ^
main.c:25:17: error: expected expression before '}' token
   25 |                 }
      |                 ^
main.c:25:17: error: expected expression before '}' token
main.c:25:17: error: expected expression before '}' token
main.c: At top level:
main.c:38:1: error: expected identifier or '(' before '}' token
   38 | }
      | ^
Language: C++

#include <iostream>
#include <string>
#include <cstdio.h>

using namespace std;

int main()
{
    char s[100];
    cin >> s;
    for(int i = 0; i < 100; i++){
        if(s[i] == 'C'){
            for(int j = i; j < 100; j++){
                if(s[j] == 'S'){
                    cout << "Yes" << endl;
                    return 0;
                }
            }

        }
    }
    cout << "No" << endl;
}


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

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

int main()
{
	char s[101];
	int l;
	bool x = false;

	cin >> s;
	l = strlen(s);

	for(int i=0; i<l; i++){
		if(s[i] == 'C'){
			for(int j=i+1; j<l; j++){
				if(s[j] == 'F'){
					x = true;
				}
			}
		}
	}

	if(x == true){
		cout << "Yes\n";
	}
	else{
		cout << "No\n";
	}

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: 'strlen' was not declared in this scope
   12 |         l = strlen(s);
      |             ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | #include <string>
Language: C

int main (int argc, char *argv[]) {
    int i = 2;
    int first = 0;
    int isFound = 0;
    char c;
    c = getchar();
    while (i <= 100 && c != EOF) {
        if (c == 'C') first = 1;
        if (first == 1 && c == 'F') isFound = 1;
        c = getchar();
        i++;
    }
    if (isFound == 1) {
        printf("Yes\n");
    } else {
        printf("No\n");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'getchar' [-Wimplicit-function-declaration]
    6 |     c = getchar();
      |         ^~~~~~~
main.c:1:1: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
  +++ |+#include <stdio.h>
    1 | int main (int argc, char *argv[]) {
main.c:7:29: error: 'EOF' undeclared (first use in this function)
    7 |     while (i <= 100 && c != EOF) {
      |                             ^~~
main.c:7:29: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:7:29: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   14 |         printf("Yes\n");
      |         ^~~~~~
main.c:14:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:14:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:16:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   16 |         printf("No\n");
      |         ^~~~~~
main.c:16:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		// 出力
        boolean cok = false;
        boolean fok = false;
        for(int i=0; i<s.length; i++){
            if(s.charAt(i).equals("C")){
                if(cok = false){
                cok = true;
                }
            }
            else if(cok = true && s.charAt(i).equals("F")){
                fok = true;
            }
        }
        if(fok){
		System.out.println("Yes");
        }
        else{
System.out.println("No");
        }
	}
}

Compiler output:
Main.java:9: error: cannot find symbol
        for(int i=0; i<s.length; i++){
                        ^
  symbol:   variable length
  location: variable s of type String
Main.java:10: error: char cannot be dereferenced
            if(s.charAt(i).equals("C")){
                          ^
Main.java:15: error: char cannot be dereferenced
            else if(cok = true && s.charAt(i).equals("F")){
                                             ^
3 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		// 出力
        boolean cok = false;
        boolean fok = false;
        for(int i=0; i<s.length, i++){
            if(s.charAt(i).equals("C")){
                if(cok = false){
                cok = true;
                }
            }
            else if(cok = true && s.charAt(i).equals("F")){
                fok = true;
            }
        }
        if(fok){
		System.out.println("Yes");
        }
        else{
System.out.println("No");
        }
	}
}

Compiler output:
Main.java:9: error: ';' expected
        for(int i=0; i<s.length, i++){
                               ^
1 error
Language: C++

#include <iostream>
#include <string>
 using namespace  std;
int main(){
string s;
cin >> s;
int cflag = 0, fflag = 0;
for(auto x: s){
if(*x=='C') cflag=1;
if(cflag==1 && *x=='F') fflag=1;
}
if(fflag) cout<<"Yes¥n";
else cout<<"No¥n";
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:4: error: invalid type argument of unary '*' (have 'char')
    9 | if(*x=='C') cflag=1;
      |    ^~
a.cc:10:16: error: invalid type argument of unary '*' (have 'char')
   10 | if(cflag==1 && *x=='F') fflag=1;
      |                ^~
Language: C++

#include <iostream>
#include <string>
 using namespace  std;
int main(){
string s;
cin >> s;
int cflag = 0, fflag = 0;
for(auto x: s){
if(*x=="C") cflag=1;
if(cflag==1 && *x=="F") fflag=1;
}
if(fflag) cout<<"Yes¥n";
else cout<<"No¥n";
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:4: error: invalid type argument of unary '*' (have 'char')
    9 | if(*x=="C") cflag=1;
      |    ^~
a.cc:10:16: error: invalid type argument of unary '*' (have 'char')
   10 | if(cflag==1 && *x=="F") fflag=1;
      |                ^~
Language: C++

#include <iostream>
#include <bits/stdc++.h>

using namespace std;

int index[26];

void init(){
    for (int i = 0; i < 26; i++){
        index[i] = -1;
    }

}

int main(){
    string s;

    cin >> s;

    init();


    for (int i = 0; i < s.size(); i++){
        if (s[i] == 'C' && index[s[i] - 'A'] == -1){
            index[s[i] - 'A'] = i;
        }
        else if (s[i] == 'F'){
            index[s[i] - 'A'] = i;
        }
    }

    if (index[2] == -1 || index[5] == -1 || (index[2] > index[5])){
        cout << "No" << endl;
    }
    else {
        cout << "Yes" << endl;
    }

    return 0;
}

Compiler output:
a.cc:6:13: error: 'int index [26]' redeclared as different kind of entity
    6 | int index[26];
      |             ^
In file included from /usr/include/string.h:462,
                 from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:2:
/usr/include/strings.h:50:20: note: previous declaration 'const char* index(const char*, int)'
   50 | extern const char *index (const char *__s, int __c)
      |                    ^~~~~
a.cc: In function 'void init()':
a.cc:10:14: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   10 |         index[i] = -1;
      |              ^
a.cc: In function 'int main()':
a.cc:24:33: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   24 |         if (s[i] == 'C' && index[s[i] - 'A'] == -1){
      |                                 ^
a.cc:25:18: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   25 |             index[s[i] - 'A'] = i;
      |                  ^
a.cc:28:18: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   28 |             index[s[i] - 'A'] = i;
      |                  ^
a.cc:32:14: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   32 |     if (index[2] == -1 || index[5] == -1 || (index[2] > index[5])){
      |              ^
a.cc:32:32: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   32 |     if (index[2] == -1 || index[5] == -1 || (index[2] > index[5])){
      |                                ^
a.cc:32:51: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   32 |     if (index[2] == -1 || index[5] == -1 || (index[2] > index[5])){
      |                                                   ^
a.cc:32:62: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   32 |     if (index[2] == -1 || index[5] == -1 || (index[2] > index[5])){
      |                                                              ^
Language: C++

#include <iostream>
#include <string>
 using namespace  std;
int main(){
string s;
cin >> s;
int cflag = 0, fflag = 0;
for(auto x: s){
if(x=="C") cflag=1;
if(cflag==1 && x=="F") fflag=1;
}
if(fflag) cout<<"Yes¥n";
else cout<<"No¥n";
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 | if(x=="C") cflag=1;
      |    ~^~~~~
a.cc:10:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 | if(cflag==1 && x=="F") fflag=1;
      |                ~^~~~~
Language: Java

import java.util.*;

public class A{
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String str = s.next();
		String[] arr2 = str.split("");

		int count = 0;
		int indexC = 0;
		int indexF = 0;
		int flag = 0;
		int flagC = 0;
		int flagF = 0;
		for(int i=0;i<arr2.length;i++){
			if(arr2[i].equals("C")){
				indexC = i;
				flagC = 1;
			}else if(arr2[i].equals("F")){
				indexF = i;
				flagF = 1;
			}
		}

		if(indexF>indexC && flagC==1 && flagF==1){
			flag = 1;
		}
		if(flag ==1){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}
}

Compiler output:
Main.java:3: error: class A is public, should be declared in a file named A.java
public class A{
       ^
1 error
Language: C++

#include <iostream>
#include <string>
 
int main(){
string s;
cin >> s;
int cflag = 0, fflag = 0;
for(auto x: s){
if(x=="C") cflag=1;
if(cflag==1 && x=="F") fflag=1;
}
if(fflag) cout<<"Yes¥n";
else cout<<"No¥n";
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'string' was not declared in this scope
    5 | string s;
      | ^~~~~~
a.cc:5:1: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | cin >> s;
      | ^~~
      | std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:8: error: 's' was not declared in this scope
    6 | cin >> s;
      |        ^
a.cc:12:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 | if(fflag) cout<<"Yes¥n";
      |           ^~~~
      |           std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 | else cout<<"No¥n";
      |      ^~~~
      |      std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>
#include <string>
 
int main{
string s;
cin >> s;
int cflag = 0, fflag = 0;
for(auto x: s){
if(x=="C") cflag=1;
if(cflag==1 && x=="F") fflag=1;
}
if(fflag) cout<<"Yes¥n";
else cout<<"No¥n";
return 0;
}

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:1: error: 'string' was not declared in this scope
    5 | string s;
      | ^~~~~~
a.cc:5:1: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:5:8: error: expected '}' before 's'
    5 | string s;
      |        ^
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:1: error: 'cin' does not name a type
    6 | cin >> s;
      | ^~~
a.cc:8:1: error: expected unqualified-id before 'for'
    8 | for(auto x: s){
      | ^~~
a.cc:12:1: error: expected unqualified-id before 'if'
   12 | if(fflag) cout<<"Yes¥n";
      | ^~
a.cc:13:1: error: expected unqualified-id before 'else'
   13 | else cout<<"No¥n";
      | ^~~~
a.cc:14:1: error: expected unqualified-id before 'return'
   14 | return 0;
      | ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include<stdio.h>
#include<string.h>
#include <stack>
 
using namespace std;
 
int main(void)
{
	char st[200000];
	stack <char> po;
	int i;
	scanf("%s",st);
 
	for(i = 0;i<strlen(st);i++){
		if(st[i]=='C'){
			po.push('C');
		}
		if(st[i]=='F' && !po.empty() && po.top == 'C'){
			po.push('F');
		}
	}
 	
 	if((int)po.size()>=2){
		printf("Yes\n");
	}
	else{
		printf("No\n");
	}
 
	return 0;
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:56: error: invalid operands of types '<unresolved overloaded function type>' and 'char' to binary 'operator=='
   18 |                 if(st[i]=='F' && !po.empty() && po.top == 'C'){
      |                                                 ~~~~~~ ^~ ~~~
      |                                                    |      |
      |                                                    |      char
      |                                                    <unresolved overloaded function type>
Language: C++


#include <iostream>
#include <string.h>

using namespace std;

#define pb push_back
#define mp make_pair
#define ll long long
#define ull unsigned ll
#define db double
#define INF 0x3f3f3f3f
#define MOD 1000000007
#define PII pair<int, int>

string str;

int main() {
    cin >> str;
    int c = INT_MAX;
    int f = -1;
    for (int i = 0; i < str.size(); i++) {
        if (str[i] == 'C') {
            c = min(c, i);
        } else if (str[i] == 'F') {
            f = max(f, i);
        }
    }
    if (c < f) {
        printf("Yes\n");
    } else {
        printf("No\n");
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:13: error: 'INT_MAX' was not declared in this scope
   20 |     int c = INT_MAX;
      |             ^~~~~~~
a.cc:4:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    3 | #include <string.h>
  +++ |+#include <climits>
    4 |
Language: C++

#include <iostream>

int main{
string s;
cin >> s;
int cflag = 0, fflag = 0;
for(auto x: s){
if(x=="C") cflag=1;
if(cflag==1 && x=="F") fflag=1;
}
if(fflag) cout<<"Yes¥n";
else cout<<"No¥n";
return 0;
}

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:1: error: 'string' was not declared in this scope
    4 | string s;
      | ^~~~~~
a.cc:4:1: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:4:8: error: expected '}' before 's'
    4 | string s;
      |        ^
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >> s;
      | ^~~
a.cc:7:1: error: expected unqualified-id before 'for'
    7 | for(auto x: s){
      | ^~~
a.cc:11:1: error: expected unqualified-id before 'if'
   11 | if(fflag) cout<<"Yes¥n";
      | ^~
a.cc:12:1: error: expected unqualified-id before 'else'
   12 | else cout<<"No¥n";
      | ^~~~
a.cc:13:1: error: expected unqualified-id before 'return'
   13 | return 0;
      | ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

using System;
using System.Linq;
using System.Diagnostics;

namespace ConsoleApplication
{
    public class Program
    {
        public static void Main(string[] args)
        {
            var s = Console.ReadLine();
            var c = s.IndexOf('C');
            var f = s.IndexOf('F');
            var result = c > 0 && f > 0 && c < f ? "Yes" : "No";
            Console.WriteLine(result);
        }
    }

    public static class Ex
    {
        public static int ToInt(this string str) => int.Parse(str);
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Linq;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Diagnostics;
      |       ^~~~~~
a.cc:7:5: error: expected unqualified-id before 'public'
    7 |     public class Program
      |     ^~~~~~
a.cc:19:5: error: expected unqualified-id before 'public'
   19 |     public static class Ex
      |     ^~~~~~
Language: C++



class Main {
public:
	bool hasCf(string str) {
		int ci = 0;
		for (int i = 0;i < str.size();i++) {
			if (str[i] == 'C') {
				ci = i;
				break;
			}
		}

		int fi = -1;
		for (int i = str.size()-1;i>=0;i--) {
			if (str[i] == 'F') {
				fi = i;
				break;
			}
		}

		return ci < fi;
	}
};


int main()
{
	Main m;
	string str;

	cin >> str;

	cout << (m.hasCf(str) ? "Yes" : "No") << endl;

    return 0;
}



Compiler output:
a.cc:5:20: error: 'string' has not been declared
    5 |         bool hasCf(string str) {
      |                    ^~~~~~
a.cc: In member function 'bool Main::hasCf(int)':
a.cc:7:40: error: request for member 'size' in 'str', which is of non-class type 'int'
    7 |                 for (int i = 0;i < str.size();i++) {
      |                                        ^~~~
a.cc:8:32: error: invalid types 'int[int]' for array subscript
    8 |                         if (str[i] == 'C') {
      |                                ^
a.cc:15:34: error: request for member 'size' in 'str', which is of non-class type 'int'
   15 |                 for (int i = str.size()-1;i>=0;i--) {
      |                                  ^~~~
a.cc:16:32: error: invalid types 'int[int]' for array subscript
   16 |                         if (str[i] == 'F') {
      |                                ^
a.cc: In function 'int main()':
a.cc:30:9: error: 'string' was not declared in this scope
   30 |         string str;
      |         ^~~~~~
a.cc:32:9: error: 'cin' was not declared in this scope
   32 |         cin >> str;
      |         ^~~
a.cc:32:16: error: 'str' was not declared in this scope; did you mean 'std'?
   32 |         cin >> str;
      |                ^~~
      |                std
a.cc:34:9: error: 'cout' was not declared in this scope
   34 |         cout << (m.hasCf(str) ? "Yes" : "No") << endl;
      |         ^~~~
a.cc:34:50: error: 'endl' was not declared in this scope
   34 |         cout << (m.hasCf(str) ? "Yes" : "No") << endl;
      |                                                  ^~~~
Language: C++

#include <iostream>
#include <string>

using namespace std;
int main(){
      string s;
     cin >> s;
     bool findC = false;
     bool findF = false;
     for(int i = 0; i < s.size(); i++){
         if(s[i] == 'C')
                findC = true;
         else if(s[i] == 'F' && findC )
                findF = true;
     }
     cout << findC && findF << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:29: error: invalid operands of types 'bool' and '<unresolved overloaded function type>' to binary 'operator<<'
   16 |      cout << findC && findF << endl;
      |                       ~~~~~~^~~~~~~
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <queue>
#include <stack>
#include <map>
#include <algorithm>
#include <sstream>
#include <cmath>
#include <set>
#include <iomanip>
#include <deque>
#include <stdio.h>
using namespace std;



string s;
    int a=1000000;
    int b=0;
cin >> s;
    for(int i=0;i<s.size();i++){
        if(s[i] == 'C'){
            a = i;
            break;}
    }
    for(int j=(int)s.size()-1;j>1;j--){
        if(s[j] == 'F'){
            b = j;
            break;
        }
    }
    if(a!=0 && b !=0 && a > b)
        cout << "Yes"<<endl;
    else cout << "No"<<endl;

Compiler output:
a.cc:21:1: error: 'cin' does not name a type
   21 | cin >> s;
      | ^~~
a.cc:22:5: error: expected unqualified-id before 'for'
   22 |     for(int i=0;i<s.size();i++){
      |     ^~~
a.cc:22:17: error: 'i' does not name a type
   22 |     for(int i=0;i<s.size();i++){
      |                 ^
a.cc:22:28: error: 'i' does not name a type
   22 |     for(int i=0;i<s.size();i++){
      |                            ^
a.cc:27:5: error: expected unqualified-id before 'for'
   27 |     for(int j=(int)s.size()-1;j>1;j--){
      |     ^~~
a.cc:27:31: error: 'j' does not name a type
   27 |     for(int j=(int)s.size()-1;j>1;j--){
      |                               ^
a.cc:27:35: error: 'j' does not name a type
   27 |     for(int j=(int)s.size()-1;j>1;j--){
      |                                   ^
a.cc:33:5: error: expected unqualified-id before 'if'
   33 |     if(a!=0 && b !=0 && a > b)
      |     ^~
a.cc:35:5: error: expected unqualified-id before 'else'
   35 |     else cout << "No"<<endl;
      |     ^~~~
Language: C++

#include <iostream>
#include <string.h>
#include <process.h>

using namespace std;
char str[101];
int main(){
	cin >> str;
	int len = strlen(str);
	bool jud1 = false, jud2 = false;
	for(int i=0; i<len; i++){
		if(str[i] == 'C') jud1 = true;
		if(str[i] == 'F' && jud1 == true) jud2 = true;
	}
	if(jud2 == true) cout << "Yes" << endl;
	else cout << "No" << endl;
	return 0;
}

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

#include <iostream>
using namespace std;

int main(){
	string str;
	int length;
	int i,j;

	cin >> str;

	length = str.size();

	for(i=0; i<length; i++){
		if(str[i] == 'C'){
			for(j=i; j<length; j++){
				if(str[j] == 'F'){
					cout << Yes << endl;
					return 0;
				}else{
					cout << No << endl;
					return 0;
				}
			}
		}else{
			cout << No << endl;
			return 0;
		}
	}


}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:49: error: 'Yes' was not declared in this scope
   17 |                                         cout << Yes << endl;
      |                                                 ^~~
a.cc:20:49: error: 'No' was not declared in this scope
   20 |                                         cout << No << endl;
      |                                                 ^~
a.cc:25:33: error: 'No' was not declared in this scope
   25 |                         cout << No << endl;
      |                                 ^~
Language: C

#include<stdio.h>
void main(void){
 int flag1=0,flag2=0;
 int i,memo;
 char s[100];
 scanf("%s",s);
 for(i=0;i<100;i++){
  if(s[i]=='C'){
   memo=i;
   flag1=1;
  }
  while(memo<100){
   if(s[memo]=='F'){
    flag2=1;
   }
   memo++;
  }
  if(flag1==1&&flag2==1){
   printf("Yes");
  }
  else
   printf("No");
}

Compiler output:
main.c: In function 'main':
main.c:23:1: error: expected declaration or statement at end of input
   23 | }
      | ^
Language: C++

//C++14 (Clang 3.8.0)

#include <vector>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <string>
#include <cstdlib>
#define rp(i,a,b) for(int (i)=(int)(a);i<(int)(b);++i)

typedef long long ll;

using namespace std;

int main(){
    string s;
    cin>>s;
    bool f1==false,f2=false;
    rp(i,0,s.size()){
        if(f1==false and f2==false and s[i]=='C')
            f1=true;
        if(f1==true and f2==false and s[i]=='F')
            f2=true;
    }
    if(f2) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:12: error: expected initializer before '==' token
   33 |     bool f1==false,f2=false;
      |            ^~
a.cc:35:12: error: 'f1' was not declared in this scope; did you mean 'y1'?
   35 |         if(f1==false and f2==false and s[i]=='C')
      |            ^~
      |            y1
a.cc:35:26: error: 'f2' was not declared in this scope
   35 |         if(f1==false and f2==false and s[i]=='C')
      |                          ^~
a.cc:37:12: error: 'f1' was not declared in this scope; did you mean 'y1'?
   37 |         if(f1==true and f2==false and s[i]=='F')
      |            ^~
      |            y1
a.cc:37:25: error: 'f2' was not declared in this scope
   37 |         if(f1==true and f2==false and s[i]=='F')
      |                         ^~
a.cc:40:8: error: 'f2' was not declared in this scope
   40 |     if(f2) cout<<"Yes"<<endl;
      |        ^~
Language: C++

string s;
    int a=1000000;
    int b=0;
cin >> s;
    for(int i=0;i<s.size();i++){
        if(s[i] == 'C'){
            a = i;
            break;}
    }
    for(int j=s.size()-1;j=1;j--){
        if(s[j] == 'F'){
            b = j;
            break;
        }
    }
    if(a!=0 && b !=0 && a > b)
        cout << "Yes"<<endl;
    else cout << "No"<<endl;

Compiler output:
a.cc:1:1: error: 'string' does not name a type
    1 | string s;
      | ^~~~~~
a.cc:4:1: error: 'cin' does not name a type
    4 | cin >> s;
      | ^~~
a.cc:5:5: error: expected unqualified-id before 'for'
    5 |     for(int i=0;i<s.size();i++){
      |     ^~~
a.cc:5:17: error: 'i' does not name a type
    5 |     for(int i=0;i<s.size();i++){
      |                 ^
a.cc:5:28: error: 'i' does not name a type
    5 |     for(int i=0;i<s.size();i++){
      |                            ^
a.cc:10:5: error: expected unqualified-id before 'for'
   10 |     for(int j=s.size()-1;j=1;j--){
      |     ^~~
a.cc:10:26: error: 'j' does not name a type
   10 |     for(int j=s.size()-1;j=1;j--){
      |                          ^
a.cc:10:30: error: 'j' does not name a type
   10 |     for(int j=s.size()-1;j=1;j--){
      |                              ^
a.cc:16:5: error: expected unqualified-id before 'if'
   16 |     if(a!=0 && b !=0 && a > b)
      |     ^~
a.cc:18:5: error: expected unqualified-id before 'else'
   18 |     else cout << "No"<<endl;
      |     ^~~~
Language: C++

#include<cstdio>
#include<string>
#include<algorithm>

using namespace std;

char input[101]={};

int main(){
    scanf("%s",input);
    int len = strlen(input);
    for (int i=0; i<len; i++) {
        if(input[i] == 'C' && input[i+1] == 'O' && input[i+2] == 'D' && input[i+3] == 'E' && input[i+4] == 'F'&& input[i+5] == 'E' && input[i+6] == 'S' &&  input[i+7] == 'T' && input[i+8] == 'I'&& input[i+9] == 'V' && input[i+10] == 'A' && input[i+11] == 'L'){
            printf("Yes\n");
            return 0;
        }
        if(input[i] == 'C' && input[i] == 'F'){
            printf("Yes\n");
            return 0;
        }
    }
    printf("No\n");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: 'strlen' was not declared in this scope
   11 |     int len = strlen(input);
      |               ^~~~~~
a.cc:4:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include<algorithm>
  +++ |+#include <cstring>
    4 |
Language: C

#include<stdio.h>
#include<math.h>
#include<stdlib.h>

int main(void){

	char S[100];
	int i;

	for(i=0;i<100;i++){
		scanf("%s",&S[i]);
		if(S[i]=='C'){
			flag = 1;
		}

		else if(S[i]=='F' && flag==1){
			flag = 2;
		}
	}



	if(flag == 2){
		printf("Yes");
	}

	else{
	printf("No");
	}

	return 0;

}

Compiler output:
main.c: In function 'main':
main.c:13:25: error: 'flag' undeclared (first use in this function)
   13 |                         flag = 1;
      |                         ^~~~
main.c:13:25: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

// Example program
#include <iostream>
#include <string>
using namespace std;

int main()
{
    string s;
    cin >> s;
    int x=0;
    for (int i=0; i<strlen(s.c_str()); i++) {
        if (s.c_str()[i] == 'C' && x == 0) x++;
        if (s.c_str()[i] == 'F' && x == 1) x++;
    }
    if (x==2) cout << "Yes" << endl;
        else cout << "No" << endl;


    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:21: error: 'strlen' was not declared in this scope
   11 |     for (int i=0; i<strlen(s.c_str()); i++) {
      |                     ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <iostream>
  +++ |+#include <cstring>
    3 | #include <string>
Language: C++

S = gets.to_s.split('')
able = 0
for i in 0..S.count
	if S[i] == "C" then
		for j in i..S.count
			if S[j] == "F" then
				able = 1
			end
		end
	end
end
if able == 1 then
	puts "Yes"
else
	puts "No"
end


Compiler output:
a.cc:1:21: error: empty character constant
    1 | S = gets.to_s.split('')
      |                     ^~
a.cc:3:10: error: too many decimal points in number
    3 | for i in 0..S.count
      |          ^~~~~~~~~~
a.cc:1:1: error: 'S' does not name a type
    1 | S = gets.to_s.split('')
      | ^
Language: C

#include<stdio.h>
int main(){
char s[100];
scanf("%s", s);
while(*s != 'C'){
if(*s == EOF) goto NO;
s++;
}
while(*s != 'F'){
if(*s == EOF) goto NO;
s++;
}
printf("Yes\n");
return 0;
NO:
printf("No\n");
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:2: error: lvalue required as increment operand
    7 | s++;
      |  ^~
main.c:11:2: error: lvalue required as increment operand
   11 | s++;
      |  ^~
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace code_festival_2016_c {
    class Program {
        static void Main(string[] args) {
            bool c = false;
            bool f = false;
            string str = Console.ReadLine();
            for(int i = 0; i < str.Length; i++) {
                if (str[i] == 'C') {
                    c = true;
                }else if (str[i] == 'F' && c == true) {
                    f = true;
                }
            }
            Console.WriteLine((f)?"Yes":"No");

        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:9:26: error: 'string' has not been declared
    9 |         static void Main(string[] args) {
      |                          ^~~~~~
a.cc:9:35: error: expected ',' or '...' before 'args'
    9 |         static void Main(string[] args) {
      |                                   ^~~~
a.cc:23:6: error: expected ';' after class definition
   23 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void code_festival_2016_c::Program::Main(int*)':
a.cc:12:13: error: 'string' was not declared in this scope
   12 |             string str = Console.ReadLine();
      |             ^~~~~~
a.cc:13:32: error: 'str' was not declared in this scope; did you mean 'std'?
   13 |             for(int i = 0; i < str.Length; i++) {
      |                                ^~~
      |                                std
a.cc:20:13: error: 'Console' was not declared in this scope
   20 |             Console.WriteLine((f)?"Yes":"No");
      |             ^~~~~~~
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
import java.math.*;
 
public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();
		String a = br.readLine();
		int l = a.length();
		boolean cf = false;

		for(int i = 0; i < l; i++){
			char c = a.charAt(i);
			if(c=='C')
				cf = true;
			if(cf && c=='F'){
				sb.append("Yes");
				System.out.println(sb);
				return 0;
			}
		}

		sb.append("No");
		System.out.println(sb);
	}
}

Compiler output:
Main.java:22: error: incompatible types: unexpected return value
				return 0;
				       ^
1 error
Language: C++

#include<iostream>
#include<string>
#include<cstdio>
#include<algorithm>
#include<stack>
#include<queue>
#include<vector>
#include<cmath>
#include<utility>
#include<set>
#include<complex>
#define vi vector<int>
#define vvi vector<vector<int> >
#define ll long long int
#define vl vector<ll>
#define vvl vector<vector<ll>>
#define vb vector<bool>
#define vc vector<char>
#define vs vector<string>
#define ld long double
#define INF 1e9
#define EPS 0.0000000001
#define rep(i,n) for(int i=0;i<n;i++)
#define CC puts("-------ok--------");
#define all(in) in.begin(), in.end()
#define bv vector<bool>
using namespace std;
typedef pair<int, int>PA;
using namespace std;
#define MAX  999999
int main(){
    char s[10000];
    cin >> s;
    int l = (int)strlen(s);
    int check = 0;
    rep(i,l){
        if(check == 0  && s[i] == 'C')
            check ++;
        if(check == 1 && s[i] == 'F')
            check++;
    }
    if(check == 2)
        cout << "YES" << endl;
    else
        cout << "NO" << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:34:18: error: 'strlen' was not declared in this scope
   34 |     int l = (int)strlen(s);
      |                  ^~~~~~
a.cc:12:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
   11 | #include<complex>
  +++ |+#include <cstring>
   12 | #define vi vector<int>
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
  string s;
  cin >> s;
  bool f = false;
  for(auto i : s)[]
    if(i == 'C'){
      f = true;
    }
    if(i == 'F' && f){
      cout << "Yes" << endl;
      return 0;
    }
  }

  cout << "No" << endl;
}


Compiler output:
a.cc: In lambda function:
a.cc:10:5: error: expected '{' before 'if'
   10 |     if(i == 'C'){
      |     ^~
a.cc: In function 'int main()':
a.cc:9:20: error: expected ';' before 'if'
    9 |   for(auto i : s)[]
      |                    ^
      |                    ;
   10 |     if(i == 'C'){
      |     ~~              
a.cc:13:8: error: 'i' was not declared in this scope
   13 |     if(i == 'F' && f){
      |        ^
a.cc: At global scope:
a.cc:19:3: error: 'cout' does not name a type
   19 |   cout << "No" << endl;
      |   ^~~~
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

// Example program
#include <iostream>
#include <string>
using namespace std;

int main()
{
    string s;
    cin >> s;
    int x=0;
    for (i=0; i<strlen(s.c_str()); i++) {
        if (s.c_str()[i] == 'C' && x == 0) x++;
        if (s.c_str()[i] == 'F' && x == 1) x++;
    }
    if (x==2) cout << "Yes" << endl;
        else cout << "No" << endl;
    

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: 'i' was not declared in this scope
   11 |     for (i=0; i<strlen(s.c_str()); i++) {
      |          ^
a.cc:11:17: error: 'strlen' was not declared in this scope
   11 |     for (i=0; i<strlen(s.c_str()); i++) {
      |                 ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <iostream>
  +++ |+#include <cstring>
    3 | #include <string>
Language: C++

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

int main(int argc, char const *argv[]) {
  char s[102];
  gets(s);
  int n = strlen(s);
  for (int i = 0; i < n - 1; ++i) {
    if (s[i] == 'C')
    for (int j = i + 1; j < n; ++j) {
      if (s[j] == 'F') {
        puts("Yes");
        return 0;
      }
    }
  }
  puts("No");
  return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:9:3: error: 'gets' was not declared in this scope; did you mean 'getw'?
    9 |   gets(s);
      |   ^~~~
      |   getw
Language: C++

s = raw_input()
flag = 0
for i in s:
    if flag == 0 and i == 'C': flag = 1
    elif: flag == 1 and i == 'F': flag = 2

print 'Yes' if flag == 2 else 'No'

Compiler output:
a.cc:7:7: warning: multi-character character constant [-Wmultichar]
    7 | print 'Yes' if flag == 2 else 'No'
      |       ^~~~~
a.cc:7:31: warning: multi-character character constant [-Wmultichar]
    7 | print 'Yes' if flag == 2 else 'No'
      |                               ^~~~
a.cc:1:1: error: 's' does not name a type
    1 | s = raw_input()
      | ^
Language: C++

import sys
s=raw_input()
flag=False
for j in range(s):
    if s[j]=='C':
        flag=True
    if s[j]=='F' and flag:
        print "Yes"
        sys.exit()
print "No"

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <iostream>
#include <stack>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <string>
#include <vector>
#include <queue>
#include <map>
#include <set>
#include <tuple>
#include <algorithm>
#include <functional>
#include <cstring>
#include <limits.h>

#define FOR(i,k,n)  for (int i=(k); i<(int)(n); ++i)
#define REP(i,n)    FOR(i,0,n)
#define FORIT(i,c)	for(__typeof((c).begin())i=(c).begin();i!=(c).end();++i)
#define SZ(i) ((int)i.size())
#define pb          push_back
#define mp          make_pair
#define mt          make_tuple
#define ALL(X)      (X).begin(),(X).end()
typedef long long LL;

using namespace std;

int main(void){
    string s;
    cin >> s;
    int flag=0;
    for(i=0;i<SZ(s);i++){
        if(flag==0&&s[i]=='C')
            flag++;
        if(flag==1&&s[i]=='F')
            flag++;
    }
    if(flag==2)
        cout<<"Yes"<<endl;
    else
        cout<<"No"<<endl;
     return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:9: error: 'i' was not declared in this scope
   33 |     for(i=0;i<SZ(s);i++){
      |         ^