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

#include<bits/stdc++.h>
using namespace std;
int mian(){
	string s;
    cin>>s;
    int l=s.size();
    for(int i=0;i<l;i++){
        if(s[i]=='C'){
            for(int j=i+1;j<l;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 mian(){
	char s[101];
    gets(s);
    int l=strlen(s);
    for(int i=0;i<l;i++){
        if(s[i]=='C'){
            for(int j=i+1;j<l;j++){
                if(s[j]=='F'){
                    cout<<"Yes";
                    return 0;
                }
            }
        }
    }
    cout<<"No";
    return 0;
}
           

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

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

string a,b="CF"; 
int al,bl;

int main(){
    getline(cin,a);
    al=a.length();
    for(int i=0;i<al;i++)
        if(a[i]==b[bl]){ 
            bl++;
            if(bl==2)   
                break;
        }
    if(bl==2) cout<<"Yes"; 
    else cout<<"No";
    cout<<endl;行
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:16: error: '\U0000884c' was not declared in this scope
   19 |     cout<<endl;行
      |                ^~
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"<<endl;
                    return 0;
                }
            }
        }
    }
    cout<<"No"<<endl;
    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:15:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   15 |             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;
string a;
bool c=false,f=false; 
int main(){
    cin>>a;
    for(int i=0;i<a.size(); i++) {
        if(a[i]=='C') 
        c=true;
        if(a[i]=='F'&&c=true) 
        f=true;
    }
    if(f==true)
    cout<<"Yes";
    else 
    cout<<"No";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: lvalue required as left operand of assignment
   10 |         if(a[i]=='F'&&c=true)
Language: C++

#include<bits/stdc++.h>
using namespace std;
char a[10005]; 
bool c,f; 
int main(){
    cin>>a;
    for(int i=0;i<a.size(); i++) {
        if(a[i]=='C') 
        c=true;
        if(a[i]=='F') 
        f=true;
    }
    if(f==true&&c==true)
    cout<<"YES";
    else 
    cout<<"NO";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: request for member 'size' in 'a', which is of non-class type 'char [10005]'
    7 |     for(int i=0;i<a.size(); i++) {
      |                     ^~~~
Language: C++

#include <iostream>
#include <cstring>
using namespace std;
int main()
{
    char ch[10000];
    cin>>ch;
    int l=strlen(ch);
    int ma=INT_MAX;
    int k,x;
    for (int i=1;i<=l;i++) if (ch[i]=='F') k=i;
    for (int i=l;i>=1;i--) if (ch[i]=='c') x=i;
    if (x<k) cout<<"Yes";
    else cout<<"No";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: 'INT_MAX' was not declared in this scope
    9 |     int ma=INT_MAX;
      |            ^~~~~~~
a.cc:3:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    2 | #include <cstring>
  +++ |+#include <climits>
    3 | using namespace std;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 's' was not declared in this scope
    5 |     cin>>s;
      |          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	char a[110];
	gets(a);
	int pd=0;
	for(int s=1;s<=n;s++)
	{
		if(pd==0 && a[s]=='C')
			pd=1;
		else if(pd==1 && a[s]=='F')
			pd=2;
	}
	if(pd==2)
		cout<<"Yes";
	else cout<<"No";
	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:8:24: error: 'n' was not declared in this scope
    8 |         for(int s=1;s<=n;s++)
      |                        ^
Language: C++

#include<iostream>
#include<cstring>
using namespace std;
int main(){
	char a[101];
	gets(a);
	for(int i=0;i<strlen(a);i++){
		if(a[i]=='C'){
			for(int j=i+1;j<strlen(a);j++){
				if(a[j]=='F'){
					cout<<"YES"<<endl;
					return 0;
				}
			}
		}
	}
	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
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:9:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    9 |     for(register int i=0;i<l;i++)
      |                      ^
a.cc:11:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   11 |             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<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
    cin>>s;
    l=strlen(s);
    for( int i=0;i<l;i++)
    {
        if(s[i]=='C')
        {
            for( int j=i+1;j<l;j++)
            {
                if(s[j]=='F')
                {
                    cout<<"Yes";
                    return 0;
                }
            }
        }
    }
    cout<<"No";
    return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int i,j,k,n;
int x;
bool y;
char a[20000];
int main()
{
	gets(a);
	n=strlen(a);
	for(i=0;i<n;i++)
	{
		if(a[i]=='C')
			x=-1;
		if(a[i]=='F' && x=-1)
		{
			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(a);
      |         ^~~~
      |         getw
a.cc:15:30: error: lvalue required as left operand of assignment
   15 |                 if(a[i]=='F' && x=-1)
      |                    ~~~~~~~~~~^~~~
Language: C++

#include <iostream>
#include <cstdio>
#include <cstring>
#include <string.h>
using namespace std;
int main()
{
    char a[500],stack[500],t;
    int top=0;
    cin>>a;
    for(int i=0;i<strlen(a);i++)
    {
        if(a[i]=='F'&&top==0)
        continue;
        else if(a[i]=='C'){      
        stack[top++]=a[i];
        }
        else
        { 
            if(a[i]=='F')
            {
            t=strack[--top];
            break;
            }
        }
    }
    if(t=='C')
    cout<<"Yes"<<endl;
    else
    cout<<"No"<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:15: error: 'strack' was not declared in this scope; did you mean 'stack'?
   22 |             t=strack[--top];
      |               ^~~~~~
      |               stack
Language: C++

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

int main()
{
	cin>>s;
	int 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')
				{
					printf("Yes\n");
					return 0;
				}
			} 
		}
	}
	printf("No\n");
	return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: error: expected primary-expression before '==' token
   11 |                 if(s[i])=='C'
      |                         ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
char a[10000];
bool c, f;
int main() 
{
    gets(a)
    for(int i=0; i<strlen(a); i++) 
    {
        if(a[i]=='C') 
        c=true;
        if(a[i]=='F'&&c==true) 
        f=true; 
    }
    if(f==true) 
    cout<<"YES"<<endl;
    else 
    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:18: error: 'i' was not declared in this scope
    8 |     for(int i=0; i<strlen(a); i++)
      |                  ^
Language: C++

#include<cstdio>
#include<iostream>
#include<cstring>
using namespace std;
string s;
stack<int>a;
int main()
{

	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')
		{
			cout<<"YES";
			return 0;
		}
		}
		
	}
	cout<<"NO";
	return 0;
}

Compiler output:
a.cc:6:1: error: 'stack' does not name a type; did you mean 'obstack'?
    6 | stack<int>a;
      | ^~~~~
      | obstack
Language: C++

#include<cstdio>
#include<iostream>
using namespace std;
string s;
stack<int>a;
int main()
{

	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')
		{
			cout<<"YES";
			return 0;
		}
		}
		
	}
	cout<<"NO";
	return 0;
}

Compiler output:
a.cc:5:1: error: 'stack' does not name a type; did you mean 'obstack'?
    5 | stack<int>a;
      | ^~~~~
      | obstack
Language: C++

#include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian(){
    cin>>s;
    l=s.size();
    for(int i=0;i<l;i++){
        if(s[i]=='C') {
            for(int j=i+1;j<l;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<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:10:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   10 |     for(register int i=0;i<l;i++){
      |                      ^
a.cc:12:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   12 |             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 b1=0,b2=0;
	cin >> a;
	for(int i=0;i<=a.size;i++)
	{
		if(a[i]=='F' && b1==0)
			cout <<"No\n";
		if(a[i]=='F')
			b2=1;
		if(a[i]=='C')
			b1=1;
	}
	if(b1!=1 || b2!=1)
		cout <<"No\n";
	else
		cout <<"Yes\n"; 
	return 0;
}

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

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

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

#include <iostream>
#include <string>
using namespace std;
int main()
{
    string a;
	cin>>a;
	int l=a.size();
	bool flag=false;
	for(int i=0;i<l;i++)
	{
	    if(a[i]=='C')
	    {
	        flag=true;
	    }
	    else if(a[i]=='F'&&flag==tre)
	    {
	        cout<<"YES";
	        cout<<endl;
	        return 0;
	    }
	}
	cout<<"No"<<endl;
	return 0;
}

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

#include<cstdio>
#include<cstdlib>
#include<cmath>
#include<cstring>
#include<iostream>
#include<algorithm>
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:14:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   14 |     for(register int i=0;i<l;i++)
      |                      ^
a.cc:18:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   18 |             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++

#icnldue<bits/stdc++.h>
using namespace std;
int main(){
    char a[100];
    scanf("%s",a);
    int l=strlen (a),n;
    for(int i=0;i<l;i++){
        if(a[i]=='C')n=i;
    }
    bool p=false;
    for(int i=n;i<l;i++)if(a[i]=='F')p=true;
    if(p)cout<<"Yes";
    else cout<<"No";
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #icnldue; did you mean #include?
    1 | #icnldue<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:5: error: 'scanf' was not declared in this scope
    5 |     scanf("%s",a);
      |     ^~~~~
a.cc:6:11: error: 'strlen' was not declared in this scope
    6 |     int l=strlen (a),n;
      |           ^~~~~~
a.cc:1:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
  +++ |+#include <cstring>
    1 | #icnldue<bits/stdc++.h>
a.cc:8:22: error: 'n' was not declared in this scope
    8 |         if(a[i]=='C')n=i;
      |                      ^
a.cc:11:15: error: 'n' was not declared in this scope
   11 |     for(int i=n;i<l;i++)if(a[i]=='F')p=true;
      |               ^
a.cc:12:10: error: 'cout' was not declared in this scope
   12 |     if(p)cout<<"Yes";
      |          ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #icnldue<bits/stdc++.h>
a.cc:13:10: error: 'cout' was not declared in this scope
   13 |     else cout<<"No";
      |          ^~~~
a.cc:13:10: 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;
int main()
{
    string a
    cin>>a;
    if(a.find("CF"))
    {
        cout<<"Yes"<<endl;
        return 0;
    }
    else cout<<"No"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'cin'
    6 |     cin>>a;
      |     ^~~
a.cc:7:8: error: 'a' was not declared in this scope
    7 |     if(a.find("CF"))
      |        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
    string a
    cin>>a;
    if(a.find(CF))
    {
        cout<<"Yes"<<endl;
        return 0;
    }
    else cout<<"No"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'cin'
    6 |     cin>>a;
      |     ^~~
a.cc:7:8: error: 'a' was not declared in this scope
    7 |     if(a.find(CF))
      |        ^
a.cc:7:15: error: 'CF' was not declared in this scope
    7 |     if(a.find(CF))
      |               ^~
Language: C++

#include <map>
#include <set>
#include <list>
#include <cmath>
#include <queue>
#include <stack>
#include <cstdio>
#include <string>
#include <vector>
#include <complex>
#include <cstdlib>
#include <cstring>
#include <numeric>
#include <sstream>
#include <iostream>
#include <algorithm>
#include <functional>
  
#define mp       make_pair
#define pb       push_back
#define all(x)   (x).begin(),(x).end()
#define rep(i,n) for(int i=0;i<(n);i++)
  
using namespace std;
  
typedef    long long          ll;
typedef    unsigned long long ull;
typedef    vector<bool>       vb;
typedef    vector<int>        vi;
typedef    vector<vb>         vvb;
typedef    vector<vi>         vvi;
typedef    pair<int,int>      pii;
  
const int INF=1<<29;
const double EPS=1e-9;
  
const int dx[]={1,0,-1,0,1,1,-1,-1},dy[]={0,-1,0,1,1,-1,-1,1};
 

int main() {
  string s;
  cin >> s;
  bool cok = false;
  bool fok = false;
  for (int i = 0; i < N; i++) {
    if (!cok) {
      if (s[i] == 'C') {
        cok = true;
      }
    } else if (!fok) {
      if (s[i] == 'F') {
        fok = true;
      }
    }
  }
  if (cok && fok) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}

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

#include<iostream>
#include<cmath>
#include<cstring>
#include<algorithm>
using namespace std;
int main()
{
	char a[100];
	gets(a);
	int x,y=0,z=0;
	for(x=0;x<=strlen(a);x++)
	{
		if(a[x]=='C')
		{
			y++;
		}
		if(a[x]=='F')
		{
			z++;
		}
	}
	if(y>=1&&z>=1)
	{
		cout<<"Yes"<<endl;
	}
	else cout<<"No"<<endl;
}

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;

int main()
{
    string temp;
    cin>>temp;
    int len=temp.size();
    bool flag=0;
    for(int i=0;i<len;i++)
    {
        if(flag==0)
        {
            if(temp[i]=='C') flag==1;
            continue
        }
        if(flag==1)
        {
            if(temp[i]=='F')
            {
                cout<<"Yes";
                return 0;
            }
        }
    }
    cout<<"No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:21: error: expected ';' before '}' token
   16 |             continue
      |                     ^
      |                     ;
   17 |         }
      |         ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
string a,b="CF";
int al,bl;
int main(){
    getline(cin,a);
    al=a.length();
    for(int i=0;i<al;i++)
        if(a[i]==b[bl]){ 
            bl++;
            if(bl==2)   
                break;
        }
    if(bl==2) cout<<"Yes"; 
    else cout<<"No";
    cout<<endl;
    return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: expected ';' before '}' token
   17 |     return 0
      |             ^
      |             ;
   18 | }
      | ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	bool a=false,b=false;
	int i=1;
	char c[10000];
	gets(c);
	while(c[i]!=' ')
	{
		if(c[i]=='C') then a=true;
		if(c[i]=='F') then b=true;
		i++;
	}
	if (a&&b) cout<<"Yes";
	else cout<<"No";
}

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(c);
      |         ^~~~
      |         getw
a.cc:11:31: error: 'then' was not declared in this scope
   11 |                 if(c[i]=='C') then a=true;
      |                               ^~~~
a.cc:12:31: error: 'then' was not declared in this scope
   12 |                 if(c[i]=='F') then b=true;
      |                               ^~~~
Language: C++

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

int main()
{
int a[10086],x,i,j=0,t=0;
	char as[100086]
	gets(as);
	x=strlen(as);
	for(i=0;i<as;i++)
	{
		if(as[i]=='C')
		t=1;
		if(as[i]=='F'&&t==1)
		{
			cout<<"Yes";
			return 0;
		}
	}
	cout<<"No";
	return 0;
	
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected initializer before 'gets'
    8 |         gets(as);
      |         ^~~~
a.cc:9:18: error: 'as' was not declared in this scope; did you mean 'a'?
    9 |         x=strlen(as);
      |                  ^~
      |                  a
Language: C++

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

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

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

#include<iostream>
#include<cstdio>
#include<cstring>
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:13:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   13 |     for(register int i=0;i<l;i++)
      |                      ^
a.cc:17:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   17 |             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 <iostream> #include <string> using namespace std; int main() { int c; int cflag=0; int fflag=0; string s; cin>>s; c=s.size(); for(int i=0;i<c;i++) { if(s[i]=='C') { cflag=1; for(int j=i+1;j<c;j++) { if(s[j]=='F') { cout<<"Yes"; return 0; } } } } cout<<"No"; cout<<endl; return 0; 

Compiler output:
a.cc:1:21: warning: extra tokens at end of #include directive
    1 | #include <iostream> #include <string> using namespace std; int main() { int c; int cflag=0; int fflag=0; string s; cin>>s; c=s.size(); for(int i=0;i<c;i++) { if(s[i]=='C') { cflag=1; for(int j=i+1;j<c;j++) { if(s[j]=='F') { cout<<"Yes"; return 0; } } } } cout<<"No"; cout<<endl; return 0;
      |                     ^
/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<iostream>
#include<cstdio>
#include<cmath>
#include<cstring>
#include<algorithm>
using namespace std;
string a; 
int main(){
	cin>>a;
	len=a.size;
	for(int i=0;i<len;i++){
		if(a[i]=="C"){
			for(int j=i+1;j<l;j++){
				if(a[j]="F") cout<<"Yes";
				return 0;
			}
		}
	}
	cout<<"No";
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'len' was not declared in this scope
   10 |         len=a.size;
      |         ^~~
a.cc:12:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |                 if(a[i]=="C"){
a.cc:13:41: error: 'l' was not declared in this scope
   13 |                         for(int j=i+1;j<l;j++){
      |                                         ^
a.cc:14:41: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   14 |                                 if(a[j]="F") cout<<"Yes";
      |                                         ^~~
      |                                         |
      |                                         const char*
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:9:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    9 |     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 namespace std;
int main()
{
	int a,b,n,sum,ans;
	cin>>a>>b;
	for(int i=1;i<=n;i++) 
	for(int i=1;i<=100;i++)
	if(i<=n)
	cout<<"Yes";
	ans++;
	else
	cout<<"No";
	cout<<ans;
	sum++;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'else' without a previous 'if'
   12 |         else
      |         ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
	int a,b,n,sum;
	cin>>a>>b;
	for(int i=1;i<=n;i++) 
	for(int i=1;i<=n-1;i++)
	if(i<=n)
	cout<<"Yes";
	sum++;
	else
	cout<<"No";
	sum++;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'else' without a previous 'if'
   12 |         else
      |         ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
	int a,b,n,sum;
	cin>>a>>b;
	for(int i=1;i<=n;i++) 
	for(int i=1;i<=100;i++)
	if(i<=n)
	cout<<"Yes";
	sum++;
	else
	cout<<"No";
	sum++;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'else' without a previous 'if'
   12 |         else
      |         ^~~~
Language: C++

s = input()
idx1 = s.find('C');

if idx1 >= 0 :
    idx2 = s.find('F');
    if idx2 > idx1 :
        print("Yes");
    else:
        print("No");
else:
    print("No");
        
    

Compiler output:
a.cc:1:1: error: 's' does not name a type
    1 | s = input()
      | ^
a.cc:4:1: error: expected unqualified-id before 'if'
    4 | if idx1 >= 0 :
      | ^~
a.cc:6:5: error: expected unqualified-id before 'if'
    6 |     if idx2 > idx1 :
      |     ^~
a.cc:8:5: error: expected unqualified-id before 'else'
    8 |     else:
      |     ^~~~
a.cc:10:1: error: expected unqualified-id before 'else'
   10 | else:
      | ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vs = vector<string>;
using msi = map<string, int>;
using mii = map<int, int>;
using psi = pair<string, int>;
using pii = pair<int, int>;
using vlai = valarray<int>;
#define rep(i,n) for(int i=0;i<n;i++)
#define range(i,s,n) for(int i=s;i<n;i++)
#define all(a) a.begin(),a.end()
#define rall(a) a.rbegin(),a.rend()
#define fs first
#define sc second
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define INF 1E9
#define EPS 1E-9
#define MOD (1E9+7)
#define PI 3.1415926535897932384

std::ostream &operator<<(std::ostream &out, const vector<int> &tgt)
{
	string s;
	for (int i = 0; i<tgt.size(); i++) {
		s += (to_string(tgt[i]) + ((i != tgt.size() - 1) ? " " : ""));
	}
	out << s;
	return out;
}

int main() {
	string s;
	cin >> s;
	rep(i, s.size()) {
		if(s[i]=='C'){
			rep(j, i + 1, s.size()) {
				if (s[j] == 'F') {
					cout << "Yes" << endl;
					return 0;
				}
			}
		}
	}
	cout << "No" << endl;
	return 0;
}

Compiler output:
a.cc:41:47: error: macro "rep" passed 3 arguments, but takes just 2
   41 |                         rep(j, i + 1, s.size()) {
      |                                               ^
a.cc:12:9: note: macro "rep" defined here
   12 | #define rep(i,n) for(int i=0;i<n;i++)
      |         ^~~
a.cc: In function 'int main()':
a.cc:41:25: error: 'rep' was not declared in this scope
   41 |                         rep(j, i + 1, s.size()) {
      |                         ^~~
Language: C++

#include<cstdio>
#include<iostream>
#include<algorithm>
#include<cmath>
#include<cstring>
long long s1;
string s;
using namespace std;
int main()
{
	cin >> s;
	s1 = strlen(s);
	for (int i = 0; i < s1; i++)
	{
		if (s[i] == 'C')
		{
			for (int j = i + 1; j < s1; j++) if (s[j] == 'F') cout << "Yes" << endl;
			return 0;
		}
		
	}
	cout << "No" << endl;
	return 0;

}

Compiler output:
a.cc:7:1: error: 'string' does not name a type; did you mean 'stdin'?
    7 | string s;
      | ^~~~~~
      | stdin
a.cc: In function 'int main()':
a.cc:11:16: error: 's' was not declared in this scope; did you mean 's1'?
   11 |         cin >> s;
      |                ^
      |                s1
Language: C++

#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <algorithm>
#include <cmath>
#include <cstring>
using namespace std;
int main()
{
    string a;
    cin>>a;
    int n=0;
    int la=strlen(a);
    for(int i=0;i<la;i++)
    {
        if(a[i]=='C')
        n=1;
        if(a[i]=='F'&&n==1)
        {
            cout<<"Yes"<<endl;
            return 0;
        }
    }
    cout<<"No"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:19: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   13 |     int la=strlen(a);
      |                   ^
      |                   |
      |                   std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from a.cc:6:
/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 <cstdio>
#include <cstdlib>
#include <iostream>
#include <algorithm>
#include <cmath>
#include <cstring>
using namespace std;
int main()
{
    string a;
    cin>>a;
    int n=0;
    for(int i=0;i<strlen(a);i++)
    {
        if(a[i]=='C')
        n=1;
        if(a[i]=='F'&&n==1)
        {
            cout<<"Yes"<<endl;
            return 0;
        }
    }
    cout<<"No"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:26: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   13 |     for(int i=0;i<strlen(a);i++)
      |                          ^
      |                          |
      |                          std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from a.cc:6:
/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<iostream>
#include<cstdio>
using namespace std;
string a[201];
int main()
{
    while(a[i]=='EOF')
        cin>>a[i];
    for (int i=1;i<=strlen(a);i++)
    if (a[i]=="C"||a[i]="F") printf("YES");
    printf("NO");
    return 0;
}

Compiler output:
a.cc:7:17: warning: multi-character character constant [-Wmultichar]
    7 |     while(a[i]=='EOF')
      |                 ^~~~~
a.cc: In function 'int main()':
a.cc:7:13: error: 'i' was not declared in this scope
    7 |     while(a[i]=='EOF')
      |             ^
a.cc:9:21: error: 'strlen' was not declared in this scope
    9 |     for (int i=1;i<=strlen(a);i++)
      |                     ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include<cstdio>
  +++ |+#include <cstring>
    3 | using namespace std;
a.cc:10:18: error: no match for 'operator||' (operand types are 'bool' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   10 |     if (a[i]=="C"||a[i]="F") printf("YES");
      |         ~~~~~~~~~^~~~~~
      |             |         |
      |             bool      std::string {aka std::__cxx11::basic_string<char>}
a.cc:10:18: note: candidate: 'operator||(bool, bool)' (built-in)
   10 |     if (a[i]=="C"||a[i]="F") printf("YES");
      |         ~~~~~~~~~^~~~~~
a.cc:10:18: note:   no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	string ch;
	register int ss,i,j;
	cin>>ch;
	ss=ch.length();
	for(i=0;i<ss;i++){
		if(ch[i]=='C'){
			for(j=i+1;j<ss;j++){
				if(ch[j]=='F'){
					cout<<"YES";
					return 0;
				}
			}
		}
	}
	cout<<"NO";
	return 0;
}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    5 |         register int ss,i,j;
      |                      ^~
a.cc:5:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    5 |         register int ss,i,j;
      |                         ^
a.cc:5:27: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    5 |         register int ss,i,j;
      |                           ^
a.cc: At global scope:
a.cc:21:9: error: expected unqualified-id before 'return'
   21 |         return 0;
      |         ^~~~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

#include<bits/stdc++.h>

using namespace std;
string str;
bool k,y;
int main()
{
 cin>>str;
 for(int i=0;i<str.size()-1;i++)
 {
     if(str[i]=="C")k=true;
     if(str[i]=="F"&&k==true)
     {
         y=true;
         break;
     }
 }
 if(y==true)cout<<"Yes"<<endl;
 else cout<<"No"<<endl;
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |      if(str[i]=="C")k=true;
a.cc:12:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |      if(str[i]=="F"&&k==true)
Language: C++

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


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

#include<cstdio>
#include<cstring>
using namespace std;
string s;
int l,i,j;
int main()
{
    scanf("%s",s);
    l=strlen(s);
    for(i=0;i<l;i++)
    if(s[i]=='C')
    for(j=i+1;j<l;j++)
    if(s[j]=='F')
    return puts("Yes")&0;
    puts("No");
    printf("\n");
    return 0;
}

Compiler output:
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:8:16: error: 's' was not declared in this scope
    8 |     scanf("%s",s);
      |                ^
Language: C++

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

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

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

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | int main(){
      | ~~~
Language: C++

include<cstdio>
#include<cstring>
char a[10010]; 
bool c,f;
int main() 
{
    scanf("%s",a); 
    for(int i=0; i<strlen(a); i++) 
    {
        if(a[i]=='C') 
            c=true;
        if(a[i]=='F'&&c==true) 
            f=true; 
    }
    if(f==true) 
        printf("Yes\n");
    else 
        printf("No\n"); 
    return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<cstdio>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'scanf' was not declared in this scope
    7 |     scanf("%s",a);
      |     ^~~~~
a.cc:16:9: error: 'printf' was not declared in this scope
   16 |         printf("Yes\n");
      |         ^~~~~~
a.cc:3:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    2 | #include<cstring>
  +++ |+#include <cstdio>
    3 | char a[10010];
a.cc:18:9: error: 'printf' was not declared in this scope
   18 |         printf("No\n");
      |         ^~~~~~
a.cc:18:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
    string s;
    int l;
    cin>>s;
    l=s.size();
    for(int i=0;i<l;i++)
    {
        if(s[i]=='C')
        {
            for(int j=i+1;j<l;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 <stdio.h>
#include <math.h>
#include <string.h>
int main(){
	char strk[1000001];
	bool bz=false;
	scanf("%s",strk);
	for(int i=0;i<=strlen(strk)-1;i++){
		if(strk[i]=='C')bz=true;
		if(strk[i]=='F'&&bz==true){
			printf("Yes\n");
			return 0;
		}
	}
	printf("No\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: unknown type name 'bool'
    6 |         bool bz=false;
      |         ^~~~
main.c:4:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    3 | #include <string.h>
  +++ |+#include <stdbool.h>
    4 | int main(){
main.c:6:17: error: 'false' undeclared (first use in this function)
    6 |         bool bz=false;
      |                 ^~~~~
main.c:6:17: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:6:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:36: error: 'true' undeclared (first use in this function)
    9 |                 if(strk[i]=='C')bz=true;
      |                                    ^~~~
main.c:9:36: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C++

#include<iostream>
#include<cstdio>
using namespace std;
int main() 
{
    char str[1010],s=0;
    cin>>str; 
    for(int i=0;i<strlen(str);i++)
    {
        if(s==0) 
        {
            if(str[i]=='C') s++;
        }
        if(s==1) 
        {
            if(str[i]=='F') s++;
        }
    }    
    if(s==2) cout<<"Yes";
    else cout<<"No";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: 'strlen' was not declared in this scope
    8 |     for(int i=0;i<strlen(str);i++)
      |                   ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include<cstdio>
  +++ |+#include <cstring>
    3 | using namespace std;
Language: C++

#include<cstdio>
#include<iostream>
using namespace std;
int i;
char cf[3C]="CF",a[105];
int main(){
	scanf("%s",a);
	for(int j=0;a[j];j++){
		if(a[j]==cf[i])i++;
		if(i==2){
			puts("Yes");
			return 0;
		}
	}
	puts("No");
	return 0;
}


Compiler output:
a.cc:5:9: error: unable to find numeric literal operator 'operator""C'
    5 | char cf[3C]="CF",a[105];
      |         ^~
a.cc: In function 'int main()':
a.cc:9:26: error: 'cf' was not declared in this scope
    9 |                 if(a[j]==cf[i])i++;
      |                          ^~
Language: C++

#include<iostream>#include<string>using namespace std;int traveral(string);int main(){    string s;    cin>>s;    if(traveral(s)) cout<<"Yes";    else            cout<<"No";    return 0;}int traveral(string s){    int i,j;    for(i = 0;i < s.length();i++)    {        if(s[i] == 'C')        {            for(j = i+1 ;j < s.length(); j++)            {                if(s[j] == 'F')                {                    return 1;                }            }        }    }    return 0;}

Compiler output:
a.cc:1:19: warning: extra tokens at end of #include directive
    1 | #include<iostream>#include<string>using namespace std;int traveral(string);int main(){    string s;    cin>>s;    if(traveral(s)) cout<<"Yes";    else            cout<<"No";    return 0;}int traveral(string s){    int i,j;    for(i = 0;i < s.length();i++)    {        if(s[i] == 'C')        {            for(j = i+1 ;j < s.length(); j++)            {                if(s[j] == 'F')                {                    return 1;                }            }        }    }    return 0;}
      |                   ^
/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 <iostream>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <algorithm>
#include <functional>
#include <vector>
#include <queue>
#include <stack>
#include <map>
#include <set>
#include <bitset>
#include <cassert>
#include <exception>
using namespace std;

int main(){

    cin.tie(0);
    ios::sync_with_stdio(false);
    bool a,b;
    string s;
    cin >> s;
    for (int i = 0; i < 100; i++ ){
      if (s[i] == 'C' ){
        a = true;
      }
      else if (a && s[i]== 'F')
        b = true;
      }
    }


    if ( a && b){
      cout << "Yes" << endl;
    }
    else {
      cout << "No" << endl;
    }
    return 0;
}


Compiler output:
a.cc:34:5: error: expected unqualified-id before 'if'
   34 |     if ( a && b){
      |     ^~
a.cc:37:5: error: expected unqualified-id before 'else'
   37 |     else {
      |     ^~~~
a.cc:40:5: error: expected unqualified-id before 'return'
   40 |     return 0;
      |     ^~~~~~
a.cc:41:1: error: expected declaration before '}' token
   41 | }
      | ^
Language: C++

#include<bits/stdc++.h>
main(){std::string s;fgets(&s,100,stdin);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){std::string s;fgets(&s,100,stdin);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:28: error: cannot convert 'std::string*' {aka 'std::__cxx11::basic_string<char>*'} to 'char*'
    2 | main(){std::string s;fgets(&s,100,stdin);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
      |                            ^~
      |                            |
      |                            std::string* {aka std::__cxx11::basic_string<char>*}
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 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/stdio.h:654:38: note:   initializing argument 1 of 'char* fgets(char*, int, FILE*)'
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |                     ~~~~~~~~~~~~~~~~~^~~
Language: C++

#include<bits/stdc++.h>
main(){std::string s;gets_s(&s[0],100);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){std::string s;gets_s(&s[0],100);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:22: error: 'gets_s' was not declared in this scope; did you mean 'getsid'?
    2 | main(){std::string s;gets_s(&s[0],100);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
      |                      ^~~~~~
      |                      getsid
Language: C++

#include<bits/stdc++.h>
main(){std::string s(gets(&s));puts(s.find(70,s.find(67))!=-1?"Yes":"No");}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){std::string s(gets(&s));puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:22: error: 'gets' was not declared in this scope; did you mean 'getw'?
    2 | main(){std::string s(gets(&s));puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
      |                      ^~~~
      |                      getw
Language: C++

#include<bits/stdc++.h>
main(){std::string s;gets(&s);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){std::string s;gets(&s);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:22: error: 'gets' was not declared in this scope; did you mean 'getw'?
    2 | main(){std::string s;gets(&s);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
      |                      ^~~~
      |                      getw