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

#include <bits/stdc++.h>
using namesapce std;
int main(){
    char a;
    a=getchar();
    while(a>='A'&&a<='Z'){
        if(a=='C')cnt++;
        if(cnt==1&&a=='F'){
            cout<<"Yes";
            return 0;
        }
        a=getchar();
    }
    cout<<"No";
    return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:19: error: 'cnt' was not declared in this scope; did you mean 'int'?
    7 |         if(a=='C')cnt++;
      |                   ^~~
      |                   int
a.cc:8:12: error: 'cnt' was not declared in this scope; did you mean 'int'?
    8 |         if(cnt==1&&a=='F'){
      |            ^~~
      |            int
a.cc:9:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |             cout<<"Yes";
      |             ^~~~
      |             std::cout
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:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |     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 namesapce std;
int main(){
    char a;
    while(a=getchar()){
        if(a=='C')cnt++;
        if(cnt==1&&a=='F'){
            cout<<"Yes";
            return 0;
        }
    }
    cout<<"No";
    return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:19: error: 'cnt' was not declared in this scope; did you mean 'int'?
    6 |         if(a=='C')cnt++;
      |                   ^~~
      |                   int
a.cc:7:12: error: 'cnt' was not declared in this scope; did you mean 'int'?
    7 |         if(cnt==1&&a=='F'){
      |            ^~~
      |            int
a.cc:8:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |             cout<<"Yes";
      |             ^~~~
      |             std::cout
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:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     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++

// luogu-judger-enable-o2
#include<cstring>
using namespace std;
int main()
{
    char a[9999];
    cin>>a;
    int flagc=0;
    for(int i=0;i<=strlen(a)-1;i++){
        if(a[i]=='C'){
            flagc=1;
        }
        if(flagc && a[i]=='F'){
            cout<<"YES";
            return 0;
        }
    }
    cout<<"NO";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin>>a;
      |     ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<cstring>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:14:13: error: 'cout' was not declared in this scope
   14 |             cout<<"YES";
      |             ^~~~
a.cc:14:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:5: error: 'cout' was not declared in this scope
   18 |     cout<<"NO";
      |     ^~~~
a.cc:18:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<iostream>
using namespace std;
int main()
{
    char a[99999];
    cin>>a;
    for(int i=0;i<=strlen.a-1;i++){
        if(a[i]=='C'){
            flagc=1;
        }
        if(flagc && a[i]=='F'){
            cout<<"YES";
            return 0;
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: 'strlen' was not declared in this scope
    7 |     for(int 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<iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
a.cc:9:13: error: 'flagc' was not declared in this scope
    9 |             flagc=1;
      |             ^~~~~
a.cc:11:12: error: 'flagc' was not declared in this scope
   11 |         if(flagc && a[i]=='F'){
      |            ^~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

string s;
int len;

int main(){
	gets(s);
	len = s.size ();
	for (int i = 0; i < len ; ++ i){
		if (s [i] == 'C'){
			for (int j = i; j < len; ++ j){
				if (s [j] == 'F')
				cout << "Yes";
				return 0;
			}
		}
	}
	cout << "No"; 
	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(s);
      |         ^~~~
      |         getw
Language: C++

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

    return 0;


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

#include<bits/stdc++.h>
using namespace std;
char a[10001];
bool f=false;
int main(){
	cin>>a;
	int l=strlen(a);
	for(int i=0;i<=l-1;i++){
		if(a[i]=="C"){
			for(int j=i;j<=l1;j++){
				if(a[j]=="F")f=true;
			}
		}
	}
	if(f==true)cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |                 if(a[i]=="C"){
      |                    ~~~~^~~~~
a.cc:10:40: error: 'l1' was not declared in this scope; did you mean 'l'?
   10 |                         for(int j=i;j<=l1;j++){
      |                                        ^~
      |                                        l
a.cc:11:40: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |                                 if(a[j]=="F")f=true;
      |                                    ~~~~^~~~~
Language: C++

#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstring>
#define Js for(int i=0;i<Len;i++) {
#define is if(c[i]=='C) p=1;
#define a if(C[i]=='F' && p==1) q=1;}
#define sha if(p&&q) cout<<"Yes\n"<<endl; else cout<<"No\n";
#define bi return 0;}
using namespace std;
char c[105];
int main() {
    scanf("%s",c);
    int p=0,q=0;
    int Len=strlen(c);
    Js is a sha bi

Compiler output:
a.cc:6:21: warning: missing terminating ' character
    6 | #define is if(c[i]=='C) p=1;
      |                     ^
a.cc:6:21: error: missing terminating ' character
    6 | #define is if(c[i]=='C) p=1;
      |                     ^~~~~~~~
a.cc:16:8: note: in expansion of macro 'is'
   16 |     Js is a sha bi
      |        ^~
a.cc: In function 'int main()':
a.cc:7:11: error: expected primary-expression before 'if'
    7 | #define a if(C[i]=='F' && p==1) q=1;}
      |           ^~
a.cc:16:11: note: in expansion of macro 'a'
   16 |     Js is a sha bi
      |           ^
a.cc:7:37: error: expected primary-expression before '}' token
    7 | #define a if(C[i]=='F' && p==1) q=1;}
      |                                     ^
a.cc:16:11: note: in expansion of macro 'a'
   16 |     Js is a sha bi
      |           ^
a.cc:7:37: error: expected ')' before '}' token
    7 | #define a if(C[i]=='F' && p==1) q=1;}
      |                                     ^
a.cc:16:11: note: in expansion of macro 'a'
   16 |     Js is a sha bi
      |           ^
a.cc:6:14: note: to match this '('
    6 | #define is if(c[i]=='C) p=1;
      |              ^
a.cc:16:8: note: in expansion of macro 'is'
   16 |     Js is a sha bi
      |        ^~
a.cc:7:37: error: expected primary-expression before '}' token
    7 | #define a if(C[i]=='F' && p==1) q=1;}
      |                                     ^
a.cc:16:11: note: in expansion of macro 'a'
   16 |     Js is a sha bi
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
char a[50000];
bool c,f;
int main(){
	gets(a);
	for(i=0;i<strlen(a);i++){
		if(a[i]=='C')c=1;
		if(a[i]=='F'&&c==1)f=1;
	}
	if(c==1&&f==1)cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    6 |         gets(a);
      |         ^~~~
      |         getw
a.cc:7:13: error: 'i' was not declared in this scope
    7 |         for(i=0;i<strlen(a);i++){
      |             ^
Language: C++

#include<iostream>
#include<cstdio>
#include<cstring>
using namespace std;
char[105],flag;
int main()
{
	cin>>a;
	flag=0;
	for(int i=0;i<strlen(a);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:5:6: error: expected identifier before numeric constant
    5 | char[105],flag;
      |      ^~~
a.cc:5:6: error: expected ']' before numeric constant
    5 | char[105],flag;
      |      ^~~
      |      ]
a.cc:5:5: error: structured binding declaration cannot have type 'char'
    5 | char[105],flag;
      |     ^
a.cc:5:5: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:5:5: error: empty structured binding declaration
a.cc:5:10: error: expected initializer before ',' token
    5 | char[105],flag;
      |          ^
a.cc: In function 'int main()':
a.cc:8:14: error: 'a' was not declared in this scope
    8 |         cin>>a;
      |              ^
a.cc:9:9: error: 'flag' was not declared in this scope
    9 |         flag=0;
      |         ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int i,j;string s;bool b1=0,b2=0;
int main(){
	cin>>s;
	while(i<=s.length()){
		i++;
		if(s[i]=='C'){
			b1=1,j=i;
			while(j<=s.length()){
				if(s[j]=='F')b2=1;
				j++
			}
		}
	}if(b1&&b2)cout<<"YES";
	else cout<<"NO";
	return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
char s[105];
void work()
{
    int c=1;
    for(int i=0;i<strlen(s);++i)
    {
        if(s[i]=='C'&&c==1)
            c=0;
        if(s[i]=='F'&&c==0)
        {
            printf("Yes\n");
            return 0;
        }
    }
    printf("No\n");
}

int main()
{
    scanf("%s",s);
    work();
}

Compiler output:
a.cc: In function 'void work()':
a.cc:14:20: error: return-statement with a value, in function returning 'void' [-fpermissive]
   14 |             return 0;
      |                    ^
Language: C++

// luogu-judger-enable-o2
#include<bits/stdc++.h>
using namespace std;
char s[105];
void work()
{
    int c=1;
    for(int i=0;i<strlen(s);++i)
    {
        if(s[i]=='C'&&c==1)
            c=0;
        if(s[i]=='F'&&c==0)
        {
            printf("Yes\n");
            return 0;
        }
    }
    printf("No\n");
}

int main()
{
    scanf("%s",s);
    work();
}

Compiler output:
a.cc: In function 'void work()':
a.cc:15:20: error: return-statement with a value, in function returning 'void' [-fpermissive]
   15 |             return 0;
      |                    ^
Language: C++

#include <iostream>
#include <cstdio>
#include <string>
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;

char s[105];

void in()
{
    scanf("%s",s);
}

void work()
{
    int c=1;
    for(int i=0;i<strlen(s);++i)
    {
        if(s[i]=='C'&&c==1)
        {
            c=0;
        }
        if(s[i]=='F'&&c==0)
        {
            printf("Yes"\n);
            exit(0);
        }
    }
    printf("No"\n);
}

int main()
{
    in();
    work();
    return 0;
 } 


Compiler output:
a.cc:22:25: error: stray '\' in program
   22 |             printf("Yes"\n);
      |                         ^
a.cc:26:16: error: stray '\' in program
   26 |     printf("No"\n);
      |                ^
a.cc: In function 'void work()':
a.cc:22:25: error: expected ')' before 'n'
   22 |             printf("Yes"\n);
      |                   ~     ^~
      |                         )
a.cc:26:16: error: expected ')' before 'n'
   26 |     printf("No"\n);
      |           ~    ^~
      |                )
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<bits/stdc++.h>
#include<cmath>
#include<bitset>
#define ll long long
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define FFOR(i,a,b) for(int i=(a);i<=(b);++i)
#define REP(i,n)  FOR(i,0,n)
#define RREP(i,n)  FFOR(i,0,n)
#define SORT(V) sort((V).begin(),(V).end())
#define INF ((1LL<<62)-(1LL<<31))
#define MOD 1000000007
using namespace std;

int main(){
  string S;
  cin>>S;
  
  bool CAN=false;
  for(int i=0; i<S.size()-1; ++i){
    for(int j=i+1; j<S.size(); ++j){
      if(S.at(i)=="C" && S.at(j)=="F") CAN=true;
    }
  }
  
  if(CAN) cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   25 |       if(S.at(i)=="C" && S.at(j)=="F") CAN=true;
      |          ~~~~~~~^~~~~
a.cc:25:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   25 |       if(S.at(i)=="C" && S.at(j)=="F") CAN=true;
      |                          ~~~~~~~^~~~~
Language: C++

#include<iostream>
#include<cstring>
using namespace std;
char a[1000001],f[1000001],c[7],b=1,ans,h,d;
int main()
{
	gets(a);
	for(int i=0;i<strlen(a);i++)
	{
		if(h==0&&a[i]=='C')
		{
			h++;
			d++;
		}
		else if(h==1&&a[i]=='F') 
		{
			cout<<"Yes" ;
			d++;
		}
			
	}
	if(d!=2) cout<<"No";
	return 0;
}

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

#include<iostream>
#include<cstring>
using namespace std;
char a[1000001],f[1000001],c[7],b=1,ans,h,d;
int main()
{
	gets(a);
	for(int i=1;i<strlen(a);i++)
	{
		if(h==0&&a[i]=='C')
		{
			h++;
			d++;
		}
		else if(h==1&&a[i]=='F') 
		{
			cout<<"Yes" ;
			d++;
		}
			
	}
	if(d!=2) cout<<"No";
	return 0;
}

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

#include<iostream>
#include<cstring>
using namespace std;
char s[202];
int n;
bool flag=0;
int main(){
    cin>>s;
    n=strlen(s)-1;
    for(int i=0;i<=n;i++){
        if(s[i]=="C")flag=1;
        if(flag&&s[i]=="F"){
            cout<<"Yes";
            return 0;
        }
    }
    cout<<"No";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         if(s[i]=="C")flag=1;
      |            ~~~~^~~~~
a.cc:12:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |         if(flag&&s[i]=="F"){
      |                  ~~~~^~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

char s[1000000];

int main() {
    cin >> s;
    int len = strlen(s), flag = 0;
    for (int i = 0; i < len; ++i)
    if (s[i] == 'C' && !flag) flag = 1;
    else if (s[i] == 'F' && flag = 1) flag = 2;
    if (flag == 2) puts("Yes");
    else puts("No");
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:26: error: lvalue required as left operand of assignment
   12 |     else if (s[i] == 'F' && flag = 1) flag = 2;
      |              ~~~~~~~~~~~~^~~~~~~
Language: C++

#include<iostream>
#include<cstring>
#include<string>
int main()
{
    string s;
    char c='C',f='F';
    int loc1=12321,loc2=-1;
    for(int i=0;i,s.size();i++)
        if(s[i]=='C')
        {
            loc1=i;
            break;
        }
    for(int i=s.size()-1;i>=0;i--)
        if(s[i]=='F')
        {
            loc2=i;
            break;
        }
    if(loc2>loc1)
        cout<<"Yes\n";
    else 
        cout<<"no\n";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'string' was not declared in this scope
    6 |     string s;
      |     ^~~~~~
a.cc:6:5: 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:9:19: error: 's' was not declared in this scope
    9 |     for(int i=0;i,s.size();i++)
      |                   ^
a.cc:15:15: error: 's' was not declared in this scope
   15 |     for(int i=s.size()-1;i>=0;i--)
      |               ^
a.cc:22:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   22 |         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:24:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   24 |         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 <cstdio>
#include <iostream>
using namespace std;

string a;
int main() {
    cin >> a;
    int len = a.size();
    for(int i = 0; i < len; ++i) {
        if(a[i] == 'C') {
            for(int j = i + 1; j < len; ++j)
                if(a[j] == 'F') {
                    puts("YES");
                    return 0;
                }
            }
        }
    }
    puts("NO");
    return 0;
}

Compiler output:
a.cc:19:9: error: expected constructor, destructor, or type conversion before '(' token
   19 |     puts("NO");
      |         ^
a.cc:20:5: error: expected unqualified-id before 'return'
   20 |     return 0;
      |     ^~~~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
    string a;
    cin>>a;
    j=k=0;
    for(int i=0;i<a.size();i++)
    {
        if(a[i]=='C') 
        {
            for(int j=i+1;j<a.size();j++) 
            if(a[j]=='F') 
            {
                cout<<"Yes"<<'\n';
                goto hre;
            }
        }
        
    }
    cout<<"No"<<'\n';
    hre:;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'j' was not declared in this scope
    7 |     j=k=0;
      |     ^
a.cc:7:7: error: 'k' was not declared in this scope
    7 |     j=k=0;
      |       ^
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(v[1]) cout<<"Yes";
    else cout<<"No"； 
    return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: 'a' was not declared in this scope
    8 |                 if (a[i] == 'C') flag[1] = 1;
      |                     ^
a.cc:9:20: error: 'a' was not declared in this scope
    9 |                 if(a[i]=='F' && flag[0] == 1)  flag[2] = 1;
      |                    ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'qwq' was not declared in this scope
    9 |     qwq++;
      |     ^~~
Language: C++

#include<iostream>
#include<cstdio>
#include<string>
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:11:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   11 |     for(register int i=0;i<l;i++){
      |                      ^
a.cc:13:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   13 |             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 namspace std;
char s[10000001];
int main()
{
    gets(s);
    for(int i=0;i<n;i++)
    {
        if(s[i]=='C'){
            for(int j=i;j<n;j++)
{
if(s[j]=='F'){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: In function 'int main()':
a.cc:6:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    6 |     gets(s);
      |     ^~~~
      |     getw
a.cc:7:19: error: 'n' was not declared in this scope
    7 |     for(int i=0;i<n;i++)
      |                   ^
a.cc:12:15: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 | if(s[j]=='F'){cout<<"Yes";return 0;}
      |               ^~~~
      |               std::cout
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:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:1: 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;
string b;
int main(){
    int q=0;
    cin>>b;
    for(int i=0;i<b.size();i++){
        if(b[i]=='C')
    qwq++;
    if(q!=0&&b[i]=='F')
    q-=10000000000;/
    }
    if(q<0)
    cout<<"Yes";
    else
    cout<<"No";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'qwq' was not declared in this scope
    9 |     qwq++;
      |     ^~~
a.cc:11:20: error: expected primary-expression before '/' token
   11 |     q-=10000000000;/
      |                    ^
a.cc:12:5: error: expected primary-expression before '}' token
   12 |     }
      |     ^
Language: C++

#include<iostream>
#include<cstdio>
#include<cstring>
using namespace std;
string b;
int main(){
    int q=0;
    cin>>b;
    for(int i=0;i<b.size();i++){
        if(b[i]=='C')
    qwq++;
    if(q!=0&&b[i]=='F')
    q-=10000000000;/
    }
    if(q<0)
    cout<<"Yes";
    else
    cout<<"No";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'qwq' was not declared in this scope
   11 |     qwq++;
      |     ^~~
a.cc:13:20: error: expected primary-expression before '/' token
   13 |     q-=10000000000;/
      |                    ^
a.cc:14:5: error: expected primary-expression before '}' token
   14 |     }
      |     ^
Language: C++

#include<cstdio> 
#include<iostream>
using namespace std;
char a[1000];
int main()
{
	bool x=0;
	gets(a);
	int n=strlen(a);
	for(int i=0;i<n;++i)
	{
		if(a[i]=='C')
		x=1;
		if(x==1&&a[i]=='F')
		{
			cout<<"Yes";
			return 0;
		}
	}
	cout<<"No";
	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
a.cc:9:15: error: 'strlen' was not declared in this scope
    9 |         int n=strlen(a);
      |               ^~~~~~
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 | using namespace std;
Language: C++

#include<cstdio> 
#include<iostream>
using namespace std;
char a[1000];
int main()
{
	bool x=0;
	gets(a);
	int n=strlen(a);
	for(int i=0;i<n;++i)
	{
		if(a[i]=='C')
		x=1;
		if(x==1&&a[i]=='F')
		{
			cout<<"Yes";
			return 0;
		}
	}
	cout<<"No";
	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
a.cc:9:15: error: 'strlen' was not declared in this scope
    9 |         int n=strlen(a);
      |               ^~~~~~
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 | using namespace std;
Language: C++

#include<cstdio> 
#include<iostream>
using namespace std;
char a[1000];
int main()
{
	bool x=0;
	gets(a);
	int n=strlen(a);
	for(int i=0;i<n;++i)
	{
		if(a[i]=='C')
		x=1;
		if(x==1&&a[i]=='F')
		{
			cout<<"Yes"<<endl;
			return 0;
		}
	}
	cout<<"No";
	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
a.cc:9:15: error: 'strlen' was not declared in this scope
    9 |         int n=strlen(a);
      |               ^~~~~~
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 | using namespace std;
Language: C++

#include<cstdio> 
#include<iostream>
using namespace std;
char a[1000];
int main()
{
	bool x=0;
	gets(a);
	int n=strlen(a);
	for(int i=0;i<n;++i)
	{
		if(a[i]=='C')
		x=1;
		if(x==1&&a[i]=='F')
		{
			cout<<"Yes"<<endl;
			return 0;
		}
	}
	cout<<"No"<<endl;
	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
a.cc:9:15: error: 'strlen' was not declared in this scope
    9 |         int n=strlen(a);
      |               ^~~~~~
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 | using namespace std;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int A,B,C,D,E;
  string S;
  cin >> S;
  if(S.find("C")==string::npos||S.find("F")==string::npos)cout<<"No"<<endl;
  else{
    if(S.find("C")>S.find("F")){
      if(S.find("CF")!=string::npos)cout << "Yes"<<endl;
      else cout <<"No"<<endl;
    else cout <<"Yes"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: expected '}' before 'else'
   12 |     else cout <<"Yes"<<endl;
      |     ^~~~
a.cc:9:32: note: to match this '{'
    9 |     if(S.find("C")>S.find("F")){
      |                                ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int A,B,C,D,E;
  string S;
  cin >> S;
  if(S.find("C")==string::npos||S.find("F")==string::npos)cout<<"No"<<endl;
  else{
    if(S.find("C")>S.find("F"))cout <<"No"<<endl;
    else cout <<"Yes"<<endl;
}


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

#include<cstring>
#include<iostream>
using namespace std;
int main()
{
    int le,f=0;
    char c[101];
    le=strlen(c)
    for(int i=0;i<le;i++)
    {
        if(c[i]=='C'&&f==0)
        f=i;
        if(c[i]=='F'&&f!=0)
        {
            cout<<"YES";
            return 0;
        }
    }
    cout<<"NO";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: expected ';' before 'for'
    8 |     le=strlen(c)
      |                 ^
      |                 ;
    9 |     for(int i=0;i<le;i++)
      |     ~~~          
a.cc:9:17: error: 'i' was not declared in this scope
    9 |     for(int i=0;i<le;i++)
      |                 ^
Language: C++

#include<cstring>
#include<iostream>
using namespace std;
int main()
{
    int le,f=0;
    char c[101];
    le=strlen(c)
    for(int i=0;i>le;i++)
    {
        if(c[i]=='C'&&f==0)
        f=i;
        if(c[i]=='F'&&f!=0)
        {
            cout<<"YES";
            return 0;
        }
    }
    cout<<"NO";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: expected ';' before 'for'
    8 |     le=strlen(c)
      |                 ^
      |                 ;
    9 |     for(int i=0;i>le;i++)
      |     ~~~          
a.cc:9:17: error: 'i' was not declared in this scope
    9 |     for(int i=0;i>le;i++)
      |                 ^
Language: C++

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


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

#include<bits/stdc++.h>
char n[10010];
bool c,f;
int main() 
{
    cin>>n;
    for(int i=0; i<strlen(n); i++) 
    {
        if(n[i]=='C') 
            c=true;
        if(n[i]=='F'&&c==true) 
            f=true; 
    }
    if(f==true) 
        cout<<"Yes\n";
    else 
        cout<<"No\n";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin>>n;
      |     ^~~
      |     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:15:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |         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:17:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |         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>
using namespace std;
string s;
long long flag=0;
int main()
{
	cin>>s;
	for(int i=0;i<=size()-1;i++)
	{
		if(flag==0&&s[i]=='C')
		{
			flag=1;
		}
		if(flag==1&&s[i]=='F')
		{
			cout<<"Yes";
			return 0;
		}
	}
	cout<<"No";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:28: error: no matching function for call to 'size()'
    8 |         for(int i=0;i<=size()-1;i++)
      |                        ~~~~^~
In file included from /usr/include/c++/14/string:53,
                 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,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/range_access.h:262:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
  262 |     size(const _Container& __cont) noexcept(noexcept(__cont.size()))
      |     ^~~~
/usr/include/c++/14/bits/range_access.h:262:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:272:5: note: candidate: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
  272 |     size(const _Tp (&)[_Nm]) noexcept
      |     ^~~~
/usr/include/c++/14/bits/range_access.h:272:5: note:   candidate expects 1 argument, 0 provided
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
    8 |     for(int i=1;i<=strlen(s);i++)
      |                           ^
      |                           |
      |                           std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
Language: C

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

int str_chnum(const char s[], int c ,int a) {
	int i;
	int sum = 0;
	for (i = 0; s[i] != '\0'; i++) {
		if (s[i] == c ) 
		for(j = 0; s[j] != '\0'; j++){
			if(s[j] == a)
			printf("Yes");
		}
	}
	else 
	printf("No");
	
	
}
strcmp
int main() {
	char str[101];

	scanf("%s", str);

	 str_chnum(str, 'c', 'a'));
	return 0;
}

Compiler output:
main.c: In function 'str_chnum':
main.c:9:21: error: 'j' undeclared (first use in this function)
    9 |                 for(j = 0; s[j] != '\0'; j++){
      |                     ^
main.c:9:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:9: error: 'else' without a previous 'if'
   14 |         else
      |         ^~~~
main.c: At top level:
main.c:19:7: error: expected ';' before 'int'
   19 | strcmp
      |       ^
      |       ;
   20 | int main() {
      | ~~~    
main.c: In function 'main':
main.c:25:34: error: expected ';' before ')' token
   25 |          str_chnum(str, 'c', 'a'));
      |                                  ^
      |                                  ;
main.c:25:34: error: expected statement before ')' token
Language: C

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

int str_chnum(const char s[], int c ,int a) {
	int i;
	int sum = 0;
	for (i = 0; s[i] != '\0'; i++) {
		if (s[i] == c ) 
			if(s[j] == a)
			printf("Yes");
	}
	else 
	printf("No");
	
	
}
strcmp
int main() {
	char str[101];

	scanf("%s", str);

	 str_chnum(str, 'c', 'a'));
	return 0;
}

Compiler output:
main.c: In function 'str_chnum':
main.c:9:30: error: 'j' undeclared (first use in this function)
    9 |                         if(s[j] == a)
      |                              ^
main.c:9:30: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:9: error: 'else' without a previous 'if'
   12 |         else
      |         ^~~~
main.c: At top level:
main.c:17:7: error: expected ';' before 'int'
   17 | strcmp
      |       ^
      |       ;
   18 | int main() {
      | ~~~    
main.c: In function 'main':
main.c:23:34: error: expected ';' before ')' token
   23 |          str_chnum(str, 'c', 'a'));
      |                                  ^
      |                                  ;
main.c:23:34: error: expected statement before ')' token
Language: C++

 #include<bits/stdc++.h>
using namespace std;
string b;
int q=0;
cin>>b;
for (int i=0;i<b.size();i++){
    if(b[i]=='c')
    qwq++;
    if(q1=0 && B[I]=='f')
    q-=100000000000;
}
if(q<0)
cout<<"yes";
else 
cout<<"no";
return 0;
}

Compiler output:
a.cc:5:1: error: 'cin' does not name a type
    5 | cin>>b;
      | ^~~
a.cc:6:1: error: expected unqualified-id before 'for'
    6 | for (int i=0;i<b.size();i++){
      | ^~~
a.cc:6:14: error: 'i' does not name a type
    6 | for (int i=0;i<b.size();i++){
      |              ^
a.cc:6:25: error: 'i' does not name a type
    6 | for (int i=0;i<b.size();i++){
      |                         ^
a.cc:12:1: error: expected unqualified-id before 'if'
   12 | if(q<0)
      | ^~
a.cc:14:1: error: expected unqualified-id before 'else'
   14 | else
      | ^~~~
a.cc:16:1: error: expected unqualified-id before 'return'
   16 | return 0;
      | ^~~~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

#include<bits/stdc++.h>
#pragma GCC optimize("O999")
using namespace std;
int main()
{
 	ios::sync_with_stdio(0);
 	int f=0,ff=0;
	string s;
	getline(cin,s);
	for(int i=0;i<s.size;i++)
	{
		if(s[i]=='C')
		f=1;
		
		if(f==1&&s[i]=='F')
		ff=1;
	 } 
	if(ff==1)
	cout<<"Yes";
	else
	cout<<"No";
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10: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 '()' ?)
   10 |         for(int i=0;i<s.size;i++)
      |                       ~~^~~~
      |                             ()
Language: C++

#include<bits/stdc++.h>
#pragma GCC optimize("O999")
using namespace std;
int main()
{
 	ios::sync_with_stdio(0);
 	int f=0,ff=0;
	string s;
	getline(cin,s);
	for(int i=0;i<n;i++)
	{
		if(s[i]=='C')
		f=1;
		
		if(f==1&&s[i]=='F')
		ff=1;
	 } 
	if(ff==1)
	cout<<"Yes";
	else
	cout<<"No";
	return 0;
}


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

program hrn;
 var
  s:string;
  i,l,sc,sf:longint; 
   //l表示字符串长度; sc,sf分别表示第一个C的坐标和最后一个F的坐标.
 begin
  read(s);
  l:=length(s);sc:=maxlongint; //sc一定要赋值为maxlongint！
  for i:=1 to l do if s[i]='F'then sf:=i; //寻找最后一个F
  for i:=l downto 1 do if s[i]='C'then sc:=i;//寻找第一个C
  if sc<sf then writeln('Yes')
           else writeln('No');  //注意输出格式
 end.

Compiler output:
a.cc:11:25: warning: multi-character character constant [-Wmultichar]
   11 |   if sc<sf then writeln('Yes')
      |                         ^~~~~
a.cc:12:25: warning: multi-character character constant [-Wmultichar]
   12 |            else writeln('No');  //注意输出格式
      |                         ^~~~
a.cc:1:1: error: 'program' does not name a type
    1 | program hrn;
      | ^~~~~~~
a.cc:2:2: error: 'var' does not name a type
    2 |  var
      |  ^~~
a.cc:4:3: error: 'i' does not name a type
    4 |   i,l,sc,sf:longint;
      |   ^
a.cc:6:2: error: 'begin' does not name a type
    6 |  begin
      |  ^~~~~
a.cc:8:3: error: 'l' does not name a type
    8 |   l:=length(s);sc:=maxlongint; //sc一定要赋值为maxlongint！
      |   ^
a.cc:8:16: error: 'sc' does not name a type
    8 |   l:=length(s);sc:=maxlongint; //sc一定要赋值为maxlongint！
      |                ^~
a.cc:9:3: error: expected unqualified-id before 'for'
    9 |   for i:=1 to l do if s[i]='F'then sf:=i; //寻找最后一个F
      |   ^~~
a.cc:10:3: error: expected unqualified-id before 'for'
   10 |   for i:=l downto 1 do if s[i]='C'then sc:=i;//寻找第一个C
      |   ^~~
a.cc:11:3: error: expected unqualified-id before 'if'
   11 |   if sc<sf then writeln('Yes')
      |   ^~
a.cc:13:2: error: 'end' does not name a type
   13 |  end.
      |  ^~~
Language: C++

#include<bits/stdc++.h>
using naemspace std;
#define ll long
int main(){
    string sd;
    ll a=-1,b=2222222;
    cin>>sd;
    for(int i=0;i<sd.length();i++){
        if(sd[i]=='C'&&a!=-1)a=i;
        if(sd[i]=='F'&&b!=-1)b=i;
    }if(a<b&&a!=-1&&b!=-1)cout<<"Yes";
    else cout<<"No";
    return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'naemspace'
    2 | using naemspace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'string' was not declared in this scope
    5 |     string sd;
      |     ^~~~~~
a.cc:5:5: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |     cin>>sd;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/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: 'sd' was not declared in this scope; did you mean 'std'?
    7 |     cin>>sd;
      |          ^~
      |          std
a.cc:11:27: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     }if(a<b&&a!=-1&&b!=-1)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:12:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     else 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;
string s; int len
int main()
{
    cin >> s;
    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')
                {
                    return printf("Yes") - 3;
                }
            }
        }
    }
    return printf("No") - 2;
}

Compiler output:
a.cc:4:1: error: expected initializer before 'int'
    4 | int main()
      | ^~~
Language: C++

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

Compiler output:
a.cc:4:1: error: expected initializer before 'int'
    4 | int main()
      | ^~~
Language: C++

#include<iostream>
#include<cstdio>
#include<cstring>
#include<string>
using namespace std;
char s[200];
int i,c,f,l;
int main()
{
    cin>>s;
    l=strlen(s);
    for(i=0;i<l;i++)
    {
        if(s[i]=='C')c=1;
        if(s[i]=='F'&&c=1)f=1;
    }
    if(f)cout<<"Yes";
    else cout<<"No";
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:21: error: lvalue required as left operand of assignment
   15 |         if(s[i]=='F'&&c=1)f=1;
      |            ~~~~~~~~~^~~
Language: C++

#include<iostream>
#include<cstdio>
#include<cstring>
#include<string>
#define M 100
using namespace std;
char s[M];
int main()
{
    cin>>s;
    int i,c=M,l=strlen(s);       
    bool c1=false,f1=false;
    for(i=0;i<l;i++)
    {
        if(s[i]=='C'&&c!=M)c=i;
        if(s[i]=='F')f=i;
    }
    cout<<(c<f)?"Yes":"false";
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:22: error: 'f' was not declared in this scope; did you mean 'f1'?
   16 |         if(s[i]=='F')f=i;
      |                      ^
      |                      f1
a.cc:18:14: error: 'f' was not declared in this scope; did you mean 'f1'?
   18 |     cout<<(c<f)?"Yes":"false";
      |              ^
      |              f1