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 /u...
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; } ...
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') { ...
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(reg...
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...
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::basi...
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') { ...
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(reg...
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); ...
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 p...
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 p...
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 ty...
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"; ...
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(regi...
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 unsig...
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 wr...
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: ...
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/in...
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 p...
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 prin...
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":"fa...
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"; ...
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/in...
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') ...
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: 'cou...
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') ...
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: 'cou...
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;retur...
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 | } | ^ ...
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') { ...
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(reg...
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') { ...
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(reg...
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') { ...
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(reg...
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: '...
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: '...
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 chm...
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" ...
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;} ...
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)...
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' ...
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)...
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' ...
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"; ...
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(regi...
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...
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 '...
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...
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 '...
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 cou...
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"<<e...
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 declare...
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 ...
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-gn...
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...
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; } retur...
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...
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 ...
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"; ...
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...
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; } els...
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_a...
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') { ...
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(reg...
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') { ...
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(reg...
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; ...
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++) { | ~ ^ ...
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<<"Y...
/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<<"Y...
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; ...
/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') { ...
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(reg...
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...
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') { ...
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(reg...
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') { ...
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(reg...
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<<"Ye...
/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') { ...
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(reg...
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') { ...
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(reg...
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"; ...
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(regi...
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 ; bre...
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 ++ ){ | ...
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') { ...
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(reg...
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; re...
/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; ...
/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') { ...
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(reg...
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 unsig...
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&&...
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; ...
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<...
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; } } } ...
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; } } } ...
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){ ...
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"; ...
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 | ...
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') { ...
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(reg...
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') { ...
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(reg...
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') { ...
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(reg...
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<<"Y...
/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