Submission #942385
Source Code Expand
// Example program #include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; int x=0; for (i=0; i<strlen(s.c_str()); i++) { if (s.c_str()[i] == 'C' && x == 0) x++; if (s.c_str()[i] == 'F' && x == 1) x++; } if (x==2) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - CF |
User | idkgg |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 391 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:11:10: error: ‘i’ was not declared in this scope for (i=0; i<strlen(s.c_str()); i++) { ^ ./Main.cpp:11:33: error: ‘strlen’ was not declared in this scope for (i=0; i<strlen(s.c_str()); i++) { ^