submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s865682440
p03957
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a,b; a=b=0; char a[10005]; gets(a); for(int i=0;i<strlen(a);i++){ if(a[i]=='C') a++; if(a[i]=='F') b++; } if(a[i]!=0&&b[i]!=0) cout<<"Yes"<<endl; else cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:6:10: error: conflicting declaration 'char a [10005]' 6 | char a[10005]; | ^ a.cc:4:9: note: previous declaration as 'int a' 4 | int a,b; | ^ a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 7 | gets(a); | ^~~~ | getw a.cc:8:26: error: invalid conversion from 'int' to 'const char*' [-fpermissive] 8 | for(int i=0;i<strlen(a);i++){ | ^ | | | int In file included from /usr/include/c++/14/cstring:43, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121, from a.cc:1: /usr/include/string.h:407:35: note: initializing argument 1 of 'size_t strlen(const char*)' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ a.cc:9:13: error: invalid types 'int[int]' for array subscript 9 | if(a[i]=='C') a++; | ^ a.cc:10:13: error: invalid types 'int[int]' for array subscript 10 | if(a[i]=='F') b++; | ^ a.cc:12:10: error: 'i' was not declared in this scope 12 | if(a[i]!=0&&b[i]!=0) cout<<"Yes"<<endl; | ^
s014908651
p03957
C++
#include<bits/stdc++.h> using namespace std; int main(){ string s; int n,i; bool falg=false; cin>>s; for(i=0;i<s.size();i++) if(s[i]=="C"){ n=i; falg=true; break; } if(falg){ for(int j=i+1;j<s.size();j++) if(s[i]=="F"){ cout<<"Yes"; break; } } else cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:9:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 9 | if(s[i]=="C"){ a.cc:16:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 16 | if(s[i]=="F"){
s963388972
p03957
C++
var i,l:longint; s:string; begin readln(s); l:=pos('C',s); for i:= l to length(s) do begin if (s[i]='F') then begin writeln('Yes');exit;end; end; writeln('No'); end.
a.cc:9:39: warning: multi-character character constant [-Wmultichar] 9 | if (s[i]='F') then begin writeln('Yes');exit;end; | ^~~~~ a.cc:11:11: warning: multi-character character constant [-Wmultichar] 11 | writeln('No'); | ^~~~ a.cc:1:1: error: 'var' does not name a type 1 | var | ^~~ a.cc:3:4: error: found ':' in nested-name-specifier, expected '::' 3 | s:string; | ^ | :: a.cc:3:3: error: 's' does not name a type 3 | s:string; | ^ a.cc:4:1: error: 'begin' does not name a type 4 | begin | ^~~~~ a.cc:6:3: error: 'l' does not name a type 6 | l:=pos('C',s); | ^ a.cc:7:3: error: expected unqualified-id before 'for' 7 | for i:= l to length(s) do | ^~~ a.cc:9:46: error: 'exit' does not name a type 9 | if (s[i]='F') then begin writeln('Yes');exit;end; | ^~~~ a.cc:1:1: note: 'exit' is defined in header '<cstdlib>'; this is probably fixable by adding '#include <cstdlib>' +++ |+#include <cstdlib> 1 | var a.cc:9:51: error: 'end' does not name a type 9 | if (s[i]='F') then begin writeln('Yes');exit;end; | ^~~ a.cc:10:3: error: 'end' does not name a type 10 | end; | ^~~ a.cc:11:10: error: expected constructor, destructor, or type conversion before '(' token 11 | writeln('No'); | ^ a.cc:12:1: error: 'end' does not name a type 12 | end. | ^~~
s420612354
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(int i=0;i<l;i++) { if(s[i]=='C') { for(int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"Yes"; return 0; } } } } puts("No"); return 0; }
/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
s107350572
p03957
C++
#include<iostream> #include<string> using namespace std; string a; int main(){ cin>>a; for(int i=0;i<a.size()-1;++i) { if(a[i]=='C'&&a[i+1]=='F'){ puts("YES")return 0;}; } puts("NO"); return 0; }
a.cc: In function 'int main()': a.cc:9:48: error: expected ';' before 'return' 9 | if(a[i]=='C'&&a[i+1]=='F'){ puts("YES")return 0;}; | ^~~~~~ | ;
s088524578
p03957
C++
#include<bits/stdc++.h> #define Re register using namespace std int main(){ string s;cin>>s; bool C=0,F=0; int L=s.length(); for(Re int i=0;i<L;i++){ if(s[i]=='C'&&!C)C=1; if(s[i]=='F'&&!F&&C)F=1; if(C&&F){cout<<"Yes";return 0;} } cout<<"No"; return 0; }
a.cc:3:20: error: expected ';' before 'int' 3 | using namespace std | ^ | ; 4 | int main(){ | ~~~ a.cc: In function 'int main()': a.cc:8:16: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 8 | for(Re int i=0;i<L;i++){ | ^
s078616243
p03957
C++
#include<bits/stdc++.h> #define Re register using namespace std int main(){ srting s;cin>>s; bool C=0,F=0; int L=s.length(); for(Re int i=0;i<L;i++){ if(s[i]=='C'&&!C)C=1; if(s[i]=='F'&&!F&&C)F=1; if(C&&F){cout<<"Yes";return 0;} } cout<<"No"; return 0; }
a.cc:3:20: error: expected ';' before 'int' 3 | using namespace std | ^ | ; 4 | int main(){ | ~~~ a.cc: In function 'int main()': a.cc:5:5: error: 'srting' was not declared in this scope 5 | srting s;cin>>s; | ^~~~~~ a.cc:5:19: error: 's' was not declared in this scope 5 | srting s;cin>>s; | ^ a.cc:8:16: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 8 | for(Re int i=0;i<L;i++){ | ^
s709120533
p03957
C++
#include<bits/stdc++.h> #define Re register using namespace std int main(){ srting s;cin>>s;bool C=0,F=0,c=0,f=0; int L=s.length(); for(Re int i=0;i<L;i++){ if(s[i]=='C'&&!C)c=1,C=1; if(s[i]=='F'&&!F&&C)f=1,F=1; if(C&&F){cout<<"Yes";return 0;} } cout<<"No"; return 0; }
a.cc:3:20: error: expected ';' before 'int' 3 | using namespace std | ^ | ; 4 | int main(){ | ~~~ a.cc: In function 'int main()': a.cc:5:5: error: 'srting' was not declared in this scope 5 | srting s;cin>>s;bool C=0,F=0,c=0,f=0; | ^~~~~~ a.cc:5:19: error: 's' was not declared in this scope 5 | srting s;cin>>s;bool C=0,F=0,c=0,f=0; | ^ a.cc:7:16: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 7 | for(Re int i=0;i<L;i++){ | ^
s405961744
p03957
C++
#include<stdio.h> #include<string.h> char ch[10000010]; int main ( ) { scanf("%s",ch); for(int i=0;i<strlen(ch);i++) { if(ch[i]=='C')flag=1; if(ch[i]=='F'&&flag) return puts("Yes")&0; } puts("No"); return 0; }
a.cc: In function 'int main()': a.cc:9:23: error: 'flag' was not declared in this scope 9 | if(ch[i]=='C')flag=1; | ^~~~ a.cc:10:24: error: 'flag' was not declared in this scope 10 | if(ch[i]=='F'&&flag) | ^~~~
s849694352
p03957
C++
import java.util.Scanner; import java.util.regex.*; public class Main { public static void main(String args[]) { Scanner input=new Scanner(System.in); String str=input.nextLine(); String pattern="*C*F*"; if(Pattern.matches(pattern,str)) System.out.println("Yes"); else System.out.println("No"); } }
a.cc:1:1: error: 'import' does not name a type 1 | import java.util.Scanner; | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:2:1: error: 'import' does not name a type 2 | import java.util.regex.*; | ^~~~~~ a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:3:1: error: expected unqualified-id before 'public' 3 | public class Main | ^~~~~~
s587293663
p03957
C++
import java.util.Scanner; import java.util.regex.*; public class Main { public static void main(String args[]) { Scanner input=new Scanner(System.in); String str=input.nextLine(); String pattern=".*C.*F.*"; if(Pattern.matches(pattern,str)) System.out.println("Yes"); else System.out.println("No"); } }
a.cc:1:1: error: 'import' does not name a type 1 | import java.util.Scanner; | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:2:1: error: 'import' does not name a type 2 | import java.util.regex.*; | ^~~~~~ a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:3:1: error: expected unqualified-id before 'public' 3 | public class Main | ^~~~~~
s973610094
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"Yes"; return 0; } } } } cout<<"No"; return 0; }
a.cc: In function 'int mian()': a.cc:11:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 11 | for(register int i=0;i<l;i++) | ^ a.cc:15:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 15 | for(register int j=i+1;j<l;j++) | ^ /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
s117187979
p03957
C++
#include <iostream> #include <cstdio> #include <cstring> #include <string.h> using namespace std; int main() { char a[500],stack[500],t;//t用来存出栈元素 int top=0;//指针初始化0 cin>>a;//读入 for(int i=0;i<strlen(a);i++) { if(a[i]=='F'&&top==0) continue;//如果栈是空的且读到了F,就进行下一次循环 else if(a[i]=='C') { stack[top++]=a[i];//读到了C就进栈 } else { if(a[i]=='F') { t=strack[--top];//读到F就出栈 break;//因为已经有一对CF了,所以后面没必要读下去,那么就跳出了 } } } if(t=='C') cout<<"Yes"<<endl;//如果出来的是C就Yes else cout<<"No"<<endl;//否则No }
a.cc: In function 'int main()': a.cc:23:15: error: 'strack' was not declared in this scope; did you mean 'stack'? 23 | t=strack[--top];//读到F就出栈 | ^~~~~~ | stack
s450075059
p03957
C++
// by DEADFISH #include<iostream> #include<cstdio> #include<algorithm> #include<cmath> #include<cstring> #define p 1e6+7 #define N 10010 #define mc(a,b) memset(a,b,sizeof(a)) #define close std::ios::sync_with_stdio(false) using namespace std; typedef long long ln; string s; int main() { cin>>s; int len=s.length(); for(int i=0;i<len;i++) { if(s[i]=='C') for(int j=i;j<=len;j++) { if(s[j]=='F') flag=1; } } if(flag) cout<<"Yes"; else cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:22:39: error: 'flag' was not declared in this scope 22 | if(s[j]=='F') flag=1; | ^~~~ a.cc:25:12: error: 'flag' was not declared in this scope 25 | if(flag) cout<<"Yes"; | ^~~~
s434365219
p03957
C++
#include<bits/stdc++.h> using namespace std; int main() { bool a=0,b=0; char p=getchar(); while(p!='\n') { if (p=='C'&&b==1)a=1,b=0; if (p=='F')b=1; if (a==1&&b==1){ cout<<"Yes"; return 0; } p=getchar(); } if (a==1&&b==1) cout<<"Yes"; else cout<<"No"; }#include<bits/stdc++.h> using namespace std; int main(){ char a[1005]; int la=1; bool flag=0; a[la]=getchar(); while(a[la]!='\n'){ if(a[la]=='C')flag=1; else if(a[la]=='F'&&flag)return puts("Yes"),0; la++; a[la]=getchar(); } puts("No"); }
a.cc:18:2: error: stray '#' in program 18 | }#include<bits/stdc++.h> | ^ a.cc:18:3: error: 'include' does not name a type 18 | }#include<bits/stdc++.h> | ^~~~~~~ a.cc:20:5: error: redefinition of 'int main()' 20 | int main(){ | ^~~~ a.cc:3:5: note: 'int main()' previously defined here 3 | int main() { | ^~~~
s524590267
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian(){ cin>>s; l=s.size(); for(int i=0;i<l;i++){ if(s[i]=='C'){ for(int j=i+1;j<l;j++){ if(s[j]=='F'){ cout<<"Yes"; return 0; } } } } cout<<"No"; return 0; }
/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
s809592887
p03957
C++
#include<iostream> #include<cstring> using namespace std; string a,b='CF'; int al,bl; int main() { getline(cin,a); al=a.size(); for(int i=0;i<al;i++) if(a[i]==b[bl]) { bl++; if(bl==2) break; } if(bl==2) cout<<"Yes"; else cout<<"No"; cout<<endl; return 0; }
a.cc:4:12: warning: multi-character character constant [-Wmultichar] 4 | string a,b='CF'; | ^~~~ a.cc:4:12: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
s691441353
p03957
C++
#include<bits/stdc++.h> using namespace std; int main() { char c=getchar(); bool f=false,f1=false; while (c!=EOF) { if (c=='C') f=true; if (c=='F'&&f==true) f1=true; } if (f==true&&f1=true) cout<<"Yes\n"; else cout<<"No\n"; return 0; }
a.cc: In function 'int main()': a.cc:12:16: error: lvalue required as left operand of assignment 12 | if (f==true&&f1=true) cout<<"Yes\n"; | ~~~~~~~^~~~
s428739363
p03957
C++
#include<cstdio> #include<cstring> char a[10010]; bool c,f; int main() { cin>>a; for(int i=0;i<strlen(a);i++) { if(a[i]=='C') c=1; if(a[i]=='F'&&c==1) f=1; } if(f==1) cout<<"Yes"<<endl; else cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:6:5: error: 'cin' was not declared in this scope 6 | cin>>a; | ^~~ a.cc:11:14: error: 'cout' was not declared in this scope 11 | if(f==1) cout<<"Yes"<<endl; | ^~~~ a.cc:11:27: error: 'endl' was not declared in this scope 11 | if(f==1) cout<<"Yes"<<endl; | ^~~~ a.cc:12:10: error: 'cout' was not declared in this scope 12 | else cout<<"No"<<endl; | ^~~~ a.cc:12:22: error: 'endl' was not declared in this scope 12 | else cout<<"No"<<endl; | ^~~~
s926101358
p03957
C++
#include<bits/stdc++.h> using namespace std; char s[200]; int l; int mian() { cin>>s; l=strlen(s); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"Yes"<<endl; return 0; } } } } cout<<"No"<<endl; return 0; }
a.cc: In function 'int mian()': a.cc:9:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 9 | for(register int i=0;i<l;i++) | ^ a.cc:13:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 13 | for(register int j=i+1;j<l;j++) | ^ /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
s440672865
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(int i=0;i<l;i++) { if(s[i]=='C') { for(int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"Yes"; return 0; } } } } cout<<"No"; return 0; }
/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
s523793302
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"Yes"; return 0; } } } } cout<<"No"; return 0; }
a.cc: In function 'int mian()': a.cc:9:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 9 | for(register int i=0;i<l;i++) | ^ a.cc:13:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 13 | for(register int j=i+1;j<l;j++) | ^ /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
s537639525
p03957
C++
#include<iostream> #include<cstring> #include<algorithm> using namespace std; int main(){ string s;int ans1=0,ans2=0; len=s.length; for(int i=0;i<len;i++){ if(a[i]=='C') ans1=i; if(a[i]=='F') ans2=i; } if(ans1!=0&&ans2!=0&&ans<ans2) cout<<"Yes"; else cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:7:9: error: 'len' was not declared in this scope; did you mean 'mblen'? 7 | len=s.length; | ^~~ | mblen a.cc:9:20: error: 'a' was not declared in this scope 9 | if(a[i]=='C') ans1=i; | ^ a.cc:10:20: error: 'a' was not declared in this scope 10 | if(a[i]=='F') ans2=i; | ^ a.cc:12:30: error: 'ans' was not declared in this scope; did you mean 'ans2'? 12 | if(ans1!=0&&ans2!=0&&ans<ans2) cout<<"Yes"; | ^~~ | ans2
s780321510
p03957
C++
#include <iostream> using namespace std; int main() { char ch[10000]='0'; cin>>ch; int k,x,l; for (int i=1;i<=10000;i++) if (ch[i]=='0') {l=i-1;break;} for (int i=1;i<=l;i++) if (ch[i]=='f') k=i; for (int i=l;i>=1;i--) if (ch[i]=='c') x=i; if (x<k) cout<<"Yes"<<endl; else cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:5:20: error: array must be initialized with a brace-enclosed initializer 5 | char ch[10000]='0'; | ^~~
s311397921
p03957
C++
#include <iostream> using namespace std; int main() { char ch[10000]; cin>>ch; int l=strlen(ch); int k,x; for (int i=1;i<=l;i++) if (ch[i]=='f') k=i; for (int i=l;i>=1;i--) if (ch[i]=='c') x=i; if (x<k) cout<<"Yes"<<endl; else cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:11: error: 'strlen' was not declared in this scope 7 | int l=strlen(ch); | ^~~~~~ a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 1 | #include <iostream> +++ |+#include <cstring> 2 | using namespace std;
s293949476
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int l; int mian(){ cin>>s; l=s.size(); for(int i=0;i<l;i++) if(s[i]=='C') for(int j=i+1;j<l;j++) if(s[j]=='F'){ cout<<"Yes"<<endl; return 0; } cout<<"No"<<endl; return 0; }
/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
s043345197
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"Yes"; return 0; } } } } cout<<"No"; return 0; }
a.cc: In function 'int mian()': a.cc:9:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 9 | for(register int i=0;i<l;i++) | ^ a.cc:13:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 13 | for(register int j=i+1;j<l;j++) | ^ /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
s880247792
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"Yes"; return 0; } } } } cout<<"No"; return 0; }
a.cc: In function 'int mian()': a.cc:11:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 11 | for(register int i=0;i<l;i++) | ^ a.cc:15:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 15 | for(register int j=i+1;j<l;j++) | ^ /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
s139240716
p03957
C++
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; for(int i=0;i<=s.size;i++){ if(s[i]=='C'){ for(int j=i+1;j<=s.size;j++){ if(s[j]=='F'){ cout<<"Yes"<<endl; return 0; } } } } cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:6:22: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?) 6 | for(int i=0;i<=s.size;i++){ | ~~^~~~ | () a.cc:8:32: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?) 8 | for(int j=i+1;j<=s.size;j++){ | ~~^~~~ | ()
s443019356
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"Yes"; return 0; } } } } cout<<"No"; return 0; }
a.cc: In function 'int mian()': a.cc:11:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 11 | for(register int i=0;i<l;i++) | ^ a.cc:15:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 15 | for(register int j=i+1;j<l;j++) | ^ /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
s498232263
p03957
C++
#include <bits/stdc++.h> using namespace std; #define ll long long void init(); void solve(); #define rep(i, a) for (int i = 0; (i) < (int) (a); (i)++) #define reps(i, a, b) for (int i = (int) (a); (i) < (int) (b); (i)++) #define rrep(i, a) for (int i = (int) a-1; (i) >= 0; (i)--) #define rreps(i, a, b) for (int i = (int) (a)-1; (i) >= (int) (b); (i)--) #define MP(a, b) make_pair((a), (b)) #define PB(a) push_back((a)) #define all(v) (v).begin(), (v).end() #define PERM(v) next_permutation(all(v)) #define UNIQUE(v) sort(all(v));(v).erase(unique(all(v)), v.end()) #define CIN(type, x) type x;cin >> x #define TRUE__ "Yes" #define FALSE__ "No" #define PRINT(f) if((f)){cout << (TRUE__) << endl;}else{cout << FALSE__ << endl;} #ifdef LOCAL #define lcout(a) cout << a; #define lcoutln(a) cout << a << endl; #define lcerr(a) cerr << a; #define lcerrln(a) cerr << a << endl; #else #define lcout(a) #define lcoutln(a) #define lcerr(a) #define lcerrln(a) #endif #define MOD 1000000007 signed main() { init(); solve(); } string s; int l; void init() { cin >> s; l = s.length(); } void solve() { rep(i, l-1) { if (s[i] != 'C') continue; rep(j, i+1, l) { if (s[j] == 'F') { cout << "Yes" << endl; return; } } } cout << "No" << endl; }
a.cc:56:18: error: macro "rep" passed 3 arguments, but takes just 2 56 | rep(j, i+1, l) { | ^ a.cc:9:9: note: macro "rep" defined here 9 | #define rep(i, a) for (int i = 0; (i) < (int) (a); (i)++) | ^~~ a.cc: In function 'void solve()': a.cc:56:5: error: 'rep' was not declared in this scope 56 | rep(j, i+1, l) { | ^~~
s774611510
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"Yes"; return 0; } } } } cout<<"No"; return 0; }
a.cc: In function 'int mian()': a.cc:11:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 11 | for(register int i=0;i<l;i++) | ^ a.cc:15:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 15 | for(register int j=i+1;j<l;j++) | ^ /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
s020595460
p03957
C++
#include<bits/stdc++.h> using namespace std; string n; int main() { cin>>n; int s=n.length(); for (int i=0;i<s;i++) { if (s[i]=='C') { int k=i; for (int j=k;j<s;j++) if (s[j]=='K') cout<<"Yes",return 0; } } cout<<"No",return 0; }
a.cc: In function 'int main()': a.cc:10:22: error: invalid types 'int[int]' for array subscript 10 | if (s[i]=='C') | ^ a.cc:14:31: error: invalid types 'int[int]' for array subscript 14 | if (s[j]=='K') | ^ a.cc:15:38: error: expected primary-expression before 'return' 15 | cout<<"Yes",return 0; | ^~~~~~ a.cc:19:20: error: expected primary-expression before 'return' 19 | cout<<"No",return 0; | ^~~~~~
s978400469
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(int i=0;i<l;i++) { if(s[i]=='C') { for(int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"Yes"; return 0; } } } } cout<<"No"; return 0; }
/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
s107546425
p03957
C++
#include<iostream> #include<cstring> char a[10086]; bool c, f; int main() { cin>>a; for(int i=0; i<strlen(a); i++) { if(a[i]=='C') c=true; if(a[i]=='F'&&c==true) f=true; } if(f==true) cout<<"Yes"<<endl; else cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin>>a; | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~ a.cc:11:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 11 | if(f==true) 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:11:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 11 | if(f==true) cout<<"Yes"<<endl; | ^~~~ | std::endl In file included from /usr/include/c++/14/iostream:41: /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ a.cc:12:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 12 | else 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:12:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 12 | else cout<<"No"<<endl; | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
s902771539
p03957
C++
#include<iosrteam> #include<cstring> char a[10086]; bool c, f; int main() { cin>>a; for(int i=0; i<strlen(a); i++) { if(a[i]=='C') c=true; if(a[i]=='F'&&c==true) f=true; } if(f==true) cout<<"Yes"<<endl; else cout<<"No"<<endl; return 0; }
a.cc:1:9: fatal error: iosrteam: No such file or directory 1 | #include<iosrteam> | ^~~~~~~~~~ compilation terminated.
s510253015
p03957
C++
#include<iostream> using namespace std; int main(){ string str; cin >> str; bool is_c = false; for(int i=0;i<s.size();i++){ if(str[i] == "C"){ is_c = true; } if(is_c && str[i] == "F") { cout << "Yes" << endl; return 0; } } cout << "No" << endl; return 0; }
a.cc: In function 'int main()': a.cc:8:17: error: 's' was not declared in this scope 8 | for(int i=0;i<s.size();i++){ | ^ a.cc:9:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 9 | if(str[i] == "C"){ a.cc:12:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 12 | if(is_c && str[i] == "F")
s632793156
p03957
C++
#include<iostream> using namespace std; int main(){ string str; cin >> str; bool is_c = flase; for(int i=0;i<s.size();i++){ if(str[i] == "C"){ is_c = true; } if(is_c && str[i] == "F") { cout << "Yes" << endl; return 0; } } cout << "No" << endl; return 0; }
a.cc: In function 'int main()': a.cc:7:15: error: 'flase' was not declared in this scope; did you mean 'fclose'? 7 | bool is_c = flase; | ^~~~~ | fclose a.cc:8:17: error: 's' was not declared in this scope 8 | for(int i=0;i<s.size();i++){ | ^ a.cc:9:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 9 | if(str[i] == "C"){ a.cc:12:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 12 | if(is_c && str[i] == "F")
s769789000
p03957
C++
#include<bits/stdc++.h> using namespace std; string a; int ans; int main() { cin>>a; for(int i=0;i<size.a;i++) { if(ans==0&&a[i]=='C') ans=1; if(ans==1&&a[i]=='F') ans=2; } if(ans==2) cout<<"YES"; else cout<<"NO"; return 0; } //前排出租广告位 //前排出租广告位 //此广告已被河蟹 /* 1.FFF团并不以烧为代表而是以审判为代表(异端审判!审和判是两件事,烧只能勉强算作判的一种); 2.FFF团只对自己团内与异性有不纯洁交往的嫌疑的团员审判过(也就是FFF团审判标准是看行为); 3.FFF团并不反对异性恋甚至追求脱团(毕竟除了坂本原作团员大部分都是希望脱团的); 4.FFF团的教义为共同获得幸福(小说动画均有提及,不过其目的是不想让其他团员不独自获得幸福); 5.FFF团并不是同性恋组织(但并不反对同性恋,其实就是对于同性恋并无任何表示但笨召不防腐); 6.FFF团并不针对所有的情侣(须川亮甚至撮合过船越老师和明久,而后明久把邻居介绍给了老师); 7.FFF团团员并非全部单身(雄二一直和翔子是男女朋友关系); 8.FFF团团员对于非不纯洁的异性交往表示认可(12.5圣诞篇表示由于规定而亲吻不算不纯交往); 9.FFF团遵守法律进行行动(12.5圣诞篇提及这样就算干掉明久也不违法,且团员被校长认可); 10.FFF团并非全是自己不受欢迎而入团的(秀吉也是团员。并且瑞希美波她们也希望参与只是被拒绝)。 */
a.cc: In function 'int main()': a.cc:8:28: error: overloaded function with no contextual type information 8 | for(int i=0;i<size.a;i++) | ^
s138630648
p03957
C++
#include<iostream> #include<string> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(int i=0;i<l;i++) { if(s[i]=='C') { for(int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"Yes"; return 0; } } } } cout<<"No"; return 0; }
/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
s359176333
p03957
C++
#include <bits/stdc++.h> using namespace std; #define _overload3(_1,_2,_3,_4,name,...) name #define _rep(i,n) _repi(i,0,n) #define _repi(i,a,b) for(int i=a, i##_len=(b); i<i##_len; ++i) #define _repis(i,a,b,s) for(int i=a, i##_len(b); i<i##_len; i+=s) #define REP(...) _overload3(__VA_ARGS__,_repis,_repi,_rep,)(__VA_ARGS__) #define REPR(i, n) for(int i = n;i >= 0;--i) #define REPARR(i, v) for(int i = 0;i < sz(v);++i) #define YES(n) cout<<((n)?"YES":"NO")<<endl #define Yes(n) cout<<((n)?"Yes":"No")<<endl #define yes(n) cout<<((n)?"yes":"no")<<endl #define poss(n) cout<<((n)?"possible":"impossible")<<endl #define Poss(n) cout<<((n)?"Possible":"Impossible")<<endl #define POSS(n) cout<<((n)?"POSSIBLE":"IMPOSSIBLE")<<endl int main(){ string s; int stat=0; cin>>s; REPARR(i,s){ if(s[i]=='C'&&stat==0){ stat=1; }else if(s[i]=='F'&&stat==1){ stat=2; break; } } Yes(stat==2); return 0; }
a.cc: In function 'int main()': a.cc:12:40: error: 'sz' was not declared in this scope; did you mean 's'? 12 | #define REPARR(i, v) for(int i = 0;i < sz(v);++i) | ^~ a.cc:25:5: note: in expansion of macro 'REPARR' 25 | REPARR(i,s){ | ^~~~~~
s288231260
p03957
C++
#include <bits/stdc++.h> using namespace std; int main() { string a; bool c, f; int b; cin>>a; b=a.size() for(int i=1;i<b;i++) { if(a[i]=='C') { for(int j=i+1;j<b;j++) { if(a[j]=='F') { printf("Yes"); return 0; } } } } printf("No"); return 0; }
a.cc: In function 'int main()': a.cc:9:15: error: expected ';' before 'for' 9 | b=a.size() | ^ | ; 10 | for(int i=1;i<b;i++) | ~~~ a.cc:10:17: error: 'i' was not declared in this scope 10 | for(int i=1;i<b;i++) | ^
s484453953
p03957
C++
#include <bits/stdc++.h> using namespace std; int main() { string a; bool c, f; cin>>a; for(int i=1;i<strlen(a);i++) { if(a[i]=='C') { for(int j=i+1;j<strlen(a);j++) { if(a[j]=='F') { printf("Yes"); return 0; } } } } printf("No"); return 0; }
a.cc: In function 'int main()': a.cc:8:26: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*' 8 | for(int i=1;i<strlen(a);i++) | ^ | | | std::string {aka std::__cxx11::basic_string<char>} In file included from /usr/include/c++/14/cstring:43, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121, from a.cc:1: /usr/include/string.h:407:35: note: initializing argument 1 of 'size_t strlen(const char*)' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ a.cc:12:36: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*' 12 | for(int j=i+1;j<strlen(a);j++) | ^ | | | std::string {aka std::__cxx11::basic_string<char>} /usr/include/string.h:407:35: note: initializing argument 1 of 'size_t strlen(const char*)' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~
s491809248
p03957
C++
#include <bits/stdc++.h> using namespace std; int main() { string a; bool c, f; cin>>a; for(int i=1;i<=strlen(a);i++) { if(a[i]=='C') { for(int j=i+1;j<=strlen(a)-i;j++) { if(a[j]=='F') { printf("Yes"); return 0; } } } } printf("No"); return 0; }
a.cc: In function 'int main()': a.cc:8:27: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*' 8 | for(int i=1;i<=strlen(a);i++) | ^ | | | std::string {aka std::__cxx11::basic_string<char>} In file included from /usr/include/c++/14/cstring:43, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121, from a.cc:1: /usr/include/string.h:407:35: note: initializing argument 1 of 'size_t strlen(const char*)' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ a.cc:12:37: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*' 12 | for(int j=i+1;j<=strlen(a)-i;j++) | ^ | | | std::string {aka std::__cxx11::basic_string<char>} /usr/include/string.h:407:35: note: initializing argument 1 of 'size_t strlen(const char*)' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~
s739567713
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; char s[100000]; int l; int mian() { cin>>s; l=strlen(s); for(int i=0;i<l;i++) { if(s[i]=='C') { for(int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"Yes"; return 0; } } } } cout<<"No"; return 0; }
a.cc: In function 'int mian()': a.cc:10:7: error: 'strlen' was not declared in this scope 10 | l=strlen(s); | ^~~~~~ a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 2 | #include<cstdio> +++ |+#include <cstring> 3 | #include<string>
s970161585
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(int i=0;i<l;i++) { if(s[i]=='C') { for(int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"Yes"; return 0; } } } } cout<<"No"; return 0; }
/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
s988170081
p03957
C++
#include<iostream> #include<cstring> using namespace std; int main(void) { bool flag_1(false); char *str; gets(str); for(int i=0;i<strlen(str);i++) { if(str[i]=='C') flag_1=true; if(str[i]=='F'&&flag_1) { printf("YES\n"); return 0; } } printf("NO\n"); return 0; }
a.cc: In function 'int main()': a.cc:9:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 9 | gets(str); | ^~~~ | getw
s737968269
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"Yes"; return 0; } } } } cout<<"No"; return 0; }
a.cc: In function 'int mian()': a.cc:11:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 11 | for(register int i=0;i<l;i++) | ^ a.cc:15:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 15 | for(register int j=i+1;j<l;j++) | ^ /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
s708814977
p03957
C++
#include<bits/stdc++.h> using namespace std; string a; int main(){ cin>>ch; bool flag=false; for(int i=0;i<ch.size();i++){ if(a[i]=='C')flag=true; if(flag&&a[i]=='F'){ cout<<"Yes"<<endl; exit(0); } } printf("No\n"); return 0; }
a.cc: In function 'int main()': a.cc:5:14: error: 'ch' was not declared in this scope 5 | cin>>ch; | ^~
s934592534
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"Yes"; return 0; } } } } cout<<"No"; return 0; }
a.cc: In function 'int mian()': a.cc:12:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 12 | for(register int i=0;i<l;i++) | ^ a.cc:16:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 16 | for(register int j=i+1;j<l;j++) | ^ /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
s318791503
p03957
C++
#include<bits/stdc++.h> using namespace std; char a[100000000000]; int main() {gets(a); int m=strlen(a); int p=0,q=0; for(int i=0;i<m;i++) if(a[i]=='C') {p=i; } for(int i=m-1;i>0;i--) if(a[i]=='F') {q=i; } if(p<q) cout<<"Yes"; else cout<<"No"; }
a.cc: In function 'int main()': a.cc:5:2: error: 'gets' was not declared in this scope; did you mean 'getw'? 5 | {gets(a); | ^~~~ | getw
s918299492
p03957
C++
#include<bits/stdc++.h> using namespace std; int main(){ string s,ans=""; cin>>s; int i for(i=0;i<s.size();i++){ if(s[i]=='C'){ break; } if(i==s.size()-2){ cout<<"No"<<endl; return 0; } } for(int j=i+1;j<s.size();j++){ if(s[j]=='F'){ cout<<"Yes"<<endl; return 0; } } cout<<"No"<<endl; }
a.cc: In function 'int main()': a.cc:8:3: error: expected initializer before 'for' 8 | for(i=0;i<s.size();i++){ | ^~~ a.cc:8:11: error: 'i' was not declared in this scope 8 | for(i=0;i<s.size();i++){ | ^
s360522623
p03957
C++
import re print ['No', 'Yes'][re.match('.*C.*F.*', raw_input()) != None]
a.cc:2:8: warning: multi-character character constant [-Wmultichar] 2 | print ['No', 'Yes'][re.match('.*C.*F.*', raw_input()) != None] | ^~~~ a.cc:2:14: warning: multi-character character constant [-Wmultichar] 2 | print ['No', 'Yes'][re.match('.*C.*F.*', raw_input()) != None] | ^~~~~ a.cc:2:30: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes 2 | print ['No', 'Yes'][re.match('.*C.*F.*', raw_input()) != None] | ^~~~~~~~~~ a.cc:1:1: error: 'import' does not name a type 1 | import re | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
s446773459
p03957
C++
#include<bits/stdc++.h> using namespace std; int main() { strint s; cin>>s; int x=0; for(int i=0;i<s.length();i++) { if(x==0&&s[i]=='C') x=1; else if(x==1&&s[i]=='F') x=2; } if(x==2) cout<<"Yes"<<endl; else cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:5:5: error: 'strint' was not declared in this scope; did you mean 'strcat'? 5 | strint s; | ^~~~~~ | strcat a.cc:6:10: error: 's' was not declared in this scope 6 | cin>>s; | ^
s622605007
p03957
C++
include<bits/stdc++.h> using namespace std; int main() { cout<<yes; }
a.cc:1:1: error: 'include' does not name a type 1 | include<bits/stdc++.h> | ^~~~~~~ a.cc: In function 'int main()': a.cc:5:5: error: 'cout' was not declared in this scope 5 | cout<<yes; | ^~~~ a.cc:5:11: error: 'yes' was not declared in this scope 5 | cout<<yes; | ^~~
s408632691
p03957
Java
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc=new Scanner(System.in); String s=sc.nextLine(); if (s.contains("C")) { s=s.substring(indexOf("C")+1); if (s.contains("F")) { System.out.println("Yes"); } }else { System.out.println("No"); } } }
Main.java:7: error: cannot find symbol s=s.substring(indexOf("C")+1); ^ symbol: method indexOf(String) location: class Main 1 error
s698920701
p03957
Java
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc=new Scanner(System.in); String s=sc.nextLine(); if (s.contains("C")) { s=s.substring(indexOf("C")+1); if (s.contains("F") { System.out.println("Yes"); } }else { System.out.println("No"); } } }
Main.java:8: error: ')' expected if (s.contains("F") { ^ 1 error
s820333537
p03957
C++
#include<cstdio> #include<cstdlib> char s[1001]; int main() { srand(time(0)); scanf("%s",s); printf(rand()%2==0?"Yes":"No"); }
a.cc: In function 'int main()': a.cc:5:11: error: 'time' was not declared in this scope 5 | srand(time(0)); | ^~~~ a.cc:3:1: note: 'time' is defined in header '<ctime>'; this is probably fixable by adding '#include <ctime>' 2 | #include<cstdlib> +++ |+#include <ctime> 3 | char s[1001];
s235402117
p03957
C++
#include<cstdio> #include<cstdlib> int main() { scanf("%s",&s); printf(rand()%2==0?"Yes":"No"); }
a.cc: In function 'int main()': a.cc:4:17: error: 's' was not declared in this scope 4 | scanf("%s",&s); | ^
s118914281
p03957
C++
#include<cstdio> int main() { scanf("%s",&s); printf(rand()%2==0?"Yes":"No"); }
a.cc: In function 'int main()': a.cc:3:17: error: 's' was not declared in this scope 3 | scanf("%s",&s); | ^ a.cc:4:12: error: 'rand' was not declared in this scope 4 | printf(rand()%2==0?"Yes":"No"); | ^~~~
s644610033
p03957
C++
#include<bits/stdc++.h> using namespace std; int mian(){ string s; cin>>s; int l=s.size(); for(int i=0;i<l;i++){ if(s[i]=='C'){ for(int j=i+1;j<l;j++){ if(s[j]=='F'){ cout<<"Yes"; return 0; } } } } cout<<"No"; return 0; }
/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
s627592769
p03957
C++
#include<bits/stdc++.h> using namespace std; int mian(){ char s[101]; gets(s); int l=strlen(s); for(int i=0;i<l;i++){ if(s[i]=='C'){ for(int j=i+1;j<l;j++){ if(s[j]=='F'){ cout<<"Yes"; return 0; } } } } cout<<"No"; return 0; }
a.cc: In function 'int mian()': a.cc:5:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 5 | gets(s); | ^~~~ | getw
s165407830
p03957
C++
#include<iostream> #include<cstring> using namespace std; string a,b="CF"; int al,bl; int main(){ getline(cin,a); al=a.length(); for(int i=0;i<al;i++) if(a[i]==b[bl]){ bl++; if(bl==2) break; } if(bl==2) cout<<"Yes"; else cout<<"No"; cout<<endl;行 return 0; }
a.cc: In function 'int main()': a.cc:19:16: error: '\U0000884c' was not declared in this scope 19 | cout<<endl;行 | ^~
s751541197
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"Yes"<<endl; return 0; } } } } cout<<"No"<<endl; return 0; }
a.cc: In function 'int mian()': a.cc:11:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 11 | for(register int i=0;i<l;i++) | ^ a.cc:15:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 15 | for(register int j=i+1;j<l;j++) | ^ /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
s760300681
p03957
C++
#include<bits/stdc++.h> using namespace std; string a; bool c=false,f=false; int main(){ cin>>a; for(int i=0;i<a.size(); i++) { if(a[i]=='C') c=true; if(a[i]=='F'&&c=true) f=true; } if(f==true) cout<<"Yes"; else cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:10:21: error: lvalue required as left operand of assignment 10 | if(a[i]=='F'&&c=true)
s239063176
p03957
C++
#include<bits/stdc++.h> using namespace std; char a[10005]; bool c,f; int main(){ cin>>a; for(int i=0;i<a.size(); i++) { if(a[i]=='C') c=true; if(a[i]=='F') f=true; } if(f==true&&c==true) cout<<"YES"; else cout<<"NO"; return 0; }
a.cc: In function 'int main()': a.cc:7:21: error: request for member 'size' in 'a', which is of non-class type 'char [10005]' 7 | for(int i=0;i<a.size(); i++) { | ^~~~
s070146267
p03957
C++
#include <iostream> #include <cstring> using namespace std; int main() { char ch[10000]; cin>>ch; int l=strlen(ch); int ma=INT_MAX; int k,x; for (int i=1;i<=l;i++) if (ch[i]=='F') k=i; for (int i=l;i>=1;i--) if (ch[i]=='c') x=i; if (x<k) cout<<"Yes"; else cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:9:12: error: 'INT_MAX' was not declared in this scope 9 | int ma=INT_MAX; | ^~~~~~~ a.cc:3:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>' 2 | #include <cstring> +++ |+#include <climits> 3 | using namespace std;
s645152453
p03957
C++
#include<bits/stdc++.h> using namespace std; int main() { cin>>s; for (int i=0; i<strlen(s); ++i) if (s[i]=='C') for (int j=i+1; j<=strlen(s); ++j) if (s[j]=='J') {cout<<"Yes"<<endl; return 0;} cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:5:10: error: 's' was not declared in this scope 5 | cin>>s; | ^
s871495399
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"Yes"; return 0; } } } } cout<<"No"; return 0; }
a.cc: In function 'int mian()': a.cc:11:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 11 | for(register int i=0;i<l;i++) | ^ a.cc:15:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 15 | for(register int j=i+1;j<l;j++) | ^ /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
s319404316
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"Yes"; return 0; } } } } cout<<"No"; return 0; }
a.cc: In function 'int mian()': a.cc:11:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 11 | for(register int i=0;i<l;i++) | ^ a.cc:15:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 15 | for(register int j=i+1;j<l;j++) | ^ /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
s326838715
p03957
C++
#include<bits/stdc++.h> using namespace std; int main() { char a[110]; gets(a); int pd=0; for(int s=1;s<=n;s++) { if(pd==0 && a[s]=='C') pd=1; else if(pd==1 && a[s]=='F') pd=2; } if(pd==2) cout<<"Yes"; else cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 6 | gets(a); | ^~~~ | getw a.cc:8:24: error: 'n' was not declared in this scope 8 | for(int s=1;s<=n;s++) | ^
s802324624
p03957
C++
#include<iostream> #include<cstring> using namespace std; int main(){ char a[101]; gets(a); for(int i=0;i<strlen(a);i++){ if(a[i]=='C'){ for(int j=i+1;j<strlen(a);j++){ if(a[j]=='F'){ cout<<"YES"<<endl; return 0; } } } } cout<<"NO"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 6 | gets(a); | ^~~~ | getw
s076486867
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) if(s[i]=='C') for(register int j=i+1;j<l;j++) if(s[j]=='F') { cout<<"Yes"; return 0; } cout<<"No"; return 0; }
a.cc: In function 'int mian()': a.cc:9:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 9 | for(register int i=0;i<l;i++) | ^ a.cc:11:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 11 | for(register int j=i+1;j<l;j++) | ^ /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
s982603263
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian() { cin>>s; l=strlen(s); for( int i=0;i<l;i++) { if(s[i]=='C') { for( int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"Yes"; return 0; } } } } cout<<"No"; return 0; }
a.cc: In function 'int mian()': a.cc:10:7: error: 'strlen' was not declared in this scope 10 | l=strlen(s); | ^~~~~~ a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 2 | #include<cstdio> +++ |+#include <cstring> 3 | #include<string>
s652405929
p03957
C++
#include<bits/stdc++.h> using namespace std; int i,j,k,n; int x; bool y; char a[20000]; int main() { gets(a); n=strlen(a); for(i=0;i<n;i++) { if(a[i]=='C') x=-1; if(a[i]=='F' && x=-1) { cout<<"Yes"; return 0; } } cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:9:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 9 | gets(a); | ^~~~ | getw a.cc:15:30: error: lvalue required as left operand of assignment 15 | if(a[i]=='F' && x=-1) | ~~~~~~~~~~^~~~
s707671526
p03957
C++
#include <iostream> #include <cstdio> #include <cstring> #include <string.h> using namespace std; int main() { char a[500],stack[500],t; int top=0; cin>>a; for(int i=0;i<strlen(a);i++) { if(a[i]=='F'&&top==0) continue; else if(a[i]=='C'){ stack[top++]=a[i]; } else { if(a[i]=='F') { t=strack[--top]; break; } } } if(t=='C') cout<<"Yes"<<endl; else cout<<"No"<<endl; }
a.cc: In function 'int main()': a.cc:22:15: error: 'strack' was not declared in this scope; did you mean 'stack'? 22 | t=strack[--top]; | ^~~~~~ | stack
s433746912
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int main() { cin>>s; int len=s.size(); for(int i=0;i<=len;i++) { if(s[i])=='C' { for(int j=i;j<=len;j++) { if(s[j]=='F') { printf("Yes\n"); return 0; } } } } printf("No\n"); return 0; }
a.cc: In function 'int main()': a.cc:11:25: error: expected primary-expression before '==' token 11 | if(s[i])=='C' | ^~
s917988655
p03957
C++
#include<bits/stdc++.h> using namespace std; char a[10000]; bool c, f; int main() { gets(a) for(int i=0; i<strlen(a); i++) { if(a[i]=='C') c=true; if(a[i]=='F'&&c==true) f=true; } if(f==true) cout<<"YES"<<endl; else cout<<"NO"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 7 | gets(a) | ^~~~ | getw a.cc:8:18: error: 'i' was not declared in this scope 8 | for(int i=0; i<strlen(a); i++) | ^
s021083122
p03957
C++
#include<cstdio> #include<iostream> #include<cstring> using namespace std; string s; stack<int>a; int main() { cin>>s; for(int i=0;i<s.size();i++) { if(s[i]=='C') { for(int j=i;j<=s.size();j++) if(s[j]=='F') { cout<<"YES"; return 0; } } } cout<<"NO"; return 0; }
a.cc:6:1: error: 'stack' does not name a type; did you mean 'obstack'? 6 | stack<int>a; | ^~~~~ | obstack
s816869703
p03957
C++
#include<cstdio> #include<iostream> using namespace std; string s; stack<int>a; int main() { cin>>s; for(int i=0;i<s.size();i++) { if(s[i]=='C') { for(int j=i;j<=s.size();j++) if(s[j]=='F') { cout<<"YES"; return 0; } } } cout<<"NO"; return 0; }
a.cc:5:1: error: 'stack' does not name a type; did you mean 'obstack'? 5 | stack<int>a; | ^~~~~ | obstack
s818905955
p03957
C++
#include <bits/stdc++.h> #include <assert.h> using namespace std; int main() { string s; bool c=false; for(int i=0;i<s.size();i++) { if(s[i]=='C') c=true; else if(c&&[i]=='F') { cout<< "Yes"<< endl; return 0; } } cout<< "No"<< endl; return 0; }
a.cc: In lambda function: a.cc:14:31: error: expected '{' before '==' token 14 | else if(c&&[i]=='F') | ^~ a.cc: In function 'int main()': a.cc:14:31: error: no match for 'operator==' (operand types are 'main()::<lambda()>' and 'char') 14 | else if(c&&[i]=='F') | ~~~^~~~~ | | | | | char | main()::<lambda()> In file included from /usr/include/c++/14/regex:68, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181, from a.cc:1: /usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed: a.cc:14:33: note: 'main()::<lambda()>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 14 | else if(c&&[i]=='F') | ^~~ /usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)' 1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed: a.cc:14:33: note: 'main()::<lambda()>' is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' 14 | else if(c&&[i]=='F') | ^~~ /usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)' 1274 | operator==(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed: a.cc:14:33: note: 'main()::<lambda()>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 14 | else if(c&&[i]=='F') | ^~~ /usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed: a.cc:14:33: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 14 | else if(c&&[i]=='F') | ^~~ /usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1441 | operator==(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed: a.cc:14:33: note: 'main()::<lambda()>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 14 | else if(c&&[i]=='F') | ^~~ /usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed: a.cc:14:33: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 14 | else if(c&&[i]=='F') | ^~~ /usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1613 | operator==(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed: a.cc:14:33: note: 'main()::<lambda()>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 14 | else if(c&&[i]=='F') | ^~~ /usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)' 2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed: a.cc:14:33: note: 'main()::<lambda()>' is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>' 14 | else if(c&&[i]=='F') | ^~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51: /usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed: a.cc:14:33: note: 'main()::<lambda()>' is not derived from 'const std::pair<_T1, _T2>' 14 | else if(c&&[i]=='F') | ^~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 441 | operator==(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed: a.cc:14:33: note: 'main()::<lambda()>' is not derived from 'const std::reverse_iterator<_Iterator>' 14 | else if(c&&[i]=='F') | ^~~ /usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 486 | operator==(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed: a.cc:14:33: note: 'main()::<lambda()>' is not derived from 'const std::reverse_iterator<_Iterator>' 14 | else if(c&&[i]=='F') | ^~~ /usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1667 | operator==(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed: a.cc:14:33: note: 'main()::<lambda()>' is not derived from 'const std::move_iterator<_IteratorL>' 14 | else if(c&&[i]=='F') | ^~~ /usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1737 | operator==(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed: a.cc:14:33: note: 'main()::<lambda()>' is not derived from 'const std::move_iterator<_IteratorL>' 14 | else if(c&&[i]=='F') | ^~~ In file included from /usr/include/c++/14/bits/char_traits.h:42, from /usr/include/c++/14/string:42, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)' 192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed: a.cc:14:33: note: 'main()::<lambda()>' is not derived from 'const std::fpos<_StateT>' 14 | else if(c&&[i]=='F') | ^~~ In file included from /usr/include/c++/14/string:43: /usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)' 235 | operator==(const allocator<_T1>&, const allocator<_T2>&) | ^~~~~~~~ /usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed: a.cc:14:33: note: 'main()::<lambda()>' is not derived from 'const std::allocator<_CharT>' 14 | else if(c&&[i]=='F') | ^~~ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54: /usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)' 629 |
s472219685
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian(){ cin>>s; l=s.size(); for(int i=0;i<l;i++){ if(s[i]=='C') { for(int j=i+1;j<l;j++) { if(s[j]=='F'){ cout<<"Yes"; return 0; } } } } cout<<"No"; return 0; }
/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
s707537012
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian(){ cin>>s; l=s.size(); for(register int i=0;i<l;i++){ if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F'){ cout<<"Yes"; return 0; } } } } cout<<"No"; return 0; }
a.cc: In function 'int mian()': a.cc:10:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 10 | for(register int i=0;i<l;i++){ | ^ a.cc:12:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 12 | for(register int j=i+1;j<l;j++) { | ^ /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
s538918926
p03957
C++
#include<bits/stdc++.h> using namespace std; int main() { string a; int b1=0,b2=0; cin >> a; for(int i=0;i<=a.size;i++) { if(a[i]=='F' && b1==0) cout <<"No\n"; if(a[i]=='F') b2=1; if(a[i]=='C') b1=1; } if(b1!=1 || b2!=1) cout <<"No\n"; else cout <<"Yes\n"; return 0; }
a.cc: In function 'int main()': a.cc:8:26: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?) 8 | for(int i=0;i<=a.size;i++) | ~~^~~~ | ()
s781850264
p03957
C++
#include<iostream> #include<cstring> using namespace std; int main() { string s; int len; bool pd=false; cin>>s; len=s.length()-1; for(int a=0;a<=s;a++) { if(s[a]=='C') { pd=true; } else { if(s[a]=='F'&&pd==true) { cout<<"Yes"<<endl; return 0; } } } cout<<"No"<<endl; }
a.cc: In function 'int main()': a.cc:11:22: error: no match for 'operator<=' (operand types are 'int' and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 11 | for(int a=0;a<=s;a++) | ~^~~ | | | | | std::string {aka std::__cxx11::basic_string<char>} | int In file included from /usr/include/c++/14/string:48, 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, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/bits/stl_iterator.h:469:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<=(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 469 | operator<=(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:469:5: note: template argument deduction/substitution failed: a.cc:11:24: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'int' 11 | for(int a=0;a<=s;a++) | ^ /usr/include/c++/14/bits/stl_iterator.h:513:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<=(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 513 | operator<=(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:513:5: note: template argument deduction/substitution failed: a.cc:11:24: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'int' 11 | for(int a=0;a<=s;a++) | ^ /usr/include/c++/14/bits/stl_iterator.h:1704:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<=(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1704 | operator<=(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1704:5: note: template argument deduction/substitution failed: a.cc:11:24: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'int' 11 | for(int a=0;a<=s;a++) | ^ /usr/include/c++/14/bits/stl_iterator.h:1767:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<=(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1767 | operator<=(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1767:5: note: template argument deduction/substitution failed: a.cc:11:24: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'int' 11 | for(int a=0;a<=s;a++) | ^ In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/string:51: /usr/include/c++/14/bits/stl_pair.h:1064:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<=(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1064 | operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1064:5: note: template argument deduction/substitution failed: a.cc:11:24: note: mismatched types 'const std::pair<_T1, _T2>' and 'int' 11 | for(int a=0;a<=s;a++) | ^ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54: /usr/include/c++/14/string_view:717:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<=(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 717 | operator<=(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:717:5: note: template argument deduction/substitution failed: a.cc:11:24: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int' 11 | for(int a=0;a<=s;a++) | ^ /usr/include/c++/14/string_view:724:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<=(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)' 724 | operator<=(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:724:5: note: template argument deduction/substitution failed: a.cc:11:24: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int' 11 | for(int a=0;a<=s;a++) | ^ /usr/include/c++/14/string_view:732:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<=(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)' 732 | operator<=(__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:732:5: note: template argument deduction/substitution failed: a.cc:11:24: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 11 | for(int a=0;a<=s;a++) | ^ /usr/include/c++/14/bits/basic_string.h:3956:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<=(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3956 | operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3956:5: note: template argument deduction/substitution failed: a.cc:11:24: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'int' 11 | for(int a=0;a<=s;a++) | ^ /usr/include/c++/14/bits/basic_string.h:3970:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<=(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)' 3970 | operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3970:5: note: template argument deduction/substitution failed: a.cc:11:24: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'int' 11 | for(int a=0;a<=s;a++) | ^ /usr/include/c++/14/bits/basic_string.h:3983:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<=(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3983 | operator<=(const _CharT* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3983:5: note: template argument deduction/substitution failed: a.cc:11:24: note: mismatched types 'const _CharT*' and 'int' 11 | for(int a=0;a<=s;a++) | ^ In file included from /usr/include/c++/14/bits/memory_resource.h:47, from /usr/include/c++/14/string:68: /usr/include/c++/14/tuple:2625:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator<=(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)' 2625 | operator<=(const tuple<_TElements...>& __t, | ^~~~~~~~ /usr/include/c++/14/tuple:2625:5: note: template argument deduction/substitution failed: a.cc:11:24: note: mismatched types 'const std::tuple<_UTypes ...>' and 'int' 11 | for(int a=0;a<=s;a++) | ^
s017589936
p03957
C++
#include <iostream> #include <string> using namespace std; int main() { string a; cin>>a; int l=a.size(); bool flag=false; for(int i=0;i<l;i++) { if(a[i]=='C') { flag=true; } for(int j=i+1;j<l;j++) if(a[i]=='F') { cout<<"Yes"<<endl; return 0l } } cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:20:12: error: expected ';' before '}' token 20 | return 0l | ^ | ; 21 | } | ~
s928733368
p03957
C++
#include <iostream> #include <string> using namespace std; int main() { string a; cin>>a; int l=a.size(); bool flag=false; for(int i=0;i<l;i++) { if(a[i]=='C') { flag=true; } else if(a[i]=='F'&&flag==tre) { cout<<"YES"; cout<<endl; return 0; } } cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:16:38: error: 'tre' was not declared in this scope 16 | else if(a[i]=='F'&&flag==tre) | ^~~
s959126517
p03957
C++
#include<cstdio> #include<cstdlib> #include<cmath> #include<cstring> #include<iostream> #include<algorithm> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"Yes"; return 0; } } } } cout<<"No"; return 0; }
a.cc: In function 'int mian()': a.cc:14:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 14 | for(register int i=0;i<l;i++) | ^ a.cc:18:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 18 | for(register int j=i+1;j<l;j++) | ^ /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
s705302941
p03957
C++
#icnldue<bits/stdc++.h> using namespace std; int main(){ char a[100]; scanf("%s",a); int l=strlen (a),n; for(int i=0;i<l;i++){ if(a[i]=='C')n=i; } bool p=false; for(int i=n;i<l;i++)if(a[i]=='F')p=true; if(p)cout<<"Yes"; else cout<<"No"; }
a.cc:1:2: error: invalid preprocessing directive #icnldue; did you mean #include? 1 | #icnldue<bits/stdc++.h> | ^~~~~~~ | include a.cc: In function 'int main()': a.cc:5:5: error: 'scanf' was not declared in this scope 5 | scanf("%s",a); | ^~~~~ a.cc:6:11: error: 'strlen' was not declared in this scope 6 | int l=strlen (a),n; | ^~~~~~ a.cc:1:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' +++ |+#include <cstring> 1 | #icnldue<bits/stdc++.h> a.cc:8:22: error: 'n' was not declared in this scope 8 | if(a[i]=='C')n=i; | ^ a.cc:11:15: error: 'n' was not declared in this scope 11 | for(int i=n;i<l;i++)if(a[i]=='F')p=true; | ^ a.cc:12:10: error: 'cout' was not declared in this scope 12 | if(p)cout<<"Yes"; | ^~~~ a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | #icnldue<bits/stdc++.h> a.cc:13:10: error: 'cout' was not declared in this scope 13 | else cout<<"No"; | ^~~~ a.cc:13:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
s173078937
p03957
C++
#include <bits/stdc++.h> using namespace std; int main() { string a cin>>a; if(a.find("CF")) { cout<<"Yes"<<endl; return 0; } else cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:6:5: error: expected initializer before 'cin' 6 | cin>>a; | ^~~ a.cc:7:8: error: 'a' was not declared in this scope 7 | if(a.find("CF")) | ^
s236674554
p03957
C++
#include <bits/stdc++.h> using namespace std; int main() { string a cin>>a; if(a.find(CF)) { cout<<"Yes"<<endl; return 0; } else cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:6:5: error: expected initializer before 'cin' 6 | cin>>a; | ^~~ a.cc:7:8: error: 'a' was not declared in this scope 7 | if(a.find(CF)) | ^ a.cc:7:15: error: 'CF' was not declared in this scope 7 | if(a.find(CF)) | ^~
s238569347
p03957
C++
#include <map> #include <set> #include <list> #include <cmath> #include <queue> #include <stack> #include <cstdio> #include <string> #include <vector> #include <complex> #include <cstdlib> #include <cstring> #include <numeric> #include <sstream> #include <iostream> #include <algorithm> #include <functional> #define mp make_pair #define pb push_back #define all(x) (x).begin(),(x).end() #define rep(i,n) for(int i=0;i<(n);i++) using namespace std; typedef long long ll; typedef unsigned long long ull; typedef vector<bool> vb; typedef vector<int> vi; typedef vector<vb> vvb; typedef vector<vi> vvi; typedef pair<int,int> pii; const int INF=1<<29; const double EPS=1e-9; const int dx[]={1,0,-1,0,1,1,-1,-1},dy[]={0,-1,0,1,1,-1,-1,1}; int main() { string s; cin >> s; bool cok = false; bool fok = false; for (int i = 0; i < N; i++) { if (!cok) { if (s[i] == 'C') { cok = true; } } else if (!fok) { if (s[i] == 'F') { fok = true; } } } if (cok && fok) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:45:23: error: 'N' was not declared in this scope 45 | for (int i = 0; i < N; i++) { | ^
s400148712
p03957
C++
#include<iostream> #include<cmath> #include<cstring> #include<algorithm> using namespace std; int main() { char a[100]; gets(a); int x,y=0,z=0; for(x=0;x<=strlen(a);x++) { if(a[x]=='C') { y++; } if(a[x]=='F') { z++; } } if(y>=1&&z>=1) { cout<<"Yes"<<endl; } else cout<<"No"<<endl; }
a.cc: In function 'int main()': a.cc:9:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 9 | gets(a); | ^~~~ | getw
s809844781
p03957
C++
#include<iostream> #include<cmath> #include<cstring> #include<algorithm> using namespace std; int main() { char a[100]; gets(a); int x,y=0,z=0; for(x=0;x<=strlen(a);x++) { if(a[x]=='C') { y++; } if(a[x]=='F') { z++; } } if(y>=1&&z>=1) { cout<<"Yes"<<endl; } else cout<<"No"<<endl; }
a.cc: In function 'int main()': a.cc:9:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 9 | gets(a); | ^~~~ | getw
s475525457
p03957
C++
#include<bits/stdc++.h> using namespace std; int main() { string temp; cin>>temp; int len=temp.size(); bool flag=0; for(int i=0;i<len;i++) { if(flag==0) { if(temp[i]=='C') flag==1; continue } if(flag==1) { if(temp[i]=='F') { cout<<"Yes"; return 0; } } } cout<<"No"; }
a.cc: In function 'int main()': a.cc:16:21: error: expected ';' before '}' token 16 | continue | ^ | ; 17 | } | ~
s786556667
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"Yes"; return 0; } } } } cout<<"No"; return 0; }
a.cc: In function 'int mian()': a.cc:11:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 11 | for(register int i=0;i<l;i++) | ^ a.cc:15:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 15 | for(register int j=i+1;j<l;j++) | ^ /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
s901298886
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"Yes"<<endl; return 0; } } } } cout<<"No"<<endl; return 0; }
a.cc: In function 'int mian()': a.cc:11:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 11 | for(register int i=0;i<l;i++) | ^ a.cc:15:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 15 | for(register int j=i+1;j<l;j++) | ^ /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
s032858862
p03957
C++
#include<bits/stdc++.h> using namespace std; string a,b="CF"; int al,bl; int main(){ getline(cin,a); al=a.length(); for(int i=0;i<al;i++) if(a[i]==b[bl]){ bl++; if(bl==2) break; } if(bl==2) cout<<"Yes"; else cout<<"No"; cout<<endl; return 0 }
a.cc: In function 'int main()': a.cc:17:13: error: expected ';' before '}' token 17 | return 0 | ^ | ; 18 | } | ~
s917927735
p03957
C++
#include<bits/stdc++.h> using namespace std; int main() { bool a=false,b=false; int i=1; char c[10000]; gets(c); while(c[i]!=' ') { if(c[i]=='C') then a=true; if(c[i]=='F') then b=true; i++; } if (a&&b) cout<<"Yes"; else cout<<"No"; }
a.cc: In function 'int main()': a.cc:8:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 8 | gets(c); | ^~~~ | getw a.cc:11:31: error: 'then' was not declared in this scope 11 | if(c[i]=='C') then a=true; | ^~~~ a.cc:12:31: error: 'then' was not declared in this scope 12 | if(c[i]=='F') then b=true; | ^~~~
s388627889
p03957
C++
#include<bits/stdc++.h> using namespace std; int main() { int a[10086],x,i,j=0,t=0; char as[100086] gets(as); x=strlen(as); for(i=0;i<as;i++) { if(as[i]=='C') t=1; if(as[i]=='F'&&t==1) { cout<<"Yes"; return 0; } } cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:8:9: error: expected initializer before 'gets' 8 | gets(as); | ^~~~ a.cc:9:18: error: 'as' was not declared in this scope; did you mean 'a'? 9 | x=strlen(as); | ^~ | a