Submission #3427900


Source Code Expand

// by DEADFISH
#include<iostream>
#include<cstdio>
#include<algorithm>
#include<cmath>
#include<cstring>
#define p 1e6+7
#define N 10010
#define mc(a,b) memset(a,b,sizeof(a))
#define close std::ios::sync_with_stdio(false)
using namespace std;
typedef long long ln;
string s; 
int main()
{
	cin>>s;
	int len=s.length();
	for(int i=0;i<len;i++)
	{
		if(s[i]=='C') for(int j=i;j<=len;j++)
		{
			if(s[j]=='F') flag=1;
		}
	}
	if(flag) cout<<"Yes";
	else cout<<"No";
	return 0;
}

Submission Info

Submission Time
Task A - CF
User luogu_bot3
Language C++ (GCC 5.4.1)
Score 0
Code Size 502 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:22:18: error: ‘flag’ was not declared in this scope
    if(s[j]=='F') flag=1;
                  ^
./Main.cpp:25:5: error: ‘flag’ was not declared in this scope
  if(flag) cout<<"Yes";
     ^