criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include<bits/stdc++.h>
main(){std::string s;fgets(&s[0],100,std::cin);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){std::string s;fgets(&s[0],100,std::cin);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:43: error: cannot convert 'std::istream' {aka 'std::basic_istream<char>'} to 'FILE*'
    2 | main(){std::string s;fgets(&s[0],100,std::cin);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
      |                                      ~~~~~^~~
      |                                           |
      |                                           std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/stdio.h:654:69: note:   initializing argument 3 of 'char* fgets(char*, int, FILE*)'
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |                                                    ~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include<bits/stdc++.h>
main(){std::string s;fgets(&s[0],100);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){std::string s;fgets(&s[0],100);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:27: error: too few arguments to function 'char* fgets(char*, int, FILE*)'
    2 | main(){std::string s;fgets(&s[0],100);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
      |                      ~~~~~^~~~~~~~~~~
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/stdio.h:654:14: note: declared here
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |              ^~~~~
Language: C++

#include<bits/stdc++.h>
main(){std::string s;fgets(s);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){std::string s;fgets(s);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:28: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char*'
    2 | main(){std::string s;fgets(s);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
      |                            ^
      |                            |
      |                            std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/stdio.h:654:38: note:   initializing argument 1 of 'char* fgets(char*, int, FILE*)'
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |                     ~~~~~~~~~~~~~~~~~^~~
Language: C++

#include<bits/stdc++.h>
main(){std::string s;gets(s);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){std::string s;gets(s);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:22: error: 'gets' was not declared in this scope; did you mean 'getw'?
    2 | main(){std::string s;gets(s);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
      |                      ^~~~
      |                      getw
Language: C++

#include<bits/stdc++.h>
main(s){std::getline(std::cin,s);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}

Compiler output:
a.cc:2:5: error: expected constructor, destructor, or type conversion before '(' token
    2 | main(s){std::getline(std::cin,s);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
      |     ^
Language: C++

#include<bits/stdc++.h>
main(){std::getline(std::cin,s);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){std::getline(std::cin,s);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:30: error: 's' was not declared in this scope
    2 | main(){std::getline(std::cin,s);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
      |                              ^
Language: C++

#include<bits/stdc++.h>
main(){std::string s=std::cin.get();puts(s.find(70,s.find(67))!=-1?"Yes":"No");}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){std::string s=std::cin.get();puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:34: error: conversion from 'std::basic_istream<char>::int_type' {aka 'int'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    2 | main(){std::string s=std::cin.get();puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
      |                      ~~~~~~~~~~~~^~
Language: C++

#include<string>
main(){char c[];scanf("%s",c);std::string s(c);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){char c[];scanf("%s",c);std::string s(c);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:13: error: storage size of 'c' isn't known
    2 | main(){char c[];scanf("%s",c);std::string s(c);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
      |             ^
Language: C++

#include<string>
main(i,c)char*c;{std::string s;for(;~scanf("%s",c);)s+=c;puts(s.find(70,s.find(67))>0?"Yes":"No");}

Compiler output:
a.cc:2:5: error: expected constructor, destructor, or type conversion before '(' token
    2 | main(i,c)char*c;{std::string s;for(;~scanf("%s",c);)s+=c;puts(s.find(70,s.find(67))>0?"Yes":"No");}
      |     ^
a.cc:2:17: error: expected unqualified-id before '{' token
    2 | main(i,c)char*c;{std::string s;for(;~scanf("%s",c);)s+=c;puts(s.find(70,s.find(67))>0?"Yes":"No");}
      |                 ^
Language: C++

#include<string>
main(c)char*c;{std::string s;for(;~scanf("%s",c);)s+=c;puts(s.find(70,s.find(67))>0?"Yes":"No");}

Compiler output:
a.cc:2:5: error: expected constructor, destructor, or type conversion before '(' token
    2 | main(c)char*c;{std::string s;for(;~scanf("%s",c);)s+=c;puts(s.find(70,s.find(67))>0?"Yes":"No");}
      |     ^
a.cc:2:15: error: expected unqualified-id before '{' token
    2 | main(c)char*c;{std::string s;for(;~scanf("%s",c);)s+=c;puts(s.find(70,s.find(67))>0?"Yes":"No");}
      |               ^
Language: C++

main(){char c[100];scanf("%s",c);std::string s(c);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}

Compiler output:
a.cc:1:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    1 | main(){char c[100];scanf("%s",c);std::string s(c);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
      | ^~~~
a.cc: In function 'int main()':
a.cc:1:20: error: 'scanf' was not declared in this scope
    1 | main(){char c[100];scanf("%s",c);std::string s(c);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
      |                    ^~~~~
a.cc:1:39: error: 'string' is not a member of 'std'
    1 | main(){char c[100];scanf("%s",c);std::string s(c);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
      |                                       ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | main(){char c[100];scanf("%s",c);std::string s(c);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
a.cc:1:56: error: 's' was not declared in this scope
    1 | main(){char c[100];scanf("%s",c);std::string s(c);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
      |                                                        ^
a.cc:1:51: error: 'puts' was not declared in this scope
    1 | main(){char c[100];scanf("%s",c);std::string s(c);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
      |                                                   ^~~~
Language: C++

#include<string>
main(){char c[100];scanf("%s",c)std::string s(c);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){char c[100];scanf("%s",c)std::string s(c);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:33: error: expected ';' before 'std'
    2 | main(){char c[100];scanf("%s",c)std::string s(c);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
      |                                 ^~~
      |                                 ;
a.cc:2:55: error: 's' was not declared in this scope
    2 | main(){char c[100];scanf("%s",c)std::string s(c);puts(s.find(70,s.find(67))!=-1?"Yes":"No");}
      |                                                       ^
Language: C++

#include<string>
using namespace std;main()char c[100],scanf("%s",&c);string s(c),printf("%s\n",s.find('F',s.find('C'))!=-1?"Yes":"No");

Compiler output:
a.cc:2:27: error: expected constructor, destructor, or type conversion before 'char'
    2 | using namespace std;main()char c[100],scanf("%s",&c);string s(c),printf("%s\n",s.find('F',s.find('C'))!=-1?"Yes":"No");
      |                           ^~~~
a.cc:2:63: error: 'c' was not declared in this scope
    2 | using namespace std;main()char c[100],scanf("%s",&c);string s(c),printf("%s\n",s.find('F',s.find('C'))!=-1?"Yes":"No");
      |                                                               ^
a.cc:2:72: error: 'std::string printf' redeclared as different kind of entity
    2 | using namespace std;main()char c[100],scanf("%s",&c);string s(c),printf("%s\n",s.find('F',s.find('C'))!=-1?"Yes":"No");
      |                                                                        ^
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from a.cc:1:
/usr/include/stdio.h:363:12: note: previous declaration 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |            ^~~~~~
Language: C++

#include<bits/stdc++.h>
main(){std::string s;std::cin>>s;std::cout<<(s.find('F',s.find('C'))!=-1?"Yes":"No")<<endl;}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){std::string s;std::cin>>s;std::cout<<(s.find('F',s.find('C'))!=-1?"Yes":"No")<<endl;}
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:87: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    2 | main(){std::string s;std::cin>>s;std::cout<<(s.find('F',s.find('C'))!=-1?"Yes":"No")<<endl;}
      |                                                                                       ^~~~
      |                                                                                       std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h> main(){std::string s;std::cin>>s;printf("%s\n",s.find('F',s.find('C'))!=-1?"Yes":"No");}

Compiler output:
a.cc:1:26: warning: extra tokens at end of #include directive
    1 | #include <bits/stdc++.h> main(){std::string s;std::cin>>s;printf("%s\n",s.find('F',s.find('C'))!=-1?"Yes":"No");}
      |                          ^~~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <string> using namespace std;main(){string s;scanf("%s", s);int f=s.rfind('F'),c=s.find('C');printf("%s\n",c>=0&&f>c?"Yes":"No");}

Compiler output:
a.cc:1:19: warning: extra tokens at end of #include directive
    1 | #include <string> using namespace std;main(){string s;scanf("%s", s);int f=s.rfind('F'),c=s.find('C');printf("%s\n",c>=0&&f>c?"Yes":"No");}
      |                   ^~~~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <string>using namespace std;main(){string s;scanf("%s", s);int f=s.rfind('F'),c=s.find('C');printf("%s\n",c>=0&&f>c?"Yes":"No");}

Compiler output:
a.cc:1:24: warning: extra tokens at end of #include directive
    1 | #include <string>using namespace std;main(){string s;scanf("%s", s);int f=s.rfind('F'),c=s.find('C');printf("%s\n",c>=0&&f>c?"Yes":"No");}
      |                        ^~~~~~~~~
a.cc:1:10: fatal error: string>usin: No such file or directory
    1 | #include <string>using namespace std;main(){string s;scanf("%s", s);int f=s.rfind('F'),c=s.find('C');printf("%s\n",c>=0&&f>c?"Yes":"No");}
      |          ^~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <cstdio>
#include <algorithm>
#include <iostream>
#include <vector>
#include <cmath>
#include <string>
#define pb push_back
#define mod 1000000007
using namespace std;
typedef long long int ll;

int main(void){
  string s;
  cin>>s;

  bool f1,f2;
  f1=f2=false;
  for(int i=0;i<s.size();i++){
    if(s[i]=='C') f1=true;
    if(f1&&s[i]=='F') f2=true;
  }
  cout<<(f2?:"Yes":"No")<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:12: error: operands to '?:' have different types 'bool' and 'const char*'
   22 |   cout<<(f2?:"Yes":"No")<<endl;
      |          ~~^~~~~~~
a.cc:22:19: error: expected ')' before ':' token
   22 |   cout<<(f2?:"Yes":"No")<<endl;
      |         ~         ^
      |                   )
Language: C++

#include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<(int)(n);i++)
#define ALL(x) (x).begin(),(x).end()
#define LL long long
#define pii pair<int,int>
#define pll pair<LL,LL>

using namespace std;

int main(){

    string s;
    cin>>s;

    bool haveC=false;
    bool haveF=false;

    int index=0;
    while(index<s.size()){
        if(s[index]=='C'){
            haveC=true;
            break;
        }
        index++;
    }
    while(index<s.size()){
        if(s[index]=='F'){
            haveF=true;
            break;
        }
    }
    if(haveC&&haveF)coue<<"Yes"<<endl;
    else cout<<"No"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:21: error: 'coue' was not declared in this scope
   32 |     if(haveC&&haveF)coue<<"Yes"<<endl;
      |                     ^~~~
Language: C

#include <stdio.h>
#include <string.h>

int main()
{
    bool ans = false;
    int i,j;
    char s[101];
    // 整数の入力
    scanf("%s",s);
    // 解析
    for (i=0;i<strlen(s);++i)
    {
        if (s[i]=='C')
        {
            for (j=i+1;j<strlen(s);++j)
            {
                if (s[j]=='F')
                {
                    ans = true;
                }
            }
        }
    }
    // 出力
    printf("%s\n", ans? "Yes":"No");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:5: error: unknown type name 'bool'
    6 |     bool ans = false;
      |     ^~~~
main.c:3:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    2 | #include <string.h>
  +++ |+#include <stdbool.h>
    3 | 
main.c:6:16: error: 'false' undeclared (first use in this function)
    6 |     bool ans = false;
      |                ^~~~~
main.c:6:16: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:6:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:27: error: 'true' undeclared (first use in this function)
   20 |                     ans = true;
      |                           ^~~~
main.c:20:27: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C

#include<stdio.h>
int main()
{
    bool ans = false;
    int i,j;
    char s[101];
    // 整数の入力
    scanf("%s",s);
    // 解析
    for (i=0;i<strlen(s);++i)
    {
        if (s[i]=='C')
        {
            for (j=i+1;j<strlen(s);++j)
            {
                if (s[j]=='F')
                {
                    ans = true;
                }
            }
        }
    }
    // 出力
    printf("%s\n", ans? "Yes":"No");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:5: error: unknown type name 'bool'
    4 |     bool ans = false;
      |     ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    2 | int main()
main.c:4:16: error: 'false' undeclared (first use in this function)
    4 |     bool ans = false;
      |                ^~~~~
main.c:4:16: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:4:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:16: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
   10 |     for (i=0;i<strlen(s);++i)
      |                ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strlen'
    1 | #include<stdio.h>
  +++ |+#include <string.h>
    2 | int main()
main.c:10:16: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
   10 |     for (i=0;i<strlen(s);++i)
      |                ^~~~~~
main.c:10:16: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:18:27: error: 'true' undeclared (first use in this function)
   18 |                     ans = true;
      |                           ^~~~
main.c:18:27: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C++

#include<bits/stdc++.h>
using namespace std;
     
#define lli long long
#define FOR(i,a,b) for (lli i=(a);i<(b);i++)
#define REP(i,n) for (lli i=0;i<(n);i++)
#define rep(i,n) for (lli i=0;i<(n);i++)
     
#define INF LONG_MAX/3
#define PB push_back
#define pb push_back
#define all(a) (a).begin(),(a),end()
#define pll pair<lli,lli>
     
int main(){
  int f=0;
  string str;
  cin>>str;

  for(int i=0;i<str.length();i++){
    if(str[i]=="C")f=1;
    if(str[i]=="F" and f=1)f=2;
  }

  if(f==2)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
      
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |     if(str[i]=="C")f=1;
a.cc:22:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   22 |     if(str[i]=="F" and f=1)f=2;
a.cc:22:20: error: lvalue required as left operand of assignment
   22 |     if(str[i]=="F" and f=1)f=2;
Language: Java

import java.util.Scanner;
class main{
public static void main(String[] args){
Scanner inp=new Scanner(System.in);
string a=inp.next();
int b=0;
while(a.charAt(b)!="c"&&b>a.length()){
  b++;
}
if(b!=a.length()-1){
  while(a.charAt(b)!="f"&&b>a.length()){
    b++;
  }
}
if(b=>a.length()){
a="No";
}else{
a="Yes";
}

System.out.println(a);
}
}

Compiler output:
Main.java:15: error: illegal start of expression
if(b=>a.length()){
     ^
1 error
Language: C++

#include <iostream>

using namespace std;

void main(void) {
    string temp;
    int aru=0;
    
    cin >> temp;
    
    for(char find:temp){
        if('C' == find&&aru == 0)
            aru++;
        if(aru == 1&&'F' == find){
            cout << "Yes" <<endl;
            aru++;
           }
    }
    if(aru<2)
    cout << "No" <<endl;
}

Compiler output:
a.cc:5:1: error: '::main' must return 'int'
    5 | void main(void) {
      | ^~~~
Language: C++

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

int main() {
	string input;
	cin >> input;
	if(find(find(input.begin(), input.end(), 'C'), input.end, 'F') != string::npos) {
		cout << "Yes" << endl;
	} else {
		cout << "No" << endl;
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: no matching function for call to 'find(__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >, <unresolved overloaded function type>, char)'
    7 |         if(find(find(input.begin(), input.end(), 'C'), input.end, 'F') != string::npos) {
      |            ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:3842:5: note: candidate: '_IIter std::find(_IIter, _IIter, const _Tp&) [with _IIter = __gnu_cxx::__normal_iterator<char*, __cxx11::basic_string<char> >; _Tp = char]'
 3842 |     find(_InputIterator __first, _InputIterator __last,
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:3842:49: note:   no known conversion for argument 2 from '<unresolved overloaded function type>' to '__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >'
 3842 |     find(_InputIterator __first, _InputIterator __last,
      |                                  ~~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:60:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> std::find(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, const _Tp&)'
   60 | find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:60:1: note:   candidate expects 4 arguments, 3 provided
In file included from /usr/include/c++/14/iterator:66,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54:
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT, std::char_traits<_CharT> > >::__type std::find(istreambuf_iterator<_CharT, char_traits<_CharT> >, istreambuf_iterator<_CharT, char_traits<_CharT> >, const _CharT2&)'
  435 |     find(istreambuf_iterator<_CharT> __first,
      |     ^~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note:   template argument deduction/substitution failed:
a.cc:7:16: note:   '__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >' is not derived from 'std::istreambuf_iterator<_CharT, std::char_traits<_CharT> >'
    7 |         if(find(find(input.begin(), input.end(), 'C'), input.end, 'F') != string::npos) {
      |            ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int K,T;
int cake[101];
int main(){
  cin>>K>>T;

  for(int i = 0; i < T; i++){
    cin>>cake[i];
  }
  sort(cake,cake+T);
 

  if(T == 1){
    cout<<cake[0]-1<<endl;
   
  }

  else if(cake[T-1] - cake[T-2] > 1){
    int sum = 0;
    for(int i = 0; i < T-1; i++){
      sum += cake[i];
    }
    if(cake[T-1]-sum-1 > 0)cout<<cake[T-1]-sum-1<<endl;
    else {cout<<'0'<<endl;}
  }
  else cout<<'0'<<endl;
  

Compiler output:
a.cc: In function 'int main()':
a.cc:28:24: error: expected '}' at end of input
   28 |   else cout<<'0'<<endl;
      |                        ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: C++

There are K pieces of cakes. Mr. Takahashi would like to eat one cake per day, taking K days to eat them all.

There are T types of cake, and the number of the cakes of type i (1≤i≤T) is ai.

Eating the same type of cake two days in a row would be no fun, so Mr. Takahashi would like to decide the order for eating cakes that minimizes the number of days on which he has to eat the same type of cake as the day before.

Compute the minimum number of days on which the same type of cake as the previous day will be eaten.

Compiler output:
a.cc:3:67: error: extended character ≤ is not valid in an identifier
    3 | There are T types of cake, and the number of the cakes of type i (1≤i≤T) is ai.
      |                                                                   ^
a.cc:3:67: error: extended character ≤ is not valid in an identifier
a.cc:1:1: error: 'There' does not name a type
    1 | There are K pieces of cakes. Mr. Takahashi would like to eat one cake per day, taking K days to eat them all.
      | ^~~~~
Language: C++

#include <iostream>
#include <string>

int main(){
        string str;
    cin >> str;
    bool a(false),b(false);
    for(int i = 0; i < str.length(); i++){
        if(str[i] == 'C')
            a = true;
        if(a && str[i] == 'F' )
            b = true;
    }
    if(a & b)
        cout << "Yes" << endl;
    else
        cout << "No" << endl;


    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'string' was not declared in this scope
    5 |         string str;
      |         ^~~~~~
a.cc:5:9: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin >> str;
      |     ^~~
      |     std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:12: error: 'str' was not declared in this scope; did you mean 'std'?
    6 |     cin >> str;
      |            ^~~
      |            std
a.cc:15:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |         cout << "Yes" << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:15:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |         cout << "Yes" << endl;
      |                          ^~~~
      |                          std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:17:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |         cout << "No" << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:17:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   17 |         cout << "No" << endl;
      |                         ^~~~
      |                         std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <cstdio>
#include <cstring>
int main()
{
  char s[100],c[2]={C,F};
  scanf("%s",s);
  int len=strlen(s);
  for(int i=0,k=0;i<len&&k<2;i++)
    if(s[i]==c[k]) break;
  if(k==2)printf("Yes");
  else printf("No");
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:21: error: 'C' was not declared in this scope
    5 |   char s[100],c[2]={C,F};
      |                     ^
a.cc:5:23: error: 'F' was not declared in this scope
    5 |   char s[100],c[2]={C,F};
      |                       ^
a.cc:10:6: error: 'k' was not declared in this scope
   10 |   if(k==2)printf("Yes");
      |      ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
    char s[120];
    while(~scanf("%s", s)) {
        bool flag, check;
        flag = check = false;
        int len = strlen(s);
        for(int i = 0; i < s; i++) {
            if(s[i] == 'C') flag = true;
            if(flag) {
                if(s[i] == 'F') check = true;
            }
        }
        if(check) printf("Yes\n");
        else printf("No\n");
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         for(int i = 0; i < s; i++) {
      |                        ~~^~~
Language: Java

import java.io.*;
import java.util.regex.Pattern;
 
public class Main {

   public static void main(String args[]) {
   	
   	try {
     BufferedReader Reader = new BufferedReader(new InputStreamReader(System.in));
     String line = Reader.readLine();
     String regexp = "C.*F";
     boolean match = Pattern.matches(line, regexp);
     	if(match = true ){
     		System.out.println("Yes");
								}else{
			System.out.println("No");
			   } catch(IOException e) {
            System.err.println(e.getMessage());
   		}
      }
      }
     }
      
   //&& line.indexOf( "F")>-1   		}

Compiler output:
Main.java:17: error: 'catch' without 'try'
			   } catch(IOException e) {
			     ^
Main.java:8: error: 'try' without 'catch', 'finally' or resource declarations
   	try {
   	^
2 errors
Language: Java

String s;
 str22 = "C";
if (s.indexOf(str22) != -1) {
  System.out.println( "true" );
} else {
  System.out.println( "no" );
}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
String s;
^
  (use --enable-preview to enable unnamed classes)
Main.java:2: error: class, interface, enum, or record expected
 str22 = "C";
 ^
Main.java:3: error: class, interface, enum, or record expected
if (s.indexOf(str22) != -1) {
^
Main.java:5: error: class, interface, enum, or record expected
} else {
^
Main.java:7: error: class, interface, enum, or record expected
}
^
5 errors
Language: Java

Matcher m = p.matcher(C);
int a = 0;
if (m.find()){
  a = a+1;
}
Matcher n = p.matcher(F);

if (m.find()){
  a = a+1;
}

if(a==2){System.out.print("true");}
else{System.out.print("no");}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
Matcher m = p.matcher(C);
^
  (use --enable-preview to enable unnamed classes)
Main.java:3: error: class, interface, enum, or record expected
if (m.find()){
^
Main.java:5: error: class, interface, enum, or record expected
}
^
Main.java:8: error: class, interface, enum, or record expected
if (m.find()){
^
Main.java:10: error: class, interface, enum, or record expected
}
^
Main.java:12: error: class, interface, enum, or record expected
if(a==2){System.out.print("true");}
                                  ^
Main.java:13: error: class, interface, enum, or record expected
else{System.out.print("no");}
                            ^
7 errors
Language: C++

Matcher m = p.matcher(C);
int a = 0;
if (m.find()){
  a = a+1;
}
Matcher n = p.matcher(F);

if (m.find()){
  a = a+1;
}

if(a==2){System.out.print("true");}
else{System.out.print("no");}

Compiler output:
a.cc:1:1: error: 'Matcher' does not name a type
    1 | Matcher m = p.matcher(C);
      | ^~~~~~~
a.cc:3:1: error: expected unqualified-id before 'if'
    3 | if (m.find()){
      | ^~
a.cc:6:1: error: 'Matcher' does not name a type
    6 | Matcher n = p.matcher(F);
      | ^~~~~~~
a.cc:8:1: error: expected unqualified-id before 'if'
    8 | if (m.find()){
      | ^~
a.cc:12:1: error: expected unqualified-id before 'if'
   12 | if(a==2){System.out.print("true");}
      | ^~
a.cc:13:1: error: expected unqualified-id before 'else'
   13 | else{System.out.print("no");}
      | ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef long long LL;
typedef pair<int, int> PII;
typedef pair<LL, LL> PLL;
typedef long double LD;
typedef pair<LD, int> PLDI;
typedef pair<LD, LD> PLDLD;

#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)
#define CLR(a) memset((a), 0 ,sizeof(a))
#define ALL(a) a.begin(),a.end()
const LL MOD = 1e9+7;
const int INF = (1e9);
const double EPS=1.0e-9;
const double PI=atan2(0,-1);


int main()
{
	string s;
	cin>>s;
	bool f1=0,f2=0;
	REP(i,n)
	{
		if(!f1)
		{
			if(s[i]=='C')
				f1=1;
		}
		if(!f2)
		{
			if(s[i]=='F')
				f2=1;
		}
	}
	if(f2)
		cout<<"Yes"<<endl;
		else
		cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:15: error: 'n' was not declared in this scope
   27 |         REP(i,n)
      |               ^
a.cc:12:37: note: in definition of macro 'FOR'
   12 | #define FOR(i,a,b) for(int i=(a);i<(b);++i)
      |                                     ^
a.cc:27:9: note: in expansion of macro 'REP'
   27 |         REP(i,n)
      |         ^~~
Language: C++

#include<cstdio>
using namespace std;

int main(){
	char s;
	bool c,f;
	while(scanf("%C",&s)){
		if (s =='C') c = true;
		else if(s == 'F'){
			if(c){
				f = true;
				cout << "Yes";
				return 0;
			}
		}
	}
	if(!f) cout << "No";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:33: error: 'cout' was not declared in this scope
   12 |                                 cout << "Yes";
      |                                 ^~~~
a.cc:2:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<cstdio>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:17:16: error: 'cout' was not declared in this scope
   17 |         if(!f) cout << "No";
      |                ^~~~
a.cc:17:16: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<iostream>
#include<string>
using namespace std;
 
int main(){
    string str;
    string str1="CF"
    while (cin >> str){
        int a=0, b = 0;
        while (a < str.length()&&b<str1.length()){
            if (str[a++] == str1[b])
                b++;
 
        }
        if (b == str1.length())
            cout << "Yes" << endl;
        else
            cout << "No" << endl;
    }
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'while'
    8 |     while (cin >> str){
      |     ^~~~~
Language: C++

#include<iostream>
#include<string>
#include<vector>
 
using namespace std;
 
int main() {
    string pat = "CODEFESTIVAL2016";
    string txt;
 
    cin >> txt;
 
    int cnt = 0;
    for(int i = 0; i < txt.size(); i++){
        if(txt[i] != pat[i]){
            cnt++;
        }
    }
 
    cout << cnt << endl;
    return 0;
}
Submission

Compiler output:
a.cc:23:1: error: 'Submission' does not name a type
   23 | Submission
      | ^~~~~~~~~~
Language: C++

#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <stack>
#include <queue>
#include <set>
#include <cmath>
#include <map>
using namespace std;
#define MOD 1000000007
#define ADD(X,Y) ((X) = ((X) + (Y)%MOD) % MOD)
typedef long long i64; typedef vector<int> ivec; typedef vector<string> svec;

int main()
{
	char in[101];
	scanf("%s", &s);
	int a = 0;
	for (int i = 0; s[i]; ++i) {
		if (a == 0 && s[i] == 'C') ++a;
		if (a == 1 && s[i] == 'F') ++a;
	}
	puts(a == 2 ? "Yes" : "No");
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:22: error: 's' was not declared in this scope
   21 |         scanf("%s", &s);
      |                      ^
Language: C

#include <stdio.h>
#include <string.h>

int main() {

	int x = 0;
	int y = 0;
	char s[100] = {0};
	char tmp[2] = {0};
	int i = 0, j = 0;

	scanf_s("%s", &s);
	x = strlen(s);
	for (i = 0; i < x; i++) {

		if (s[i] == 'C') {
			tmp[i] = s[i];
			for (j = 0; j < x; j++) {
				if (s[j] == 'F') {
					y = 1;
					break;
				}
				if (y == 1) { break; }
				tmp[i + 1] = s[i + j];
			}

		}
		if (y == 1) { break; }

	}

	if (y == 1) {
		printf("YES");
	}
	else {
		printf("NO");
	}

	getchar();
	getchar();
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   12 |         scanf_s("%s", &s);
      |         ^~~~~~~
      |         scanf
Language: C++

#include <iostream>
#include <string>
#include <algorithm>

using namespace std;

int main(){
int s, t,maxa =0;
cin >> s>>t;
for(int i=0;i <t;i++){
int a;
cin >> a;
maxa=max(maxa,a);
}

s -= maxa;
cout << max(maxa-k-1,0)<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:18: error: 'k' was not declared in this scope
   17 | cout << max(maxa-k-1,0)<<endl;
      |                  ^
Language: C++

#include <iostream>
#include <string>
#include <algorithm>

using namespace std;

int main{
int s, t,maxa =0;
cin >> s>>t;
for(int i=0;i <t;i++){
int a;
cin >> a;
maxa=max(maxa,a);
}

s -= maxa;
cout << max(maxa-k-1,0)<<endl;
return 0;
}

Compiler output:
a.cc:7:5: error: cannot declare '::main' to be a global variable
    7 | int main{
      |     ^~~~
a.cc:8:1: error: expected primary-expression before 'int'
    8 | int s, t,maxa =0;
      | ^~~
a.cc:8:1: error: expected '}' before 'int'
a.cc:7:9: note: to match this '{'
    7 | int main{
      |         ^
a.cc:9:1: error: 'cin' does not name a type
    9 | cin >> s>>t;
      | ^~~
a.cc:10:1: error: expected unqualified-id before 'for'
   10 | for(int i=0;i <t;i++){
      | ^~~
a.cc:10:13: error: 'i' does not name a type
   10 | for(int i=0;i <t;i++){
      |             ^
a.cc:10:18: error: 'i' does not name a type
   10 | for(int i=0;i <t;i++){
      |                  ^
a.cc:16:1: error: 's' does not name a type
   16 | s -= maxa;
      | ^
a.cc:17:1: error: 'cout' does not name a type
   17 | cout << max(maxa-k-1,0)<<endl;
      | ^~~~
a.cc:18:1: error: expected unqualified-id before 'return'
   18 | return 0;
      | ^~~~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: Java

package cf;
import java.io.*;
public class CF {
    public static void main(String[] args)throws IOException {
        int i,memo=0,flag1=0,flag2=0;
        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(is);
        
        String str = br.readLine();
        
        for(i=0;i<str.length();i++){
            char c = str.charAt(i);
            if(c =='C'){
                flag1 = 1;
                memo = i;
            }
        }
        while(memo<str.length()){
            char c = str.charAt(memo);
            if(c == 'F'){
                flag2 = 1;
            }
            memo++;
        }
        if(flag1 == flag2){
            System.out.println("Yes");
        }
        else
            System.out.println("No");
    }   
}

Compiler output:
Main.java:3: error: class CF is public, should be declared in a file named CF.java
public class CF {
       ^
1 error
Language: C++

#include <iostream>
 #include <string>
#include <algorithm >

using namespace std;

int main{
int s, t,maxa =0;
cin >> s>>t;
for(int i=0;i <t;i++){
int a;
cin >> a;
maxa=max(maxa,a);
}

s -= maxa;
cout << max(maxa-k-1,0)<<endl;
return 0;
}

Compiler output:
a.cc:3:10: fatal error: algorithm : No such file or directory
    3 | #include <algorithm >
      |          ^~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <string>
using namespace std;

int main(){
  string S;
  cin >> S;
  count=0;
  for(int i=0;S[i]!='\0';i++){
    if(S[i]=='C'&&count == 0){
      count++;
    }
    if(S[i]=='F'&&count == 1){
      count++;
      break;
    }
  }
  if(count == 2){
    cout <<"Yes" << endl;
  }else{
    cout <<"No"<<endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'count' was not declared in this scope
    8 |   count=0;
      |   ^~~~~
Language: Java

import java.util.Scanner;

public class Solution {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int K = sc.nextInt();

        if (K == 1) {
            System.out.println(0);
        }

        int T = sc.nextInt();
        int[] a = new int[T];

        for (int i = 0; i < a.length; i++) {
            a[i] = sc.nextInt();
        }

        int fIndex = 0;
        int sIndex = 1;
        if (a[0] < a[1]) {
            fIndex = 1;
            sIndex = 0;
        }

        for (int i = 0; i < K / 2; i++) {

            for (int j = 0; j < a.length; j++) {
                if (a[j] > a[fIndex]) {
                    sIndex = fIndex;
                    fIndex = j;
                } else if (a[j] > a[sIndex] && j != fIndex) {
                    sIndex = j;
                }
            }

            if (a[sIndex] == 0) {
                System.out.println(a[fIndex] - 1);
                return;
            }

            a[fIndex]--;
            a[sIndex]--;
        }
        System.out.println(0);
    }
}


Compiler output:
Main.java:3: error: class Solution is public, should be declared in a file named Solution.java
public class Solution {
       ^
1 error
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication11
{
    class Program
    {
        static void Main(string[] args)
        {
            string a = Console.ReadLine();
            for (int b = 0; b < a.Length; b++)
            {
                for (int c = 1; b < c && c < a.Length; c++)
                {
                    if (a[b] == 'C' && a[c] == 'F')
                        Console.WriteLine("YES");
                    if (a[b] == 'C' && a[c] == 'F')
                        break;
                }
            }
            Console.WriteLine("NO");
        }

    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:11:26: error: 'string' has not been declared
   11 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:11:35: error: expected ',' or '...' before 'args'
   11 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:27:6: error: expected ';' after class definition
   27 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ConsoleApplication11::Program::Main(int*)':
a.cc:13:13: error: 'string' was not declared in this scope
   13 |             string a = Console.ReadLine();
      |             ^~~~~~
a.cc:14:33: error: 'a' was not declared in this scope
   14 |             for (int b = 0; b < a.Length; b++)
      |                                 ^
a.cc:19:25: error: 'Console' was not declared in this scope
   19 |                         Console.WriteLine("YES");
      |                         ^~~~~~~
a.cc:24:13: error: 'Console' was not declared in this scope
   24 |             Console.WriteLine("NO");
      |             ^~~~~~~
Language: C

#include <stdio.h>
 
int main(void)
{
  char S[102];
  int i,ans = 0;
  fgets(S,sizeof(S),stdin);
  for (i = 0;i < sizeof(S);i++) {
    if (ans == 0) {
      if (S[i] == 'C') {
        ans = 1;
      }
    } else {
      if (S[i] == 'F') {
        ans = 2;
      }
    }
  }
  if (ans == 2) {
    printf("Yes\n");
  } else {
    printf("No\n")
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:22:19: error: expected ';' before '}' token
   22 |     printf("No\n")
      |                   ^
      |                   ;
   23 |   }
      |   ~
Language: C++

#include<vector>
#include<algorithm>
#include<iostream>
#include<string>

using namespace std;

int main()
{
	string str;
	cin >> str;
	for (int i = 0; i < str.length - 1; i++)
	{
		if (str[i] == 'C'&&str[i + 1] == 'F')
		{
			cout << "Yes" << endl;
			return 0;
		}
	}
	cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:33: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   12 |         for (int i = 0; i < str.length - 1; i++)
      |                             ~~~~^~~~~~
      |                                       ()