submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s083369330
p03957
C++
#include<bits/stdc++.h> using namespace std; int main() { string s; cin>>s; int t=-1; int n=s.size(); for(int i=1;i<=n;i++) if((char)s[i]=='C') { t=i; break; } for(int j=t;j<=n;j++) if((char)s[i]=='F') { cout<<"Yes"; return 0; } cout<<"No"; }
a.cc: In function 'int main()': a.cc:16:28: error: 'i' was not declared in this scope 16 | if((char)s[i]=='F') | ^
s683050336
p03957
C++
#include<bits/stdc++.h> using namespace std; int main() { string s; cin>>s; int t=-1; int n=s.size(); for(int i=1;i<=n;i++) if((char)s[i]=='C') { t=i; break; } for(int j=t;j<=n;j++) if((char)s[i]=='F') { cout<<"Yes"; return 0; } cout<<"No"; }
a.cc: In function 'int main()': a.cc:16:28: error: 'i' was not declared in this scope 16 | if((char)s[i]=='F') | ^
s197978910
p03957
C++
#include<bits/stdc++.h> using namespace std; int main() { string s; cin>>s; int t=-1; int n=s.size(); for(int i=1;i<=n;i++) if(s[i]=='C') { t=i; break; } for(int j=t;j<=n;j++) if(s[i]=='F') { cout<<"Yes"; return 0; } cout<<"No"; }
a.cc: In function 'int main()': a.cc:16:22: error: 'i' was not declared in this scope 16 | if(s[i]=='F') | ^
s121400193
p03957
C++
#include <bits/stdc++.h> using namespace std; string a; int main() { cin>>a; 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')return !(cout<<"Yes\n"); } } } cout<<"No\n"; }
a.cc: In function 'int main()': a.cc:11:31: 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...
s500310528
p03957
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int c=0; int f=0;#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int c=0; int f=0; int a=0; for(int i=0;i<s.size();i++){ if(s.at(i)=='C'){ c++; a = i; ...
a.cc:8:13: error: stray '#' in program 8 | int f=0;#include <bits/stdc++.h> | ^ a.cc: In function 'int main()': a.cc:8:14: error: 'include' was not declared in this scope 8 | int f=0;#include <bits/stdc++.h> | ^~~~~~~ a.cc:8:23: error: 'bits' was not declared in this...
s967010530
p03957
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int c=0; int f=0;#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int c=0; int f=0; int a=0; for(int i=0;i<s.size();i++){ if(s.at(i)=='C'){ c++; a = i; ...
a.cc:8:13: error: stray '#' in program 8 | int f=0;#include <bits/stdc++.h> | ^ a.cc: In function 'int main()': a.cc:8:14: error: 'include' was not declared in this scope 8 | int f=0;#include <bits/stdc++.h> | ^~~~~~~ a.cc:8:23: error: 'bits' was not declared in this...
s149086602
p03957
C++
#include <bits/stdc++.h> using namespace std; int a=0; string s; int main() { cin>>s; for (int i=0;i<s.size();i++) { if (s[i]=='C') a=1; if (s[i]=='F'&&a=1){ cout<<"YES"<<endl; return 0; } } cout<<"NO"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:11:22: error: lvalue required as left operand of assignment 11 | if (s[i]=='F'&&a=1){
s828004207
p03957
C++
#include <bits/stdc++.h> using namespace std; int a=0 string s; int main() { cin>>s; for (int i=0;i<s.size();i++) { if (s[i]=='C') a=1; if (s[i]=='F'&&a=1){ cout<<"YES"<<endl; return 0; } } cout<<"NO"<<endl; return 0; }
a.cc:4:1: error: expected ',' or ';' before 'string' 4 | string s; | ^~~~~~ a.cc: In function 'int main()': a.cc:7:10: error: 's' was not declared in this scope 7 | cin>>s; | ^
s856963293
p03957
C++
#include <bits/stdc++.h> using namespace std; bool pd=true; string s; int main() { cin>>s; for (int i=0;i<s.size();i++) { if (s[i]=='C') pd=false; if (s[i]=="F"||pd==false){ cout<<"YES"; return 0; } } cout<<"NO"; return 0; }
a.cc: In function 'int main()': a.cc:11:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 11 | if (s[i]=="F"||pd==false){
s181757741
p03957
C++
#include <bits/stdc++.h> using namspace std; bool pd=true; string s; int main() { cin>>s; for (int i=0;i<s.size();i++) { if (s[i]=='C') pd=false; if (s[i]=="F"||pd==false){ 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:4:1: error: 'string' does not name a type; did you mean 'stdin'? 4 | string s; | ^~~~~~ | stdin a.cc: In function 'int main()': a.cc:7:5: error: 'cin' was not declared in this scope;...
s225958251
p03957
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; string ans = "No"; for (int i = 0; i < s.size()-1; i++) { if (str.at(i) == 'C') { for (int j = i+1; j < s.size(); j++) { if (str.at(j) == 'F') { ans = "Yes"; ...
a.cc: In function 'int main()': a.cc:9:13: error: 'str' was not declared in this scope; did you mean 'std'? 9 | if (str.at(i) == 'C') { | ^~~ | std
s429645965
p03957
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; string ans = "No"; for (int i = 0; i < s.size()-1; i++) { if (str.at(i) == 'C') { for (int j = i+1; j < s.size(); j++) { if (str.at(j) == 'F') { ans = "Yes"; ...
a.cc: In function 'int main()': a.cc:9:13: error: 'str' was not declared in this scope; did you mean 'std'? 9 | if (str.at(i) == 'C') { | ^~~ | std
s992988243
p03957
C++
#include<iostream> using namespace std; char a[10000]; int main() { int c=0; gets(a); int len=strlen(a); for(int i=0;i<len;i++) { if(a[i]=='C') c=1; if(c==1&&a[i]=='F') { cout<<"YES"<<endl; return 0; } } cout<<"NO"<<endl; ...
a.cc: In function 'int main()': a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 7 | gets(a); | ^~~~ | getw a.cc:8:13: error: 'strlen' was not declared in this scope 8 | int len=strlen(a); | ^~~~~~ a.cc:2:1: note: 'strlen' is defined in h...
s003309098
p03957
C++
#include<bits/stdc++.h> using namespace std; int main() { string s; cin>>s; int box1=0,box2=0; for(int i=0;i<s.size;i++) { if(s[i]=='C') { box1++; } if(s[i]=='F') { box2++; } } if(box1!=0&&box2!=0) { cout<<"Yes"; } else { cout<<"No"; } return 0; }
a.cc: In function 'int main()': a.cc:8: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 unsign...
s564732397
p03957
C++
#include<bits/stdc++.h> using namespace std; int main(){ string a; cin>>a; int num=0; for(int i=0;i<a.size();i++){ if(a[i]=='C'){ num=1; } if(a[i]=='F'&&num==1){ cout<<"Yes"<<endl; return 0; } } cout<<"No"endl; return 0; }
a.cc: In function 'int main()': a.cc:16:11: error: unable to find string literal operator 'operator""endl' with 'const char [3]', 'long unsigned int' arguments 16 | cout<<"No"endl; | ^~~~~~~~
s740951283
p03957
C++
#include<bits/stdc++.h> using namespace std; int main(){ string str; cin>>str; int ps=str.find('C'); if(ps==-1){ puts("No"); return 0; } if(str.find('F',ps)!=str::npos){ puts("Yes"); }else{ puts("No"); } return 0; }
a.cc: In function 'int main()': a.cc:11:26: error: 'str' is not a class, namespace, or enumeration 11 | if(str.find('F',ps)!=str::npos){ | ^~~
s709874057
p03957
C++
#include<bits/stdc++.h> 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 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
s989062954
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...
s445444379
p03957
C++
#include<bits/stdc++.h> using namespace std; int main() { string a; cin>>a; int cnt=0; for(int i=0; i<a.size(); i++) { if(a[i]=='C') { cnt=1; } if(a[i]=='F'&&cnt==1) cout<<"Yes"<<endl; else cout<<"No"<<endl; } return 0;
a.cc: In function 'int main()': a.cc:16:18: error: expected '}' at end of input 16 | return 0; | ^ a.cc:3:12: note: to match this '{' 3 | int main() { | ^
s929989002
p03957
C++
#include <iostream> #include <string> using namespace std; int main() { string str; cin>>str; if(str.find('C')!=npos&&str.find('F')!=npos&&str.find('C')<str.find('F')) cout<<"Yes"<<endl; else cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:8:23: error: 'npos' was not declared in this scope 8 | if(str.find('C')!=npos&&str.find('F')!=npos&&str.find('C')<str.find('F')) | ^~~~
s341679848
p03957
C++
#include<bits/stdc++.h> using namespace std; int main() { char ch[100001]; cin>>ch; int flag=0; for(int i=0;i<strlen(ch);i++) { if(a[i]=='C') flag=1; if(a[i]=='F'&&flag==1) { cout<<"Yes"; return 0; } } cout<<"No"; return...
a.cc: In function 'int main()': a.cc:10:12: error: 'a' was not declared in this scope 10 | if(a[i]=='C') | ^ a.cc:12:12: error: 'a' was not declared in this scope 12 | if(a[i]=='F'&&flag==1) | ^
s791397025
p03957
C++
#include<iostream> #include<cstdlib> #include<cstdio> #include<cstring> #include<string> #include<cmath> using namespace std; char s[1001]; bool c=false,f=false; int c1=0,f1=0; int main() { gets(s); int len=strlen(s); for(int i=0;i<len;i++) { if(s[i]=='C' && c1==0) { c=true; c1=i; } if(s[i]=='F) { ...
a.cc:23:26: warning: missing terminating ' character 23 | if(s[i]=='F) | ^ a.cc:23:26: error: missing terminating ' character 23 | if(s[i]=='F) | ^~~ a.cc: In function 'int main()': a.cc:14:9: error: 'gets' was not decla...
s924839000
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...
s907769899
p03957
C++
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; bool a=0,b=0; for(int i=0;i<s.size();i++){ if(s[i]=='C'){ a=1; } } if(a==0){ return 0; cout<<"No"; } for(int i=0;i<s.size();i++){ if(s[i]=='F'){ b=1; } } if(b==0){ cout<<"No" return 0; } cout<<"Yes"; return 0...
a.cc: In function 'int main()': a.cc:23:27: error: expected ';' before 'return' 23 | cout<<"No" | ^ | ; 24 | return 0; | ~~~~~~
s424212951
p03957
C++
#include <iostream> #include <string.h> #include <stdio.h> #include <string> using namespace std; string a; int main () { cin >> a; if (a.find(C) != string::npos && a.find(F) != string::npos) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
a.cc: In function 'int main()': a.cc:12:20: error: 'C' was not declared in this scope 12 | if (a.find(C) != string::npos | ^ a.cc:13:19: error: 'F' was not declared in this scope 13 | && a.find(F) != string::npos) cout << "Yes" << endl; | ^
s697438131
p03957
C++
#include<cstdio> #include<iostream> using namespace std; int main() { char t[100]; bool C=false,F=false; cin>>t; for(int i=0;t[i]!='\0';i++) { if(t[i]=='C')C=true; if(t[i]=='F')f=true; } if(C&&F)printf("yes\n"); else printf("No\n"); return 0; }
a.cc: In function 'int main()': a.cc:12:22: error: 'f' was not declared in this scope 12 | if(t[i]=='F')f=true; | ^
s207595694
p03957
C++
#include<iostream> #include<string> using namespace std; string x; int c,f; int main() { cin >> x; for (int i = 0; i < x.length(); i++) { if (x[i] == 'C') { for (int j = i + 1;j < x.length; j++) { if (x[j] == 'F') { cout << "yes\n"; return 0; } } ...
a.cc: In function 'int main()': a.cc:13:66: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long uns...
s935866570
p03957
C
#include<stdio.h> #include<string.h> char s[105]; int main() { int i,len,j; scanf("%s",s); len=strlen(s); else if(len==2) { if(s[0]=='C'&&s[1]=='F') printf("YES"); else printf("NO"); } for(i=0;i<len-1;i++) { if(s[i]=='C') { for(j=i+1;j<len;j++) { if(s[j]=='F') { printf("Yes"); ...
main.c: In function 'main': main.c:9:9: error: 'else' without a previous 'if' 9 | else if(len==2) | ^~~~
s856825042
p03957
C++
#include<bits/stdc++.h> using namespace std; char ch[110]; int main() { bool flag1=0,flag2=0; cin>>ch; int chlen=strlen(ch); for(int i=0;i<chlen;i++) { if(ch[i]=='C') flag1=1,x=i; if(ch[i]=='F') flag2=1,y=i; } if(flag1==1&&flag2==1&&x<y) cout<<"Yes"<<endl; else cout<<"No"<<endl; }
a.cc: In function 'int main()': a.cc:11:40: error: 'x' was not declared in this scope 11 | if(ch[i]=='C') flag1=1,x=i; | ^ a.cc:12:40: error: 'y' was not declared in this scope 12 | if(ch[i]=='F') flag2=1,y=i; | ...
s748181511
p03957
C++
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); boolean isC=false,ok=false; String s=sc.next(); for(int i=0;i<s.length();i++){ if(s.charAt(i)=='C'){ isC=true; } if(isC&&s.charAt(i)=='F'){ ok=true; } } if(ok==true){ System.ou...
a.cc:1:1: error: 'import' does not name a type 1 | import java.util.*; | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:4:15: error: expected ':' before 'static' 4 | public static void main(String[] args){ | ^~~~~~~ | : a.cc:4:...
s981399231
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; }
a.cc: In function 'int main()': a.cc:9:14: error: 'i' was not declared in this scope 9 | if(a[i]=='F'&&v[0]) | ^ a.cc: At global scope: a.cc:12:5: error: expected unqualified-id before 'if' 12 | if(v[1]) cout<<"Yes"; | ^~ a.cc:13:5: error: expected unqualified-id before '...
s613821751
p03957
C++
#include<bits/stdc++.h> using namespace std; char a[266]; int main() { int b=100; cin>>a; for(int i=0;i<strlen(a)&&b!=0;i++) { if(a[i]=='C'||b=10) { b=10; if(a[i]=='F'&&b==10) b=0; } } if(b==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'||b=10) | ~~~~~~~~~^~~
s123290235
p03957
C++
#include<bits/stdc++.h> using namespace std; char a[266]; int main() { int b=100; cin>>a; for(int i=0;i<strlen(a)&&b!=0;i++) { if(a[i]=='C') { b=10; if(a[j]=='F'&&b==10) b=0; } } if(b==0) cout<<"Yes"; else cout<<"No"; }
a.cc: In function 'int main()': a.cc:13:30: error: 'j' was not declared in this scope 13 | if(a[j]=='F'&&b==10) | ^
s231750568
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int sum,sum1,n; int main() { cin>>s; for(int i=0;i<s.size();i++) { if(s[i]=='C'&&sum==0) { sum1=1; } if(s[i]=='F'&&sum1=1) { sum=1; } } n=sum+sum1; if(n==2)cout<<"Yes"; else cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:14:29: error: lvalue required as left operand of assignment 14 | if(s[i]=='F'&&sum1=1)
s079014817
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') { ...
a.cc: In function 'int main()': a.cc:40:6: error: expected '}' before 'else' 40 | else | ^~~~ a.cc:24:6: note: to match this '{' 24 | { | ^
s674324020
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...
s785580056
p03957
C++
#include<bits/stdc++.h> using namespace std; int main() { string s; cin>>s; bool flag=true; for(int i=0;i<s.size();i++) { if(s[i]=='C') { for(int j=i;j<S.size();j++) { if(s[j]=='F') { cout<<"Yes"<<endl; ...
a.cc: In function 'int main()': a.cc:12:27: error: 'S' was not declared in this scope 12 | for(int j=i;j<S.size();j++) | ^
s174536262
p03957
C++
#include<bits/stdc++.h> using namespace std; int main() { string S; cin>>S; bool flag=true; for(int i=0;i<S.size()&&flag=true;i++) { if(S[i]=='C') { for(int j=i;j<S.size();j++) { if(S[j]=='F') { flag=false; ...
a.cc: In function 'int main()': a.cc:8:27: error: lvalue required as left operand of assignment 8 | for(int i=0;i<S.size()&&flag=true;i++) | ~~~~~~~~~~^~~~~~
s163190797
p03957
C++
#include<bits/stdc++.h> #pragma GCC optimize(4) using namespace std; int main(){ bool a[3]={}; string s[10001]; getline(cin,s); for(int i=0;i<s.length();i++){ if(s[i]=='C') s[1]=1; if(s[i]=='F'&&s[1]) cout<<"Yes";return 0; } cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:7:16: error: no matching function for call to 'getline(std::istream&, std::string [10001])' 7 | getline(cin,s); | ~~~~~~~^~~~~~~ In file included from /usr/include/c++/14/string:55, from /usr/include/c++/14/bitset:52, from ...
s427429314
p03957
C++
#include <bits/stdc++.h> using namespace std; string a; int main() { cin>>a; if(a=="CODEFESTIVAL") { cout<<"Yes"<<endl; return 0; } for(int i=0;i<11;i++) { if(a[i]=="C"&&a[i+1]=="F") { cout<<"Yes"<<endl; } } cout<<"No"<<endl; return...
a.cc: In function 'int main()': a.cc:14:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 14 | if(a[i]=="C"&&a[i+1]=="F") a.cc:14:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 14 | if(a[i]=="C"&&a[i+1]=="F")
s252418853
p03957
C++
#include<bits/stdc++.h> using namespace std; using ll=long long; int main(){ int i,j,cnt=0; string s; cin>>s; int c=0;f=0; for(i=0;i<s.size();i++){ if(s[i]=='C')c=1; if(c){ if(s[i]=='F')f=1; } } if(c==1 && f==1)cout<<"Yes"; else cout<<"No"; }
a.cc: In function 'int main()': a.cc:9:11: error: 'f' was not declared in this scope 9 | int c=0;f=0; | ^
s041154447
p03957
C++
#include<stdio.h> #include<stdio.h> int main() { char a[1001]; while(scanf("%s",a)!=EOF){ int i,j,max,n; n=strlen(a) for(i=0;i<n-1;i++){ if(a[i]=='C') break; } for(j=0;j<=n-1;j++){ if(a[j]=='F') max=j; } if(i<max) printf("Yes\n"); else printf("No\n"); } return 0; }
a.cc: In function 'int main()': a.cc:9:19: error: 'strlen' was not declared in this scope 9 | n=strlen(a) | ^~~~~~ a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 1 | #include<stdio.h> +++ |+#include <cs...
s254401461
p03957
C++
#include<stdio.h> #include<stdio.h> int main() { char a[1001]; while(scanf("%s",a)!=EOF){ int i,j,max; for(i=0;i<strlen(a)-1;i++){ if(a[i]=='C') break; } for(j=0;j<=strlen(a)-1;j++){ if(a[j]=='F') max=j; } if(i<max) printf("Yes\n"); else printf("No\n"); } return 0; }
a.cc: In function 'int main()': a.cc:9:27: error: 'strlen' was not declared in this scope 9 | for(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<stdio...
s697627129
p03957
C++
#include <bits/stdc++.h> using namespace std; char a[14]; int main() { cin>>a; if(a[0]==‘c’) return 0; }
a.cc:7:14: error: extended character ‘ is not valid in an identifier 7 | if(a[0]==‘c’) | ^ a.cc:7:14: error: extended character ’ is not valid in an identifier a.cc: In function 'int main()': a.cc:7:14: error: '\U00002018c\U00002019' was not declared in this scope 7 | if(a[0]==‘c’) ...
s775077754
p03957
C++
#include <bits/stdc++.h> using namespace std; char a[14]; int main() {
a.cc: In function 'int main()': a.cc:5:2: error: expected '}' at end of input 5 | { | ~^
s003724019
p03957
C++
#include<bits/stdc++.h> using namespace std; int main(){ char a[101]; bool flag[2]={0}; cin>>a; for(int i=0;i<len(a);i++){ if(a[i]=='C') flag[0]=1; if(a[i]=='F'&&flag[0]) flag[1]=1; } if(flag[1]) return !printf("Yes"); else return !printf("No"); }
a.cc: In function 'int main()': a.cc:7:19: error: 'len' was not declared in this scope 7 | for(int i=0;i<len(a);i++){ | ^~~
s635752785
p03957
C
#include<stdio.h> #include<cstring> int main() { while(1) { char s[101]; scanf("%s",s); int ans=0; for(int i=0;i<strlen(s);i++) { if(s[i]=='C') { int j=i; for(i=j;i<strlen(s);i++) { if(s[i]=='F') { ans=1;} } } } if(ans==1) { printf("Yes\n");} else { ...
main.c:2:9: fatal error: cstring: No such file or directory 2 | #include<cstring> | ^~~~~~~~~ compilation terminated.
s237003383
p03957
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int n = -1; for(int i = 0;i < s.size();i++){ if(s.at(i)=='C'){ n = i; break; } } int m = -1; for(int j = 0;j < s.size();j++){ if(s.at(j)=='F'){ m = i; break; } } if(n >= 0 ...
a.cc: In function 'int main()': a.cc:19:11: error: 'i' was not declared in this scope 19 | m = i; | ^
s762145444
p03957
C++
#include<iostream> #include<fstream> #include<algorithm> #include<cstdio> #include<cmath> #include<string> #include<csstring> using namespace std; string st; bool a; int main() { cin>>st; for(int i=0;i<st.size();i++) { if(st[i]=='C')a=1; if(st[i]=='F') { if(a!=0) { cout<<"Yes"<<end...
a.cc:7:9: fatal error: csstring: No such file or directory 7 | #include<csstring> | ^~~~~~~~~~ compilation terminated.
s542263716
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...
s343319429
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int l; int mian(){ cin>>s; l=s.size(); for(register int i=0;i<l;i++){ if(s[i]=='C'){ for(register int j=i+1;j<l;j++){ if(s[j]=='F'){ cout<<"Yes"; return 0; } ...
a.cc: In function 'int mian()': a.cc:8:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 8 | for(register int i=0;i<l;i++){ | ^ a.cc:10:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 10 | for(reg...
s460303560
p03957
C++
#include <bits/stdc++.h> using namespace std; int main() { string a; int xx=0; int b; cin>>a; b=a.length(); char s[200]; for(int i=1;i<=b;i++) { s[i]=a[i-1]; } for(int i=1;i<=n;i++) { if(s[i]=='C') xx=1; if(xx=1) { if(s[i]=='F') { cout<<"Yes"<<endl; return 0; } } } cout<<"No"<<...
a.cc: In function 'int main()': a.cc:15:24: error: 'n' was not declared in this scope 15 | for(int i=1;i<=n;i++) | ^
s752541964
p03957
C++
#include<bits/stdc++.h> #include<cstdio> using namespace std; typedef long long ll; char a[1001]; bool flag; signed main() { gets(a); int len=strlen(a); for(int i=0;i<len;++i) { if(a[i]=='C') { flag=i; break; } } for(int i=flag;i<len;++i) { if(a[i]=='F') { printf("Yes\n"); return 0; } } ...
a.cc: In function 'int main()': a.cc:9:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 9 | gets(a); | ^~~~ | getw
s504856398
p03957
C++
#include<bits/stdc++.h> using namespace std; typedef long long ll; char a[1001]; bool flag; signed main() { gets(a); int len=strlen(a); for(int i=0;i<len;++i) { if(a[i]=='C') { flag=i; break; } } for(int i=flag;i<len;++i) { if(a[i]=='F') { printf("Yes\n"); return 0; } } printf("No\n"); ...
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
s276745196
p03957
C++
#include<iostream> #include<string> using namespace std; int main() { string S; cin >> S; for (int i = 0; i < S.size(); i++) { if (S[i] == 'C') { for (int j = i; j < S.size(); j++) { if (S[j]) == 'F'){ printf("Yes"); return 0; } } } } printf("No"); return 0; }
a.cc: In function 'int main()': a.cc:11:43: error: expected primary-expression before '==' token 11 | if (S[j]) == 'F'){ | ^~
s039679562
p03957
C++
#include<iostream> #include<string> using namespace std; int main() { string S; cin >> S; for (int i = 0; i < S.size(); i++) { if (S[i] == 'C') { for (int j = i; j < S.size(); j++) { if (S[j]) == 'F'){ printf("Yes"); return 0; } } } } printf("No"); return 0; }
a.cc: In function 'int main()': a.cc:11:43: error: expected primary-expression before '==' token 11 | if (S[j]) == 'F'){ | ^~
s444918815
p03957
C++
#include<cstdio> //#include<algorithm>//for sort,lower_bound,upper_bound... //#include<map>//for map and multimap //#include<vector>//for vector and bvector //#include<string>//for string,wstring,u16string and u32string //#include<queue>//for queue,priority_queue and deque //#include<iostream>//for cin,cout,cerr and cl...
a.cc: In function 'int main()': a.cc:28:9: error: 'string' was not declared in this scope 28 | string s; | ^~~~~~ a.cc:2:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>' 1 | #include<cstdio> +++ |+#include <string> 2 | //#i...
s634982929
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int l,n,m; int main() { cin>>s; l=s.length(); for(int i=0; i<l; i++) { if(s[i]=='C')n=1; else if(s[i]=='F')m=1; } if(m=1&&n=1)cout<<"Yes"; else cout<<"No"; }
a.cc: In function 'int main()': a.cc:12:15: error: lvalue required as left operand of assignment 12 | if(m=1&&n=1)cout<<"Yes"; | ~^~~
s324439578
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int l,n,m; int main() { cin>>s; l=s.length(); for(int i=0; i<l; i++) { if(s[i]=='C')n=1; else if(s[i]=='F')m=1; } if(m=1&&n=1)cout<<"Yes"; else cout<<"No"; }
a.cc: In function 'int main()': a.cc:12:15: error: lvalue required as left operand of assignment 12 | if(m=1&&n=1)cout<<"Yes"; | ~^~~
s245488654
p03957
Java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); int cIdx = -1; for (int i = 0; i < N; i++) { if (s.charAt(i) == 'C') { cIdx = i; break; } } if (cIdx == -1) { System.ou...
Main.java:8: error: cannot find symbol for (int i = 0; i < N; i++) { ^ symbol: variable N location: class Main Main.java:18: error: cannot find symbol for (int i = cIdx; i < N; i++) { ^ symbol: variable N location: class Main 2 errors
s001625272
p03957
C++
#include<bits/stdc++.h> using namespace std;//qwq int main(){ string a; bool v[2]={0};//hhh cin>>a;//readin for(int i=0;i<a.length();i++){see all if(a[i]=='C') v[0]=1;//discover c if(a[i]=='F'&&v[0]) v[1]=1;//discover f } if(v[1]) cout<<"Yes";//yes,you can else cout<<"No";//...
a.cc: In function 'int main()': a.cc:7:35: error: 'see' was not declared in this scope 7 | for(int i=0;i<a.length();i++){see all | ^~~
s715149729
p03957
C++
#include<iostream> #include<cstring> using namespace std; int main(){ string a; bool f=0; cin>>a; for(int i=0;i<a.size();i++){ if(a[i]=='C') f=1; if(a[i]=='F'&&f){ cout<<"Yes"<<endl; return 0; } } } cout<<"No"<<endl; return 0; }
a.cc:16:5: error: 'cout' does not name a type 16 | cout<<"No"<<endl; | ^~~~ a.cc:17:5: error: expected unqualified-id before 'return' 17 | return 0; | ^~~~~~ a.cc:18:1: error: expected declaration before '}' token 18 | } | ^
s274802198
p03957
C++
#include<iostream> #include<cstring> using namespace std; int main(){ string a; bool v[2]={0}; cin>>a; for(int i=0;i<a.size();i++){ if(a[i]=='C') v[0]=1; if(a[i]=='F'&&v[0]){ cout<<"Yes"<<endl; return 0; } } } cout<<"No"<<endl; return ...
a.cc:16:5: error: 'cout' does not name a type 16 | cout<<"No"<<endl; | ^~~~ a.cc:17:5: error: expected unqualified-id before 'return' 17 | return 0; | ^~~~~~ a.cc:18:1: error: expected declaration before '}' token 18 | } | ^
s863837056
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...
s027947951
p03957
C++
#include<bits/std/c++.h> using namespace std; int main() { int kkk; sting s; cin>>s; kkk=s.size(); for(register int i=0;i<kkk;i++){ if(s[i]=='C') { for(register int j=i+1;j<kkk;j++) { if(s[j]=='F') { cout<<"Yes"; ...
a.cc:1:9: fatal error: bits/std/c++.h: No such file or directory 1 | #include<bits/std/c++.h> | ^~~~~~~~~~~~~~~~ compilation terminated.
s147527143
p03957
C++
#include <stdio.h> #include <stdio.h> #include <iostream> int main() {#include <stdio.h> int main() { int a; char n[105]; scanf("%c",&n); for (int i=0;i<=n;i++) { if(n[i]=='C') { a=1; } if(n[i]=='F'&&a==1) printf("Yes/n"); return 0; } printf("No/n"); return 0; }
a.cc:5:2: error: stray '#' in program 5 | {#include <stdio.h> | ^ a.cc: In function 'int main()': a.cc:5:3: error: 'include' was not declared in this scope 5 | {#include <stdio.h> | ^~~~~~~ a.cc:5:12: error: 'stdio' was not declared in this scope; did you mean 'stdin'? 5 | {#include <stdio.h>...
s508114509
p03957
C++
#include <stdio.h> #include <stdio.h> #include <iostream> int main() { int a; char n[105]; scanf("%s",&n); for (int i=0;i<n;i++) { if(n[i]=='C') { a=1; } if(n[i]=='F'&&a==1) printf("Yes/n"); return 0; } printf("No/n"); return 0; }
a.cc: In function 'int main()': a.cc:9:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 9 | for (int i=0;i<n;i++) | ~^~
s075585484
p03957
C++
#include <stdio.h> #include <iostream> int main() { int a; string n; scanf("%c",&n); for (int i=0;i<n.size();i++) { if(n[i]=='C') { a=1; } if(n[i]=='F'&&a==1) printf("Yes/n"); return 0; } printf("No/n"); return 0; }
a.cc: In function 'int main()': a.cc:6:9: error: 'string' was not declared in this scope 6 | string n; | ^~~~~~ a.cc:6:9: note: suggested alternatives: In file included from /usr/include/c++/14/iosfwd:41, from /usr/include/c++/14/ios:40, from /usr/include/c++/...
s210351550
p03957
C++
#include <stdio.h> int main() { int a; string n; scanf("%s",&n); for (int i=0;i<n.size();i++) { if(a[i]=='C') { a=1; } if(a[i]=='F'&&a==1) printf("Yes/n"); return 0; } printf("No/n"); return 0; }
a.cc: In function 'int main()': a.cc:5:9: error: 'string' was not declared in this scope; did you mean 'stdin'? 5 | string n; | ^~~~~~ | stdin a.cc:6:21: error: 'n' was not declared in this scope 6 | scanf("%s",&n); | ^ a.cc:9:21: error: inva...
s248969220
p03957
C++
#include <stdio.h> int main() { int a; string n; scanf("%s",&n); for (i=0;i<n.size();i++) { if(a[i]=='C') { a=1; } if(a[i]=='F'&&a==1) printf("Yes/n"); return 0; } printf("No/n"); return 0; }
a.cc: In function 'int main()': a.cc:5:9: error: 'string' was not declared in this scope; did you mean 'stdin'? 5 | string n; | ^~~~~~ | stdin a.cc:6:21: error: 'n' was not declared in this scope 6 | scanf("%s",&n); | ^ a.cc:7:14: error: 'i' ...
s185127060
p03957
C++
#include <stdio.h> int main() { int a; string n; scanf("%s",&n); for (i=0;i<n;i++) { if(a[i]=='C') { a=1; } if(a[i]=='F'&&a==1) printf("Yes/n"); return 0; } printf("No/n"); return 0; }
a.cc: In function 'int main()': a.cc:5:9: error: 'string' was not declared in this scope; did you mean 'stdin'? 5 | string n; | ^~~~~~ | stdin a.cc:6:21: error: 'n' was not declared in this scope 6 | scanf("%s",&n); | ^ a.cc:7:14: error: 'i' ...
s435841576
p03957
C++
#include <stdio.h> int main() { string n; scanf("%s",&n); for (int i=0;i<n.size();i++) { if (n[i]=='C'&&'F') printf("Yes/n"); return 0; } printf("No/n"); return 0; }
a.cc: In function 'int main()': a.cc:4:9: error: 'string' was not declared in this scope; did you mean 'stdin'? 4 | string n; | ^~~~~~ | stdin a.cc:5:21: error: 'n' was not declared in this scope 5 | scanf("%s",&n); | ^
s736652126
p03957
C++
#include <stdio.h> int main() { string n; scanf("%s",&n); for (i=0;i<n.size();i++) { if (n[i]=='C'&&'F') printf("Yes/n"); return 0; } printf("No/n"); return 0; }
a.cc: In function 'int main()': a.cc:4:9: error: 'string' was not declared in this scope; did you mean 'stdin'? 4 | string n; | ^~~~~~ | stdin a.cc:5:21: error: 'n' was not declared in this scope 5 | scanf("%s",&n); | ^ a.cc:6:14: error: 'i' ...
s206999459
p03957
C++
#include <stdio.h> int main() { string n; scanf("%s",&n); for (i=0;i<n;i++) { if (n[i]=='C'&&'F') printf("Yes/n"); return 0; } printf("No/n"); return 0; }
a.cc: In function 'int main()': a.cc:4:9: error: 'string' was not declared in this scope; did you mean 'stdin'? 4 | string n; | ^~~~~~ | stdin a.cc:5:21: error: 'n' was not declared in this scope 5 | scanf("%s",&n); | ^ a.cc:6:14: error: 'i' ...
s336673471
p03957
C++
#include <iostream> using namespace std; int main() { string n; cin>>n; for (int i=0;i<n;i++) { if (n[i]=='C'&&'F') cout<<"Yes"; return 0; } cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:7:23: error: no match for 'operator<' (operand types are 'int' and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 7 | for (int i=0;i<n;i++) | ~^~ | | | | | std::string {aka std::__c...
s516375712
p03957
C++
#include <stdio.h> int main() { string n; scanf("%s",&n); for (i=0;i<n;i++) { if (n[i]=='C'&&'F') cout<<"Yes" return 0; } cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:4:9: error: 'string' was not declared in this scope; did you mean 'stdin'? 4 | string n; | ^~~~~~ | stdin a.cc:5:21: error: 'n' was not declared in this scope 5 | scanf("%s",&n); | ^ a.cc:6:14: error: 'i' ...
s559682221
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...
s062450525
p03957
C++
#include<bits/stdc++.h> using namesapce std; int main() { string a; cin>>a; int h=a.length() for(int i=0;i<h;i++) { if(a[i]=='C') { for(int j=i;j<h;j++) { if(a[j]=='F') cout<<"YES"; 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:5:5: error: 'string' was not declared in this scope 5 | string a; | ^~~~~~ a.cc:5:5: note: suggested alternatives: In file included from /usr/inc...
s807440412
p03957
C++
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; int a=-1; for(int i=0;i<s.size();i++) if(a[i]=='C'){ a=i; break; } if(a<0){cout<<"NO"; return 0;} for(int i=a+1;i<s.size()) if(a[i]=='F'){ cout<<"YES"; return 0; } cout<<"NO"; }
a.cc: In function 'int main()': a.cc:8:21: error: invalid types 'int[int]' for array subscript 8 | if(a[i]=='C'){ | ^ a.cc:13:33: error: expected ';' before ')' token 13 | for(int i=a+1;i<s.size()) | ^ | ...
s248656154
p03957
C++
#include<iostream> #include<cstring> using namespace std; int main() { int l,bo=0; char n[100]; gets(n); l=strlen(n); for(int i=0;i<l;i++) { if(n[i]=='C'&&bo==0) bo++; if(bo==1&&n[i]=='F') { cout<<"YES"; bo++; break; } } if(bo!=2) 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(n); | ^~~~ | getw
s042677646
p03957
C++
#include<iostream> #include<cstring> using namespace std; int main() { int l,bo=0; char n[100]; gets(n); l=strlen(n); for(int i=0;i<l;i++) { if(n[i]=='C'&&bo==0) bo++; if(bo==1&&n[i]=='F') { cout<<"YES"; bo++; break; } } if(bo!=2) 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(n); | ^~~~ | getw
s116110810
p03957
C++
#include<iostream> #include<cstring> using namespace std; int main() { int l,bo=0; char n[100]; gets(n); l=strlen(n); for(int i=0;i<l;i++) { if(n[i]=='C'&&bo==0) bo++; if(bo==1&&n[i]=='F') { cout<<"YES"; bo++; break; } } if(bo!=2) 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(n); | ^~~~ | getw
s287224798
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...
s834651805
p03957
C++
#include<iostream> using namespace std; int main(void){ int a=0,b; string s; cin >> s; for(int i = 0;i < s.size();i++){ if(s.at(i) == "C"){ a = 1; } if((a == 1) && (s.at(i) == "F")){ cout << "Yes"; return 0; } } cout << "No"; }
a.cc: In function 'int main()': a.cc:8:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if(s.at(i) == "C"){ | ~~~~~~~~^~~~~~ a.cc:11:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 11 | if((a == 1) && (s.at(i) == "F")){ ...
s800087369
p03957
C++
#include<iostream> using namespace std; int main(void){ int a=0,b; string s; cin >> s; for(int i = 0;i < s.size();i++){ if(s.at(i) == "C"){ a = 1; } if(a == 1 && s.at(i) == "F"){ cout << "Yes"; return 0; } } cout << "No"; }
a.cc: In function 'int main()': a.cc:8:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if(s.at(i) == "C"){ | ~~~~~~~~^~~~~~ a.cc:11:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 11 | if(a == 1 && s.at(i) == "F"){ |...
s694771831
p03957
C++
#include<iostream> using namespace std; int main(void){ int a=0,b; string s; cin >> s; for(int i = 0;i < s.size();i++){ if(s.at(i) == "C"){ a == 1; } if(a == 1 && s.at(i) == "F"){ cout << "Yes"; return 0; } } cout << "No"; }
a.cc: In function 'int main()': a.cc:8:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if(s.at(i) == "C"){ | ~~~~~~~~^~~~~~ a.cc:11:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 11 | if(a == 1 && s.at(i) == "F"){ |...
s647503691
p03957
C++
#include<iostream> using namespace std; int main(void){ int a=0,b; string s; cin >> s; for(int i = 0;i < s.size();i++){ if(s.at(i) == "C"){ a == 1; } if(a==1 && s.at(i) == "F"){ cout << "Yes"; return 0; } } cout << "No"; }
a.cc: In function 'int main()': a.cc:8:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if(s.at(i) == "C"){ | ~~~~~~~~^~~~~~ a.cc:11:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 11 | if(a==1 && s.at(i) == "F"){ | ...
s833064941
p03957
C++
#include<iostream> using namespace std; int main(void){ int a=0,b; string s; cin >> s; for(int i = 0;i < s.size();i++){ if(s.at(i) == "C"){ a == 1; }; if(a==1 && s.at(i) == "F"){ cout << "Yes"; return 0; } } cout << "No"; }
a.cc: In function 'int main()': a.cc:8:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if(s.at(i) == "C"){ | ~~~~~~~~^~~~~~ a.cc:11:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 11 | if(a==1 && s.at(i) == "F"){ | ...
s898021276
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int main() { cin>>s; for(int i=0;i<s.size();i++) { if(s[i]=='C') { for(int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"Yes"; ...
a.cc: In function 'int main()': a.cc:14:29: error: 'l' was not declared in this scope 14 | for(int j=i+1;j<l;j++) | ^
s954748729
p03957
C++
include<iostream> #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') { ...
a.cc:1:1: error: 'include' does not name a type 1 | include<iostream> | ^~~~~~~ In file included from /usr/include/c++/14/bits/char_traits.h:42, from /usr/include/c++/14/string:42, from a.cc:3: /usr/include/c++/14/bits/postypes.h:68:11: error: 'ptrdiff_t' does not name a type...
s556406424
p03957
C++
#include<iostream> #include<fstream> #include<algorithm> #include<cstdio> #include<cmath> #include<string> #include<csstring> using namespace std; string st; bool a; int main() { cin>>st; for(int i=0;i<st.size();i++) { if(st[i]=='C')a=1; if(st[i]=='F') { if(a!=0) { cout<<"Yes"<<end...
a.cc:7:9: fatal error: csstring: No such file or directory 7 | #include<csstring> | ^~~~~~~~~~ compilation terminated.
s126251030
p03957
C++
#include<iostream> #include<fstream> #include<algorithm> #include<cstdio> #include<cmath> #include<string> #include<csstring> using namespace std; string st;//定义字符串 bool a;//定义a。 int main() { cin>>st; for(int i=0;i<st.size();i++) { if(st[i]=='C')a=1; //如果字符串的这个位置是C,就把a的值变成1。 if(st[i]=='F') { ...
a.cc:7:9: fatal error: csstring: No such file or directory 7 | #include<csstring> | ^~~~~~~~~~ compilation terminated.
s148370513
p03957
C++
#include<iostream> #include<fstream> #include<algorithm> #include<cstdio> #include<cmath> #include<string> #include<csstring> using namespace std; string st;//定义字符串 bool a;//定义a。 int main() { cin>>st; for(int i=0;i<st.size();i++) { if(st[i]=='C')a=1; //如果字符串的这个位置是C,就把a的值变成1。 if(st[i]=='F')//如果字符串的这个位...
a.cc:7:9: fatal error: csstring: No such file or directory 7 | #include<csstring> | ^~~~~~~~~~ compilation terminated.
s829940546
p03957
C++
#include<bits/stdc++.h> char str[256],*c,*f; int main(void){ scanf("%s",str); c=strchr(str,'c'); if(c!=NULL)f=strchr(c+1,'f'); printf("%s",c!=NULL&&f!=NULL?"Yes":"No"); reutrn 0; }
a.cc: In function 'int main()': a.cc:8:5: error: 'reutrn' was not declared in this scope 8 | reutrn 0; | ^~~~~~
s807781332
p03957
C++
#include<bits/stdc++.h> char str[256],*c,*f; int main(void){ scanf("%s",str); c=strchr(str,'c'); if(c!=NULL)f=strchr(str,c+1); printf("%s",c!=NULL&&f!=NULL?"Yes":"No"); reutrn 0; }
a.cc: In function 'int main()': a.cc:6:30: error: invalid conversion from 'char*' to 'int' [-fpermissive] 6 | if(c!=NULL)f=strchr(str,c+1); | ~^~ | | | char* In file included from /usr/include/c++/14/cstring:...
s748742460
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...
s333892134
p03957
C++
#include<iostream> #include<string.h> using namespace std; string s; bool b; int y; int main() { cin>>s; int l=strlen(s); for(int i=0;i<=l;i++) { if(s[i]=='C') { bool=true; y=i; } if(s[i]=='F' && i>y) { bool=true; } else bool=false; } if(bool==true) cout<<"Yes"<<endl; else cout<<"No"<<e...
a.cc: In function 'int main()': a.cc:10:22: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*' 10 | int l=strlen(s); | ^ | | | std::string {aka std::__cxx11::basic_string<char>} In file...
s232895105
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...
s352571035
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...
s709612279
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian() { cin>>s; 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 | ...