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

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

#undef _P
#define _P(...) (void)printf(__VA_ARGS__)
#define FOR(x,to) for(x=0;x<(to);x++)
#define FORR(x,arr) for(auto& x:arr)
#define ITR(x,c) for(__typeof(c.begin()) x=c.begin();x!=c.end();x++)
#define ALL(a) (a.begin()),(a.end())
#define ZERO(a) memset(a,0,sizeof(a))
#define MINUS(a) memset(a,0xff,sizeof(a))
//-------------------------------------------------------

int L[101010];
vector<pair<int,int>> E[101010];
int N,M;
ll NL[3],NG,NE;

void dfs(int cur,int pre) {
	NL[L[cur]]++;
	FORR(r,E[cur]) if(r.first!=pre) {
		NE++;
		if(L[r.first]==-1) {
			L[r.first]=(L[cur]+r.second)%3;
			dfs(r.first,cur);
		}
		else {
			if(L[r.first]!=(L[cur]+r.second)%3) NG++;
		}
	}
	
}

void solve() {
	int i,j,k,l,r,x,y; string s;
	
	cin>>N>>M;
	FOR(i,M) {
		cin>>x>>y;
		E[x-1].push_back({y-1,1});
		E[y-1].push_back({x-1,2});
	}
	
	MINUS(L);
	ll ret=0;
	FOR(i,N) if(L[i]==-1) {
		NL[0]=NL[1]=NL[2]=0;
		NG=NE=0;
		L[i]=0;
		dfs(i,-1);
		if(NG) ret += (NL[0]+NL[1]+NL[2])*(NL[0]+NL[1]+NL[2]);
		else if(NL[1]==0 || NL[2]==0) ret += NE;
		return ret += NL[0]*NL[1]+NL[1]*NL[2]+NL[2]*NL[0];
	}
	cout<<ret<<endl;
}


int main(int argc,char** argv){
	string s;int i;
	if(argc==1) ios::sync_with_stdio(false), cin.tie(0);
	FOR(i,argc-1) s+=argv[i+1],s+='\n';
	FOR(i,s.size()) ungetc(s[s.size()-1-i],stdin);
	solve(); return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:54:28: error: return-statement with a value, in function returning 'void' [-fpermissive]
   54 |                 return ret += NL[0]*NL[1]+NL[1]*NL[2]+NL[2]*NL[0];
      |                        ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

    #include<iostream>
    #include<stdio.h>
    //#include <bits/stdc++.h>
    #include<vector>
    #include<float.h>
    #include<iomanip>
    #include<algorithm>
    #include<string>
    #include<cstring>
    #include<math.h>
    #include<cmath>
    #include<sstream>
    #include<set>
    #include<map>
    #include<queue>
    #include<cassert>
    #include<cmath>
    #include<cstdint>
     
    #define INF 1e9
    #define rep(i,n)for(int i=0;(i)<(int)(n);i++)
    #define REP(i,a,b)for(int i=(int)(a);(i)<=(int)(b);i++)
    #define VEC(type, c, n) std::vector<type> c(n);for(auto& i:c)std::cin>>i;
    #define vec(type,n) vector<type>(n)
    #define vvec(m,n) vector<vector<int>> (int(m),vector<int>(n))
    #define ALL(a)  (a).begin(),(a).end()
    #define chmin(a, b) a = min(a, b)
    #define chmax(a, b) a = max(a, b)
    #define pb push_back
    #define sz size()
     
    using namespace std;
    using ll = long long int;
    using Graph = vector<vector<int>>;
    using P = pair<ll, ll>;
     
const int MOD = 1e9 + 7;
const ll ZER = 0;


int main(){
    string s;
    cin >> s;
    bool f = false;
    rep(i, s.sz){
        if(s[i] == "C")f = true;
        if(s[i] == "F" && f){
            cout << "Yes" << endl;
            return 0;
        }
    }
    cout << "No" << endl;
}



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

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

#define all(v) v.begin(), v.end()
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define intll int long long
const intll INF = 100000000000000000;
const int MOD = 1e9 + 7;

int main() {
  string s;
  cin >> s ;
  
  bool OK = false ;
  rep(i,s.size()){
    if(s.at(i) == 'C') OK = true ;
    if(OK && s.at(i) == 'F'){
      cout << "Yes" <<endl;
      return 0 ; 
  }
  
    cout << "No" <<endl ;
  
}


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

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

Compiler output:
a.cc: In function 'int mian()':
a.cc:11:26: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   11 |         for(register int i=0;i<l;i++)
      |                          ^
a.cc:15:42: 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;
int main(){
   string s;
   cin>>s;
   for(int i=0;i< s.size();i++){
    cin>>s[i];
    if(S[i]=="C"){
      for(int j=i+1;j<s.size();j++){
        int s[j];
        if(s[j]=="F"){
          cout<<"Yes"<<endl;
        }
        else if(s[j]!="F"){
          cout<<"No"<<endl;
        }
      }
    }
    else if(s[i]!="C"){
      cout<<"No"<<endl;
    }
   }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'S' was not declared in this scope
    8 |     if(S[i]=="C"){
      |        ^
a.cc:11:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         if(s[j]=="F"){
      |            ~~~~^~~~~
a.cc:14:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |         else if(s[j]!="F"){
      |                 ~~~~^~~~~
a.cc:19:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |     else if(s[i]!="C"){
Language: C++

#include <bits/stdc++.h>
using ll = long long;
using namespace std;
#define rep(i,n) for(int i=0, i##_len=(int)(n); i<i##_len; i++)
#define reps(i,n) for(int i=1 , i##_len=(int)(n);i<=i##_len;i++)
#define rrep(i,n) for(int i=((int)(n)-1);i>=0;i--)
#define rreps(i,n) for(int i=((int)(n));i>0;i--)
#define repi(i,x) for(auto i=(x).begin(),i##_fin=(x).end();i!=i##_fin;i++)
#define all(x) (x).begin(), (x).end()
#define F first
#define S second
#define mp make_pair
#define pb push_back
#define solve(a) ((a)?"Yes":"No")
typedef vector<int> Vi;
typedef vector<Vi> VVi;
typedef pair<int , int> Pi;
typedef vector<Pi> VPi;
typedef vector<long long> V;
typedef vector<V> VV;
typedef pair<long long , long long> P;
typedef vector<P> VP;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1;} return 0;}
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1;} return 0;}
const long long INFLL = 1LL<<60;
const int INF = 1<<30;
const double PI=acos(-1);
int main(){
	strin s;
	int ans=0;
	cin >>s;
	rep(i, s.size()) { ans |= (s[i] == 'C');
		if (ans != 0) {
			ans |= (s[i] == 'F') << 1;
		}
	}
	cout<<solve(ans==3)<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:9: error: 'strin' was not declared in this scope; did you mean 'stdin'?
   29 |         strin s;
      |         ^~~~~
      |         stdin
a.cc:31:15: error: 's' was not declared in this scope
   31 |         cin >>s;
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
using P = pair<string,int>;
const double PI = acos(-1);

int main() {
string s;
cin >> s;
bool flag1 = false,flag2 = false;
rep(i,n){
  if(s.at(i)=='C')flag1 = true;
  if(flag1&&s.at(i)=='F')flag2=true;
}
cout <<(flag2?"Yes":"No")<< endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: 'n' was not declared in this scope
   12 | rep(i,n){
      |       ^
a.cc:3:45: note: in definition of macro 'rep'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                             ^
Language: C++

#include<stdio.h>
#include<iostream>
#include<vector>
#include<math.h>
#include<queue>
#include<map>
#include<algorithm>
#include<string.h>
#include<functional>
#include<limits.h>
#include<stdlib.h>
#include<string>
#include<unordered_map>
#include <iomanip>
using namespace std;
 
#define intmax INT_MAX
#define lmax LONG_MAX
#define uintmax UINT_MAX
#define ulmax ULONG_MAX
#define llmax LLONG_MAX
#define ll long long
#define rep(i,a,N) for((i)=(a);(i)<(N);(i)++)
#define rrp(i,N,a) for((i)=(N)-1;(i)>=(a);(i)--)
#define llfor ll i,j,k
#define sc(a) cin>>a
#define pr(a) cout<<a<<endl
#define pY puts("YES")
#define pN puts("NO")
#define py puts("Yes")
#define pn puts("No")
#define pnn printf("\n")
#define sort(a) sort(a.begin(),a.end())
#define push(a,b) (a).push_back(b)
#define llvec vector<vector<ll>>
#define charvec vector<vector<char>>
#define sizeoof(a,b) (a,vector<ll>(b))
#define llpvec vector<pair<ll,ll>>
/*繰り上げ除算*/ll cei(ll x,ll y){ll ans=x/y;if(x%y!=0)ans++;return ans;}
/*最大公約数*/ll gcd(ll x,ll y){return y?gcd(y,x%y):x;}
/*最小公倍数*/ll lcm(ll x,ll y){return x/gcd(x,y)*y;}
/*n乗*/ll llpow(ll x,ll n){ll i,ans=1;rep(i,0,n)ans*=x;return ans;}
/*階乗*/ll fact(ll x){ll i,ans=1;rep(i,0,x)ans*=(x-i);return ans;}
/*nCr*/ll ncr(ll n,ll r){return fact(n)/fact(r)/fact(n-r);}
/*nPr*/ll npr(ll n,ll r){return fact(n)/fact(n-r);}
/*primejudge*/bool prime(ll a){if(a<=1)return false;ll i;for(i=2;i*i<=a;i++){if(a%i==0)return false;}return true;}
ll ans=0;llfor;///////////////////////////////////////////////////////////
int main(){
  string S;
  cin>>S;
  int N=S.size();
  int K=-1;
  for(int i=0;i<N-1;i++){
    if(S[i]=='C'){
      K=i;
      break;
    }
  }
    if(K==-1) cout<<"No";
    int x=1;
    else{
      for(int i=K+1;i<N;i++){
        if(S[i]=='F'){
          cout<<"Yes";
          x*=0;
          break;
        }
      }
      if(x==1) cout<<"No";
    }
return 0;}


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

#include<stdio.h>
#include<iostream>
#include<vector>
#include<math.h>
#include<queue>
#include<map>
#include<algorithm>
#include<string.h>
#include<functional>
#include<limits.h>
#include<stdlib.h>
#include<string>
#include<unordered_map>
#include <iomanip>
using namespace std;
 
#define intmax INT_MAX
#define lmax LONG_MAX
#define uintmax UINT_MAX
#define ulmax ULONG_MAX
#define llmax LLONG_MAX
#define ll long long
#define rep(i,a,N) for((i)=(a);(i)<(N);(i)++)
#define rrp(i,N,a) for((i)=(N)-1;(i)>=(a);(i)--)
#define llfor ll i,j,k
#define sc(a) cin>>a
#define pr(a) cout<<a<<endl
#define pY puts("YES")
#define pN puts("NO")
#define py puts("Yes")
#define pn puts("No")
#define pnn printf("\n")
#define sort(a) sort(a.begin(),a.end())
#define push(a,b) (a).push_back(b)
#define llvec vector<vector<ll>>
#define charvec vector<vector<char>>
#define sizeoof(a,b) (a,vector<ll>(b))
#define llpvec vector<pair<ll,ll>>
/*繰り上げ除算*/ll cei(ll x,ll y){ll ans=x/y;if(x%y!=0)ans++;return ans;}
/*最大公約数*/ll gcd(ll x,ll y){return y?gcd(y,x%y):x;}
/*最小公倍数*/ll lcm(ll x,ll y){return x/gcd(x,y)*y;}
/*n乗*/ll llpow(ll x,ll n){ll i,ans=1;rep(i,0,n)ans*=x;return ans;}
/*階乗*/ll fact(ll x){ll i,ans=1;rep(i,0,x)ans*=(x-i);return ans;}
/*nCr*/ll ncr(ll n,ll r){return fact(n)/fact(r)/fact(n-r);}
/*nPr*/ll npr(ll n,ll r){return fact(n)/fact(n-r);}
/*primejudge*/bool prime(ll a){if(a<=1)return false;ll i;for(i=2;i*i<=a;i++){if(a%i==0)return false;}return true;}
ll ans=0;llfor;///////////////////////////////////////////////////////////
int main(){
  string S;
  cin>>S;
  int N=S.size();
  int K=-1;
  for(int i=0;i<N-1;i++){
    if(S[i]=='C'){
      K=i;
      break;
    }
    if(K==-1) cout<<"No";
    int x=1;
    else{
      for(int i=K+1;i<N;i++){
        if(S[i]=='F'){
          cout<<"Yes";
          x*=0;
          break;
        }
      }
      if(x==1) cout<<"No";
    }
return 0;}


Compiler output:
a.cc: In function 'int main()':
a.cc:60:5: error: 'else' without a previous 'if'
   60 |     else{
      |     ^~~~
a.cc:70:11: error: expected '}' at end of input
   70 | return 0;}
      |           ^
a.cc:48:11: note: to match this '{'
   48 | int main(){
      |           ^
Language: C++

#include<stdio.h>
#include<iostream>
#include<vector>
#include<math.h>
#include<queue>
#include<map>
#include<algorithm>
#include<string.h>
#include<functional>
#include<limits.h>
#include<stdlib.h>
#include<string>
#include<unordered_map>
#include <iomanip>
using namespace std;
 
#define intmax INT_MAX
#define lmax LONG_MAX
#define uintmax UINT_MAX
#define ulmax ULONG_MAX
#define llmax LLONG_MAX
#define ll long long
#define rep(i,a,N) for((i)=(a);(i)<(N);(i)++)
#define rrp(i,N,a) for((i)=(N)-1;(i)>=(a);(i)--)
#define llfor ll i,j,k
#define sc(a) cin>>a
#define pr(a) cout<<a<<endl
#define pY puts("YES")
#define pN puts("NO")
#define py puts("Yes")
#define pn puts("No")
#define pnn printf("\n")
#define sort(a) sort(a.begin(),a.end())
#define push(a,b) (a).push_back(b)
#define llvec vector<vector<ll>>
#define charvec vector<vector<char>>
#define sizeoof(a,b) (a,vector<ll>(b))
#define llpvec vector<pair<ll,ll>>
/*繰り上げ除算*/ll cei(ll x,ll y){ll ans=x/y;if(x%y!=0)ans++;return ans;}
/*最大公約数*/ll gcd(ll x,ll y){return y?gcd(y,x%y):x;}
/*最小公倍数*/ll lcm(ll x,ll y){return x/gcd(x,y)*y;}
/*n乗*/ll llpow(ll x,ll n){ll i,ans=1;rep(i,0,n)ans*=x;return ans;}
/*階乗*/ll fact(ll x){ll i,ans=1;rep(i,0,x)ans*=(x-i);return ans;}
/*nCr*/ll ncr(ll n,ll r){return fact(n)/fact(r)/fact(n-r);}
/*nPr*/ll npr(ll n,ll r){return fact(n)/fact(n-r);}
/*primejudge*/bool prime(ll a){if(a<=1)return false;ll i;for(i=2;i*i<=a;i++){if(a%i==0)return false;}return true;}
ll ans=0;llfor;///////////////////////////////////////////////////////////
int main(){
  string S;
  cin>>S;
  int N=S.size();
  int K=-1;
  for(int i=0;i<N-1;i++){
    if(S[i]=='C'){
      K=i;
      break;
    }
    if(K=-1) cout<<"No";
    int x=1;
    else{
      for(int i=K+1;i<N;i++){
        if(S[i]=='F'){
          cout<<"Yes";
          x*=0;
          break;
        }
      }
      if(x==1) cout<<"No";
    }
return 0;}


Compiler output:
a.cc: In function 'int main()':
a.cc:60:5: error: 'else' without a previous 'if'
   60 |     else{
      |     ^~~~
a.cc:70:11: error: expected '}' at end of input
   70 | return 0;}
      |           ^
a.cc:48:11: note: to match this '{'
   48 | int main(){
      |           ^
Language: C++

#include<stdio.h>
#include<iostream>
#include<vector>
#include<math.h>
#include<queue>
#include<map>
#include<algorithm>
#include<string.h>
#include<functional>
#include<limits.h>
#include<stdlib.h>
#include<string>
#include<unordered_map>
#include <iomanip>
using namespace std;
 
#define intmax INT_MAX
#define lmax LONG_MAX
#define uintmax UINT_MAX
#define ulmax ULONG_MAX
#define llmax LLONG_MAX
#define ll long long
#define rep(i,a,N) for((i)=(a);(i)<(N);(i)++)
#define rrp(i,N,a) for((i)=(N)-1;(i)>=(a);(i)--)
#define llfor ll i,j,k
#define sc(a) cin>>a
#define pr(a) cout<<a<<endl
#define pY puts("YES")
#define pN puts("NO")
#define py puts("Yes")
#define pn puts("No")
#define pnn printf("\n")
#define sort(a) sort(a.begin(),a.end())
#define push(a,b) (a).push_back(b)
#define llvec vector<vector<ll>>
#define charvec vector<vector<char>>
#define sizeoof(a,b) (a,vector<ll>(b))
#define llpvec vector<pair<ll,ll>>
/*繰り上げ除算*/ll cei(ll x,ll y){ll ans=x/y;if(x%y!=0)ans++;return ans;}
/*最大公約数*/ll gcd(ll x,ll y){return y?gcd(y,x%y):x;}
/*最小公倍数*/ll lcm(ll x,ll y){return x/gcd(x,y)*y;}
/*n乗*/ll llpow(ll x,ll n){ll i,ans=1;rep(i,0,n)ans*=x;return ans;}
/*階乗*/ll fact(ll x){ll i,ans=1;rep(i,0,x)ans*=(x-i);return ans;}
/*nCr*/ll ncr(ll n,ll r){return fact(n)/fact(r)/fact(n-r);}
/*nPr*/ll npr(ll n,ll r){return fact(n)/fact(n-r);}
/*primejudge*/bool prime(ll a){if(a<=1)return false;ll i;for(i=2;i*i<=a;i++){if(a%i==0)return false;}return true;}
ll ans=0;llfor;///////////////////////////////////////////////////////////
int main(){
  string S;
  cin>>A>>B;
  int N=S.size();
  int K=-1;
  for(int i=0;i<N-1;i++){
    if(S[i]=='C'){
      K=i;
      break;
    }
    if(K=-1) cout<<"No";
    int x=1;
    else{
      for(int i=K+1;i<N;i++){
        if(S[i]=='F'){
          cout<<"Yes";
          x*=0;
          break;
        }
      }
      if(x==1) cout<<"No";
    }
return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:50:8: error: 'A' was not declared in this scope
   50 |   cin>>A>>B;
      |        ^
a.cc:50:11: error: 'B' was not declared in this scope
   50 |   cin>>A>>B;
      |           ^
a.cc:60:5: error: 'else' without a previous 'if'
   60 |     else{
      |     ^~~~
a.cc:70:11: error: expected '}' at end of input
   70 | return 0;}
      |           ^
a.cc:48:11: note: to match this '{'
   48 | int main(){
      |           ^
Language: C++

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

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

#include <bits/stdc++.h>
using namespace std;
int main(){
  string S;
  cin>>S;
  bool A=false;
  bool B=false;
  for(int i=0;i<S.size();i++){
    if(S.at(i)=='C'&&A==false)A=true;
    if(S.at(i)=='F'&&A==true){
      cout<<"Yes"<<endl;
    }
    if(i==S.size()-1)B=true;
  }
  if(B==true){cout<<"No"<<endl;
}


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

#include <bits/stdc++.h>
using namespace std;
int main(){
  string S;
  cin>>S;
  bool A=false;
  bool B=false;
  for(int i=0;i<S.size(),i++){
    if(S.at(i)=='C'&&A==false)A=true;
    if(S.at(i)=='F'&&A==true){
      cout<<"Yes"<<endl;
    }
    if(i==S.size()-1)B=true;
  }
  if(B==true){cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:29: error: expected ';' before ')' token
    8 |   for(int i=0;i<S.size(),i++){
      |                             ^
      |                             ;
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  string S;
  cin>>S;
  bool A=false;
  bool B=false;
  for(int i=0;i<S.size,i++){
    if(S.at(i)=='C'&&A==false)A=true;
    if(S.at(i)=='F'&&A==true){
      cout<<"Yes"<<endl;
    }
    if(i==S.size()-1)B=true;
  }
  if(B==true){cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    8 |   for(int i=0;i<S.size,i++){
      |                 ~~^~~~
      |                       ()
a.cc:8:27: error: expected ';' before ')' token
    8 |   for(int i=0;i<S.size,i++){
      |                           ^
      |                           ;
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using Graph = vector<vector<int>>;
const ll mod=1000000007;
const int MAX_N = 1000;         // n の最大値
 
// nCk を取得
double nCk(int n, int k) {
double res=1.0;
for(int i=0; i<n; i++){
res*=0.5;}
for(int i=0; i<k; i++){
res*=(double)(n-i);
res/=(double)(k-i);
}
return res;}
 
int main() {
string s;
cin>>s;
ll k=0;
ll g=0;
ll r=0;
for(ll i=0; i<(ll)s.size(); i++){
if(s.at(i)=='C'){
k=i;
r++;
break;}}
for(ll i=s.size(); i>k; i--){
if(s.at(i)=='F'){
g=i;
r++;
break;}}
if(r==2) cout<< "Yes" << endl;
else cout << "No" << endl;}
else{
cout << "No" << endl;}}




Compiler output:
a.cc:37:1: error: expected unqualified-id before 'else'
   37 | else{
      | ^~~~
a.cc:38:23: error: expected declaration before '}' token
   38 | cout << "No" << endl;}}
      |                       ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using Graph = vector<vector<int>>;
const ll mod=1000000007;
const int MAX_N = 1000;         // n の最大値
 
// nCk を取得
double nCk(int n, int k) {
double res=1.0;
for(int i=0; i<n; i++){
res*=0.5;}
for(int i=0; i<k; i++){
res*=(double)(n-i);
res/=(double)(k-i);
}
return res;}
 
int main() {
string s;
cin>>s;
ll k=0;
ll g=0;
ll r=0;
for(ll i=0; i<s.size(); i++){
if(s.at(i)=='C'){
k=i;
r++;
break;}}
for(ll i=s.size(); i>k; i--){
if(s.at(i)=='F'){
g=i;
r++;
break;}}
if(r==2) cout<< "Yes" << endl;
else cout << "No" << endl;}
else{
cout << "No" << endl;}}




Compiler output:
a.cc:37:1: error: expected unqualified-id before 'else'
   37 | else{
      | ^~~~
a.cc:38:23: error: expected declaration before '}' token
   38 | cout << "No" << endl;}}
      |                       ^
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main(void){

 string s;
cin >> s;
bool a,b;
for( int i = 0; i<16;++i){
  if(s[i]=='C')a = true;

if(s[i]=='F' && a ) b = true;
} 

cout << b ? "Yes" : "No" << endl;



}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:26: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   17 | cout << b ? "Yes" : "No" << endl;
      |                     ~~~~~^~~~~~~
Language: C

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: 'a' was not declared in this scope
   11 |                 if(a[i] == 'c')
      |                    ^
a.cc:15:20: error: 'a' was not declared in this scope
   15 |                 if(a[i] == 'f' && ans)
      |                    ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'string' was not declared in this scope
    3 |     string a;
      |     ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin>>a;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:4:10: error: 'a' was not declared in this scope
    4 |     cin>>a;
      |          ^
a.cc:11:13: error: 'cout' was not declared in this scope
   11 |             cout<<"Yes";
      |             ^~~~
a.cc:11:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:5: error: 'cout' was not declared in this scope
   15 |     cout<<"No";
      |     ^~~~
a.cc:15:5: 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 s ;

    cin >> s ;

    int a = 0;

    int b = 0 ;

    int c = 0 ;

    int d = 0 ;


    for ( int i = 0 ; i < s.size() ; i++){

        if (s.at(i) == 'C') {a = 1 ;

        C = i ;

        break;

        }

    }

    for ( int i = 0 ; i < s.size() ; i++){

        if (s.at(i) == 'F') {b = 1 ;

        d = i ;

        break;
        
        }

    }

    if ( a==1 && b == 1 && c < d) cout << "Yes" << endl ;

    else cout << "No" << endl;

}

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

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

int main() {

    string s ;

    cin >> s ;

    int a = 0;

    int b = 0 ;

    int c = 0 ;

    int d = 0 ;


    for ( int i = 0 ; i < s.size() ; i++){

        if (s.at(i) == 'C') {a = 1 ;

        C = i

        break;

        }

    }

    for ( int i = 0 ; i < s.size() ; i++){

        if (s.at(i) == 'F') {b = 1 ;

        break;

        d = i
        
        }

    }

    if ( a==1 && b == 1 && c < d) cout << "Yes" << endl ;

    else cout << "No" << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:9: error: 'C' was not declared in this scope
   23 |         C = i
      |         ^
a.cc:37:14: error: expected ';' before '}' token
   37 |         d = i
      |              ^
      |              ;
   38 | 
   39 |         }
      |         ~
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int mian()':
a.cc:11:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   11 |     for(register int i=0;i<l;i++)
      |                      ^
a.cc: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<iostream>
using namespace syd;

int main() {
  bool flag = false;
  char tmp;
  while(cin >> tmp) {
    if (flag && tmp == 'F') {
      cout << "Yes" << endl;
      return 0;
    }
    else if (!flag && tmp == 'C') {
      flag = true;
    }
  }
  cout << "No" << endl;
}

Compiler output:
a.cc:2:17: error: 'syd' is not a namespace-name
    2 | using namespace syd;
      |                 ^~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   while(cin >> tmp) {
      |         ^~~
      |         std::cin
In file included 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:9:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |       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:9:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |       cout << "Yes" << endl;
      |                        ^~~~
      |                        std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:16:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |   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:16:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |   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<iostream>
using namespace syd;

int main() {
  bool flag = false;
  char tmp;
  while(cin >> tmp) {
    if (flag && tmp == 'F') {
      cout << "Yes" << endl;
      return 0;
    }
    else if (!flag && tmp == 'C') {
      flag = true;
    }
  }
  cout << "No" << endl;

Compiler output:
a.cc:2:17: error: 'syd' is not a namespace-name
    2 | using namespace syd;
      |                 ^~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   while(cin >> tmp) {
      |         ^~~
      |         std::cin
In file included 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:9:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |       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:9:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |       cout << "Yes" << endl;
      |                        ^~~~
      |                        std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:16:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |   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:16:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |   cout << "No" << endl;
      |                   ^~~~
      |                   std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:16:24: error: expected '}' at end of input
   16 |   cout << "No" << endl;
      |                        ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include<stdio.h>

int main()
{char a[101];

int q=0;
int s=0;
scanf("%s",a);
int l=strlen(a);
int i,j;
for(i=0;i<l;i++)
{if(a[i]=='C'){
	 q=1;
	for(j=i+1;j<l;j++)
{
	if(a[j]=='F'){
		printf("Yes");
	s=1;
	break;
	}
	}
if(s==0)printf("No");
}
}
	if(q==0)
	printf("No");
	return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: 'v' was not declared in this scope
    8 |         if(a[i]=='C')v[0]=1;
      |                      ^
a.cc:9:23: error: 'v' was not declared in this scope
    9 |         if(a[i]=='F'&&v[0])v[1]=1;
      |                       ^
a.cc:11:8: error: 'v' was not declared in this scope
   11 |     if(v[1])cout<<"Yes";
      |        ^
Language: C++

#include<iostream>
#include<cstdio>
#include<cstring>
#include<string>
using namespace std;
char s[205];
int flag;
int main(){
    scanf("%s",s);
    int n=strlen(s);
    for(register int i=0;i<n;++i){
        if(s[i]=='C')flag=1;
        if(s[i]=='F'&&flag==1)cout<<"Yes\n";
        else cout<<"No\n";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   11 |     for(register int i=0;i<n;++i){
      |                      ^
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:8:11: note: to match this '{'
    8 | int main(){
      |           ^
Language: C++

#include<iostream>
#include<cstdio>
#include<cstring>
#include<string>
using namespace std;
char s[205];
int flag;
int main(){
    scanf("%s",s);
    int n=strlen(s);
    for(register int i=0;i<n;++i){
        if(s[i]=='C')flag1=1;
        if(s[i]=='F'&&flag1==1)cout<<"Yes\n";
        else cout<<"No\n";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   11 |     for(register int i=0;i<n;++i){
      |                      ^
a.cc:12:22: error: 'flag1' was not declared in this scope; did you mean 'flag'?
   12 |         if(s[i]=='C')flag1=1;
      |                      ^~~~~
      |                      flag
a.cc:13:23: error: 'flag1' was not declared in this scope; did you mean 'flag'?
   13 |         if(s[i]=='F'&&flag1==1)cout<<"Yes\n";
      |                       ^~~~~
      |                       flag
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:8:11: note: to match this '{'
    8 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;

int main() {
    string s;
    cin >> s;
    string t = s;
    reverse(t.begin(), t.end());
    string ans = "No";
    if (s.find != string::npos && s.find('F') != string::npos && s.find('C') < t.size() - t.find('F') - 1) ans = "Yes";
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: invalid operands of types '<unresolved overloaded function type>' and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'} to binary 'operator!='
   13 |     if (s.find != string::npos && s.find('F') != string::npos && s.find('C') < t.size() - t.find('F') - 1) ans = "Yes";
      |         ~~~~~~ ^~ ~~~~~~~~~~~~
      |           |               |
      |           |               const std::__cxx11::basic_string<char>::size_type {aka const long unsigned int}
      |           <unresolved overloaded function type>
Language: C++

int main(void)
{
	char N[101];
	int  i,flag=0;
	scanf("%s", &N);
	for (i = 0; i < 100; i++) {
		if (N[i] == 'C')
		{
			flag = 1; continue;
		}
		if(flag==1  &&N[i] == 'F')
		{
			printf("Yes"); return 0;
		}
	}
	printf("No");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'scanf' was not declared in this scope
    5 |         scanf("%s", &N);
      |         ^~~~~
a.cc:13:25: error: 'printf' was not declared in this scope
   13 |                         printf("Yes"); return 0;
      |                         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void)
a.cc:16:9: error: 'printf' was not declared in this scope
   16 |         printf("No");
      |         ^~~~~~
a.cc:16:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

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

int main(){
    string s;
    cin >> s;
    bool flag1 = false;
    bool flag2 = false;
    for(char i:s){
        if(i=='C') flag1 = true;
        if(i=='F') flag2 = true;
    }
    if(flag1==true&&flag==true) cout << "Yes" << endl;
    else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:21: error: 'flag' was not declared in this scope; did you mean 'flag2'?
   13 |     if(flag1==true&&flag==true) cout << "Yes" << endl;
      |                     ^~~~
      |                     flag2
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:23: error: 'cnt' was not declared in this scope; did you mean 'int'?
   14 |         if(a[i]=='F'&&cnt==1){
      |                       ^~~
      |                       int
Language: C++

#include<bits/stdc++.h>
using namespace std;
string s;
int main(){
    cin>>s;
    if(s.find(‘C’)==-1||s.find(‘F’)==-1)cout<<“No”;
    else if(s.find(’C’)<s.find(‘F’))cout<<“Yes”;
    else cout<<“No”;
    return 0;
}

Compiler output:
a.cc:6:15: error: extended character ‘ is not valid in an identifier
    6 |     if(s.find(‘C’)==-1||s.find(‘F’)==-1)cout<<“No”;
      |               ^
a.cc:6:15: error: extended character ’ is not valid in an identifier
a.cc:6:32: error: extended character ‘ is not valid in an identifier
    6 |     if(s.find(‘C’)==-1||s.find(‘F’)==-1)cout<<“No”;
      |                                ^
a.cc:6:32: error: extended character ’ is not valid in an identifier
a.cc:6:47: error: extended character “ is not valid in an identifier
    6 |     if(s.find(‘C’)==-1||s.find(‘F’)==-1)cout<<“No”;
      |                                               ^
a.cc:6:47: error: extended character ” is not valid in an identifier
a.cc:7:20: error: extended character ’ is not valid in an identifier
    7 |     else if(s.find(’C’)<s.find(‘F’))cout<<“Yes”;
      |                    ^
a.cc:7:20: error: extended character ’ is not valid in an identifier
a.cc:7:32: error: extended character ‘ is not valid in an identifier
    7 |     else if(s.find(’C’)<s.find(‘F’))cout<<“Yes”;
      |                                ^
a.cc:7:32: error: extended character ’ is not valid in an identifier
a.cc:7:43: error: extended character “ is not valid in an identifier
    7 |     else if(s.find(’C’)<s.find(‘F’))cout<<“Yes”;
      |                                           ^
a.cc:7:43: error: extended character ” is not valid in an identifier
a.cc:8:16: error: extended character “ is not valid in an identifier
    8 |     else cout<<“No”;
      |                ^
a.cc:8:16: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:6:15: error: '\U00002018C\U00002019' was not declared in this scope
    6 |     if(s.find(‘C’)==-1||s.find(‘F’)==-1)cout<<“No”;
      |               ^~~
a.cc:6:32: error: '\U00002018F\U00002019' was not declared in this scope
    6 |     if(s.find(‘C’)==-1||s.find(‘F’)==-1)cout<<“No”;
      |                                ^~~
a.cc:6:47: error: '\U0000201cNo\U0000201d' was not declared in this scope
    6 |     if(s.find(‘C’)==-1||s.find(‘F’)==-1)cout<<“No”;
      |                                               ^~~~
a.cc:7:20: error: '\U00002019C\U00002019' was not declared in this scope
    7 |     else if(s.find(’C’)<s.find(‘F’))cout<<“Yes”;
      |                    ^~~
a.cc:7:43: error: '\U0000201cYes\U0000201d' was not declared in this scope
    7 |     else if(s.find(’C’)<s.find(‘F’))cout<<“Yes”;
      |                                           ^~~~~
a.cc:8:16: error: '\U0000201cNo\U0000201d' was not declared in this scope
    8 |     else cout<<“No”;
      |                ^~~~
Language: C++

#include<bits/c++.h>
using namespace std;
string s;
int main{
    cin>>s;
    if(s.find(‘C’)==-1||s.find(‘F’)==-1)cout<<“No”;
    else if(s.find(’C’)<s.find(‘F’))cout<<“Yes”;
    else cout<<“No”;
    return 0;
}

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

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

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

#include <bits/stdc++.h>
using 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 <bits/stdc++.h> 
using namespace std;

int main()
{
    char s;
    cin>>s;
    int len=strlen(s);
    for(int i=0; i<len; i++)
        for(int j=i+1; j<len; j++)
            if(i=='C' && j=='F')
            {
                cout<<"YES";
                return 0;
            }
    cout<<"NO";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
    8 |     int len=strlen(s);
      |                    ^
      |                    |
      |                    char
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
Language: C++

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

int main()
{
    string s;
    cin>>s;
    int len=strlen(s);
    for(int i=0; i<len; i++)
        for(int j=i+1; j<len; j++)
            if(i=='C' && j=='F')
            {
                cout<<"YES";
                return 0;
            }
    cout<<"NO";
    return 0;
}

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

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

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

#include<bits/stdc++.h>
using namespace std;
inline int read()
{
    int x=0,f=1;
    char c=getchar();
    while(c<'0'||c>'9') {if(c=='-') f=-1; c=getchar();}
    while(c>='0'&&c<='9') {x=x*10+c-'0'; c=getchar();}
    return f*x;
}
inline void write(int x)
{
    if(x<0) {putchar('-'); x=-x;}
    if(x>9) write(x/10);
    putchar(x%10+'0');
}
int main(){
	string s;
	cin>>s;
	for (int i=0;i<s.length();i++){
		if (s[i]=='C'){
			num=1;
		}
		if (s[i]=='F'&&num==1){
			cout<<"Yes";
		}
	}
	cout<<"No";
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:25: error: 'num' was not declared in this scope; did you mean 'enum'?
   22 |                         num=1;
      |                         ^~~
      |                         enum
a.cc:24:32: error: 'num' was not declared in this scope; did you mean 'enum'?
   24 |                 if (s[i]=='F'&&num==1){
      |                                ^~~
      |                                enum
Language: C++

#include<iostream>
using namespace std;
int main()
{
	int temp=0;
	char le;
	while(cin>>le)
	{
		if(le=='C') temp++;
		if(temp==1&&le=='F') temp++;
		if(temp==2) 
		{
			cout<<"Yes"<<endl;
			num++;
			return 0;
		}
	}
    cout<<"No"<<endl;
	return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:28: error: 'i' was not declared in this scope
   16 |                 if((char)s[i]=='F')
      |                            ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:31: 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<a.size;j++)
      |                             ~~^~~~
      |                                   ()