submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s150901872
p03957
C++
#include<iostream> #include<string.h> using namespace std; int main() { string s; bool b; int l=s.sizeof(),y; for(int i=0;i<=l;i++) { if(s[i]=='C') { bool=1; } if() } return 0; }
a.cc: In function 'int main()': a.cc:8:17: error: expected unqualified-id before 'sizeof' 8 | int l=s.sizeof(),y; | ^~~~~~ a.cc:13:29: error: expected unqualified-id before '=' token 13 | bool=1; | ^ a.cc:17:20: error: expect...
s056660882
p03957
C++
#include<cstdio> #include<string> using namespace std; string s; int l; int main() { 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<<"Ye...
a.cc: In function 'int main()': a.cc:8:5: error: 'cin' was not declared in this scope 8 | cin>>s; | ^~~ a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 2 | #include<string> +++ |+#include <iostream> 3 | using namespace st...
s234957918
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...
s301107633
p03957
C++
#include<cstdio> #include<cstring> using namespace std; char s[101]; bool c; int main() { gets(s); short len=strlen(s); for(int i=0;i<len;i++) { if(s[i]=='C') c=true; else if(s[i]=='F'&&c) { printf("Yes\n"); return 0; } } printf("No\n"); return 0; }
a.cc: In function 'int main()': a.cc:11:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 11 | gets(s); | ^~~~ | getw
s949649328
p03957
C++
#include<bits/stdc++.h> using namespace std; int main(){ string a; cin>>a; int la=a.length(); int c=0,f=0; for(int i=0;i<la;i++) { if(a[i]=='C'||a[i]='c') { c++; } if(a[i]=='F'||a[i]=='f') { f++; } } if(c>0&&f>0) cout<<"Yes"; else cout<<"No"; }
a.cc: In function 'int main()': a.cc:10:29: error: lvalue required as left operand of assignment 10 | if(a[i]=='C'||a[i]='c')
s292876577
p03957
C++
#include<bits/stdc++.h> using namespace std; int main() { int i,j; char a[100]; gets(a); for(i=0;i<strlen(a);i++) { if(a[i]=='C') { for(j=i+1;j<strlen(a);j++) { if(a[j]=='F') { cout<<"Yes"<<endl; return 0; } } } } cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 7 | gets(a); | ^~~~ | getw
s927923102
p03957
C++
#include <cstring> #include<cstdio> #include<iostream> #include<bits/stdc++.h> using namespace std; int main() { string s; cin>>s; #include <cstring> #include<cstdio> #include<iostream> #include<bits/stdc++.h> using namespace std; int main() { string s; cin>>s; int sum=s.length(); for(int i=0;i<sum;i++) { if(s...
a.cc: In function 'int main()': a.cc:15:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 15 | int main() | ^~ a.cc:15:9: note: remove parentheses to default-initialize a variable 15 | int main() | ^~ | -- a.cc:15:9: note: or repl...
s932186870
p03957
C++
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < n; i++) #define FOR(i, m, n) for (int i = m; i < n; i++) #define ll long long int const int INF = 2147483647; const ll MOD = 1000000007; using namespace std; int main() { string s; cin >> s; REP(i, s.length()) { if (s[i] == 'C') { FOR(j, i...
a.cc: In function 'int main()': a.cc:18:19: error: expected ';' before '}' token 18 | return 0 | ^ | ; 19 | } | ~
s977691795
p03957
C++
http://hzwer.com/wp-content/themes/ly/image/image_post/V%20N]_%7DUD%2009W_QB4QDS.jpg
a.cc:1:1: error: 'http' does not name a type 1 | http://hzwer.com/wp-content/themes/ly/image/image_post/V%20N]_%7DUD%2009W_QB4QDS.jpg | ^~~~
s481049723
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...
s791069471
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(int i=0;i<l;i++) { if(s[i]=='C') { for(int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"Yes"; retu...
/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
s296464439
p03957
C++
#include<bits/stdc++.h> using namespace std; //#define int long long #define fo(a,b) for(int a=0;a<b;a++) #define Sort(a) sort(a.begin(),a.end()) #define rev(a) reverse(a.begin(),a.end()) #define fi first #define se second #define co(a) cout<<a<<endl #define sz size() #define bgn begin() #define en end() #define pb(a) ...
a.cc:178:18: error: macro "fo" requires 2 arguments, but only 1 given 178 | fo(i.a.sz){ | ^ a.cc:4:9: note: macro "fo" defined here 4 | #define fo(a,b) for(int a=0;a<b;a++) | ^~ a.cc: In function 'int main()': a.cc:178:9: error: 'fo' was not declared in this scope 17...
s879320180
p03957
C++
#include<bits/stdc++.h> using namespace std; //#define int long long #define fo(a,b) for(int a=0;a<b;a++) #define Sort(a) sort(a.begin(),a.end()) #define rev(a) reverse(a.begin(),a.end()) #define fi first #define se second #define co(a) cout<<a<<endl #define sz size() #define bgn begin() #define en end() #define pb(a) ...
a.cc:178:18: error: macro "fo" requires 2 arguments, but only 1 given 178 | fo(i.a.sz){ | ^ a.cc:4:9: note: macro "fo" defined here 4 | #define fo(a,b) for(int a=0;a<b;a++) | ^~ a.cc: In function 'int main()': a.cc:178:9: error: 'fo' was not declared in this scope 17...
s546107033
p03957
C++
#include <iostream> #include <iomanip> using namespace std; int main(){ char input[1000]; cin >> input; int len = strlen(input); for(int i = 0; i < len; i++){ char ch = input[i]; if(input[i] == 'C'){ if(input[i] == 'F'){ cout << "Yes"; return...
a.cc: In function 'int main()': a.cc:9:15: error: 'strlen' was not declared in this scope 9 | int len = strlen(input); | ^~~~~~ a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 2 | #include <iomanip> +++ |+#include <cstr...
s481119518
p03957
C++
#include <bits/stdc++.h> using namesapce std; int main(){ char input[1000]; cin >> input; int len = strlen(input); for(int i = 0; i < len; i++){ char ch = input[i]; if(input[i] == 'C'){ if(input[i] == 'F'){ cout << "Yes"; return 0; ...
a.cc:3:7: error: expected nested-name-specifier before 'namesapce' 3 | using namesapce std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 7 | cin >> input; | ^~~ | std::cin In file included from /us...
s763615122
p03957
C++
#include <bits/stdc++.h> using namespace std; int main(){ char input[1000]; bool a = false, b = false; cin >> input; int len = stdlen(input); for(int i = 0; i < len; i++){ char ch = input[i]; if(ch == 'C'){ a = true; } if(ch == 'F'){ b = true...
a.cc: In function 'int main()': a.cc:9:15: error: 'stdlen' was not declared in this scope; did you mean 'strlen'? 9 | int len = stdlen(input); | ^~~~~~ | strlen a.cc:21:26: error: expected ';' before '}' token 21 | cout << "Yes" | ...
s326553711
p03957
C++
#include <bits/stdc++.h> using namesapce std; int main(){ char input[1000]; bool a = false, b = false; cin >> input; int len = stdlen(input); for(int i = 0; i < len; i++){ char ch = input[i]; if(ch == 'C'){ a = true; } if(ch == 'F'){ b = true...
a.cc:3:7: error: expected nested-name-specifier before 'namesapce' 3 | using namesapce std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:8:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 8 | cin >> input; | ^~~ | std::cin In file included from /us...
s516804140
p03957
C++
#include <bits/stdc++.h> using namesapce std; int main(){ char input[1000]; cin >> input; int len = stdlen(input); for(int i = 0; i < len; i++){ char ch = input[i]; if(input[i] == 'C'){ for(int i = 0; i < len; i++){ if(input[i] = 'F'){ co...
a.cc:3:7: error: expected nested-name-specifier before 'namesapce' 3 | using namesapce std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 7 | cin >> input; | ^~~ | std::cin In file included from /us...
s710621516
p03957
C++
#include <bits/stdc++.h> using namespace std; int main(){ string S; cin >> S; int i = 0; while (i<N){ if (S.at(i)=='C') break; i++; } if (i==N){ cout << "No"; } else { while (i<N){ if (S.at(i)=='F') break; i++; } if (i==N){ cout << "No"; } else { cout <...
a.cc: In function 'int main()': a.cc:7:12: error: 'N' was not declared in this scope 7 | while (i<N){ | ^ a.cc:11:10: error: 'N' was not declared in this scope 11 | if (i==N){ | ^
s772882888
p03957
C++
#include<iostream> using namespace std; int main(){ string a; bool v[2]={0}; cin>>a; for(int i=0;i<a.length();i++) { if(a[i]=='C') v[0]=1; if(a[i]=='F'&&v[0]) v[1]=1; } if(v[1]) cout<<"Yes"; else cout<<"No"; return 0; } cout<<"No"; return 0; }
a.cc:17:5: error: 'cout' does not name a type 17 | cout<<"No"; | ^~~~ a.cc:18:5: error: expected unqualified-id before 'return' 18 | return 0; | ^~~~~~ a.cc:19:1: error: expected declaration before '}' token 19 | } | ^
s316197617
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"; re...
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:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 15 | for(register in...
s128767281
p03957
C++
#include <bits/stdc++.h> using namespace std; string a; int main() { cin>>a; for(register int i=0;i<a.size();++i) if(a[i]=='C') for(register int j=i+1;j<a.size;++j) if(a[j]=='F') return printf("Yes")%1; return printf("No")%1; }
a.cc: In function 'int main()': a.cc:7:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 7 | for(register int i=0;i<a.size();++i) | ^ a.cc:9:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 9 | fo...
s117198423
p03957
C++
#include <bits/stdc++.h> using namesapce std; int main(){ char input[1000]; cin >> input; int len = stdlen(input); for(int i = 0; i < len; i++){ char ch = input[i]; if(input[i] == 'C'){ if(input[i] == 'F'){ cout << "Yes"; return 0; ...
a.cc:3:7: error: expected nested-name-specifier before 'namesapce' 3 | using namesapce std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 7 | cin >> input; | ^~~ | std::cin In file included from /us...
s503456085
p03957
C++
#include<bist/stdc++.h> using namespace std; string s; int i,n,j; int main() { cin>>s; n=s.size(); for(i=1;i<=n;i++) { if(s[i]=="C") { for(j=i+1;j<=n;j++) { if(s[j]=="F") cout<<"Yes"; return 0; } ...
a.cc:1:9: fatal error: bist/stdc++.h: No such file or directory 1 | #include<bist/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s879119779
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; #define ia ai 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:12:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 12 | for(register int i=0;i<l;i++) | ^ a.cc:16:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 16 | for(reg...
s564277875
p03957
C++
#include<iostream> using namespace std; string s; int l; int mian() { cin>>s; l=s.length(); 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...
/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
s527701054
p03957
C++
#include<iostream> using namespace std; string s; int l; int mian() { cin>>s; l=s.length(); 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...
/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
s403314192
p03957
C++
// luogu-judger-enable-o2 #include <stdio.h> #include <string.h> bool s; int main() { string a; scanf("%s",a); int a1=strlen(a+1); for(int i=1;i<=a1;i++) { if(a[i]=='C') { for(int j=1;j<=a1;j++) if(a[i]=='F') { printf("Yes"); retur...
a.cc: In function 'int main()': a.cc:7:5: error: 'string' was not declared in this scope; did you mean 'stdin'? 7 | string a; | ^~~~~~ | stdin a.cc:8:16: error: 'a' was not declared in this scope 8 | scanf("%s",a); | ^
s411665148
p03957
C++
#include<bits/stdc++.h> using namespace std; typedef long long ll; #define int ll inline ll read(){ ll res=0,f=1; char ch=getchar(); while(ch<'0'||ch>'9'){if(ch=='-')f=-f;ch=getchar();} while(ch>='0'&&ch<='9'){res=(res<<3)+(res<<1)+ch-'0';ch=getchar();} return res*f; } void write(ll x){ if(x<0) putchar('-'),x=-x;...
a.cc: In function 'int main()': a.cc:23:24: error: 'n' was not declared in this scope 23 | for(int i=1;i<=n;i++){ | ^
s603252295
p03957
C++
#include<bits/stdc++.h> using namespace std; int main(){ bool flg=false; while(cin>>){ string st; cin>>st; if(st=='C'){ flg=true; } if(st=='F'&&flg==true){ cout<<"Yes"<<endl; return 0; } } cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:5:20: error: expected primary-expression before ')' token 5 | while(cin>>){ | ^ a.cc:8:22: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 8 | if(st=='C'){...
s366406003
p03957
C++
// luogu-judger-enable-o2 #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') { ...
/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
s895119427
p03957
C++
#include <bits/stdc++.h> using namespace std; int main(){ string S; cin >> S; int c = 0; int f = 0; for (int i = 0; i < N; i++){ if (S[i] == 'C'){ c = i; } else if(S[i] == 'F'){ f = i; } } if(c < f){ cout << "Yes" << endl; ...
a.cc: In function 'int main()': a.cc:11:25: error: 'N' was not declared in this scope 11 | for (int i = 0; i < N; i++){ | ^
s628347582
p03957
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; unordered_set<char> t; for(int i = 0; i < s.size(); i++) t[s.at(i)]; if(t.count('C') && t.count('F')) cout << "Yes" << endl; else cout << "No" << endl; }
a.cc: In function 'int main()': a.cc:9:6: error: no match for 'operator[]' (operand types are 'std::unordered_set<char>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}) 9 | t[s.at(i)]; | ^
s628275820
p03957
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; unordered_set<char> t; for(int i = 0; i < s.size(); i++) t[s.at(i)]; if(s.count('C') && s.count('F')) cout << "Yes" << endl; else cout << "No" << endl; }
a.cc: In function 'int main()': a.cc:9:6: error: no match for 'operator[]' (operand types are 'std::unordered_set<char>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}) 9 | t[s.at(i)]; | ^ a.cc:10:8: error: 'std::string' {aka 'class std::__cxx11::basic_string<cha...
s510159070
p03957
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; unordered_set<char> t; for(int i = 0; i < s.size(); i++) t.insert(s.at(i)); if(s.count('C') && s.count('F')) cout << "Yes" << endl; else cout << "No" << endl; }
a.cc: In function 'int main()': a.cc:10:8: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'count' 10 | if(s.count('C') && s.count('F')) | ^~~~~ a.cc:10:24: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'count' 10 | ...
s935165141
p03957
C++
#include<iostream> #include<cstdio> #include<cstring> using namespace std; int main() { string a; cin>>a; int b=false; for(register int i=0;i<a.size();i++) { if(a[i]=='C') flag=true; if(a[i]=='F'&&b==true) { cout<<"Yes"; return 0; } ...
a.cc: In function 'int main()': a.cc:10:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 10 | for(register int i=0;i<a.size();i++) | ^ a.cc:13:9: error: 'flag' was not declared in this scope 13 | flag=true; | ^~~~
s073982503
p03957
C++
#include<iostream> #include<cstdio> #include<cstring> using namespace std; int main() { string a; cin>>a; int b=false; for(int i=0;i<a.size();i++) { if(a[i]=='C') flag=true; if(a[i]=='F'&&b==true) { cout<<"Yes"<<endl; return 0; } } ...
a.cc: In function 'int main()': a.cc:13:9: error: 'flag' was not declared in this scope 13 | flag=true; | ^~~~
s584978416
p03957
C++
#include<iostream> #include<cstdio> #include<cstring> using namespace std; int main() { string a; cin>>a; int b=false; for(int i=0;i<a.size();i++) { if(a[i]=='C') flag=true; if(a[i]=='F'&&b==true) { cout<<"Yes"; return 0; } } c...
a.cc: In function 'int main()': a.cc:13:9: error: 'flag' was not declared in this scope 13 | flag=true; | ^~~~
s514535286
p03957
C++
#include<bits/stdc++.h> using namespace std; int main(){ char a[10000]; gets(a); int pd[100]; for(int i=0;i<strlen(a);i++) { if(a[i]=='C') { pd[0]=1; } if(a[i]=='F') { pd[1]=1; } } if(pd[0]==1&&pd[1]==1) { co...
a.cc: In function 'int main()': a.cc:5:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 5 | gets(a); | ^~~~ | getw a.cc:22:10: error: 'cotu' was not declared in this scope 22 | else cotu<<"NO"<<endl; | ^~~~
s159484871
p03957
C++
#include<iostream> #include<cstdio> #include<cstring> using namespace std; int main() { string a; cin>>a; int b=false; for(int i=0;i<a.size();i++) { if(a[i]=='C') flag=true; if(a[i]=='F'&&b==true) { cout<<"Yes"; return 0; } } c...
a.cc: In function 'int main()': a.cc:13:9: error: 'flag' was not declared in this scope 13 | flag=true; | ^~~~
s940504233
p03957
C++
#include <bits/stdc++.h> using namespace std; int c; string s; int main() { cin>>s; for(int i=0;i<s.length();i++) if(s[i]=='C') c = 1; if(s[i]=='F' && c) { cout<<"Yes\n"; exit(0); } cout<<"No\n"; return 0; }
a.cc: In function 'int main()': a.cc:13:14: error: 'i' was not declared in this scope 13 | if(s[i]=='F' && c) | ^
s394287142
p03957
C++
#include<iostream> using namespace std; int n,m; char a[100000]; int main() { for(int i=1;i<=100000) { while(cin>>a[i]) { if(a[i]=='F') m=i; } } for(int i=1;i<=100000) { if(a[i]=='C') { n=i; break; } ...
a.cc: In function 'int main()': a.cc:7:26: error: expected ';' before ')' token 7 | for(int i=1;i<=100000) | ^ | ; a.cc:15:26: error: expected ';' before ')' token 15 | for(int i=1;i<=100000) | ^ | ...
s900083897
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; int mian() { long long n,i,j; string s; cin>>s; n=s.size(); for(i=0;i<n;i++) { if(s[i]=='C') { for(j=i+1;j<n;j++) { if(s[j]=='F') { cout...
/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
s473728482
p03957
C++
#include <bits/stdc++.h> using namespace std; int main(){ char a; a=getchar(); while(a>='A'&&a<='Z'){ if(a=='C')cnt++; if(cnt==1&&a=='F'){ cout<<"Yes"; return 0; } a=getchar(); } cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:7:19: error: 'cnt' was not declared in this scope; did you mean 'int'? 7 | if(a=='C')cnt++; | ^~~ | int a.cc:8:12: error: 'cnt' was not declared in this scope; did you mean 'int'? 8 | if(cnt==1&&a=='F'){ |...
s621388468
p03957
C++
#include <bits/stdc++.h> using namesapce std; int main(){ char a; a=getchar(); while(a>='A'&&a<='Z'){ if(a=='C')cnt++; if(cnt==1&&a=='F'){ cout<<"Yes"; return 0; } a=getchar(); } cout<<"No"; return 0; }
a.cc:2:7: error: expected nested-name-specifier before 'namesapce' 2 | using namesapce std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:7:19: error: 'cnt' was not declared in this scope; did you mean 'int'? 7 | if(a=='C')cnt++; | ^~~ | int...
s203448820
p03957
C++
#include <bits/stdc++.h> using namesapce std; int main(){ char a; while(a=getchar()){ if(a=='C')cnt++; if(cnt==1&&a=='F'){ cout<<"Yes"; return 0; } } cout<<"No"; return 0; }
a.cc:2:7: error: expected nested-name-specifier before 'namesapce' 2 | using namesapce std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:6:19: error: 'cnt' was not declared in this scope; did you mean 'int'? 6 | if(a=='C')cnt++; | ^~~ | int...
s297052669
p03957
C++
// luogu-judger-enable-o2 #include<cstring> using namespace std; int main() { char a[9999]; cin>>a; int flagc=0; for(int i=0;i<=strlen(a)-1;i++){ if(a[i]=='C'){ flagc=1; } if(flagc && a[i]=='F'){ cout<<"YES"; return 0; } } cout<...
a.cc: In function 'int main()': a.cc:7:5: error: 'cin' was not declared in this scope 7 | cin>>a; | ^~~ a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 2 | #include<cstring> +++ |+#include <iostream> 3 | using namespace s...
s539704818
p03957
C++
#include<iostream> using namespace std; int main() { char a[99999]; cin>>a; for(int i=0;i<=strlen.a-1;i++){ if(a[i]=='C'){ flagc=1; } if(flagc && a[i]=='F'){ cout<<"YES"; return 0; } } return 0; }
a.cc: In function 'int main()': a.cc:7:20: error: 'strlen' was not declared in this scope 7 | for(int i=0;i<=strlen.a-1;i++){ | ^~~~~~ a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 1 | #include<iostream> +++ |+#i...
s022228853
p03957
C++
#include <bits/stdc++.h> using namespace std; string s; int len; int main(){ gets(s); len = s.size (); for (int i = 0; i < len ; ++ i){ if (s [i] == 'C'){ for (int j = i; j < len; ++ j){ if (s [j] == 'F') cout << "Yes"; return 0; } } } cout << "No"; return 0; }
a.cc: In function 'int main()': a.cc:9:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 9 | gets(s); | ^~~~ | getw
s554666636
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...
s288542302
p03957
C++
#include<bits/stdc++.h> using namespace std; int a=-1,b=-1; string s; int main() { cin>>s; for(int i=0;i<s.size();i++) { if(s[i]=='C') { a=i; break; } } for(int i=a+1;i<s.size();i++) { if(s[i]=='F') { b=i; ...
a.cc: In function 'int main()': a.cc:28:14: error: expected '}' at end of input 28 | return 0; | ^ a.cc:6:1: note: to match this '{' 6 | { | ^
s235523745
p03957
C++
#include<bits/stdc++.h> using namespace std; char a[10001]; bool f=false; int main(){ cin>>a; int l=strlen(a); for(int i=0;i<=l-1;i++){ if(a[i]=="C"){ for(int j=i;j<=l1;j++){ if(a[j]=="F")f=true; } } } if(f==true)cout<<"Yes"<<endl; else cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:9:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 9 | if(a[i]=="C"){ | ~~~~^~~~~ a.cc:10:40: error: 'l1' was not declared in this scope; did you mean 'l'? 10 | for(int j=i;j<=l1;...
s649424735
p03957
C++
#include <iostream> #include <cstdio> #include <algorithm> #include <cstring> #define Js for(int i=0;i<Len;i++) { #define is if(c[i]=='C) p=1; #define a if(C[i]=='F' && p==1) q=1;} #define sha if(p&&q) cout<<"Yes\n"<<endl; else cout<<"No\n"; #define bi return 0;} using namespace std; char c[105]; int main() { scanf...
a.cc:6:21: warning: missing terminating ' character 6 | #define is if(c[i]=='C) p=1; | ^ a.cc:6:21: error: missing terminating ' character 6 | #define is if(c[i]=='C) p=1; | ^~~~~~~~ a.cc:16:8: note: in expansion of macro 'is' 16 | Js is a sha bi ...
s274067527
p03957
C++
#include<bits/stdc++.h> using namespace std; char a[50000]; bool c,f; int main(){ gets(a); for(i=0;i<strlen(a);i++){ if(a[i]=='C')c=1; if(a[i]=='F'&&c==1)f=1; } if(c==1&&f==1)cout<<"Yes"<<endl; else cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 6 | gets(a); | ^~~~ | getw a.cc:7:13: error: 'i' was not declared in this scope 7 | for(i=0;i<strlen(a);i++){ | ^
s981313440
p03957
C++
#include<iostream> #include<cstdio> #include<cstring> using namespace std; char[105],flag; int main() { cin>>a; flag=0; for(int i=0;i<strlen(a);i++) { if(a[i]=='C') flag==1; if(a[i]=='F'&&flag==1) { cout<<"Yes"; return 0; } } cout<<"No"; return 0; }
a.cc:5:6: error: expected identifier before numeric constant 5 | char[105],flag; | ^~~ a.cc:5:6: error: expected ']' before numeric constant 5 | char[105],flag; | ^~~ | ] a.cc:5:5: error: structured binding declaration cannot have type 'char' 5 | char[105],flag; | ...
s613751806
p03957
C++
#include<bits/stdc++.h> using namespace std; int i,j;string s;bool b1=0,b2=0; int main(){ cin>>s; while(i<=s.length()){ i++; if(s[i]=='C'){ b1=1,j=i; while(j<=s.length()){ if(s[j]=='F')b2=1; j++ } } }if(b1&&b2)cout<<"YES"; else cout<<"NO"; return 0; }
a.cc: In function 'int main()': a.cc:12:36: error: expected ';' before '}' token 12 | j++ | ^ | ; 13 | } | ~
s441177668
p03957
C++
#include<bits/stdc++.h> using namespace std; char s[105]; void work() { int c=1; for(int i=0;i<strlen(s);++i) { if(s[i]=='C'&&c==1) c=0; if(s[i]=='F'&&c==0) { printf("Yes\n"); return 0; } } printf("No\n"); } int main() { scanf(...
a.cc: In function 'void work()': a.cc:14:20: error: return-statement with a value, in function returning 'void' [-fpermissive] 14 | return 0; | ^
s637242206
p03957
C++
// luogu-judger-enable-o2 #include<bits/stdc++.h> using namespace std; char s[105]; void work() { int c=1; for(int i=0;i<strlen(s);++i) { if(s[i]=='C'&&c==1) c=0; if(s[i]=='F'&&c==0) { printf("Yes\n"); return 0; } } printf("No\n"); ...
a.cc: In function 'void work()': a.cc:15:20: error: return-statement with a value, in function returning 'void' [-fpermissive] 15 | return 0; | ^
s564765414
p03957
C++
#include <iostream> #include <cstdio> #include <string> using namespace std; string s; int mian() { cin >> s; int 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"; return ...
/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
s439793085
p03957
C++
#include<bits/stdc++.h> using namespace std; char s[105]; void in() { scanf("%s",s); } void work() { int c=1; for(int i=0;i<strlen(s);++i) { if(s[i]=='C'&&c==1) { c=0; } if(s[i]=='F'&&c==0) { printf("Yes"\n); exit(0); ...
a.cc:22:25: error: stray '\' in program 22 | printf("Yes"\n); | ^ a.cc:26:16: error: stray '\' in program 26 | printf("No"\n); | ^ a.cc: In function 'void work()': a.cc:22:25: error: expected ')' before 'n' 22 | printf("Yes"\n); ...
s062038888
p03957
C++
#include<iostream> #include<string> #include<vector> #include<algorithm> #include<bits/stdc++.h> #include<cmath> #include<bitset> #define ll long long #define FOR(i,a,b) for(int i=(a);i<(b);++i) #define FFOR(i,a,b) for(int i=(a);i<=(b);++i) #define REP(i,n) FOR(i,0,n) #define RREP(i,n) FFOR(i,0,n) #define SORT(V) sor...
a.cc: In function 'int main()': a.cc:25:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 25 | if(S.at(i)=="C" && S.at(j)=="F") CAN=true; | ~~~~~~~^~~~~ a.cc:25:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 25 | if(S.at(i...
s569305030
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...
s216042896
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...
s867508141
p03957
C++
#include<iostream> #include<cstring> using namespace std; char a[1000001],f[1000001],c[7],b=1,ans,h,d; int main() { gets(a); for(int i=0;i<strlen(a);i++) { if(h==0&&a[i]=='C') { h++; d++; } else if(h==1&&a[i]=='F') { cout<<"Yes" ; d++; } } if(d!=2) 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(a); | ^~~~ | getw
s811261401
p03957
C++
#include<iostream> #include<cstring> using namespace std; char a[1000001],f[1000001],c[7],b=1,ans,h,d; int main() { gets(a); for(int i=1;i<strlen(a);i++) { if(h==0&&a[i]=='C') { h++; d++; } else if(h==1&&a[i]=='F') { cout<<"Yes" ; d++; } } if(d!=2) 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(a); | ^~~~ | getw
s070529962
p03957
C++
#include<iostream> #include<cstring> using namespace std; char s[202]; int n; bool flag=0; int main(){ cin>>s; n=strlen(s)-1; for(int i=0;i<=n;i++){ if(s[i]=="C")flag=1; if(flag&&s[i]=="F"){ cout<<"Yes"; return 0; } } cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:11:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 11 | if(s[i]=="C")flag=1; | ~~~~^~~~~ a.cc:12:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 12 | if(flag&&s[i]=="F"){ |...
s008414038
p03957
C++
#include <bits/stdc++.h> using namespace std; char s[1000000]; int main() { cin >> s; int len = strlen(s), flag = 0; for (int i = 0; i < len; ++i) if (s[i] == 'C' && !flag) flag = 1; else if (s[i] == 'F' && flag = 1) flag = 2; if (flag == 2) puts("Yes"); else puts("No"); return 0; }
a.cc: In function 'int main()': a.cc:12:26: error: lvalue required as left operand of assignment 12 | else if (s[i] == 'F' && flag = 1) flag = 2; | ~~~~~~~~~~~~^~~~~~~
s680245052
p03957
C++
#include<iostream> #include<cstring> #include<string> int main() { string s; char c='C',f='F'; int loc1=12321,loc2=-1; for(int i=0;i,s.size();i++) if(s[i]=='C') { loc1=i; break; } for(int i=s.size()-1;i>=0;i--) if(s[i]=='F') { ...
a.cc: In function 'int main()': a.cc:6:5: error: 'string' was not declared in this scope 6 | string s; | ^~~~~~ a.cc:6:5: note: suggested alternatives: In file included from /usr/include/c++/14/iosfwd:41, from /usr/include/c++/14/ios:40, from /usr/include/c++/14/ostre...
s996586226
p03957
C++
#include <cstdio> #include <iostream> using namespace std; string a; int main() { cin >> a; int len = a.size(); for(int i = 0; i < len; ++i) { if(a[i] == 'C') { for(int j = i + 1; j < len; ++j) if(a[j] == 'F') { puts("YES"); return...
a.cc:19:9: error: expected constructor, destructor, or type conversion before '(' token 19 | puts("NO"); | ^ a.cc:20:5: error: expected unqualified-id before 'return' 20 | return 0; | ^~~~~~ a.cc:21:1: error: expected declaration before '}' token 21 | } | ^
s430538832
p03957
C++
#include <cstdio> #include <iostream> using namespace std; string a; int main() { cin >> a; int len = a.size(); for(int i = 0; i < len; ++i) { if(a[i] == 'C') { for(int j = i + 1; j < len; ++j) if(a[j] == 'F') { puts("YES"); return...
a.cc:19:9: error: expected constructor, destructor, or type conversion before '(' token 19 | puts("NO"); | ^ a.cc:20:5: error: expected unqualified-id before 'return' 20 | return 0; | ^~~~~~ a.cc:21:1: error: expected declaration before '}' token 21 | } | ^
s446938388
p03957
C++
#include<iostream> using namespace std; int main() { string a; cin>>a; j=k=0; for(int i=0;i<a.size();i++) { if(a[i]=='C') { for(int j=i+1;j<a.size();j++) if(a[j]=='F') { cout<<"Yes"<<'\n'; goto hre; } ...
a.cc: In function 'int main()': a.cc:7:5: error: 'j' was not declared in this scope 7 | j=k=0; | ^ a.cc:7:7: error: 'k' was not declared in this scope 7 | j=k=0; | ^
s242040254
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...
s152292529
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...
s341219445
p03957
C++
#include<iostream> using namespace std; int main(){ string a; bool v[2]={0}; cin>>a;//读入 for(int i=0;i<a.length();i++){ if(a[i]=='C') v[0]=1; } if(v[1]) cout<<"Yes"; else cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:10:16: error: unable to find string literal operator 'operator""\U0000ff1b' with 'const char [3]', 'long unsigned int' arguments 10 | else cout<<"No"; | ^~~~~~
s952687744
p03957
C++
#include<iostream> using namespace std; int main(){ string a; bool v[2]={0}; cin>>a;//读入 for(int i=0;i<a.length();i++){ if(a[i]=='C') v[0]=1; } if(v[1]) cout<<"Yes"; else cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:10:16: error: unable to find string literal operator 'operator""\U0000ff1b' with 'const char [3]', 'long unsigned int' arguments 10 | else cout<<"No"; | ^~~~~~
s951467950
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...
s668767952
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...
s150944851
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...
s112893992
p03957
C++
#include <bits/stdc++.h> using namespace std; string s; int flag[3]; int main() { cin >> s; for(int i = 0; i < s.size(); ++i) { if (a[i] == 'C') flag[1] = 1; if(a[i]=='F' && flag[0] == 1) flag[2] = 1; } if(flag[2] == 0) cout << "No"; else cout << "Yes"; return 0; }
a.cc: In function 'int main()': a.cc:8:21: error: 'a' was not declared in this scope 8 | if (a[i] == 'C') flag[1] = 1; | ^ a.cc:9:20: error: 'a' was not declared in this scope 9 | if(a[i]=='F' && flag[0] == 1) flag[2] = 1; | ^
s085834360
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++; | ^~~
s244656931
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; int q,p,w[1000001],u[1000001],o; string a; int main() { cin>>a; for (int i=0;i<a.size();i++){ if (a[i]=='C'){ p++; u[p]=i+1; } else if (a[i]=='F'){ q++; w[q]=i+1; ...
a.cc: In function 'int main()': a.cc:29:36: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 29 | cout<<"Yes"<<end | ~~~~~~~~~~~^~~~~ In file included from /usr/include/c++/14/iostream:41,...
s065088264
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"; r...
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:13:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 13 | for(re...
s060246113
p03957
C++
#include<bits/stdc++.h> using namspace std; char s[10000001]; int main() { gets(s); for(int i=0;i<n;i++) { if(s[i]=='C'){ for(int j=i;j<n;j++) { if(s[j]=='F'){cout<<"Yes";return 0;} } } } cout<<"No"; return 0; }
a.cc:2:7: error: expected nested-name-specifier before 'namspace' 2 | using namspace std; | ^~~~~~~~ a.cc: In function 'int main()': a.cc:6:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 6 | gets(s); | ^~~~ | getw a.cc:7:19: error: 'n' was not declared ...
s320007731
p03957
C++
#include<bits/stdc++.h> using namespace std; int main(){ string a,b,c,d,e; cin>>a; b=a.size(); for(register int i=1;i<=b;i++){ if(a[i]=='C'){ c=i; break; } } for(register int i=b;i>=1;i++){ if(a[i]=='F'){ d=i; break; } } if(c<d) cout<<"Yes"<<endl; else cout<<"No"<<endl; retu...
a.cc: In function 'int main()': a.cc:7:26: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 7 | for(register int i=1;i<=b;i++){ | ^ a.cc:7:31: error: no match for 'operator<=' (operand types are 'int' and 'std::string' {aka 'std::__cxx11::basic...
s852125351
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++; | ^~~ a.cc:11:20: error: expected primary-expression before '/' token 11 | q-=10000000000;/ | ^ a.cc:12:5: error: expected primary-expression before '}' token 12 | } ...
s108038778
p03957
C++
#include<iostream> #include<cstdio> #include<cstring> 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:11:5: error: 'qwq' was not declared in this scope 11 | qwq++; | ^~~ a.cc:13:20: error: expected primary-expression before '/' token 13 | q-=10000000000;/ | ^ a.cc:14:5: error: expected primary-expression before '}' token 14 | }...
s698033097
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...
s692970485
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...
s965026974
p03957
C++
#include<bits/stdc++.h> using namespace std; int main(){ bool flg=false; while(cin>>){ string st; cin>>st; if(st=='C'){ flg=true; } if(st=='F'&&flg==true){ cout<<"Yes"<<endl; return 0; } } cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:5:20: error: expected primary-expression before ')' token 5 | while(cin>>){ | ^ a.cc:8:22: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 8 | if(st=='C'){...
s956629921
p03957
C++
#include<cstdio> #include<iostream> using namespace std; char a[1000]; int main() { bool x=0; gets(a); int n=strlen(a); for(int i=0;i<n;++i) { if(a[i]=='C') x=1; if(x==1&&a[i]=='F') { cout<<"Yes"; return 0; } } cout<<"No"; 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 a.cc:9:15: error: 'strlen' was not declared in this scope 9 | int n=strlen(a); | ^~~~~~ a.cc:3:1: note: 'strlen'...
s092594157
p03957
C++
#include<cstdio> #include<iostream> using namespace std; char a[1000]; int main() { bool x=0; gets(a); int n=strlen(a); for(int i=0;i<n;++i) { if(a[i]=='C') x=1; if(x==1&&a[i]=='F') { cout<<"Yes"; return 0; } } cout<<"No"; 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 a.cc:9:15: error: 'strlen' was not declared in this scope 9 | int n=strlen(a); | ^~~~~~ a.cc:3:1: note: 'strlen'...
s768219787
p03957
C++
#include<cstdio> #include<iostream> using namespace std; char a[1000]; int main() { bool x=0; gets(a); int n=strlen(a); for(int i=0;i<n;++i) { if(a[i]=='C') x=1; if(x==1&&a[i]=='F') { cout<<"Yes"<<endl; return 0; } } cout<<"No"; 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 a.cc:9:15: error: 'strlen' was not declared in this scope 9 | int n=strlen(a); | ^~~~~~ a.cc:3:1: note: 'strlen'...
s024036726
p03957
C++
#include<cstdio> #include<iostream> using namespace std; char a[1000]; int main() { bool x=0; gets(a); int n=strlen(a); for(int i=0;i<n;++i) { if(a[i]=='C') x=1; if(x==1&&a[i]=='F') { cout<<"Yes"<<endl; return 0; } } 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 a.cc:9:15: error: 'strlen' was not declared in this scope 9 | int n=strlen(a); | ^~~~~~ a.cc:3:1: note: 'strlen'...
s333104045
p03957
C++
#include<bits/stdc++.h> using namespace std; int main(){ int A,B,C,D,E; string S; cin >> S; if(S.find("C")==string::npos||S.find("F")==string::npos)cout<<"No"<<endl; else{ if(S.find("C")>S.find("F")){ if(S.find("CF")!=string::npos)cout << "Yes"<<endl; else cout <<"No"<<endl; else cout <<"Y...
a.cc: In function 'int main()': a.cc:12:5: error: expected '}' before 'else' 12 | else cout <<"Yes"<<endl; | ^~~~ a.cc:9:32: note: to match this '{' 9 | if(S.find("C")>S.find("F")){ | ^
s790988486
p03957
C++
#include<bits/stdc++.h> using namespace std; int main(){ int A,B,C,D,E; string S; cin >> S; if(S.find("C")==string::npos||S.find("F")==string::npos)cout<<"No"<<endl; else{ if(S.find("C")>S.find("F"))cout <<"No"<<endl; else cout <<"Yes"<<endl; }
a.cc: In function 'int main()': a.cc:11:2: error: expected '}' at end of input 11 | } | ^ a.cc:3:11: note: to match this '{' 3 | int main(){ | ^
s658890682
p03957
C++
#include<cstring> #include<iostream> using namespace std; int main() { int le,f=0; char c[101]; le=strlen(c) for(int i=0;i<le;i++) { if(c[i]=='C'&&f==0) f=i; if(c[i]=='F'&&f!=0) { cout<<"YES"; return 0; } } cout<<"NO"; }
a.cc: In function 'int main()': a.cc:8:17: error: expected ';' before 'for' 8 | le=strlen(c) | ^ | ; 9 | for(int i=0;i<le;i++) | ~~~ a.cc:9:17: error: 'i' was not declared in this scope 9 | for(int i=0;i<le;i++) | ...
s407869731
p03957
C++
#include<cstring> #include<iostream> using namespace std; int main() { int le,f=0; char c[101]; le=strlen(c) for(int i=0;i>le;i++) { if(c[i]=='C'&&f==0) f=i; if(c[i]=='F'&&f!=0) { cout<<"YES"; return 0; } } cout<<"NO"; }
a.cc: In function 'int main()': a.cc:8:17: error: expected ';' before 'for' 8 | le=strlen(c) | ^ | ; 9 | for(int i=0;i>le;i++) | ~~~ a.cc:9:17: error: 'i' was not declared in this scope 9 | for(int i=0;i>le;i++) | ...
s955066056
p03957
C++
#include<bits/stdc++.h> using namespace std; int main() { string a; cin>>a; for(i=0;i<a.length();i++){ if(a[i]=='C'){ for(int j=i;j<a.length();j++){ if(a[j]=='F'){ cout<<"Yes"; break; return 0; } } } } cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:7:13: error: 'i' was not declared in this scope 7 | for(i=0;i<a.length();i++){ | ^
s776387687
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: '...
s925536184
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...