submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s437935147
p03957
C++
#include<iostream> using namespace std; string s; long long flag=0; int main() { cin>>s; for(int i=0;i<=size()-1;i++) { if(flag==0&&s[i]=='C') { flag=1; } if(flag==1&&s[i]=='F') { cout<<"Yes"; return 0; } } cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:8:28: error: no matching function for call to 'size()' 8 | for(int i=0;i<=size()-1;i++) | ~~~~^~ In file included from /usr/include/c++/14/string:53, 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/range_access.h:262:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)' 262 | size(const _Container& __cont) noexcept(noexcept(__cont.size())) | ^~~~ /usr/include/c++/14/bits/range_access.h:262:5: note: candidate expects 1 argument, 0 provided /usr/include/c++/14/bits/range_access.h:272:5: note: candidate: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])' 272 | size(const _Tp (&)[_Nm]) noexcept | ^~~~ /usr/include/c++/14/bits/range_access.h:272:5: note: candidate expects 1 argument, 0 provided
s071654439
p03957
C++
#include<iostream> #include<cstdio> #include<algorithm> #include<cmath> #include<csting> #include<string> using namespace std; string st; int main() { cin>>st; for(int i=0;i<st.size();i++) { if(st[i]=="C") { for(int j=i+1;j<st.size();i++) { if(st[i]=="F") { cout<<"Yes"; return 0; } } } } cout<<"No"; return 0; }
a.cc:5:9: fatal error: csting: No such file or directory 5 | #include<csting> | ^~~~~~~~ compilation terminated.
s926824784
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
s862021170
p03957
C++
#include<bits/stdc++.h> using namespace std; int flag=0; string s; int main() { cin>>s; for(int i=1;i<=strlen(s);i++) { if(s[i]=='C') flag=1; if(s[i]=='F') { if(flag==1) { flag=2; break; } } } if(flag==2) cout<<"Yes"; else cout<<"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(s);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) | ~~~~~~~~~~~~^~~
s335910080
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
s370156615
p03957
C
#include<stdio.h> #include<string.h> int str_chnum(const char s[], int c ,int a) { int i; int sum = 0; for (i = 0; s[i] != '\0'; i++) { if (s[i] == c ) for(j = 0; s[j] != '\0'; j++){ if(s[j] == a) printf("Yes"); } } else printf("No"); } strcmp int main() { char str[101]; scanf("%s", str); str_chnum(str, 'c', 'a')); return 0; }
main.c: In function 'str_chnum': main.c:9:21: error: 'j' undeclared (first use in this function) 9 | for(j = 0; s[j] != '\0'; j++){ | ^ main.c:9:21: note: each undeclared identifier is reported only once for each function it appears in main.c:14:9: error: 'else' without a previous 'if' 14 | else | ^~~~ main.c: At top level: main.c:19:7: error: expected ';' before 'int' 19 | strcmp | ^ | ; 20 | int main() { | ~~~ main.c: In function 'main': main.c:25:34: error: expected ';' before ')' token 25 | str_chnum(str, 'c', 'a')); | ^ | ; main.c:25:34: error: expected statement before ')' token
s542550197
p03957
C
#include<stdio.h> #include<string.h> int str_chnum(const char s[], int c ,int a) { int i; int sum = 0; for (i = 0; s[i] != '\0'; i++) { if (s[i] == c ) if(s[j] == a) printf("Yes"); } else printf("No"); } strcmp int main() { char str[101]; scanf("%s", str); str_chnum(str, 'c', 'a')); return 0; }
main.c: In function 'str_chnum': main.c:9:30: error: 'j' undeclared (first use in this function) 9 | if(s[j] == a) | ^ main.c:9:30: note: each undeclared identifier is reported only once for each function it appears in main.c:12:9: error: 'else' without a previous 'if' 12 | else | ^~~~ main.c: At top level: main.c:17:7: error: expected ';' before 'int' 17 | strcmp | ^ | ; 18 | int main() { | ~~~ main.c: In function 'main': main.c:23:34: error: expected ';' before ')' token 23 | str_chnum(str, 'c', 'a')); | ^ | ; main.c:23:34: error: expected statement before ')' token
s290053311
p03957
C++
#include<bits/stdc++.h> using namespace std; string b; int q=0; cin>>b; for (int i=0;i<b.size();i++){ if(b[i]=='c') qwq++; if(q1=0 && B[I]=='f') q-=100000000000; } if(q<0) cout<<"yes"; else cout<<"no"; return 0; }
a.cc:5:1: error: 'cin' does not name a type 5 | cin>>b; | ^~~ a.cc:6:1: error: expected unqualified-id before 'for' 6 | for (int i=0;i<b.size();i++){ | ^~~ a.cc:6:14: error: 'i' does not name a type 6 | for (int i=0;i<b.size();i++){ | ^ a.cc:6:25: error: 'i' does not name a type 6 | for (int i=0;i<b.size();i++){ | ^ a.cc:12:1: error: expected unqualified-id before 'if' 12 | if(q<0) | ^~ a.cc:14:1: error: expected unqualified-id before 'else' 14 | else | ^~~~ a.cc:16:1: error: expected unqualified-id before 'return' 16 | return 0; | ^~~~~~ a.cc:17:1: error: expected declaration before '}' token 17 | } | ^
s261891954
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
s578081369
p03957
C++
#include<bits/stdc++.h> #pragma GCC optimize("O999") using namespace std; int main() { ios::sync_with_stdio(0); int f=0,ff=0; string s; getline(cin,s); for(int i=0;i<s.size;i++) { if(s[i]=='C') f=1; if(f==1&&s[i]=='F') ff=1; } if(ff==1) cout<<"Yes"; else cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:10:25: 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 '()' ?) 10 | for(int i=0;i<s.size;i++) | ~~^~~~ | ()
s824602478
p03957
C++
#include<bits/stdc++.h> #pragma GCC optimize("O999") using namespace std; int main() { ios::sync_with_stdio(0); int f=0,ff=0; string s; getline(cin,s); for(int i=0;i<n;i++) { if(s[i]=='C') f=1; if(f==1&&s[i]=='F') ff=1; } if(ff==1) cout<<"Yes"; else cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:10:23: error: 'n' was not declared in this scope 10 | for(int i=0;i<n;i++) | ^
s786697320
p03957
C++
program hrn; var s:string; i,l,sc,sf:longint; //l表示字符串长度; sc,sf分别表示第一个C的坐标和最后一个F的坐标. begin read(s); l:=length(s);sc:=maxlongint; //sc一定要赋值为maxlongint! for i:=1 to l do if s[i]='F'then sf:=i; //寻找最后一个F for i:=l downto 1 do if s[i]='C'then sc:=i;//寻找第一个C if sc<sf then writeln('Yes') else writeln('No'); //注意输出格式 end.
a.cc:11:25: warning: multi-character character constant [-Wmultichar] 11 | if sc<sf then writeln('Yes') | ^~~~~ a.cc:12:25: warning: multi-character character constant [-Wmultichar] 12 | else writeln('No'); //注意输出格式 | ^~~~ a.cc:1:1: error: 'program' does not name a type 1 | program hrn; | ^~~~~~~ a.cc:2:2: error: 'var' does not name a type 2 | var | ^~~ a.cc:4:3: error: 'i' does not name a type 4 | i,l,sc,sf:longint; | ^ a.cc:6:2: error: 'begin' does not name a type 6 | begin | ^~~~~ a.cc:8:3: error: 'l' does not name a type 8 | l:=length(s);sc:=maxlongint; //sc一定要赋值为maxlongint! | ^ a.cc:8:16: error: 'sc' does not name a type 8 | l:=length(s);sc:=maxlongint; //sc一定要赋值为maxlongint! | ^~ a.cc:9:3: error: expected unqualified-id before 'for' 9 | for i:=1 to l do if s[i]='F'then sf:=i; //寻找最后一个F | ^~~ a.cc:10:3: error: expected unqualified-id before 'for' 10 | for i:=l downto 1 do if s[i]='C'then sc:=i;//寻找第一个C | ^~~ a.cc:11:3: error: expected unqualified-id before 'if' 11 | if sc<sf then writeln('Yes') | ^~ a.cc:13:2: error: 'end' does not name a type 13 | end. | ^~~
s558753832
p03957
C++
#include<bits/stdc++.h> using naemspace std; #define ll long int main(){ string sd; ll a=-1,b=2222222; cin>>sd; for(int i=0;i<sd.length();i++){ if(sd[i]=='C'&&a!=-1)a=i; if(sd[i]=='F'&&b!=-1)b=i; }if(a<b&&a!=-1&&b!=-1)cout<<"Yes"; else cout<<"No"; return 0; }
a.cc:2:7: error: expected nested-name-specifier before 'naemspace' 2 | using naemspace std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:5:5: error: 'string' was not declared in this scope 5 | string sd; | ^~~~~~ a.cc:5:5: note: suggested alternatives: In file included from /usr/include/c++/14/string:41, 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/c++/14/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string<char> string; | ^~~~~~ /usr/include/c++/14/string:76:11: note: 'std::pmr::string' 76 | using string = basic_string<char>; | ^~~~~~ a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 7 | cin>>sd; | ^~~ | std::cin In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~ a.cc:7:10: error: 'sd' was not declared in this scope; did you mean 'std'? 7 | cin>>sd; | ^~ | std a.cc:11:27: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 11 | }if(a<b&&a!=-1&&b!=-1)cout<<"Yes"; | ^~~~ | 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:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 12 | else cout<<"No"; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~
s734553396
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int len int main() { cin >> s; len = s.size(); for(int i = 0; i < len; i++) { if(s[i] == 'C') { for(int j = i + 1; j < len; j++) { if(s[j] == 'F') { return printf("Yes") - 3; } } } } return printf("No") - 2; }
a.cc:4:1: error: expected initializer before 'int' 4 | int main() | ^~~
s903472777
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int len int main() { cin >> s; len = s.size(); for(int i = 0;i < len; i++) { if(s[i] == 'C') { for(int j = i + 1; j < l; j++) { if(s[j] == 'F') { return printf("Yes") - 3; } } } } return printf("No") - 2; }
a.cc:4:1: error: expected initializer before 'int' 4 | int main() | ^~~
s188791863
p03957
C++
#include<iostream> #include<cstdio> #include<cstring> #include<string> using namespace std; char s[200]; int i,c,f,l; int main() { cin>>s; l=strlen(s); for(i=0;i<l;i++) { if(s[i]=='C')c=1; if(s[i]=='F'&&c=1)f=1; } if(f)cout<<"Yes"; else cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:15:21: error: lvalue required as left operand of assignment 15 | if(s[i]=='F'&&c=1)f=1; | ~~~~~~~~~^~~
s357362644
p03957
C++
#include<iostream> #include<cstdio> #include<cstring> #include<string> #define M 100 using namespace std; char s[M]; int main() { cin>>s; int i,c=M,l=strlen(s); bool c1=false,f1=false; for(i=0;i<l;i++) { if(s[i]=='C'&&c!=M)c=i; if(s[i]=='F')f=i; } cout<<(c<f)?"Yes":"false"; return 0; }
a.cc: In function 'int main()': a.cc:16:22: error: 'f' was not declared in this scope; did you mean 'f1'? 16 | if(s[i]=='F')f=i; | ^ | f1 a.cc:18:14: error: 'f' was not declared in this scope; did you mean 'f1'? 18 | cout<<(c<f)?"Yes":"false"; | ^ | f1
s418642654
p03957
C++
#include<bits/stdc++.h> using naemspace std; #define ll long int main(){ string sd; ll a=-1,b=2222222; cin>>sd; for(int i=0;i<sd.length();i++){ if(sd[i]=='C'&&a!=-1)a=i; if(sd[i]=='F'&&b!=-1)b=i; }if(a<b&&a!=-1&&b!=-1)cout<<"Yes"; else cout<<"No"; return 0; }
a.cc:2:7: error: expected nested-name-specifier before 'naemspace' 2 | using naemspace std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:5:5: error: 'string' was not declared in this scope 5 | string sd; | ^~~~~~ a.cc:5:5: note: suggested alternatives: In file included from /usr/include/c++/14/string:41, 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/c++/14/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string<char> string; | ^~~~~~ /usr/include/c++/14/string:76:11: note: 'std::pmr::string' 76 | using string = basic_string<char>; | ^~~~~~ a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 7 | cin>>sd; | ^~~ | std::cin In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~ a.cc:7:10: error: 'sd' was not declared in this scope; did you mean 'std'? 7 | cin>>sd; | ^~ | std a.cc:11:27: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 11 | }if(a<b&&a!=-1&&b!=-1)cout<<"Yes"; | ^~~~ | 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:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 12 | else cout<<"No"; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~
s615631729
p03957
C++
#include<bits/stdc++.h> using namespace std; int main() { string z; cin>>z; int d,f=0; for(int i=1;i<=z.size();i++) { d=i+1; if(z[i]=='C') { f=1; break; } else f=0; } for(int i=d;i<=z.size();i++) { if(z[i]=='F') { cout<<"Yes"<<endl; return 0; } else f=0; } cout<<"No"<<endl; return 0; } if(z[i]=='F') { cout<<"Yes"<<endl; return 0; } else f=0; } cout<<"No"<<endl; return 0; }
a.cc:33:9: error: expected unqualified-id before 'if' 33 | if(z[i]=='F') | ^~ a.cc:38:9: error: expected unqualified-id before 'else' 38 | else f=0; | ^~~~ a.cc:39:9: error: expected declaration before '}' token 39 | } | ^ a.cc:40:9: error: 'cout' does not name a type 40 | cout<<"No"<<endl; | ^~~~ a.cc:41:9: error: expected unqualified-id before 'return' 41 | return 0; | ^~~~~~ a.cc:42:1: error: expected declaration before '}' token 42 | } | ^
s549608246
p03957
C++
#include<bits/stdc++.h> using namespace std; int main() { string z; cin>>z; int d,f; for(int i=1;i<=z.size();i++) { d=i+1; if(z[i]=='C') { f=1; break; } else f=0; } for(int i=d;i<=z.size();i++) { if(z[i]=='F') { cout<<"Yes"<<endl; return 0; } else f=0; } cout<<"No"<<endl; return 0; } if(z[i]=='F') { cout<<"Yes"<<endl; return 0; } else f=0; } cout<<"No"<<endl; return 0; }
a.cc:33:9: error: expected unqualified-id before 'if' 33 | if(z[i]=='F') | ^~ a.cc:38:9: error: expected unqualified-id before 'else' 38 | else f=0; | ^~~~ a.cc:39:9: error: expected declaration before '}' token 39 | } | ^ a.cc:40:9: error: 'cout' does not name a type 40 | cout<<"No"<<endl; | ^~~~ a.cc:41:9: error: expected unqualified-id before 'return' 41 | return 0; | ^~~~~~ a.cc:42:1: error: expected declaration before '}' token 42 | } | ^
s419292378
p03957
C++
#include<iostream>using namespace std;int main(){string z;cin>>z;int d,f=0;for(int i=1;i<=z.size();i++){d=i+1;if(z[i]=='C') {f=1;break;}else f=0;}for(int i=d;i<=z.size();i++){if(z[i]=='F') {cout<<"Yes"<<endl;return 0;}else f=0;}cout<<"No"<<endl;return 0;}
a.cc:1:25: warning: extra tokens at end of #include directive 1 | #include<iostream>using namespace std;int main(){string z;cin>>z;int d,f=0;for(int i=1;i<=z.size();i++){d=i+1;if(z[i]=='C') {f=1;break;}else f=0;}for(int i=d;i<=z.size();i++){if(z[i]=='F') {cout<<"Yes"<<endl;return 0;}else f=0;}cout<<"No"<<endl;return 0;} | ^~~~~~~~~ a.cc:1:9: fatal error: iostream>usin: No such file or directory 1 | #include<iostream>using namespace std;int main(){string z;cin>>z;int d,f=0;for(int i=1;i<=z.size();i++){d=i+1;if(z[i]=='C') {f=1;break;}else f=0;}for(int i=d;i<=z.size();i++){if(z[i]=='F') {cout<<"Yes"<<endl;return 0;}else f=0;}cout<<"No"<<endl;return 0;} | ^~~~~~~~~~~~~~~ compilation terminated.
s322569344
p03957
C++
#include<bits/stdc++.h> using namespace std; string b; int main(){ int q=0; cin>>b; for(int i=0;i<b.size();i++){ if(b[i]=='C') qwq++;//判是否有C if(q!=0&&b[i]=='F')//若有C且后面有F q-=10000000000;//q绝对比0小 } if(q<0)//如果q比0小 cout<<"Yes"; else cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:9:5: error: 'qwq' was not declared in this scope 9 | qwq++;//判是否有C | ^~~
s471044099
p03957
C++
#include<bits/stdc++.h> using namespace std; string b; int main(){ int q=0; cin>>b; for(int i=0;i<b.size();i++){ if(b[i]=='C') qwq++;//判是否有C if(q!=0&&b[i]=='F')//若有C且后面有F q-=10000000000;//q绝对比0小 } if(q<0)//如果q比0小 cout<<"Yes"; else cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:9:5: error: 'qwq' was not declared in this scope 9 | qwq++;//判是否有C | ^~~
s989887609
p03957
C++
#include<bits/stdc++.h> using namespace std; string b; int main(){ int q=0; cin>>b; for(int i=0;i<b.size();i++){ if(b[i]=='C') qwq++;//判是否有C if(q!=0&&b[i]=='F')//若有C且后面有F q-=10000000000;//q绝对比0小 } if(q<1)//如果q比0小 cout<<"Yes"; else cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:9:5: error: 'qwq' was not declared in this scope 9 | qwq++;//判是否有C | ^~~
s100376856
p03957
C++
#include<bits/stdc++.h> using namespace std; string b; int main(){ int q=0; cin>>b; for(int i=0;i<b.size();i++){ if(b[i]=='C') qwq++;//判是否有C q-=10000000000;//q绝对比0小 } if(q<0)//如果q比0小 cout<<"Yes"; else cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:9:5: error: 'qwq' was not declared in this scope 9 | qwq++;//判是否有C | ^~~
s524927723
p03957
C++
#include<bits/stdc++.h> using namespace std; string b; int main(){ int q=0; cin>>b; for(int i=0;i<b.size();i++){ if(b[i]=='C' q-=10000000000;//q绝对比0小 } if(q<0)//如果q比0小 cout<<"Yes"; else cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:8:21: error: expected ';' before 'q' 8 | if(b[i]=='C' | ^ | ; 9 | q-=10000000000;//q绝对比0小 | ~ a.cc:10:5: error: expected primary-expression before '}' token 10 | } | ^ a.cc:9:20: error: expected ')' before '}' token 9 | q-=10000000000;//q绝对比0小 | ^ | ) 10 | } | ~ a.cc:8:11: note: to match this '(' 8 | if(b[i]=='C' | ^ a.cc:10:5: error: expected primary-expression before '}' token 10 | } | ^
s364685688
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
s668896000
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
s204526099
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
s958258032
p03957
C++
#include <bits/stdc++.h> using namespace std; int main(){ string a; cin >> a; int x; for (int i = 0; i < a.size(), i++) { if (a[i] == 'C') { x = i; } } for (int i = x; i < a.size(), i++) { if (a[i] == 'F') { cout << "Yes"; return 0; } } cout << "No"; }
a.cc: In function 'int main()': a.cc:7:36: error: expected ';' before ')' token 7 | for (int i = 0; i < a.size(), i++) { | ^ | ; a.cc:12:36: error: expected ';' before ')' token 12 | for (int i = x; i < a.size(), i++) { | ^ | ;
s511812673
p03957
C++
#include<bits/stdc++.h> char n[10010]; bool c,f; int main() { cin>>n; for(int i=0; i<strlen(n); i++) { if(n[i]=='C') c=true; if(n[i]=='F'&&c==true) f=true; } if(f==true) cout<<"Yes\n"; else cout<<"No\n"; 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>>n; | ^~~ | std::cin In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146, 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:15:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 15 | cout<<"Yes\n"; | ^~~~ | 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:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 17 | cout<<"No\n"; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~
s159987460
p03957
C++
#include<bits/stdc++.h> char n[10010]; bool c,f; int main() { cin>>n; for(int i=0; i<strlen(n); i++) { if(n[i]=='C') c=true; if(n[i]=='F'&&c==true) f=true; } if(f==true) cout<<"Yes\n"; else cout<<"No\n"; 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>>n; | ^~~ | std::cin In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146, 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:15:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 15 | cout<<"Yes\n"; | ^~~~ | 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:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 17 | cout<<"No\n"; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~
s848930158
p03957
C++
#include<iostream> #include<string> using namespace std; int main(void){ bool x=y=false; string s; cin >> s; for(int i=0;i<s.length();i++){ if(s[i]=='C') x=true; if(x && s[i]=='F') y=true; } if(x&&y) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
a.cc: In function 'int main()': a.cc:6:10: error: 'y' was not declared in this scope 6 | bool x=y=false; | ^
s847014452
p03957
C++
#include <iostream> using namespace std; int main(){ string s; cin >> s; int c = 0; int f = 0; for(int i = 0;i < s.length();i++){ if(s.at(i) == C){ c++; } if(s.at(i) == F){ f++; } } if(c > 0 && f > 0){ cout << "Yes" << endl; }else{ cout << "No" << endl; } }
a.cc: In function 'int main()': a.cc:10:31: error: 'C' was not declared in this scope 10 | if(s.at(i) == C){ | ^ a.cc:13:31: error: 'F' was not declared in this scope 13 | if(s.at(i) == F){ | ^
s056451963
p03957
C++
#include <bits/stdc++.h> using namespace std; using ll = long long; #define FOR(i, m, n) for (int i = (m); i < (n); i++) #define REP(i, n) FOR(i, 0, n) #define ALL(c) (c).begin(), (c).end() template<class T> inline bool chmin(T& a, T b) {if (a > b) {a = b; return true;} return false;} template<class T> inline bool chmax(T& a, T b) {if (a < b) {a = b; return true;} return false;} const int MOD = 1000000007; int main() { string s; cin >> s; bool c = false; REP(i, s.size()) { if (!c) { if (s[i] == 'C') { c = true; } } else { if (s[i] == 'F') { cout << "Yes" << endl; return 0; } } } cout << "No" endl; }
a.cc: In function 'int main()': a.cc:28:17: error: expected ';' before 'endl' 28 | cout << "No" endl; | ^~~~~ | ;
s412795774
p03957
C++
#include <iostream> #include <string> using namespace std; int main() { string a; int b = 0, c = 0; cin >> a; for (int i = 0; i < a.size(); i++) { if (a[i] == "C") { b = 1; break; } if (a[i] == "F" && b == 1) { c = 1; cout << "Yes" << endl; break; } } if (b == 0 && c == 0) cout << "No" << endl; return 0; }
a.cc: In function 'int main()': a.cc:9:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 9 | if (a[i] == "C") { a.cc:13:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 13 | if (a[i] == "F" && b == 1) {
s919001043
p03957
C++
#include<bits/stdc++.h> using namespace std; string b; int main(){ int q=0; cin>>b; for(int i=0;i<b.size();i++){ if(b[i]=='C') qwq++; if(q!=0&&b[i]=='F') q-=10000000000; } if(q<0) cout<<"Yes"; else cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:9:5: error: 'qwq' was not declared in this scope 9 | qwq++; | ^~~
s078156057
p03957
C++
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; int l=size.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 main()': a.cc:6:12: error: overloaded function with no contextual type information 6 | int l=size.s(); | ^
s742046483
p03957
C++
#include<bits/stdc++.h> using namespace std; int main(){ char s[100]; for(int i=0;i<=99;i++) cin>>s[i]; for(int i=0;i<=99;i++){ if(c[i]=='C') { for(int j=i+1;j<=99;j++){ if(c[j]='F') { cout<<"Yes"; return 0;} if(j==99) {cout<<"No"; return 0;} } } } }
a.cc: In function 'int main()': a.cc:7:4: error: 'c' was not declared in this scope 7 | if(c[i]=='C') { | ^
s648464402
p03957
C++
#include<bits/stdc++.h> using namespace std; int main(){ char s[100]; for(int i=0;i<=99;i++) cin>>s[i]; for(int i=0;i<=99;i++){ if(s[i]=='C') { for(int j=i+1;j<=99;j++){ if(s[j]='F') { cout<<Yes; return 0;} if(j==99) {cout<<No; return 0;} } } } }
a.cc: In function 'int main()': a.cc:10:7: error: 'Yes' was not declared in this scope 10 | cout<<Yes; return 0;} | ^~~ a.cc:11:18: error: 'No' was not declared in this scope 11 | if(j==99) {cout<<No; return 0;} | ^~
s293863337
p03957
C++
#include<bits/stdc++.h> using namespace std; int main(){ char s[100]; for(int i=0;i<=99;i++) cin>>s[i]; for(int i=0;i<=99;i++){ if(c[i]=='C') { for(int j=i+1;j<=99;j++){ if(c[j]='F') { cout<<Yes; return 0;} if(j==99) {cout<<No; return 0;} } } } }
a.cc: In function 'int main()': a.cc:7:4: error: 'c' was not declared in this scope 7 | if(c[i]=='C') { | ^ a.cc:10:7: error: 'Yes' was not declared in this scope 10 | cout<<Yes; return 0;} | ^~~ a.cc:11:18: error: 'No' was not declared in this scope 11 | if(j==99) {cout<<No; return 0;} | ^~
s876951474
p03957
C++
#include<bits/stdc++.h> using namespace std; int main(){ char s[100]; for(int i=0;i<=99;i++) cin>>s[i]; for(int i=0;i<=99;i++){ if(c[i]=='C') { for(int j=i+1;j<=99;j++){ if(c[j]='F') { cout<<Yes; return 0;} if(j==99) {cout<<No; return 0;} } } }
a.cc: In function 'int main()': a.cc:7:4: error: 'c' was not declared in this scope 7 | if(c[i]=='C') { | ^ a.cc:10:7: error: 'Yes' was not declared in this scope 10 | cout<<Yes; return 0;} | ^~~ a.cc:11:18: error: 'No' was not declared in this scope 11 | if(j==99) {cout<<No; return 0;} | ^~ a.cc:14:2: error: expected '}' at end of input 14 | } | ^ a.cc:3:11: note: to match this '{' 3 | int main(){ | ^
s451461249
p03957
C++
#include <bits/stdc++.h> #define repd(i,a,b) for (int i=(a);i<(b);i++) #define rep(i,n) repd(i,0,n) #define int long long typedef long long ll; const int MOD = 1000000007; const int INF = 1010000000; const double EPS = 1e-10; using namespace std; const pair<int,int> fd[] = {make_pair(1,0),make_pair(-1,0),make_pair(0,1),make_pair(0,-1)}; signed main() { string s;cin>>s; bool c = false; rep(i,n){ if(!c && s[i] == 'C')c = true; else if(c && s[i] == 'F'){ cout << "Yes" << endl; return 0; } } cout << "No" << endl; }
a.cc: In function 'int main()': a.cc:15:9: error: 'n' was not declared in this scope 15 | rep(i,n){ | ^ a.cc:2:39: note: in definition of macro 'repd' 2 | #define repd(i,a,b) for (int i=(a);i<(b);i++) | ^ a.cc:15:3: note: in expansion of macro 'rep' 15 | rep(i,n){ | ^~~
s572886608
p03957
C++
#include <bits/stdc++.h> #define repd(i,a,b) for (int i=(a);i<(b);i++) #define rep(i,n) repd(i,0,n) #define int long long typedef long long ll; const int MOD = 1000000007; const int INF = 1010000000; const double EPS = 1e-10; using namespace std; const pair<int,int> fd[] = {make_pair(1,0),make_pair(-1,0),make_pair(0,1),make_pair(0,-1)}; signed main() { string s;cin>>s; bool c = false; rep(i,n){ if(!c && s[i] == 'C')c = true; else if(s[i] = 'F'){ cout << "Yes" << endl; return 0; } } cout << "No" << endl; }
a.cc: In function 'int main()': a.cc:15:9: error: 'n' was not declared in this scope 15 | rep(i,n){ | ^ a.cc:2:39: note: in definition of macro 'repd' 2 | #define repd(i,a,b) for (int i=(a);i<(b);i++) | ^ a.cc:15:3: note: in expansion of macro 'rep' 15 | rep(i,n){ | ^~~
s507920125
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int l; int mian() { cin>>s; l=s.length(); 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
s579097449
p03957
C++
#include<iostream> using namespace std; int main() { char a[101],b=0,c=0; int top; gets(a); top=strlen(a)+1; for(int i=top-1;i>=0;i--) { if(a[i]=='F') b++; if(a[i]=='C' && b>0) c++; } if(c>0) 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:9: error: 'strlen' was not declared in this scope 8 | top=strlen(a)+1; | ^~~~~~ 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;
s053302412
p03957
C++
#include<iostream> using namespace std; int main() { char a[101],b=0,c=0; int top; gets(a); top=strlen(a)+1; for(int i=top-1;i>=0;i--) { if(a[i]=='F') b++; if(a[i]=='C' && b>0) c++; } if(c>0) 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:9: error: 'strlen' was not declared in this scope 8 | top=strlen(a)+1; | ^~~~~~ 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;
s579886365
p03957
C++
#include<iostream> #include<cstring> using namespace std; int main() { int minic=-1,maxf=100000; char a[1000]; gets(a); for(int i=0;i<strlen(a);i++) if(a[i]=='C'&&(i<minic||minic==-1))minic=i; for(int i=0;i<strlen(a);i++) if(a[i]=='F'&&i>maxf)maxf=i; if(minic>=0&&maxf>=0&&minic<maxf)cout<<"YES"<<endl; else cout<<"NO"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:8:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 8 | gets(a); | ^~~~ | getw
s908685806
p03957
C++
#include<bits/stdc++.h> using namespace std; int main(void) { unsinged char s[100]; int num; for(int i=0;i<100;i++){ if(s[i]=='F'){ num=i; break; } } int hanbe=0; for(int i=0;i<num;i++){ if(s[i]=='C') hanbe++; } if(hanbe==0) cout<<"No"<<endl; else cout<<"Yes"<<endl; }
a.cc: In function 'int main()': a.cc:6:3: error: 'unsinged' was not declared in this scope; did you mean 'unsigned'? 6 | unsinged char s[100]; | ^~~~~~~~ | unsigned a.cc:9:8: error: 's' was not declared in this scope 9 | if(s[i]=='F'){ | ^ a.cc:16:8: error: 's' was not declared in this scope 16 | if(s[i]=='C') | ^
s076877750
p03957
C++
#include <bits/stdc++.h> using namespace std; int main() { char a[100], f = 0; get(a); int n = strlen(a); for (int i = n - 1; i > 0; i--) { if (a[i] == 'C' && f == 0) { cout << "No" << endl; return 0; } if (a[i] == 'F') { f = 1; } if (a[i] == 'C' && f == 1) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; return 0; }
a.cc: In function 'int main()': a.cc:6:12: error: no matching function for call to 'get(char [100])' 6 | get(a); | ~~~^~~ 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, from a.cc:1: /usr/include/c++/14/bits/stl_pair.h:1250:5: note: candidate: 'template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(pair<_Tp1, _Tp2>&)' 1250 | get(pair<_Tp1, _Tp2>& __in) noexcept | ^~~ /usr/include/c++/14/bits/stl_pair.h:1250:5: note: template argument deduction/substitution failed: a.cc:6:12: note: mismatched types 'std::pair<_Tp1, _Tp2>' and 'char [100]' 6 | get(a); | ~~~^~~ /usr/include/c++/14/bits/stl_pair.h:1255:5: note: candidate: 'template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(pair<_Tp1, _Tp2>&&)' 1255 | get(pair<_Tp1, _Tp2>&& __in) noexcept | ^~~ /usr/include/c++/14/bits/stl_pair.h:1255:5: note: template argument deduction/substitution failed: a.cc:6:12: note: mismatched types 'std::pair<_Tp1, _Tp2>' and 'char [100]' 6 | get(a); | ~~~^~~ /usr/include/c++/14/bits/stl_pair.h:1260:5: note: candidate: 'template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(const pair<_Tp1, _Tp2>&)' 1260 | get(const pair<_Tp1, _Tp2>& __in) noexcept | ^~~ /usr/include/c++/14/bits/stl_pair.h:1260:5: note: template argument deduction/substitution failed: a.cc:6:12: note: mismatched types 'const std::pair<_Tp1, _Tp2>' and 'char [100]' 6 | get(a); | ~~~^~~ /usr/include/c++/14/bits/stl_pair.h:1265:5: note: candidate: 'template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(const pair<_Tp1, _Tp2>&&)' 1265 | get(const pair<_Tp1, _Tp2>&& __in) noexcept | ^~~ /usr/include/c++/14/bits/stl_pair.h:1265:5: note: template argument deduction/substitution failed: a.cc:6:12: note: mismatched types 'const std::pair<_Tp1, _Tp2>' and 'char [100]' 6 | get(a); | ~~~^~~ In file included from /usr/include/c++/14/bits/memory_resource.h:47, from /usr/include/c++/14/string:68, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/tuple:2445:5: note: candidate: 'template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Elements ...> >& std::get(tuple<_Elements ...>&)' 2445 | get(tuple<_Elements...>& __t) noexcept | ^~~ /usr/include/c++/14/tuple:2445:5: note: template argument deduction/substitution failed: a.cc:6:12: note: mismatched types 'std::tuple<_Elements ...>' and 'char [100]' 6 | get(a); | ~~~^~~ /usr/include/c++/14/tuple:2451:5: note: candidate: 'template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Elements ...> >& std::get(const tuple<_Elements ...>&)' 2451 | get(const tuple<_Elements...>& __t) noexcept | ^~~ /usr/include/c++/14/tuple:2451:5: note: template argument deduction/substitution failed: a.cc:6:12: note: mismatched types 'const std::tuple<_Elements ...>' and 'char [100]' 6 | get(a); | ~~~^~~ /usr/include/c++/14/tuple:2457:5: note: candidate: 'template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Elements ...> >&& std::get(tuple<_Elements ...>&&)' 2457 | get(tuple<_Elements...>&& __t) noexcept | ^~~ /usr/include/c++/14/tuple:2457:5: note: template argument deduction/substitution failed: a.cc:6:12: note: mismatched types 'std::tuple<_Elements ...>' and 'char [100]' 6 | get(a); | ~~~^~~ /usr/include/c++/14/tuple:2466:5: note: candidate: 'template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Elements ...> >&& std::get(const tuple<_Elements ...>&&)' 2466 | get(const tuple<_Elements...>&& __t) noexcept | ^~~ /usr/include/c++/14/tuple:2466:5: note: template argument deduction/substitution failed: a.cc:6:12: note: mismatched types 'const std::tuple<_Elements ...>' and 'char [100]' 6 | get(a); | ~~~^~~ In file included from /usr/include/c++/14/functional:65, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53: /usr/include/c++/14/array:390:5: note: candidate: 'template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr _Tp& std::get(array<_Tp, _Nm>&)' 390 | get(array<_Tp, _Nm>& __arr) noexcept | ^~~ /usr/include/c++/14/array:390:5: note: template argument deduction/substitution failed: a.cc:6:12: note: mismatched types 'std::array<_Tp, _Nm>' and 'char [100]' 6 | get(a); | ~~~^~~ /usr/include/c++/14/array:399:5: note: candidate: 'template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr _Tp&& std::get(array<_Tp, _Nm>&&)' 399 | get(array<_Tp, _Nm>&& __arr) noexcept | ^~~ /usr/include/c++/14/array:399:5: note: template argument deduction/substitution failed: a.cc:6:12: note: mismatched types 'std::array<_Tp, _Nm>' and 'char [100]' 6 | get(a); | ~~~^~~ /usr/include/c++/14/array:408:5: note: candidate: 'template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr const _Tp& std::get(const array<_Tp, _Nm>&)' 408 | get(const array<_Tp, _Nm>& __arr) noexcept | ^~~ /usr/include/c++/14/array:408:5: note: template argument deduction/substitution failed: a.cc:6:12: note: mismatched types 'const std::array<_Tp, _Nm>' and 'char [100]' 6 | get(a); | ~~~^~~ /usr/include/c++/14/array:417:5: note: candidate: 'template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr const _Tp&& std::get(const array<_Tp, _Nm>&&)' 417 | get(const array<_Tp, _Nm>&& __arr) noexcept | ^~~ /usr/include/c++/14/array:417:5: note: template argument deduction/substitution failed: a.cc:6:12: note: mismatched types 'const std::array<_Tp, _Nm>' and 'char [100]' 6 | get(a); | ~~~^~~ /usr/include/c++/14/bits/stl_pair.h:1272:5: note: candidate: 'template<class _Tp, class _Up> constexpr _Tp& std::get(pair<_T1, _T2>&)' 1272 | get(pair<_Tp, _Up>& __p) noexcept | ^~~ /usr/include/c++/14/bits/stl_pair.h:1272:5: note: template argument deduction/substitution failed: a.cc:6:12: note: mismatched types 'std::pair<_T1, _T2>' and 'char [100]' 6 | get(a); | ~~~^~~ /usr/include/c++/14/bits/stl_pair.h:1277:5: note: candidate: 'template<class _Tp, class _Up> constexpr const _Tp& std::get(const pair<_T1, _T2>&)' 1277 | get(const pair<_Tp, _Up>& __p) noexcept | ^~~ /usr/include/c++/14/bits/stl_pair.h:1277:5: note: template argument deduction/substitution failed: a.cc:6:12: note: mismatched types 'const std::pair<_T1, _T2>' and 'char [100]' 6 | get(a); | ~~~^~~ /usr/include/c++/14/bits/stl_pair.h:1282:5: note: candidate: 'template<class _Tp, class _Up> constexpr _Tp&& std::get(pair<_T1, _T2>&&)' 1282 | get(pair<_Tp, _Up>&& __p) noexcept | ^~~ /usr/include/c++/14/bits/stl_pair.h:1282:5: note: template argument deduction/substitution failed: a.cc:6:12: note: mismatched types 'std::pair<_T1, _T2>' and 'char [100]' 6 | get(a); | ~~~^~~ /usr/include/c++/14/bits/stl_pair.h:1287:5: note: candidate: 'template<class _Tp, class _Up> constexpr const _Tp&& std::get(const pair<_T1, _T2>&&)' 1287 | get(const pair<_Tp, _Up>&& __p) noexcept | ^~~ /usr/include/c++/14/bits/stl_pair.h:1287:5: note: template argument deduction/substitution failed: a.cc:6:12: note: mismatched types 'const std::pair<_T1, _T2>' and 'char [100]' 6 | get(a); | ~~~^~~ /usr/include/c++/14/bits/stl_pair.h:1292:5: note: candidate: 'template<class _Tp, class _Up> constexpr _Tp& std::get(pair<_Up, _Tp>&)' 1292 | get(pair<_Up, _Tp>& __p) noexcept | ^~~ /usr/include/c++/14/bits/stl_pair.h:1292:5: note: template argument deduction/substitution failed: a.cc:6:12: note: mismatched types 'std::pair<_Up, _Tp>' and 'char [100]' 6 | get(a); | ~~~^~~ /usr/include/c++/14/bits/stl_pair.h:1297:5: note: candidate: 'template<class _Tp, class _Up> constexpr const _Tp& std::get(const pair<_Up, _Tp>&)' 1297 | get(const pair<_Up, _Tp>& __p) noexcept | ^~~ /usr/include/c++/14/bits/stl_pair.h:1297:5: note: template argument deduction/substitution failed: a.cc:6:12: note: mismatched types 'const std::pair<_Up, _Tp>' and 'char [100]' 6 | get(a); | ~~~^~~ /usr/include/c++/14/bits/stl_pair.h:1302:5: note: candidate: 'template<class _Tp, class _Up> constexpr _Tp&& std::get(pair<_Up, _Tp>&&)' 1302 | get(pair<_Up, _Tp>&& __p) noexcept | ^~~ /usr/include/c++/14/bits/stl_pair.h:1302:5: note: template argument deduction/substitution failed: a.cc:6:12: note: mismatched types 'std::pair<_Up, _Tp>' and 'char [100]' 6 | get(a); | ~~~^~~ /usr/include/c++/14/bits/stl_pair.h:1307:5: note: candidate: 'template<class _Tp, class _Up> constexpr const _Tp&& std::get(const pair<_Up, _Tp>&&)' 1307 | get(const pair<_Up, _Tp>&& __p) noexcept | ^~~ /usr/include/c++/14/bits/stl_pair.h:1307:5: note: template argument deduction/substitution failed: a.cc:6:12: note: mismatched types 'const std::pair<_Up, _Tp>' and 'char [100]' 6 | get(a); | ~~~^~~ /usr/include/c++/14/tuple:2476:5: note: candidate: 'template<long unsigned int __i, clas
s717204143
p03957
C++
#include<bits/stdc++.h> using namespace std; int main(){ int s,flag=0; cin>>s; for(int i=0;i<s.length();i++){ if(s[i]=='C') flag=1; if(flag==1&&s[i]=='F'){ cout<<'Yes'; return 0; } } cout<<'No'; return 0; }
a.cc:10:31: warning: multi-character character constant [-Wmultichar] 10 | cout<<'Yes'; | ^~~~~ a.cc:14:15: warning: multi-character character constant [-Wmultichar] 14 | cout<<'No'; | ^~~~ a.cc: In function 'int main()': a.cc:6:25: error: request for member 'length' in 's', which is of non-class type 'int' 6 | for(int i=0;i<s.length();i++){ | ^~~~~~ a.cc:7:21: error: invalid types 'int[int]' for array subscript 7 | if(s[i]=='C') | ^ a.cc:9:30: error: invalid types 'int[int]' for array subscript 9 | if(flag==1&&s[i]=='F'){ | ^
s634838528
p03957
C++
#include <iostream> #include <string> using namespace std; int main() { string s;cin>>s; auto posc = s.find("C"); auto posf = s.rfind("F"); if(posc != npos &&posf !=npos){ if(posc<posf){ cout << "Yes" << endl; } else { cout << "No" << endl; } } else { cout << "No" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:8:14: error: 'npos' was not declared in this scope 8 | if(posc != npos &&posf !=npos){ | ^~~~
s142528036
p03957
C++
int main() { string s;cin>>s; auto posc = s.find("C"); auto posf = s.rfind("F"); if(posc != npos &&posf !=npos){ if(posc<posf){ cout << "Yes" << endl; } else { cout << "No" << endl; } } else { cout << "No" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:2:9: error: 'string' was not declared in this scope 2 | string s;cin>>s; | ^~~~~~ a.cc:2:18: error: 'cin' was not declared in this scope 2 | string s;cin>>s; | ^~~ a.cc:2:23: error: 's' was not declared in this scope 2 | string s;cin>>s; | ^ a.cc:5:14: error: 'npos' was not declared in this scope 5 | if(posc != npos &&posf !=npos){ | ^~~~ a.cc:7:7: error: 'cout' was not declared in this scope 7 | cout << "Yes" << endl; | ^~~~ a.cc:7:24: error: 'endl' was not declared in this scope 7 | cout << "Yes" << endl; | ^~~~ a.cc:9:7: error: 'cout' was not declared in this scope 9 | cout << "No" << endl; | ^~~~ a.cc:9:23: error: 'endl' was not declared in this scope 9 | cout << "No" << endl; | ^~~~ a.cc:12:5: error: 'cout' was not declared in this scope 12 | cout << "No" << endl; | ^~~~ a.cc:12:21: error: 'endl' was not declared in this scope 12 | cout << "No" << endl; | ^~~~
s456988537
p03957
C++
#include<bits/stdc++.h> using namespace sstd; string a; int main() { int i,ans,p,t; cin>>a; for(i=1;i<=n;i++) { cin>>a[i]; if(a[i]=='C') p=1; if(a[i]=='F') t=1; } if(p>=1&&t>=1) cout<<"Yes"<<endl; else cout<<"No"<<endl; }
a.cc:2:17: error: 'sstd' is not a namespace-name 2 | using namespace sstd; | ^~~~ a.cc:3:1: error: 'string' does not name a type; did you mean 'stdin'? 3 | string a; | ^~~~~~ | stdin a.cc: In function 'int main()': a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 7 | cin>>a; | ^~~ | std::cin In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146, 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:7:8: error: 'a' was not declared in this scope 7 | cin>>a; | ^ a.cc:8:14: error: 'n' was not declared in this scope 8 | for(i=1;i<=n;i++) | ^ a.cc:17:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 17 | 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:17:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 17 | cout<<"Yes"<<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: /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ a.cc:19:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 19 | 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:19:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 19 | cout<<"No"<<endl; | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
s706208682
p03957
C++
#include<bits/stdc++.h>//万能头 using namespace std; string st; int P; int main() { cin>>st; for(int i=0;i<st.length();i++)//注意字符串的最后一位下标是st.length()-1 { if(st[i]==67)P=1;//找到C(C的ASCII码是67) else if(P==1&&st[i]==70){P=2,s=1;break;} //如果这时候已经找到C,又找到F(F的ASCII码是70),任务完成,退出 } if(P==2)cout<<"Yes\n"; else cout<<"No\n"; //最后输出(要换行!!!) return 0;//结束 }
a.cc: In function 'int main()': a.cc:13:54: error: 's' was not declared in this scope 13 | else if(P==1&&st[i]==70){P=2,s=1;break;} | ^
s169373687
p03957
C++
#include<bits/stdc++.h>//万能头 using namespace std; string st; int P; int main() { cin>>st; for(int i=0;i<st.length();i++)//注意字符串的最后一位下标是st.length()-1 { if(st[i]==67)P=1;//找到C(C的ASCII码是67) else if(P==1&&st[i]==70){P=2,s=1;break;}//如果这时候已经找到C,又找到F(F的ASCII码是70),任务完成,退出 } if(P==2)cout<<"Yes\n"; else cout<<"No\n"; //最后输出(要换行!!!) return 0;//结束 }
a.cc: In function 'int main()': a.cc:12:54: error: 's' was not declared in this scope 12 | else if(P==1&&st[i]==70){P=2,s=1;break;}//如果这时候已经找到C,又找到F(F的ASCII码是70),任务完成,退出 | ^
s687334486
p03957
C++
看了前面的23篇~~蒟蒻~~大佬们的题解,好像都没有人用我这个方法: 数组计数,虽然麻烦了点。 我是这样想的:F肯定在C的后面,当我们找到C #include<bits/stdc++.h> using namespace std; string st; int cs[90+5],s,P; int main() { cin>>st; for(int i=0;i<st.length();i++) { cs[st[i]]++; if(s==0) { if(st[i]==67)P=1; else if(P==1&&st[i]==70)P=2,s=1; } else break; } if(cs[67]>=1&&cs[70]>=1&&P==2)cout<<"Yes\n"; else cout<<"No\n"; return 0; }
a.cc:2:1: error: extended character 。 is not valid in an identifier 2 | 数组计数,虽然麻烦了点。 | ^ a.cc:1:1: error: '\U0000770b\U00004e86\U0000524d\U00009762\U0000768423\U00007bc7' does not name a type 1 | 看了前面的23篇~~蒟蒻~~大佬们的题解,好像都没有人用我这个方法: | ^~~~~~~~~~~~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:62, from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:7: /usr/include/c++/14/ext/type_traits.h:164:35: error: 'constexpr const bool __gnu_cxx::__is_null_pointer' redeclared as different kind of entity 164 | __is_null_pointer(std::nullptr_t) | ^ /usr/include/c++/14/ext/type_traits.h:159:5: note: previous declaration 'template<class _Type> constexpr bool __gnu_cxx::__is_null_pointer(_Type)' 159 | __is_null_pointer(_Type) | ^~~~~~~~~~~~~~~~~ /usr/include/c++/14/ext/type_traits.h:164:26: error: 'nullptr_t' is not a member of 'std'; did you mean 'nullptr_t'? 164 | __is_null_pointer(std::nullptr_t) | ^~~~~~~~~ In file included from /usr/include/c++/14/cstddef:50, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41: /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:443:29: note: 'nullptr_t' declared here 443 | typedef decltype(nullptr) nullptr_t; | ^~~~~~~~~ In file included from /usr/include/c++/14/bits/stl_pair.h:60, from /usr/include/c++/14/bits/stl_algobase.h:64: /usr/include/c++/14/type_traits:666:33: error: 'nullptr_t' is not a member of 'std'; did you mean 'nullptr_t'? 666 | struct is_null_pointer<std::nullptr_t> | ^~~~~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:443:29: note: 'nullptr_t' declared here 443 | typedef decltype(nullptr) nullptr_t; | ^~~~~~~~~ /usr/include/c++/14/type_traits:666:42: error: template argument 1 is invalid 666 | struct is_null_pointer<std::nullptr_t> | ^ /usr/include/c++/14/type_traits:670:48: error: template argument 1 is invalid 670 | struct is_null_pointer<const std::nullptr_t> | ^ /usr/include/c++/14/type_traits:674:51: error: template argument 1 is invalid 674 | struct is_null_pointer<volatile std::nullptr_t> | ^ /usr/include/c++/14/type_traits:678:57: error: template argument 1 is invalid 678 | struct is_null_pointer<const volatile std::nullptr_t> | ^ /usr/include/c++/14/type_traits:1429:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1429 | : public integral_constant<std::size_t, alignof(_Tp)> | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1429:57: error: template argument 1 is invalid 1429 | : public integral_constant<std::size_t, alignof(_Tp)> | ^ /usr/include/c++/14/type_traits:1429:57: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1438:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1438 | : public integral_constant<std::size_t, 0> { }; | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1438:46: error: template argument 1 is invalid 1438 | : public integral_constant<std::size_t, 0> { }; | ^ /usr/include/c++/14/type_traits:1438:46: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1440:26: error: 'std::size_t' has not been declared 1440 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:1441:21: error: '_Size' was not declared in this scope 1441 | struct rank<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:1441:27: error: template argument 1 is invalid 1441 | struct rank<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:1442:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1442:65: error: template argument 1 is invalid 1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^ /usr/include/c++/14/type_traits:1442:65: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1446:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1446:65: error: template argument 1 is invalid 1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^ /usr/include/c++/14/type_traits:1446:65: note: invalid template non-type parameter /usr/include/c++/14/type_traits:2086:26: error: 'std::size_t' has not been declared 2086 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:2087:30: error: '_Size' was not declared in this scope 2087 | struct remove_extent<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:2087:36: error: template argument 1 is invalid 2087 | struct remove_extent<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:2099:26: error: 'std::size_t' has not been declared 2099 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:2100:35: error: '_Size' was not declared in this scope 2100 | struct remove_all_extents<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:2100:41: error: template argument 1 is invalid 2100 | struct remove_all_extents<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:2171:12: error: 'std::size_t' has not been declared 2171 | template<std::size_t _Len> | ^~~ /usr/include/c++/14/type_traits:2176:30: error: '_Len' was not declared in this scope 2176 | unsigned char __data[_Len]; | ^~~~ /usr/include/c++/14/type_traits:2194:12: error: 'std::size_t' has not been declared 2194 | template<std::size_t _Len, std::size_t _Align = | ^~~ /usr/include/c++/14/type_traits:2194:30: error: 'std::size_t' has not been declared 2194 | template<std::size_t _Len, std::size_t _Align = | ^~~ /usr/include/c++/14/type_traits:2195:55: error: '_Len' was not declared in this scope 2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)> | ^~~~ /usr/include/c++/14/type_traits:2195:59: error: template argument 1 is invalid 2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)> | ^ /usr/include/c++/14/type_traits:2202:30: error: '_Len' was not declared in this scope 2202 | unsigned char __data[_Len]; | ^~~~ /usr/include/c++/14/type_traits:2203:44: error: '_Align' was not declared in this scope 2203 | struct __attribute__((__aligned__((_Align)))) { } __align; | ^~~~~~ In file included from /usr/include/c++/14/bits/stl_tempbuf.h:59, from /usr/include/c++/14/bits/stl_algo.h:69, from /usr/include/c++/14/algorithm:61: /usr/include/c++/14/new:131:26: error: declaration of 'operator new' as non-function 131 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~~~ /usr/include/c++/14/new:131:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 131 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/new:132:41: error: attributes after parenthesized initializer ignored [-fpermissive] 132 | __attribute__((__externally_visible__)); | ^ /usr/include/c++/14/new:133:26: error: declaration of 'operator new []' as non-function 133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~~~ /usr/include/c++/14/new:133:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typ
s468301002
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
s035933071
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
s266073945
p03957
C++
#include<iostream> #include<algorithm> #include<cmath> #include<string> #include<vector> using namespace std; int main() { string s; cin >> s; for(int i=0; i<s.length(); i++) { if(s[i]=='C') { for(int i+1; i<s.length(); i++) { if(s[i]=='F') { cout << "Yes" << endl; return 0; } } } } cout << "No" << endl; }
a.cc: In function 'int main()': a.cc:12:16: error: expected ';' before '+' token 12 | for(int i+1; i<s.length(); i++) { | ^ | ; a.cc:12:32: error: expected ')' before ';' token 12 | for(int i+1; i<s.length(); i++) { | ~ ^ | ) a.cc:12:37: error: expected ';' before ')' token 12 | for(int i+1; i<s.length(); i++) { | ^ | ;
s356665228
p03957
C++
#include<bits/stdc++.h> using namespace std; string b; int main(){ int q=0; cin>>b; for(int i=0;i<b.size();i++){ if(b[i]=='C') qwq++;//判是否有C if(q!=0&&b[i]=='F')//若有C且后面 q-=10000000000;//q } if(q<0)//如 cout<<"Yes"; else cout<<"No"; return 0;// }
a.cc: In function 'int main()': a.cc:9:5: error: 'qwq' was not declared in this scope 9 | qwq++;//判是否有C | ^~~
s908524616
p03957
C++
#include<bits/stdc++.h> using namespace std; int t; int main() { string a; cin>>a; for(int i=0;i<a.size();i++) { if(a[i]=='C') t=1; if(a[i]=='F'&&t==ture) { cout<<"Yes"; return 0; } } cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:12:26: error: 'ture' was not declared in this scope 12 | if(a[i]=='F'&&t==ture) | ^~~~
s448912552
p03957
C++
#include<bits/stdc++.h> using namespace std; char s[10000001]; int l; int mian() { cin>>s; l=strlen(s); for(long long int i=0;i<l;i++) { if(s[i]=='C') { for(long long 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
s951233595
p03957
C++
#include<bits/stdc++.h> using namespace std; char a[10000001]; int l; int mian() { cin>>s; l=strlen(s); for(long long int i=0;i<l;i++) { if(s[i]=='C') { for(long long 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:7:10: error: 's' was not declared in this scope 7 | cin>>s; | ^
s559131776
p03957
C++
#include<bits/stdc++.h> using namespace std; string b; int q; int main() { cin>>b; for(int i=0;i<b.size();i++) { if(b[i]=='C')qwq++; if(q!=0&&b[i]=='F')q-=10000000000; } if(q<0)cout<<"Yes"; else cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:10:22: error: 'qwq' was not declared in this scope 10 | if(b[i]=='C')qwq++; | ^~~
s734305992
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int mian() { 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"; 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
s522657495
p03957
C++
#include<algorithm> #include<iostream> #include<cstring> #include<cstdio> #include<cmath> using namespace std; string s; int main(){ int Ci,Fi; cin>>s; for(int i=0;i<n;i++){ if(s[i]=='C') Ci=i; if(s[i]=='F') Fi=i; } if(Ci<Fi) cout<<"Yes"; else cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:11:23: error: 'n' was not declared in this scope 11 | for(int i=0;i<n;i++){ | ^
s886082372
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
s902314209
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int a; int mian(){ cin>>s; for(int i=0;i<s.size();i++){ if(s[i]=='C') a=1; if(s[i]=='F'&&a==1){ 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
s950659685
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int a; int mian(){ cin>>s; for(int i=0;i<s.size();i++){ if(s[i]=='C') a=1; if(s[j]=='F'&&a==1){ cout<<"Yes"; return 0; } } cout<<"No"; return 0; }
a.cc: In function 'int mian()': a.cc:11:14: error: 'j' was not declared in this scope 11 | if(s[j]=='F'&&a==1){ | ^
s252917532
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:23:15: error: 'strack' was not declared in this scope; did you mean 'stack'? 23 | t=strack[--top]; | ^~~~~~ | stack a.cc:32:2: error: expected '}' at end of input 32 | } | ^ a.cc:7:1: note: to match this '{' 7 | { | ^
s433054045
p03957
C++
#include<bits/stdc++.h> using namespace std; string b; int main(){ int q=0; cin>>b; for(int i=0;i<b.size();i++){ if(b[i]=='C') qwq++; if(q!=0&&b[i]=='F') q-=10000000000; } if(q<0) cout<<"Yes"; else cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:9:5: error: 'qwq' was not declared in this scope 9 | qwq++; | ^~~
s287370107
p03957
C++
#include<stdio.h> #include<string.h> int main() { char a[1000],i,len,q; gets(a); len=strlen(a); for(i=0;i<len;i++) { if(a[i]=='C') { q=1; } if(q==1) { for(j=i;j<len;j++) { if(a[i]=='F'); printf("Yes"); return 0; } } } printf("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:16:29: error: 'j' was not declared in this scope 16 | for(j=i;j<len;j++) | ^
s941682677
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
s995344352
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
s507677344
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
s063431816
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
s418026865
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
s612095494
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int l; int mian() { cin>>s; l=s.length(); 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
s343458652
p03957
C++
#include<iostream> #include<cstring> using namespace std; int main(){ char a[101]; int sum=0; gets(a); for (int i=0;i<strlen(a);++i){ if (a[i]=='C'){ for (int j=i;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:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 7 | gets(a); | ^~~~ | getw
s393484637
p03957
C++
#include<iostream> #include<string.h> using namespace std; int main(){ char a[101]; int sum=0; gets(a); for (int i=0;i<strlen(a);++i){ if (a[i]=='C'){ for (int j=i;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:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 7 | gets(a); | ^~~~ | getw
s413051642
p03957
C++
#include<bits/stdc++.h> using namespace std ; string a ; int main(){ cin >> a ; int len = a.size( ) ; for( int i = 1 ; i <= n ; i ++ ){ if( a[ i ] = 'C' ){ int len1 = i ; break ; } } bool flag = 0 ; for( int i = len1 ; i <= len ; i ++ ){ if( a[ i ] = 'F' ){ cout << "YES" ; flag = 1 ; break ; } } if( flag = 0 ){ cout << "NO" ; } return 0 ; }
a.cc: In function 'int main()': a.cc:10:31: error: 'n' was not declared in this scope 10 | for( int i = 1 ; i <= n ; i ++ ){ | ^ a.cc:17:22: error: 'len1' was not declared in this scope; did you mean 'len'? 17 | for( int i = len1 ; i <= len ; i ++ ){ | ^~~~ | len
s345528807
p03957
C++
#include<iostream> #include<cstring> using namespace std; char s[151]; int main(){ int n,i,j; gets(s); n=strlen(s); for(i=1;i<=n;i++) for(j=i+1;j<=n;j++) if(s[i]=='C'&&s[j]=='F') { cout<<"Yes"; return 0; } cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 7 | gets(s); | ^~~~ | getw
s711331159
p03957
C++
#include<iostream> #include<cstring> using namespace std; char s[151]; int main(){ int n,i,j; gets(s); n=strlen(s); for(i=1;i<=n;i++) for(j=i+1;j<=n;j++) if(s[i]=='C'&&a[j]=='F') { cout<<"Yes"; return 0; } cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 7 | gets(s); | ^~~~ | getw a.cc:11:23: error: 'a' was not declared in this scope 11 | if(s[i]=='C'&&a[j]=='F') | ^
s838148042
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
s348754251
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int len; int mian() { cin>>s; len=s.size(); for(int i=1;i<=len;i++) { if(s[i]=='C') { for(int j=i+1;j<len;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
s591353296
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int len; int mian() { cin>>s; len=s.size(); for(int i=0;i<len;i++) { if(s[i]=='C') for(int j=i+1;j<len;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
s484318778
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
s246691385
p03957
C++
#include<bits/stdc++.h> using namespace std; int main() { string n; cin>>n; for(int i=0;i<n.size();i++) { if(n[i]=='C') { for(int j=i+1;j<n.size;j++) { if(n[j]=='F') cout<<"Yes"<<endl; return 0; } } } cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:11:39: 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 '()' ?) 11 | for(int j=i+1;j<n.size;j++) | ~~^~~~ | ()
s006422774
p03957
C++
#include<iostream> #include<cstring> using namespace std; char a[1231]; int m,n,s,t; int main() { gets(a); int l=strlen(a); for(int i=0;i<l;i++) { if(a[i]=='C') { m=i;s++; break; } } //cout<<m<<endl; for(int i=0;i<l;i++) { if(a[i]=='F') { n=i; t++; } } //cout<<n<<endl; if(s!=0&&t!=0&&m<n) 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(a); | ^~~~ | getw
s705905603
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>
s607651509
p03957
C++
#include<iostream> #include<cstring> using namespace std; char a[100]; int n; int main(){ gets(a); n=strlen(a); for(int i=0;i<=n;i++){ if(a[i]=='C'){ for(int j=i;j<n;j++){ if(a[j]=='F'){ cout<<"Yes"<<endl; } } } break; } cout<<"No"<<endl; }
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
s928972422
p03957
C++
#include<iostream> #include<cstring> using namespace std; char a[100]; int n int main(){ gets(a); n=strlen(a); for(int i=0;i<=n;i++){ if(a[i]=='C'){ for(int j=i;j<n;j++){ if(a[j]=='F'){ cout<<"Yes"<<endl; } } } break; } cout<<"No"<<endl; }
a.cc:6:1: error: expected initializer before 'int' 6 | int main(){ | ^~~
s359470866
p03957
C++
#include <iostream> #include <vector> #include <algorithm> #include <iomanip> using namespace std; typedef long long unsigned int ll; int main() { string a,b,c; cin >> a; int cflag=0; int flag=0; for (int i=0;i<16;i++){ if(a[i]=='C') cflag=1; if(a[i]=='F' &&cflag==1) flag=1; } if(flag){ cout <<"Yes" <<endl; }else{ cout << "No" <<endl; return 0; }
a.cc: In function 'int main()': a.cc:23:2: error: expected '}' at end of input 23 | } | ^ a.cc:8:12: note: to match this '{' 8 | int main() { | ^
s282739017
p03957
C++
#include<iostream> #include<string> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<s.size();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<s.size();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
s497601139
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
s323182431
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
s527715661
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
s479674463
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
s637969247
p03957
C++
#include<iostream> #include<cstring> using namespace std; int main() { char str[101]; gets(str); for(int i=0;i<strlen(str);i++){ if(str[i]=='C'){ for(int j=i;j<strlen(str);j++){ if(str[j]=='F'){ cout<<"Yes"<<"\n"; return 0; } } } } cout<<"No"<<"\n"; return 0; }
a.cc: In function 'int main()': a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 7 | gets(str); | ^~~~ | getw