Submission #941970


Source Code Expand

#include<stdio.h>
int main(){
  int f=0;
  char s[1000010];
  scanf("%s",s);
  for(i=0;s[i];i++){
    if(s[i]=='C'&&f==0)f=1;
    if(s[i]=='F'&&f==1)f=2;
  }
  printf("%s\n",f==2?"Yes":"No");
  return 0;
}

Submission Info

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

Compile Error

./Main.c: In function ‘main’:
./Main.c:6:7: error: ‘i’ undeclared (first use in this function)
   for(i=0;s[i];i++){
       ^
./Main.c:6:7: note: each undeclared identifier is reported only once for each function it appears in
./Main.c:5:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
   scanf("%s",s);
   ^