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

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

int main() {
	string s;
    cin >> s;
    int c=0;
    int f=0;#include <bits/stdc++.h>
using namespace std;

int main() {
	string s;
    cin >> s;
    int c=0;
    int f=0;
    int a=0;
    for(int i=0;i<s.size();i++){
      if(s.at(i)=='C'){
        c++;
        a = i;
        break;
      }
    }
    for(int i=a+1;i<s.size();i++){
      if(s.at(i)=='F'){
        f++;
        break;
      }
    }
    if(c>0 && f>0){
      cout << "Yes" << endl;
    }
    else{
      cout << "No" << endl;
    }
}



Compiler output:
a.cc:8:13: error: stray '#' in program
    8 |     int f=0;#include <bits/stdc++.h>
      |             ^
a.cc: In function 'int main()':
a.cc:8:14: error: 'include' was not declared in this scope
    8 |     int f=0;#include <bits/stdc++.h>
      |              ^~~~~~~
a.cc:8:23: error: 'bits' was not declared in this scope
    8 |     int f=0;#include <bits/stdc++.h>
      |                       ^~~~
a.cc:8:28: error: 'stdc' was not declared in this scope; did you mean 'std'?
    8 |     int f=0;#include <bits/stdc++.h>
      |                            ^~~~
      |                            std
a.cc:9:1: error: expected primary-expression before 'using'
    9 | using namespace std;
      | ^~~~~
a.cc:11:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   11 | int main() {
      |         ^~
a.cc:11:9: note: remove parentheses to default-initialize a variable
   11 | int main() {
      |         ^~
      |         --
a.cc:11:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:11:12: error: a function-definition is not allowed here before '{' token
   11 | int main() {
      |            ^
a.cc:36:2: error: expected '}' at end of input
   36 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
	string s;
    cin >> s;
    int c=0;
    int f=0;#include <bits/stdc++.h>
using namespace std;

int main() {
	string s;
    cin >> s;
    int c=0;
    int f=0;
    int a=0;
    for(int i=0;i<s.size();i++){
      if(s.at(i)=='C'){
        c++;
        a = i;
        break;
      }
    }
    for(int i=a+1;i<s.size();i++){
      if(s.at(i)=='F'){
        f++;
        break;
      }
    }
    if(c>0 && f>0){
      cout << "Yes" << endl;
    }
    else{
      cout << "No" << endl;
    }
}

    for(int i=0;i<s.size();i++){
      if(s.at(i)=='C'){
        c++;
        
      }
    }
      if(s.at(i)=='F'){
        f++;
      }
    }
    if(c>0 && f>0){
      cout << "Yes" << endl;
    }
    else{
      cout << "No" << endl;
    }
}


Compiler output:
a.cc:8:13: error: stray '#' in program
    8 |     int f=0;#include <bits/stdc++.h>
      |             ^
a.cc: In function 'int main()':
a.cc:8:14: error: 'include' was not declared in this scope
    8 |     int f=0;#include <bits/stdc++.h>
      |              ^~~~~~~
a.cc:8:23: error: 'bits' was not declared in this scope
    8 |     int f=0;#include <bits/stdc++.h>
      |                       ^~~~
a.cc:8:28: error: 'stdc' was not declared in this scope; did you mean 'std'?
    8 |     int f=0;#include <bits/stdc++.h>
      |                            ^~~~
      |                            std
a.cc:9:1: error: expected primary-expression before 'using'
    9 | using namespace std;
      | ^~~~~
a.cc:11:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   11 | int main() {
      |         ^~
a.cc:11:9: note: remove parentheses to default-initialize a variable
   11 | int main() {
      |         ^~
      |         --
a.cc:11:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:11:12: error: a function-definition is not allowed here before '{' token
   11 | int main() {
      |            ^
a.cc:44:15: error: 'i' was not declared in this scope
   44 |       if(s.at(i)=='F'){
      |               ^
a.cc: At global scope:
a.cc:48:5: error: expected unqualified-id before 'if'
   48 |     if(c>0 && f>0){
      |     ^~
a.cc:51:5: error: expected unqualified-id before 'else'
   51 |     else{
      |     ^~~~
a.cc:54:1: error: expected declaration before '}' token
   54 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int a=0;
string s;
int main()
{
    cin>>s;
    for (int i=0;i<s.size();i++)
    {
        if (s[i]=='C') a=1;
        if (s[i]=='F'&&a=1){
            cout<<"YES"<<endl;
            return 0;
        } 
    }
    cout<<"NO"<<endl;
    return 0;   
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: lvalue required as left operand of assignment
   11 |         if (s[i]=='F'&&a=1){
Language: C++

#include <bits/stdc++.h>
using namespace std;
int a=0
string s;
int main()
{
    cin>>s;
    for (int i=0;i<s.size();i++)
    {
        if (s[i]=='C') a=1;
        if (s[i]=='F'&&a=1){
            cout<<"YES"<<endl;
            return 0;
        } 
    }
    cout<<"NO"<<endl;
    return 0;   
}

Compiler output:
a.cc:4:1: error: expected ',' or ';' before 'string'
    4 | string s;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:7:10: error: 's' was not declared in this scope
    7 |     cin>>s;
      |          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
bool pd=true;
string s;
int main()
{
    cin>>s;
    for (int i=0;i<s.size();i++)
    {
        if (s[i]=='C') pd=false;
        if (s[i]=="F"||pd==false){
            cout<<"YES";
            return 0;
        } 
    }
    cout<<"NO";
    return 0;   
}

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

#include <bits/stdc++.h>
using namspace std;
bool pd=true;
string s;
int main()
{
    cin>>s;
    for (int i=0;i<s.size();i++)
    {
        if (s[i]=='C') pd=false;
        if (s[i]=="F"||pd==false){
            cout<<"YES";
            return 0;
        } 
    }
    cout<<"NO";
    return 0;   
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namspace'
    2 | using namspace std;
      |       ^~~~~~~~
a.cc:4:1: error: 'string' does not name a type; did you mean 'stdin'?
    4 | string s;
      | ^~~~~~
      | stdin
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |     cin>>s;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:10: error: 's' was not declared in this scope
    7 |     cin>>s;
      |          ^
a.cc:12:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |             cout<<"YES";
      |             ^~~~
      |             std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |     cout<<"NO";
      |     ^~~~
      |     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 <bits/stdc++.h>
using namespace std;

int main() {
    string s;
    cin >> s;
    string ans = "No";
    for (int i = 0; i < s.size()-1; i++) {
        if (str.at(i) == 'C') {
            for (int j = i+1; j < s.size(); j++) {
                if (str.at(j) == 'F') {
                    ans = "Yes";
                }
            }
        }
    }
    cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'str' was not declared in this scope; did you mean 'std'?
    9 |         if (str.at(i) == 'C') {
      |             ^~~
      |             std
Language: C++

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

int main() {
    string s;
    cin >> s;
    string ans = "No";
    for (int i = 0; i < s.size()-1; i++) {
        if (str.at(i) == 'C') {
            for (int j = i+1; j < s.size(); j++) {
                if (str.at(j) == 'F') {
                    ans = "Yes";
                }
            }
        }
    }
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'str' was not declared in this scope; did you mean 'std'?
    9 |         if (str.at(i) == 'C') {
      |             ^~~
      |             std
Language: C++

#include<iostream>
using namespace std;
char a[10000];
int main()
{
    int c=0;
    gets(a);
    int len=strlen(a);
    for(int i=0;i<len;i++)
    {
        if(a[i]=='C')
            c=1;
        if(c==1&&a[i]=='F')
        {
            cout<<"YES"<<endl;
            return 0;
        }
    }
    cout<<"NO"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    7 |     gets(a);
      |     ^~~~
      |     getw
a.cc:8:13: error: 'strlen' was not declared in this scope
    8 |     int len=strlen(a);
      |             ^~~~~~
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 | using namespace std;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	string s;
	cin>>s;
	int box1=0,box2=0;
	for(int i=0;i<s.size;i++)
	{
		if(s[i]=='C')
		{
			box1++;
		}
		if(s[i]=='F')
		{
			box2++;
		}
	}
	if(box1!=0&&box2!=0)
	{
		cout<<"Yes";
	}
	else
	{
		cout<<"No";
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    8 |         for(int i=0;i<s.size;i++)
      |                       ~~^~~~
      |                             ()
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    string a;
    cin>>a;
    int num=0;  
    for(int i=0;i<a.size();i++){
        if(a[i]=='C'){
            num=1;
        }
        if(a[i]=='F'&&num==1){
            cout<<"Yes"<<endl;
            return 0;
        }
    }
    cout<<"No"endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:11: error: unable to find string literal operator 'operator""endl' with 'const char [3]', 'long unsigned int' arguments
   16 |     cout<<"No"endl;
      |           ^~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    string str;
    cin>>str;
    int ps=str.find('C');
    if(ps==-1){
        puts("No");
        return 0;
    }
    if(str.find('F',ps)!=str::npos){
        puts("Yes");
    }else{
        puts("No");
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:26: error: 'str' is not a class, namespace, or enumeration
   11 |     if(str.find('F',ps)!=str::npos){
      |                          ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
string s;
int mian()
{
    cin>>s;
    int len = s.size();
    for(int i = 0;i < len;i++)
    {
        if(s[i] == 'C')
        for(int j = i + 1;j < len;j++)
        {
        	if(s[j]=='F')
            {
                cout << "Yes";
                return 0;
            }
        }
    }
    cout<<"No";
    return 0;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
	string a;
	cin>>a;
	int cnt=0;
	for(int i=0; i<a.size(); i++) {
		if(a[i]=='C') {
			cnt=1;
		}
		if(a[i]=='F'&&cnt==1)
			cout<<"Yes"<<endl;
		else
			cout<<"No"<<endl;
	}
	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:16:18: error: expected '}' at end of input
   16 |         return 0;
      |                  ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main()
{
    string str;
    cin>>str;
    if(str.find('C')!=npos&&str.find('F')!=npos&&str.find('C')<str.find('F'))
        cout<<"Yes"<<endl;
    else
        cout<<"No"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: 'npos' was not declared in this scope
    8 |     if(str.find('C')!=npos&&str.find('F')!=npos&&str.find('C')<str.find('F'))
      |                       ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    char ch[100001];
    cin>>ch;
    int flag=0;
    for(int i=0;i<strlen(ch);i++)
    {
        if(a[i]=='C')
            flag=1;
        if(a[i]=='F'&&flag==1)
        {
            cout<<"Yes";
            return 0;
        }
    }
    cout<<"No";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 'a' was not declared in this scope
   10 |         if(a[i]=='C')
      |            ^
a.cc:12:12: error: 'a' was not declared in this scope
   12 |         if(a[i]=='F'&&flag==1)
      |            ^
Language: C++

#include<iostream>
#include<cstdlib>
#include<cstdio>
#include<cstring>
#include<string>
#include<cmath>
using namespace std;
char s[1001];
bool c=false,f=false;
int c1=0,f1=0;

int main()
{
	gets(s);
	int len=strlen(s);
	for(int i=0;i<len;i++)
	{
		if(s[i]=='C' && c1==0)
		{
			c=true;
			c1=i;
		}
		if(s[i]=='F)
		{
			f=true;
			f1=i;
		}
	}
	if(c1<f1 && (c) && (f)) cout<<"YES"<<endl;
	else cout<<"NO"<<endl;
	return 0;
}

Compiler output:
a.cc:23:26: warning: missing terminating ' character
   23 |                 if(s[i]=='F)
      |                          ^
a.cc:23:26: error: missing terminating ' character
   23 |                 if(s[i]=='F)
      |                          ^~~
a.cc: In function 'int main()':
a.cc:14:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   14 |         gets(s);
      |         ^~~~
      |         getw
a.cc:24:17: error: expected primary-expression before '{' token
   24 |                 {
      |                 ^
a.cc:23:26: error: expected ')' before '{' token
   23 |                 if(s[i]=='F)
      |                   ~      ^
      |                          )
   24 |                 {
      |                 ~         
a.cc:28:9: error: expected primary-expression before '}' token
   28 |         }
      |         ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	string s;
	cin>>s;
	bool a=0,b=0;
	for(int i=0;i<s.size();i++){
		if(s[i]=='C'){
			a=1;
		}
	}
	if(a==0){
		return 0;
		cout<<"No";
	}
	
	for(int i=0;i<s.size();i++){
		if(s[i]=='F'){
			b=1;
		}
	}
	if(b==0){
		cout<<"No"
		return 0;
	}
	cout<<"Yes";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:27: error: expected ';' before 'return'
   23 |                 cout<<"No"
      |                           ^
      |                           ;
   24 |                 return 0;
      |                 ~~~~~~
Language: C++

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

using namespace std;

string a;

int main () {
	cin >> a;
	if (a.find(C) != string::npos
	&& a.find(F) != string::npos) cout << "Yes" << endl;
	else cout << "No" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: 'C' was not declared in this scope
   12 |         if (a.find(C) != string::npos
      |                    ^
a.cc:13:19: error: 'F' was not declared in this scope
   13 |         && a.find(F) != string::npos) cout << "Yes" << endl;
      |                   ^
Language: C++

#include<cstdio>
#include<iostream>
using namespace std;
int main()
{
    char t[100];
    bool C=false,F=false;
    cin>>t;
    for(int i=0;t[i]!='\0';i++)
    {
        if(t[i]=='C')C=true;
        if(t[i]=='F')f=true;
    }
    if(C&&F)printf("yes\n");
    else printf("No\n");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:22: error: 'f' was not declared in this scope
   12 |         if(t[i]=='F')f=true;
      |                      ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
string x;
int c,f;
int main()
{
    cin >> x;
	for (int i = 0; i < x.length(); i++)
		{
			if (x[i] == 'C')
				{
					for (int j = i + 1;j < x.length; j++)
						{
							if (x[j] == 'F')
								{
									cout << "yes\n";
									return 0;
								}
						}
				 } 
				  }          
	cout << "no\n";			  
    return 0;
}    

Compiler output:
a.cc: In function 'int main()':
a.cc:13:66: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   13 |                                         for (int j = i + 1;j < x.length; j++)
      |                                                                ~~^~~~~~
      |                                                                        ()
Language: C

#include<stdio.h>
#include<string.h>
char s[105];
int main()
{
	int i,len,j;
	scanf("%s",s);
	len=strlen(s);
	else if(len==2)
	{
		if(s[0]=='C'&&s[1]=='F')
		  printf("YES");
		else printf("NO"); 
	} 
	for(i=0;i<len-1;i++)
	{
		if(s[i]=='C')
		{
			for(j=i+1;j<len;j++)
			{
				if(s[j]=='F')
				{
					printf("Yes");
					return 0;
				}
			}
		}
	}
	printf("No");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: 'else' without a previous 'if'
    9 |         else if(len==2)
      |         ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
char ch[110];
int main()
{
	bool flag1=0,flag2=0;
	cin>>ch;
	int chlen=strlen(ch);
	for(int i=0;i<chlen;i++)
	{
		if(ch[i]=='C') flag1=1,x=i;
		if(ch[i]=='F') flag2=1,y=i;
	}
	if(flag1==1&&flag2==1&&x<y) cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:40: error: 'x' was not declared in this scope
   11 |                 if(ch[i]=='C') flag1=1,x=i;
      |                                        ^
a.cc:12:40: error: 'y' was not declared in this scope
   12 |                 if(ch[i]=='F') flag2=1,y=i;
      |                                        ^
a.cc:14:32: error: 'x' was not declared in this scope
   14 |         if(flag1==1&&flag2==1&&x<y) cout<<"Yes"<<endl;
      |                                ^
a.cc:14:34: error: 'y' was not declared in this scope; did you mean 'yn'?
   14 |         if(flag1==1&&flag2==1&&x<y) cout<<"Yes"<<endl;
      |                                  ^
      |                                  yn
Language: C++

import java.util.*;

class Main{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		boolean isC=false,ok=false;
		String s=sc.next();
		for(int i=0;i<s.length();i++){
			if(s.charAt(i)=='C'){
				isC=true;
			}
			if(isC&&s.charAt(i)=='F'){
				ok=true;
			}
		}
		if(ok==true){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:15: error: expected ':' before 'static'
    4 |         public static void main(String[] args){
      |               ^~~~~~~
      |               :
a.cc:4:33: error: 'String' has not been declared
    4 |         public static void main(String[] args){
      |                                 ^~~~~~
a.cc:4:42: error: expected ',' or '...' before 'args'
    4 |         public static void main(String[] args){
      |                                          ^~~~
a.cc:22:2: error: expected ';' after class definition
   22 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:17: error: 'Scanner' was not declared in this scope
    5 |                 Scanner sc=new Scanner(System.in);
      |                 ^~~~~~~
a.cc:6:17: error: 'boolean' was not declared in this scope; did you mean 'bool'?
    6 |                 boolean isC=false,ok=false;
      |                 ^~~~~~~
      |                 bool
a.cc:7:17: error: 'String' was not declared in this scope
    7 |                 String s=sc.next();
      |                 ^~~~~~
a.cc:8:31: error: 's' was not declared in this scope
    8 |                 for(int i=0;i<s.length();i++){
      |                               ^
a.cc:10:33: error: 'isC' was not declared in this scope
   10 |                                 isC=true;
      |                                 ^~~
a.cc:12:28: error: 'isC' was not declared in this scope
   12 |                         if(isC&&s.charAt(i)=='F'){
      |                            ^~~
a.cc:13:33: error: 'ok' was not declared in this scope
   13 |                                 ok=true;
      |                                 ^~
a.cc:16:20: error: 'ok' was not declared in this scope
   16 |                 if(ok==true){
      |                    ^~
a.cc:17:25: error: 'System' was not declared in this scope
   17 |                         System.out.println("Yes");
      |                         ^~~~~~
a.cc:19:25: error: 'System' was not declared in this scope
   19 |                         System.out.println("No");
      |                         ^~~~~~
Language: C++

#include<iostream> 
using namespace std;
int main(){
    string a;   
    bool v[2]={0}; 
    cin>>a;//读入 
    for(int i=0;i<a.length();i++) 
        if(a[i]=='C') v[0]=1; 
        if(a[i]=='F'&&v[0])  
            v[1]=1; 
    }
    if(v[1]) cout<<"Yes"; 
    else cout<<"No"; 
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: 'i' was not declared in this scope
    9 |         if(a[i]=='F'&&v[0])
      |              ^
a.cc: At global scope:
a.cc:12:5: error: expected unqualified-id before 'if'
   12 |     if(v[1]) cout<<"Yes";
      |     ^~
a.cc:13:5: error: expected unqualified-id before 'else'
   13 |     else cout<<"No";
      |     ^~~~
a.cc:14:5: error: expected unqualified-id before 'return'
   14 |     return 0;
      |     ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
char a[266];
int main()
{
	int b=100;
	cin>>a;
	for(int i=0;i<strlen(a)&&b!=0;i++)
	{
		if(a[i]=='C'||b=10)
		{
			b=10;
			if(a[i]=='F'&&b==10)
				b=0;
		}
	}
	if(b==0)
		cout<<"Yes";
	else
		cout<<"No";	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:29: error: lvalue required as left operand of assignment
   10 |                 if(a[i]=='C'||b=10)
      |                    ~~~~~~~~~^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
char a[266];
int main()
{
	int b=100;
	cin>>a;
	for(int i=0;i<strlen(a)&&b!=0;i++)
	{
		if(a[i]=='C')
		{
			b=10;
			if(a[j]=='F'&&b==10)
				b=0;
		}
	}
	if(b==0)
		cout<<"Yes";
	else
		cout<<"No";	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:30: error: 'j' was not declared in this scope
   13 |                         if(a[j]=='F'&&b==10)
      |                              ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
string s;
int sum,sum1,n;
int main()
{
	cin>>s;
	for(int i=0;i<s.size();i++)
	{
		if(s[i]=='C'&&sum==0)
		{
			sum1=1;
		}
		if(s[i]=='F'&&sum1=1)
		{
			sum=1;
		}
		
	}
    n=sum+sum1;
    if(n==2)cout<<"Yes";
    else cout<<"No";

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:29: error: lvalue required as left operand of assignment
   14 |                 if(s[i]=='F'&&sum1=1)
Language: C++

#include<iostream>
#include<cstdio>
#include<string>
using namespace std;
 int q,p,w[1000001],u[1000001],o;
 string a;
 int main()
 {
     cin>>a;
     for (int i=0;i<a.size();i++)
     {
         if (a[i]=='C') 
         {
             p++;
             u[p]=i+1;
         }
         else if (a[i]=='F')
         {
            q++;
             w[q]=i+1;
         }
     }
     if (q>=1 && p>=1)
     {
     for (int i=1;i<=p;i++)
     {
         for (int j=1;j<=q;j++)
         {
             if (u[i]<w[j])
             {
                 o=1;
             }
         }
     }
     if (o==1) 
        cout<<"Yes"<<endl;
     else 
        cout<<"No"<<endl;  
     
     else 
        cout<<"No"<<endl;
    return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:40:6: error: expected '}' before 'else'
   40 |      else
      |      ^~~~
a.cc:24:6: note: to match this '{'
   24 |      {
      |      ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    string s;
    cin>>s;
    bool flag=true;
    for(int i=0;i<s.size();i++)
    {
        if(s[i]=='C')
        {
            for(int j=i;j<S.size();j++)
            {
                if(s[j]=='F')
                {
                    cout<<"Yes"<<endl;
                    return 0;
                }
            }
        }
    }
    cout<<"No"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:27: error: 'S' was not declared in this scope
   12 |             for(int j=i;j<S.size();j++)
      |                           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    string S;
    cin>>S;
    bool flag=true;
    for(int i=0;i<S.size()&&flag=true;i++)
    {
        if(S[i]=='C')
        {
            for(int j=i;j<S.size();j++)
            {
                if(S[j]=='F')
                {
                    flag=false;
                    break;
                }
            }
        }
    }
    if(flag=true) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: lvalue required as left operand of assignment
    8 |     for(int i=0;i<S.size()&&flag=true;i++)
      |                 ~~~~~~~~~~^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
string a;
int main()
{
    cin>>a;
    if(a=="CODEFESTIVAL")
    {
        cout<<"Yes"<<endl;
        return 0;
    }
    for(int i=0;i<11;i++)
    {
        if(a[i]=="C"&&a[i+1]=="F")
        {
            cout<<"Yes"<<endl;
        }
    }
    cout<<"No"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |         if(a[i]=="C"&&a[i+1]=="F")
a.cc:14:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |         if(a[i]=="C"&&a[i+1]=="F")
Language: C++

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

int main(){
  int i,j,cnt=0;
  string s;
  cin>>s;
  int c=0;f=0;
  for(i=0;i<s.size();i++){
    if(s[i]=='C')c=1;
    if(c){
      if(s[i]=='F')f=1;
    }
  }
  if(c==1 && f==1)cout<<"Yes";
  else cout<<"No";
}

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

#include<stdio.h>
#include<stdio.h>

int main()
{
	char a[1001];
	while(scanf("%s",a)!=EOF){
		int i,j,max,n;
		n=strlen(a)
		for(i=0;i<n-1;i++){
			if(a[i]=='C')
			break;
		}
		for(j=0;j<=n-1;j++){
			if(a[j]=='F')
			max=j;
		}
		if(i<max)
		printf("Yes\n");
		else
		printf("No\n");
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: 'strlen' was not declared in this scope
    9 |                 n=strlen(a)
      |                   ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<stdio.h>
  +++ |+#include <cstring>
    2 | #include<stdio.h>
a.cc:10:34: error: expected ';' before ')' token
   10 |                 for(i=0;i<n-1;i++){
      |                                  ^
      |                                  ;
Language: C++

#include<stdio.h>
#include<stdio.h>

int main()
{
	char a[1001];
	while(scanf("%s",a)!=EOF){
		int i,j,max;
		for(i=0;i<strlen(a)-1;i++){
			if(a[i]=='C')
			break;
		}
		for(j=0;j<=strlen(a)-1;j++){
			if(a[j]=='F')
			max=j;
		}
		if(i<max)
		printf("Yes\n");
		else
		printf("No\n");
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: 'strlen' was not declared in this scope
    9 |                 for(i=0;i<strlen(a)-1;i++){
      |                           ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<stdio.h>
  +++ |+#include <cstring>
    2 | #include<stdio.h>
a.cc:13:28: error: 'strlen' was not declared in this scope
   13 |                 for(j=0;j<=strlen(a)-1;j++){
      |                            ^~~~~~
a.cc:13:28: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
Language: C++

#include <bits/stdc++.h>
using namespace std;
char a[14];
int main()
{
    cin>>a;
    if(a[0]==‘c’)
    return 0;
}

Compiler output:
a.cc:7:14: error: extended character ‘ is not valid in an identifier
    7 |     if(a[0]==‘c’)
      |              ^
a.cc:7:14: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:7:14: error: '\U00002018c\U00002019' was not declared in this scope
    7 |     if(a[0]==‘c’)
      |              ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    char a[101];
    bool flag[2]={0};
    cin>>a; 
    for(int i=0;i<len(a);i++){
        if(a[i]=='C') flag[0]=1;
        if(a[i]=='F'&&flag[0])  flag[1]=1;
    }
    if(flag[1]) return !printf("Yes");
    else return !printf("No");
}

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

#include<stdio.h>
#include<cstring>
int main()
{
	while(1)
	{
	
	char s[101];
	scanf("%s",s);
	int ans=0;
	for(int i=0;i<strlen(s);i++)
	{
		if(s[i]=='C')
		{
			int j=i;
			for(i=j;i<strlen(s);i++)
			{
				if(s[i]=='F')
				{
				ans=1;}
				
			}
			

		}	
	}
	
	if(ans==1)
		{
		printf("Yes\n");}
		else
					{
					printf("No\n");}
		
	}
	
	
	
	
	return 0;
}


Compiler output:
main.c:2:9: fatal error: cstring: No such file or directory
    2 | #include<cstring>
      |         ^~~~~~~~~
compilation terminated.
Language: C++

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

int main() {
  string s;
  cin >> s;
  
  int n = -1;
  for(int i = 0;i < s.size();i++){
    if(s.at(i)=='C'){
      n = i;
      break;
    }
  }
  
  int m = -1;
   for(int j = 0;j < s.size();j++){
    if(s.at(j)=='F'){
      m = i;
      break;
    }
  }
  
  if(n >= 0 && m >= 0 && n<m){
    cout << "Yes" << endl;
  }
  
  else{
    cout << "No" << endl;
  }
  
}

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

#include<iostream>
#include<fstream>
#include<algorithm>
#include<cstdio>
#include<cmath>
#include<string>
#include<csstring>
using namespace std;
string st;
bool a;
int main()
{
  cin>>st;
  for(int i=0;i<st.size();i++)
  {
    if(st[i]=='C')a=1;
    if(st[i]=='F')
    {
      if(a!=0)
      {
        cout<<"Yes"<<endl;
        return 0;
      }
    }
  }
  cout<<"No"<<endl;
  return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
string s;
int l;
int mian(){
    cin>>s;
    l=s.size();
    for(register int i=0;i<l;i++){
        if(s[i]=='C'){
            for(register int j=i+1;j<l;j++){
                if(s[j]=='F'){
                    cout<<"Yes";
                    return 0;
                }
            }
        }
    }
    cout<<"No";
    return 0;
}

Compiler output:
a.cc: In function 'int mian()':
a.cc:8:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    8 |     for(register int i=0;i<l;i++){
      |                      ^
a.cc:10:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   10 |             for(register int j=i+1;j<l;j++){
      |                              ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
	string a;
	int xx=0;
	int b;
	cin>>a;
	b=a.length();
	char s[200];
	for(int i=1;i<=b;i++)
	{
		s[i]=a[i-1];
	}
	for(int i=1;i<=n;i++)
	{
		if(s[i]=='C') xx=1;
		if(xx=1)
		{
			if(s[i]=='F')
			{
				cout<<"Yes"<<endl;
				return 0;
			 } 
		}
	}
	cout<<"No"<<endl;
	return 0;
}


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

#include<bits/stdc++.h>
#include<cstdio>
using namespace std;
typedef long long ll;
char a[1001];
bool flag;
signed main()
{
	gets(a);
	int len=strlen(a);
	for(int i=0;i<len;++i)
	{
		if(a[i]=='C')
		{
			flag=i;
			break;
		}
	}
	for(int i=flag;i<len;++i)
	{
		if(a[i]=='F')
		{
			printf("Yes\n");
			return 0;
		}
	}
	printf("No\n");
	return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
char a[1001];
bool flag;
signed main()
{
	gets(a);
	int len=strlen(a);
	for(int i=0;i<len;++i)
	{
		if(a[i]=='C')
		{
			flag=i;
			break;
		}
	}
	for(int i=flag;i<len;++i)
	{
		if(a[i]=='F')
		{
			printf("Yes\n");
			return 0;
		}
	}
	printf("No\n");
	return 0;
}

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

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

int main() {
	string S;
	cin >> S;
	for (int i = 0; i < S.size(); i++) {
		if (S[i] == 'C') {
			for (int j = i; j < S.size(); j++) {
				if (S[j]) == 'F'){
				printf("Yes");
				return 0;
				}
			}
		}
	}
	printf("No");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:43: error: expected primary-expression before '==' token
   11 |                                 if (S[j]) == 'F'){
      |                                           ^~
Language: C++

#include<cstdio>
//#include<algorithm>//for sort,lower_bound,upper_bound...
//#include<map>//for map and multimap
//#include<vector>//for vector and bvector
//#include<string>//for string,wstring,u16string and u32string
//#include<queue>//for queue,priority_queue and deque
//#include<iostream>//for cin,cout,cerr and clog
//#include<cstring>//for memset,memcpy,strlen,strcmp...
//#include<ctime>//for clock
//#include<cstdlib>//for rand,exit,free and malloc
//#include<cmath>//for abs,sqrt,floor,log...
using namespace std;
#define max(a,b) (a>b?a:b)
#define min(a,b) (a<b?a:b)
#define swap(a,b) do{typeof(a) t=a;a=b;b=t;}while(false);
#define fe(v,bg) for(v=head[bg];v;v=e[v].next)
#define INF 0x7fffffff
#define re register
#define us unsigned
//#define RW_FILE 1
typedef long long ll;
template<typename T>inline T read(){T res=0;bool f=true;char ch=getchar();while(ch<'0'||ch>'9'){if(ch=='-')f=false;ch=getchar();}while(ch>='0'&&ch<='9')res=(res<<1)+(res<<3)+(ch^48),ch=getchar();return f?res:-res;}
inline int readi(){return read<int>();}inline ll readll(){return read<ll>();}
template<typename T>inline void write(T x,char ed=32){int p=0,num[20];if(!x)putchar('0');else{if(x<0)putchar('-'),x=-x;for(;x;x/=10)num[p++]=x%10;for(;p;)putchar(num[--p]+48);}putchar(ed);}
template<typename T>inline void writeln(T x){write(x,'\n');}
const int MAXN=1e5+15;
int main(){
	string s;
	cin>>s;
	for(i=0;i<s.size();++i)
		if(s[i]=='C'){
			for(int j=i+1;j<s.size();++j)
				if(s[j]=='F'){
					cout<<"Yes\n";
					return 0;
				}
		}
	cout<<"No\n";
	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:28:9: error: 'string' was not declared in this scope
   28 |         string s;
      |         ^~~~~~
a.cc:2:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    1 | #include<cstdio>
  +++ |+#include <string>
    2 | //#include<algorithm>//for sort,lower_bound,upper_bound...
a.cc:29:9: error: 'cin' was not declared in this scope
   29 |         cin>>s;
      |         ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<cstdio>
  +++ |+#include <iostream>
    2 | //#include<algorithm>//for sort,lower_bound,upper_bound...
a.cc:29:14: error: 's' was not declared in this scope; did you mean 'us'?
   29 |         cin>>s;
      |              ^
      |              us
a.cc:30:13: error: 'i' was not declared in this scope
   30 |         for(i=0;i<s.size();++i)
      |             ^
a.cc:34:41: error: 'cout' was not declared in this scope
   34 |                                         cout<<"Yes\n";
      |                                         ^~~~
a.cc:34:41: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:38:9: error: 'cout' was not declared in this scope
   38 |         cout<<"No\n";
      |         ^~~~
a.cc:38:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<bits/stdc++.h>
using namespace std;
string s;
int l,n,m;
int main() {
	cin>>s;
	l=s.length();
	for(int i=0; i<l; i++) {
		if(s[i]=='C')n=1;
		else if(s[i]=='F')m=1;
	}
	if(m=1&&n=1)cout<<"Yes";
	else cout<<"No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: lvalue required as left operand of assignment
   12 |         if(m=1&&n=1)cout<<"Yes";
      |              ~^~~
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    int cIdx = -1;
    for (int i = 0; i < N; i++) {
      if (s.charAt(i) == 'C') {
        cIdx = i;
        break;
      }
    }
    if (cIdx == -1) {
      System.out.println("No");
      return;
    }
    for (int i = cIdx; i < N; i++) {
      if (s.charAt(i) == 'F') {
        System.out.println("Yes");
        return;
      }
    }
    System.out.println("No");
  }
}

Compiler output:
Main.java:8: error: cannot find symbol
    for (int i = 0; i < N; i++) {
                        ^
  symbol:   variable N
  location: class Main
Main.java:18: error: cannot find symbol
    for (int i = cIdx; i < N; i++) {
                           ^
  symbol:   variable N
  location: class Main
2 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;//qwq
int main(){
    string a;
    bool v[2]={0};//hhh
    cin>>a;//readin
    for(int i=0;i<a.length();i++){see all
        if(a[i]=='C') v[0]=1;//discover c
        if(a[i]=='F'&&v[0])  v[1]=1;//discover f
    }
    if(v[1]) cout<<"Yes";//yes,you can
    else cout<<"No";//no,you can't 
    return 0;
}

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

#include<iostream>
#include<cstring>
using namespace std;
int main(){
    string a;
    bool f=0;
    cin>>a;
    for(int i=0;i<a.size();i++){
        if(a[i]=='C') f=1; 
        if(a[i]=='F'&&f){
            cout<<"Yes"<<endl;
            return 0;
        }
        }
    }
    cout<<"No"<<endl;
    return 0;
}

Compiler output:
a.cc:16:5: error: 'cout' does not name a type
   16 |     cout<<"No"<<endl;
      |     ^~~~
a.cc:17:5: error: expected unqualified-id before 'return'
   17 |     return 0;
      |     ^~~~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

#include<iostream>
#include<cstring>
using namespace std;
int main(){
    string a;
    bool v[2]={0};
    cin>>a;
    for(int i=0;i<a.size();i++){
        if(a[i]=='C') v[0]=1; 
        if(a[i]=='F'&&v[0]){
            cout<<"Yes"<<endl;
            return 0;
        }
        }
    }
    cout<<"No"<<endl;
    return 0;
}

Compiler output:
a.cc:16:5: error: 'cout' does not name a type
   16 |     cout<<"No"<<endl;
      |     ^~~~
a.cc:17:5: error: expected unqualified-id before 'return'
   17 |     return 0;
      |     ^~~~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

#include<bits/std/c++.h>
using namespace std;
int main()
{
	int kkk;
	sting s;
	cin>>s;
    kkk=s.size();
    for(register int i=0;i<kkk;i++){
        if(s[i]=='C')
        {
            for(register int j=i+1;j<kkk;j++)
            {
                if(s[j]=='F')
                {
                    cout<<"Yes";
                    return 0;
                }
            }
        }
    }
    cout<<"No";
    return 0;
}

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

#include <stdio.h>
#include <stdio.h>
#include <iostream>
int main()
{#include <stdio.h>
int main()
{
	int a;
    char n[105];
	scanf("%c",&n);
	for (int i=0;i<=n;i++)
	{
		if(n[i]=='C')
		{
            a=1;
        }
        if(n[i]=='F'&&a==1) printf("Yes/n");
		return 0;
	}
	printf("No/n");
	return 0;
}

Compiler output:
a.cc:5:2: error: stray '#' in program
    5 | {#include <stdio.h>
      |  ^
a.cc: In function 'int main()':
a.cc:5:3: error: 'include' was not declared in this scope
    5 | {#include <stdio.h>
      |   ^~~~~~~
a.cc:5:12: error: 'stdio' was not declared in this scope; did you mean 'stdin'?
    5 | {#include <stdio.h>
      |            ^~~~~
      |            stdin
a.cc:6:1: error: expected primary-expression before 'int'
    6 | int main()
      | ^~~
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {#include <stdio.h>
      | ^
Language: C++

#include <stdio.h>
#include <stdio.h>
#include <iostream>
int main()
{
	int a;
    char n[105];
	scanf("%s",&n);
	for (int i=0;i<n;i++)
	{
		if(n[i]=='C')
		{
            a=1;
        }
        if(n[i]=='F'&&a==1) printf("Yes/n");
		return 0;
	}
	printf("No/n");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         for (int i=0;i<n;i++)
      |                      ~^~
Language: C++

#include <stdio.h>
#include <iostream>
int main()
{
	int a;
	string n;
	scanf("%c",&n);
	for (int i=0;i<n.size();i++)
	{
		if(n[i]=='C')
		{
            a=1;
        }
        if(n[i]=='F'&&a==1) printf("Yes/n");
		return 0;
	}
	printf("No/n");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'string' was not declared in this scope
    6 |         string n;
      |         ^~~~~~
a.cc:6:9: 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:2:
/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:7:21: error: 'n' was not declared in this scope
    7 |         scanf("%c",&n);
      |                     ^
Language: C++

#include <stdio.h>
int main()
{
	int a;
	string n;
	scanf("%s",&n);
	for (int i=0;i<n.size();i++)
	{
		if(a[i]=='C')
		{
            a=1;
        }
        if(a[i]=='F'&&a==1) printf("Yes/n");
		return 0;
	}
	printf("No/n");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'string' was not declared in this scope; did you mean 'stdin'?
    5 |         string n;
      |         ^~~~~~
      |         stdin
a.cc:6:21: error: 'n' was not declared in this scope
    6 |         scanf("%s",&n);
      |                     ^
a.cc:9:21: error: invalid types 'int[int]' for array subscript
    9 |                 if(a[i]=='C')
      |                     ^
a.cc:13:13: error: invalid types 'int[int]' for array subscript
   13 |         if(a[i]=='F'&&a==1) printf("Yes/n");
      |             ^
Language: C++

#include <stdio.h>
int main()
{
	int a;
	string n;
	scanf("%s",&n);
	for (i=0;i<n.size();i++)
	{
		if(a[i]=='C')
		{
            a=1;
        }
        if(a[i]=='F'&&a==1) printf("Yes/n");
		return 0;
	}
	printf("No/n");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'string' was not declared in this scope; did you mean 'stdin'?
    5 |         string n;
      |         ^~~~~~
      |         stdin
a.cc:6:21: error: 'n' was not declared in this scope
    6 |         scanf("%s",&n);
      |                     ^
a.cc:7:14: error: 'i' was not declared in this scope
    7 |         for (i=0;i<n.size();i++)
      |              ^
Language: C++

#include <stdio.h>
int main()
{
	int a;
	string n;
	scanf("%s",&n);
	for (i=0;i<n;i++)
	{
		if(a[i]=='C')
		{
            a=1;
        }
        if(a[i]=='F'&&a==1) printf("Yes/n");
		return 0;
	}
	printf("No/n");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'string' was not declared in this scope; did you mean 'stdin'?
    5 |         string n;
      |         ^~~~~~
      |         stdin
a.cc:6:21: error: 'n' was not declared in this scope
    6 |         scanf("%s",&n);
      |                     ^
a.cc:7:14: error: 'i' was not declared in this scope
    7 |         for (i=0;i<n;i++)
      |              ^
Language: C++

#include <stdio.h>
int main()
{
	string n;
	scanf("%s",&n);
	for (int i=0;i<n.size();i++)
	{
		if (n[i]=='C'&&'F') printf("Yes/n");
		return 0;
	}
	printf("No/n");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'string' was not declared in this scope; did you mean 'stdin'?
    4 |         string n;
      |         ^~~~~~
      |         stdin
a.cc:5:21: error: 'n' was not declared in this scope
    5 |         scanf("%s",&n);
      |                     ^
Language: C++

#include <stdio.h>
int main()
{
	string n;
	scanf("%s",&n);
	for (i=0;i<n.size();i++)
	{
		if (n[i]=='C'&&'F') printf("Yes/n");
		return 0;
	}
	printf("No/n");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'string' was not declared in this scope; did you mean 'stdin'?
    4 |         string n;
      |         ^~~~~~
      |         stdin
a.cc:5:21: error: 'n' was not declared in this scope
    5 |         scanf("%s",&n);
      |                     ^
a.cc:6:14: error: 'i' was not declared in this scope
    6 |         for (i=0;i<n.size();i++)
      |              ^
Language: C++

#include <stdio.h>
int main()
{
	string n;
	scanf("%s",&n);
	for (i=0;i<n;i++)
	{
		if (n[i]=='C'&&'F') printf("Yes/n");
		return 0;
	}
	printf("No/n");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'string' was not declared in this scope; did you mean 'stdin'?
    4 |         string n;
      |         ^~~~~~
      |         stdin
a.cc:5:21: error: 'n' was not declared in this scope
    5 |         scanf("%s",&n);
      |                     ^
a.cc:6:14: error: 'i' was not declared in this scope
    6 |         for (i=0;i<n;i++)
      |              ^