Submission #2251068
Source Code Expand
#include<cstdio> #include<cstring> using namespace std; string s; int l,i,j; int main() { scanf("%s",s); l=strlen(s); for(i=0;i<l;i++) if(s[i]=='C') for(j=i+1;j<l;j++) if(s[j]=='F') return puts("Yes")&0; puts("No"); printf("\n"); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - CF |
User | luogu_bot5 |
Language | C++ (GCC 5.4.1) |
Score | 0 |
Code Size | 298 Byte |
Status | CE |
Compile Error
./Main.cpp:4:1: error: ‘string’ does not name a type string s; ^ ./Main.cpp: In function ‘int main()’: ./Main.cpp:8:16: error: ‘s’ was not declared in this scope scanf("%s",s); ^