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

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

Compiler output:
a.cc:33:9: error: expected unqualified-id before 'if'
   33 |         if(z[i]=='F')
      |         ^~
a.cc:38:9: error: expected unqualified-id before 'else'
   38 |         else f=0;
      |         ^~~~
a.cc:39:9: error: expected declaration before '}' token
   39 |         }
      |         ^
a.cc:40:9: error: 'cout' does not name a type
   40 |         cout<<"No"<<endl;
      |         ^~~~
a.cc:41:9: error: expected unqualified-id before 'return'
   41 |         return 0;
      |         ^~~~~~
a.cc:42:1: error: expected declaration before '}' token
   42 | }
      | ^
Language: C++

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

Compiler output:
a.cc:33:9: error: expected unqualified-id before 'if'
   33 |         if(z[i]=='F')
      |         ^~
a.cc:38:9: error: expected unqualified-id before 'else'
   38 |         else f=0;
      |         ^~~~
a.cc:39:9: error: expected declaration before '}' token
   39 |         }
      |         ^
a.cc:40:9: error: 'cout' does not name a type
   40 |         cout<<"No"<<endl;
      |         ^~~~
a.cc:41:9: error: expected unqualified-id before 'return'
   41 |         return 0;
      |         ^~~~~~
a.cc:42:1: error: expected declaration before '}' token
   42 | }
      | ^
Language: C++

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

Compiler output:
a.cc:1:25: warning: extra tokens at end of #include directive
    1 | #include<iostream>using namespace std;int main(){string z;cin>>z;int d,f=0;for(int i=1;i<=z.size();i++){d=i+1;if(z[i]=='C') {f=1;break;}else f=0;}for(int i=d;i<=z.size();i++){if(z[i]=='F') {cout<<"Yes"<<endl;return 0;}else f=0;}cout<<"No"<<endl;return 0;}
      |                         ^~~~~~~~~
a.cc:1:9: fatal error: iostream>usin: No such file or directory
    1 | #include<iostream>using namespace std;int main(){string z;cin>>z;int d,f=0;for(int i=1;i<=z.size();i++){d=i+1;if(z[i]=='C') {f=1;break;}else f=0;}for(int i=d;i<=z.size();i++){if(z[i]=='F') {cout<<"Yes"<<endl;return 0;}else f=0;}cout<<"No"<<endl;return 0;}
      |         ^~~~~~~~~~~~~~~
compilation terminated.
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++;//判是否有C
    if(q!=0&&b[i]=='F')//若有C且后面有F
    q-=10000000000;//q绝对比0小
    }
    if(q<0)//如果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++;//判是否有C
      |     ^~~
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++;//判是否有C
    if(q!=0&&b[i]=='F')//若有C且后面有F
    q-=10000000000;//q绝对比0小
    }
    if(q<1)//如果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++;//判是否有C
      |     ^~~
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++;//判是否有C
    q-=10000000000;//q绝对比0小
    }
    if(q<0)//如果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++;//判是否有C
      |     ^~~
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'
    q-=10000000000;//q绝对比0小
    }
    if(q<0)//如果q比0小
    cout<<"Yes";
    else
    cout<<"No";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: expected ';' before 'q'
    8 |         if(b[i]=='C'
      |                     ^
      |                     ;
    9 |     q-=10000000000;//q绝对比0小
      |     ~                
a.cc:10:5: error: expected primary-expression before '}' token
   10 |     }
      |     ^
a.cc:9:20: error: expected ')' before '}' token
    9 |     q-=10000000000;//q绝对比0小
      |                    ^
      |                    )
   10 |     }
      |     ~               
a.cc:8:11: note: to match this '('
    8 |         if(b[i]=='C'
      |           ^
a.cc:10:5: error: expected primary-expression before '}' token
   10 |     }
      |     ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:36: error: expected ';' before ')' token
    7 |   for (int i = 0; i < a.size(), i++) {
      |                                    ^
      |                                    ;
a.cc:12:36: error: expected ';' before ')' token
   12 |   for (int i = x; i < a.size(), i++) {
      |                                    ^
      |                                    ;
Language: C++

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

int main(void){
  bool x=y=false;
  string s;
  cin >> s;
  for(int i=0;i<s.length();i++){
    if(s[i]=='C') x=true;
    if(x && s[i]=='F') y=true;
  }
  if(x&&y) cout << "Yes" << endl;
  else cout << "No" << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'y' was not declared in this scope
    6 |   bool x=y=false;
      |          ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:31: error: 'C' was not declared in this scope
   10 |                 if(s.at(i) == C){
      |                               ^
a.cc:13:31: error: 'F' was not declared in this scope
   13 |                 if(s.at(i) == F){
      |                               ^
Language: C++

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

using ll = long long;
#define FOR(i, m, n) for (int i = (m); i < (n); i++)
#define REP(i, n) FOR(i, 0, n)
#define ALL(c) (c).begin(), (c).end()
template<class T> inline bool chmin(T& a, T b) {if (a > b) {a = b; return true;} return false;}
template<class T> inline bool chmax(T& a, T b) {if (a < b) {a = b; return true;} return false;}
const int MOD = 1000000007;

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



Compiler output:
a.cc: In function 'int main()':
a.cc:28:17: error: expected ';' before 'endl'
   28 |     cout << "No" endl;
      |                 ^~~~~
      |                 ;
Language: C++

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

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

#include<bits/stdc++.h>
using namespace std;
int main(){
string s;
 cin>>s;
int l=size.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 main()':
a.cc:6:12: error: overloaded function with no contextual type information
    6 | int l=size.s();
      |            ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: 'c' was not declared in this scope
    7 | if(c[i]=='C') {
      |    ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: 'Yes' was not declared in this scope
   10 | cout<<Yes; return 0;}
      |       ^~~
a.cc:11:18: error: 'No' was not declared in this scope
   11 | if(j==99) {cout<<No; return 0;}
      |                  ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: 'c' was not declared in this scope
    7 | if(c[i]=='C') {
      |    ^
a.cc:10:7: error: 'Yes' was not declared in this scope
   10 | cout<<Yes; return 0;}
      |       ^~~
a.cc:11:18: error: 'No' was not declared in this scope
   11 | if(j==99) {cout<<No; return 0;}
      |                  ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: 'c' was not declared in this scope
    7 | if(c[i]=='C') {
      |    ^
a.cc:10:7: error: 'Yes' was not declared in this scope
   10 | cout<<Yes; return 0;}
      |       ^~~
a.cc:11:18: error: 'No' was not declared in this scope
   11 | if(j==99) {cout<<No; return 0;}
      |                  ^~
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
#define repd(i,a,b) for (int i=(a);i<(b);i++)
#define rep(i,n) repd(i,0,n)
#define int long long
typedef long long ll;
const int MOD = 1000000007;
const int INF = 1010000000;
const double EPS = 1e-10;
using namespace std;
const pair<int,int> fd[] = {make_pair(1,0),make_pair(-1,0),make_pair(0,1),make_pair(0,-1)}; 

signed main() {
  string s;cin>>s;
  bool c = false;
  rep(i,n){
    if(!c && s[i] == 'C')c = true;
    else if(c && s[i] == 'F'){
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'n' was not declared in this scope
   15 |   rep(i,n){
      |         ^
a.cc:2:39: note: in definition of macro 'repd'
    2 | #define repd(i,a,b) for (int i=(a);i<(b);i++)
      |                                       ^
a.cc:15:3: note: in expansion of macro 'rep'
   15 |   rep(i,n){
      |   ^~~
Language: C++

#include <bits/stdc++.h>
#define repd(i,a,b) for (int i=(a);i<(b);i++)
#define rep(i,n) repd(i,0,n)
#define int long long
typedef long long ll;
const int MOD = 1000000007;
const int INF = 1010000000;
const double EPS = 1e-10;
using namespace std;
const pair<int,int> fd[] = {make_pair(1,0),make_pair(-1,0),make_pair(0,1),make_pair(0,-1)}; 

signed main() {
  string s;cin>>s;
  bool c = false;
  rep(i,n){
    if(!c && s[i] == 'C')c = true;
    else if(s[i] = 'F'){
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'n' was not declared in this scope
   15 |   rep(i,n){
      |         ^
a.cc:2:39: note: in definition of macro 'repd'
    2 | #define repd(i,a,b) for (int i=(a);i<(b);i++)
      |                                       ^
a.cc:15:3: note: in expansion of macro 'rep'
   15 |   rep(i,n){
      |   ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
string s;
int l;
int mian()
{
    cin>>s;
    l=s.length();
    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<iostream>
using namespace std;
int main()
{
    char a[101],b=0,c=0;
    int top;
    gets(a);
    top=strlen(a)+1;
    for(int i=top-1;i>=0;i--)
    {
      if(a[i]=='F')
        b++;
      if(a[i]=='C' && b>0)
        c++;
    }
    if(c>0)
      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:9: error: 'strlen' was not declared in this scope
    8 |     top=strlen(a)+1;
      |         ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
Language: C++

#include<iostream>
#include<cstring>
using namespace std;
int main()
{
	int minic=-1,maxf=100000;
	char a[1000];
	gets(a);
	for(int i=0;i<strlen(a);i++)
	if(a[i]=='C'&&(i<minic||minic==-1))minic=i;
	for(int i=0;i<strlen(a);i++)
	if(a[i]=='F'&&i>maxf)maxf=i;
	if(minic>=0&&maxf>=0&&minic<maxf)cout<<"YES"<<endl;
	else 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
Language: C++

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

int main(void)
{ 
  unsinged char s[100];
  int num;
  for(int i=0;i<100;i++){
    if(s[i]=='F'){
      num=i;
      break;
    }
  }
  int hanbe=0;
  for(int i=0;i<num;i++){
    if(s[i]=='C')
      hanbe++;
  }
  if(hanbe==0)
    cout<<"No"<<endl;
  else
    cout<<"Yes"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'unsinged' was not declared in this scope; did you mean 'unsigned'?
    6 |   unsinged char s[100];
      |   ^~~~~~~~
      |   unsigned
a.cc:9:8: error: 's' was not declared in this scope
    9 |     if(s[i]=='F'){
      |        ^
a.cc:16:8: error: 's' was not declared in this scope
   16 |     if(s[i]=='C')
      |        ^
Language: C++

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

Compiler output:
a.cc:10:31: warning: multi-character character constant [-Wmultichar]
   10 |                         cout<<'Yes';
      |                               ^~~~~
a.cc:14:15: warning: multi-character character constant [-Wmultichar]
   14 |         cout<<'No';
      |               ^~~~
a.cc: In function 'int main()':
a.cc:6:25: error: request for member 'length' in 's', which is of non-class type 'int'
    6 |         for(int i=0;i<s.length();i++){
      |                         ^~~~~~
a.cc:7:21: error: invalid types 'int[int]' for array subscript
    7 |                 if(s[i]=='C')
      |                     ^
a.cc:9:30: error: invalid types 'int[int]' for array subscript
    9 |                 if(flag==1&&s[i]=='F'){
      |                              ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: 'npos' was not declared in this scope
    8 |   if(posc != npos &&posf !=npos){
      |              ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:9: error: 'string' was not declared in this scope
    2 |         string s;cin>>s;
      |         ^~~~~~
a.cc:2:18: error: 'cin' was not declared in this scope
    2 |         string s;cin>>s;
      |                  ^~~
a.cc:2:23: error: 's' was not declared in this scope
    2 |         string s;cin>>s;
      |                       ^
a.cc:5:14: error: 'npos' was not declared in this scope
    5 |   if(posc != npos &&posf !=npos){
      |              ^~~~
a.cc:7:7: error: 'cout' was not declared in this scope
    7 |       cout << "Yes" << endl;
      |       ^~~~
a.cc:7:24: error: 'endl' was not declared in this scope
    7 |       cout << "Yes" << endl;
      |                        ^~~~
a.cc:9:7: error: 'cout' was not declared in this scope
    9 |       cout << "No" << endl;
      |       ^~~~
a.cc:9:23: error: 'endl' was not declared in this scope
    9 |       cout << "No" << endl;
      |                       ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "No" << endl;
      |     ^~~~
a.cc:12:21: error: 'endl' was not declared in this scope
   12 |     cout << "No" << endl;
      |                     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace sstd;
string a;
int main()
{
  int i,ans,p,t;
  cin>>a;
  for(i=1;i<=n;i++)
  {
    cin>>a[i];
    if(a[i]=='C')
      p=1;
    if(a[i]=='F')
	  t=1;  
  }
  if(p>=1&&t>=1)
    cout<<"Yes"<<endl;
  else
    cout<<"No"<<endl;  
}

Compiler output:
a.cc:2:17: error: 'sstd' is not a namespace-name
    2 | using namespace sstd;
      |                 ^~~~
a.cc:3:1: error: 'string' does not name a type; did you mean 'stdin'?
    3 | string a;
      | ^~~~~~
      | stdin
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin>>a;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:8: error: 'a' was not declared in this scope
    7 |   cin>>a;
      |        ^
a.cc:8:14: error: 'n' was not declared in this scope
    8 |   for(i=1;i<=n;i++)
      |              ^
a.cc:17:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |     cout<<"Yes"<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:17:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   17 |     cout<<"Yes"<<endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:19:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |     cout<<"No"<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:19:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   19 |     cout<<"No"<<endl;
      |                 ^~~~
      |                 std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++


	#include<bits/stdc++.h>//万能头
	
	using namespace std;
	string st;
	int P;
	int main()
	{
		cin>>st;
		for(int i=0;i<st.length();i++)//注意字符串的最后一位下标是st.length()-1
		{
			if(st[i]==67)P=1;//找到C(C的ASCII码是67)
			else if(P==1&&st[i]==70){P=2,s=1;break;}
			//如果这时候已经找到C，又找到F(F的ASCII码是70)，任务完成，退出
		}
		if(P==2)cout<<"Yes\n";
		else cout<<"No\n";
        //最后输出（要换行！！！）
		
		return 0;//结束
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:54: error: 's' was not declared in this scope
   13 |                         else if(P==1&&st[i]==70){P=2,s=1;break;}
      |                                                      ^
Language: C++

#include<bits/stdc++.h>//万能头
	
	using namespace std;
	string st;
	int P;
	int main()
	{
		cin>>st;
		for(int i=0;i<st.length();i++)//注意字符串的最后一位下标是st.length()-1
		{
			if(st[i]==67)P=1;//找到C(C的ASCII码是67)
			else if(P==1&&st[i]==70){P=2,s=1;break;}//如果这时候已经找到C，又找到F(F的ASCII码是70)，任务完成，退出
		}
		if(P==2)cout<<"Yes\n";
		else cout<<"No\n";
        //最后输出（要换行！！！）
		
		return 0;//结束
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:54: error: 's' was not declared in this scope
   12 |                         else if(P==1&&st[i]==70){P=2,s=1;break;}//如果这时候已经找到C，又找到F(F的ASCII码是70)，任务完成，退出
      |                                                      ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: expected ';' before '+' token
   12 |       for(int i+1; i<s.length(); i++) {
      |                ^
      |                ;
a.cc:12:32: error: expected ')' before ';' token
   12 |       for(int i+1; i<s.length(); i++) {
      |          ~                     ^
      |                                )
a.cc:12:37: error: expected ';' before ')' token
   12 |       for(int i+1; i<s.length(); i++) {
      |                                     ^
      |                                     ;
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++;//判是否有C
    if(q!=0&&b[i]=='F')//若有C且后面
    q-=10000000000;//q
    }
    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++;//判是否有C
      |     ^~~
Language: C++

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

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

#include<bits/stdc++.h>
using namespace std;
char s[10000001];
int l;
int mian()
{
    cin>>s;
    l=strlen(s);
    for(long long int i=0;i<l;i++)
    {
        if(s[i]=='C')
        {
            for(long long 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;
char a[10000001];
int l;
int mian()
{
    cin>>s;
    l=strlen(s);
    for(long long int i=0;i<l;i++)
    {
        if(s[i]=='C')
        {
            for(long long 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:7:10: error: 's' was not declared in this scope
    7 |     cin>>s;
      |          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
string b;
int q;
int main()
{
    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:10:22: error: 'qwq' was not declared in this scope
   10 |         if(b[i]=='C')qwq++;
      |                      ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
string s;
int mian()
{
    cin>>s;
    for(int i=0;i<s.size();i++)
    {
        if(s[i]=='C')
        {
            for(int j=i+1;j<s.size();j++)
            {
                if(s[j]=='F')
                {
                    cout<<"Yes";
                    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<algorithm>
#include<iostream>
#include<cstring>
#include<cstdio>
#include<cmath>
using namespace std;
string s;
int main(){
	int Ci,Fi;
	cin>>s;
	for(int i=0;i<n;i++){
		if(s[i]=='C') Ci=i;
		if(s[i]=='F') Fi=i;
	}
	if(Ci<Fi) cout<<"Yes";
	else cout<<"No";
	return 0;
}

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

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

Compiler output:
a.cc: In function 'int mian()':
a.cc:11:14: error: 'j' was not declared in this scope
   11 |         if(s[j]=='F'&&a==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:23:15: error: 'strack' was not declared in this scope; did you mean 'stack'?
   23 |             t=strack[--top];
      |               ^~~~~~
      |               stack
a.cc:32:2: error: expected '}' at end of input
   32 | }
      |  ^
a.cc:7:1: note: to match this '{'
    7 | {
      | ^
Language: C++

#include<stdio.h>
#include<string.h>
int main()
{
	char a[1000],i,len,q;
	gets(a);
	len=strlen(a);
	for(i=0;i<len;i++)
	{
		if(a[i]=='C')
		{
			q=1;
		}
		if(q==1)
		{
			for(j=i;j<len;j++)
			{
				if(a[i]=='F');
				printf("Yes");
				return 0;
			}
		}
	}
	printf("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:16:29: error: 'j' was not declared in this scope
   16 |                         for(j=i;j<len;j++)
      |                             ^
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<cstring>
using namespace std;
int main(){
	char a[101];
	int sum=0;
	gets(a);
	for (int i=0;i<strlen(a);++i){
		if (a[i]=='C'){
			for (int j=i;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:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    7 |         gets(a);
      |         ^~~~
      |         getw
Language: C++

#include<iostream>
#include<string.h>
using namespace std;
int main(){
	char a[101];
	int sum=0;
	gets(a);
	for (int i=0;i<strlen(a);++i){
		if (a[i]=='C'){
			for (int j=i;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:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    7 |         gets(a);
      |         ^~~~
      |         getw
Language: C++

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

string a ;

int main(){
	cin >> a ;
	int len = a.size( ) ;
	for( int i = 1 ; i <= n ; i ++ ){
		if( a[ i ] = 'C' ){
			int len1 = i ;
			break ;
		}
	}
	bool flag = 0 ;
	for( int i = len1 ; i <= len ; i ++ ){
		if( a[ i ] = 'F' ){
			cout << "YES" ;
			flag = 1 ;
			break ;
		}
	}
	if( flag = 0 ){
		cout << "NO" ;
	}
	return  0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:31: error: 'n' was not declared in this scope
   10 |         for( int i = 1 ; i <= n ; i ++ ){
      |                               ^
a.cc:17:22: error: 'len1' was not declared in this scope; did you mean 'len'?
   17 |         for( int i = len1 ; i <= len ; i ++ ){
      |                      ^~~~
      |                      len
Language: C++

#include<iostream>
#include<cstring>
using namespace std;
char s[151];
int main(){
	int n,i,j;
	gets(s);
	n=strlen(s);
	for(i=1;i<=n;i++)
	for(j=i+1;j<=n;j++)
	if(s[i]=='C'&&s[j]=='F')
	{
	cout<<"Yes";
	return 0;
	}
	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(s);
      |         ^~~~
      |         getw
Language: C++

#include<iostream>
#include<cstring>
using namespace std;
char s[151];
int main(){
	int n,i,j;
	gets(s);
	n=strlen(s);
	for(i=1;i<=n;i++)
	for(j=i+1;j<=n;j++)
	if(s[i]=='C'&&a[j]=='F')
	{
	cout<<"Yes";
	return 0;
	}
	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(s);
      |         ^~~~
      |         getw
a.cc:11:23: error: 'a' was not declared in this scope
   11 |         if(s[i]=='C'&&a[j]=='F')
      |                       ^
Language: C++

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

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

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

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

#include<iostream>
#include<cstring>
using namespace std;
char a[1231];
int m,n,s,t;
int main()
{
	gets(a);
	int l=strlen(a);
	for(int i=0;i<l;i++)
	{
		if(a[i]=='C')
		{
			m=i;s++;
			break;
		}
	}
	//cout<<m<<endl;
	for(int i=0;i<l;i++)
	{
		if(a[i]=='F')
		{
			n=i;
			t++;
		}
	}
	//cout<<n<<endl;
	if(s!=0&&t!=0&&m<n)
		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(a);
      |         ^~~~
      |         getw
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<iostream>
#include<cstring>
using namespace std;
char a[100];
int n;
int main(){
    gets(a);
    n=strlen(a);
    for(int i=0;i<=n;i++){
        if(a[i]=='C'){
            for(int j=i;j<n;j++){
                if(a[j]=='F'){
                    cout<<"Yes"<<endl;
                }
            }
        }
        break;
    }
    cout<<"No"<<endl;
}

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

#include<iostream>
#include<cstring>
using namespace std;
char a[100];
int n
int main(){
    gets(a);
    n=strlen(a);
    for(int i=0;i<=n;i++){
        if(a[i]=='C'){
            for(int j=i;j<n;j++){
                if(a[j]=='F'){
                    cout<<"Yes"<<endl;
                }
            }
        }
        break;
    }
    cout<<"No"<<endl;
}

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

#include <iostream>
#include <vector>
#include <algorithm>
#include <iomanip>
using namespace std;
typedef long long unsigned int ll;
 
int main() {
 
  string a,b,c;
  cin >> a;
  int cflag=0;
  int flag=0;
  for (int i=0;i<16;i++){
    if(a[i]=='C') cflag=1;
    if(a[i]=='F' &&cflag==1) flag=1;
  }
  if(flag){  
    cout <<"Yes" <<endl;
  }else{
	cout << "No" <<endl; 
  return 0;
}


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

#include<iostream>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
    cin>>s;
    l=s.size();
    for(register int i=0;i<s.size();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<s.size();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<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<cstring>
using namespace std;
int main()
{
	char str[101];
	gets(str);
	for(int i=0;i<strlen(str);i++){
		if(str[i]=='C'){
			for(int j=i;j<strlen(str);j++){
				if(str[j]=='F'){
					cout<<"Yes"<<"\n";
					return 0;
				}
			}
		}
	}
	cout<<"No"<<"\n";
	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(str);
      |         ^~~~
      |         getw
Language: C++

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

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
	char a[1000];
	bool s=false;
	gets(a);
	int l;
	l=strlen(a);
	for(int i=0;i<l;i++)
	{
			if(a[i]=='C'||a[i]=='c')
			{
				s=true;
			}
			if(a[i]=='F'||a[j]=='f'&&s==true)
			{
				cout<<"YES";
				return 0;
			}
	}
	cout<<"N0";
	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
a.cc:16:41: error: 'j' was not declared in this scope
   16 |                         if(a[i]=='F'||a[j]=='f'&&s==true)
      |                                         ^
Language: C++

#include <bits/stdc++.h>

using namespace std;
using llong = long long;
using P = pair<llong, llong>;

#define BE(x) x.begin(), x.end()

const llong inf = llong(1e18)+7;
const llong mod = 1e9+7;

int main(){
	string s;
	cin >> s;

	strin c;
	for(auto x : s)
		if(x == 'C'){
			if((int)s.size() == 0)
				c += x;
		}else if(x == 'F'){
			if((int)s.size() == 1)
				c += x;
		}

	if(c == "CF")
		cout << "Yes" << endl;
	else
		cout << "No" << endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'strin' was not declared in this scope; did you mean 'stdin'?
   16 |         strin c;
      |         ^~~~~
      |         stdin
a.cc:20:33: error: 'c' was not declared in this scope
   20 |                                 c += x;
      |                                 ^
a.cc:23:33: error: 'c' was not declared in this scope
   23 |                                 c += x;
      |                                 ^
a.cc:26:12: error: 'c' was not declared in this scope
   26 |         if(c == "CF")
      |            ^
Language: C++

#include <bits/stdc++.h>

using namespace std;
using llong = long long;
using P = pair<llong, llong>;

#define BE(x) x.begin(), x.end()

const llong inf = llong(1e18)+7;
const llong mod = 1e9+7;

int main(){
	string s;
	cin >> s;

	string c;
	for(auto x : s)
		if(x == 'C'){
			if((int)s.size() == 0)
				c += x:
		}else if(x == 'F'){
			if((int)s.size() == 1)
				c += x;
		}

	if(c == "CF")
		cout << "Yes" << endl;
	else
		cout << "No" << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:39: error: expected ';' before ':' token
   20 |                                 c += x:
      |                                       ^
      |                                       ;
Language: C++

#include <bits/stdc++.h>

using namespace std;
using llong = long long;
using P = pair<llong, llong>;

#define BE(x) x.begin(), x.end()

const llong inf = llong(1e18)+7;
const llong mod = 1e9+7;

int main(){
	string s;
	cin >> s;

	strin c;
	for(auto x : s)
		if(x == 'C'){
			if((int)s.size() == 0)
				c += x:
		}else if(x == 'F'){
			if((int)s.size() == 1)
				c += x;
		}

	if(c == "CF")
		cout << "Yes" << endl;
	else
		cout << "No" << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'strin' was not declared in this scope; did you mean 'stdin'?
   16 |         strin c;
      |         ^~~~~
      |         stdin
a.cc:20:33: error: 'c' was not declared in this scope
   20 |                                 c += x:
      |                                 ^
a.cc:23:33: error: 'c' was not declared in this scope
   23 |                                 c += x;
      |                                 ^
a.cc:26:12: error: 'c' was not declared in this scope
   26 |         if(c == "CF")
      |            ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: 'a' was not declared in this scope
    9 |                 if(a[i]=='C') c=1;
      |                    ^
a.cc:10:20: error: 'a' was not declared in this scope
   10 |                 if(a[i]=='F') f=1;
      |                    ^