Submission #942397


Source Code Expand

#include <bits/stdc++.h>

using namespace std;

int main(){
  string s;
  cin >> s;
  bool f = false;
  for(auto i : s)[]
    if(i == 'C'){
      f = true;
    }
    if(i == 'F' && f){
      cout << "Yes" << endl;
      return 0;
    }
  }

  cout << "No" << endl;
}

Submission Info

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

Compile Error

./Main.cpp: In lambda function:
./Main.cpp:10:5: error: expected ‘{’ before ‘if’
     if(i == 'C'){
     ^
./Main.cpp: In function ‘int main()’:
./Main.cpp:10:5: error: expected ‘;’ before ‘if’
./Main.cpp:13:8: error: ‘i’ was not declared in this scope
     if(i == 'F' && f){
        ^
./Main.cpp: At global scope:
./Main.cpp:19:3: error: ‘cout’ does not name a type
   cout << "No" << endl;
   ^
./Main.cpp:20:1: error: expected declaration before ‘}’ token
 }
 ^