Submission #5989794
Source Code Expand
#include <bits/stdc++.h> using namespace std; using ll = long long; #define FOR(i, m, n) for (int i = (m); i < (n); i++) #define REP(i, n) FOR(i, 0, n) #define ALL(c) (c).begin(), (c).end() template<class T> inline bool chmin(T& a, T b) {if (a > b) {a = b; return true;} return false;} template<class T> inline bool chmax(T& a, T b) {if (a < b) {a = b; return true;} return false;} const int MOD = 1000000007; int main() { string s; cin >> s; bool c = false; REP(i, s.size()) { if (!c) { if (s[i] == 'C') { c = true; } } else { if (s[i] == 'F') { cout << "Yes" << endl; return 0; } } } cout << "No" endl; }
Submission Info
Submission Time | |
---|---|
Task | A - CF |
User | mdstoy |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 787 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:28:18: error: expected ‘;’ before ‘endl’ cout << "No" endl; ^