Submission #942383


Source Code Expand

/*input
FCC
*/
#include <bits/stdc++.h>
using namespace std;

int main(int argc, char const *argv[]) {
  char s[102];
  gets(s);
  int n = strlen(s);
  for (int i = 0; i < n - 1; ++i) {
    if (s[i] == 'C')
    for (int j = i + 1; j < n; ++j) {
      if (s[j] == 'F') {
        puts("Yes");
        return 0;
      }
    }
  }
  puts("No");
  return 0;
}

Submission Info

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

Compile Error

./Main.cpp: In function ‘int main(int, const char**)’:
./Main.cpp:9:9: error: ‘gets’ was not declared in this scope
   gets(s);
         ^