submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s865682440 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a,b;
a=b=0;
char a[10005];
gets(a);
for(int i=0;i<strlen(a);i++){
if(a[i]=='C') a++;
if(a[i]=='F') b++;
}
if(a[i]!=0&&b[i]!=0) cout<<"Yes"<<endl;
else cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:10: error: conflicting declaration 'char a [10005]'
6 | char a[10005];
| ^
a.cc:4:9: note: previous declaration as 'int a'
4 | int a,b;
| ^
a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(a)... |
s014908651 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s;
int n,i;
bool falg=false;
cin>>s;
for(i=0;i<s.size();i++)
if(s[i]=="C"){
n=i;
falg=true;
break;
}
if(falg){
for(int j=i+1;j<s.size();j++)
if(s[i]=="F"){
cout<<"Yes";
break;
}
}
else
cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:9:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | if(s[i]=="C"){
a.cc:16:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
16 | if(s[i]=="F"){
|
s963388972 | p03957 | C++ | var
i,l:longint;
s:string;
begin
readln(s);
l:=pos('C',s);
for i:= l to length(s) do
begin
if (s[i]='F') then begin writeln('Yes');exit;end;
end;
writeln('No');
end. | a.cc:9:39: warning: multi-character character constant [-Wmultichar]
9 | if (s[i]='F') then begin writeln('Yes');exit;end;
| ^~~~~
a.cc:11:11: warning: multi-character character constant [-Wmultichar]
11 | writeln('No');
| ^~~~
a.cc:1:1: error: '... |
s420612354 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<<"Y... | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
|
s107350572 | p03957 | C++ | #include<iostream>
#include<string>
using namespace std;
string a;
int main(){
cin>>a;
for(int i=0;i<a.size()-1;++i)
{
if(a[i]=='C'&&a[i+1]=='F'){ puts("YES")return 0;};
}
puts("NO");
return 0;
} | a.cc: In function 'int main()':
a.cc:9:48: error: expected ';' before 'return'
9 | if(a[i]=='C'&&a[i+1]=='F'){ puts("YES")return 0;};
| ^~~~~~
| ;
|
s088524578 | p03957 | C++ | #include<bits/stdc++.h>
#define Re register
using namespace std
int main(){
string s;cin>>s;
bool C=0,F=0;
int L=s.length();
for(Re int i=0;i<L;i++){
if(s[i]=='C'&&!C)C=1;
if(s[i]=='F'&&!F&&C)F=1;
if(C&&F){cout<<"Yes";return 0;}
}
cout<<"No";
return 0;
}
| a.cc:3:20: error: expected ';' before 'int'
3 | using namespace std
| ^
| ;
4 | int main(){
| ~~~
a.cc: In function 'int main()':
a.cc:8:16: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
8 | for(... |
s078616243 | p03957 | C++ | #include<bits/stdc++.h>
#define Re register
using namespace std
int main(){
srting s;cin>>s;
bool C=0,F=0;
int L=s.length();
for(Re int i=0;i<L;i++){
if(s[i]=='C'&&!C)C=1;
if(s[i]=='F'&&!F&&C)F=1;
if(C&&F){cout<<"Yes";return 0;}
}
cout<<"No";
return 0;
}
| a.cc:3:20: error: expected ';' before 'int'
3 | using namespace std
| ^
| ;
4 | int main(){
| ~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'srting' was not declared in this scope
5 | srting s;cin>>s;
| ^~~~~~
a.cc... |
s709120533 | p03957 | C++ | #include<bits/stdc++.h>
#define Re register
using namespace std
int main(){
srting s;cin>>s;bool C=0,F=0,c=0,f=0;
int L=s.length();
for(Re int i=0;i<L;i++){
if(s[i]=='C'&&!C)c=1,C=1;
if(s[i]=='F'&&!F&&C)f=1,F=1;
if(C&&F){cout<<"Yes";return 0;}
}
cout<<"No";
return 0;... | a.cc:3:20: error: expected ';' before 'int'
3 | using namespace std
| ^
| ;
4 | int main(){
| ~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'srting' was not declared in this scope
5 | srting s;cin>>s;bool C=0,F=0,c=0,f=0;
... |
s405961744 | p03957 | C++ | #include<stdio.h>
#include<string.h>
char ch[10000010];
int main ( )
{
scanf("%s",ch);
for(int i=0;i<strlen(ch);i++)
{
if(ch[i]=='C')flag=1;
if(ch[i]=='F'&&flag)
return puts("Yes")&0;
}
puts("No");
return 0;
} | a.cc: In function 'int main()':
a.cc:9:23: error: 'flag' was not declared in this scope
9 | if(ch[i]=='C')flag=1;
| ^~~~
a.cc:10:24: error: 'flag' was not declared in this scope
10 | if(ch[i]=='F'&&flag)
| ^~~~
|
s849694352 | p03957 | C++ | import java.util.Scanner;
import java.util.regex.*;
public class Main
{
public static void main(String args[])
{
Scanner input=new Scanner(System.in);
String str=input.nextLine();
String pattern="*C*F*";
if(Pattern.matches(pattern,str)) System.out.println("Yes");
else System.out.println("No");
}
} | a.cc:1:1: error: 'import' does not name a type
1 | import java.util.Scanner;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
2 | import java.util.regex.*;
| ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-... |
s587293663 | p03957 | C++ | import java.util.Scanner;
import java.util.regex.*;
public class Main
{
public static void main(String args[])
{
Scanner input=new Scanner(System.in);
String str=input.nextLine();
String pattern=".*C.*F.*";
if(Pattern.matches(pattern,str)) System.out.println("Yes");
else System.out.println("No");
}
} | a.cc:1:1: error: 'import' does not name a type
1 | import java.util.Scanner;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
2 | import java.util.regex.*;
| ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-... |
s973610094 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
... | 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... |
s117187979 | p03957 | C++ | #include <iostream>
#include <cstdio>
#include <cstring>
#include <string.h>
using namespace std;
int main()
{
char a[500],stack[500],t;//t用来存出栈元素
int top=0;//指针初始化0
cin>>a;//读入
for(int i=0;i<strlen(a);i++)
{
if(a[i]=='F'&&top==0)
continue;//如果栈是空的且读到了F,就进行下一次循环
else if(a[i]=... | a.cc: In function 'int main()':
a.cc:23:15: error: 'strack' was not declared in this scope; did you mean 'stack'?
23 | t=strack[--top];//读到F就出栈
| ^~~~~~
| stack
|
s450075059 | p03957 | C++ | // by DEADFISH
#include<iostream>
#include<cstdio>
#include<algorithm>
#include<cmath>
#include<cstring>
#define p 1e6+7
#define N 10010
#define mc(a,b) memset(a,b,sizeof(a))
#define close std::ios::sync_with_stdio(false)
using namespace std;
typedef long long ln;
string s;
int main()
{
cin>>s;
int len=s.length();
... | a.cc: In function 'int main()':
a.cc:22:39: error: 'flag' was not declared in this scope
22 | if(s[j]=='F') flag=1;
| ^~~~
a.cc:25:12: error: 'flag' was not declared in this scope
25 | if(flag) cout<<"Yes";
| ^~~~
|
s434365219 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main() {
bool a=0,b=0;
char p=getchar();
while(p!='\n') {
if (p=='C'&&b==1)a=1,b=0;
if (p=='F')b=1;
if (a==1&&b==1){
cout<<"Yes";
return 0;
}
p=getchar();
}
if (a==1&&b==1)
cout<<"Yes";
else cout<<"No";
}#include<bits/stdc++.h>
using namespa... | a.cc:18:2: error: stray '#' in program
18 | }#include<bits/stdc++.h>
| ^
a.cc:18:3: error: 'include' does not name a type
18 | }#include<bits/stdc++.h>
| ^~~~~~~
a.cc:20:5: error: redefinition of 'int main()'
20 | int main(){
| ^~~~
a.cc:3:5: note: 'int main()' previously defined here
... |
s524590267 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian(){
cin>>s;
l=s.size();
for(int i=0;i<l;i++){
if(s[i]=='C'){
for(int j=i+1;j<l;j++){
if(s[j]=='F'){
cout<<"Yes";
return 0;
... | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
|
s809592887 | p03957 | C++ | #include<iostream>
#include<cstring>
using namespace std;
string a,b='CF';
int al,bl;
int main()
{
getline(cin,a);
al=a.size();
for(int i=0;i<al;i++)
if(a[i]==b[bl])
{
bl++;
if(bl==2)
break;
}
if(bl==2) cout<<"Yes";
else cout<<"No";
... | a.cc:4:12: warning: multi-character character constant [-Wmultichar]
4 | string a,b='CF';
| ^~~~
a.cc:4:12: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
|
s691441353 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
char c=getchar();
bool f=false,f1=false;
while (c!=EOF)
{
if (c=='C') f=true;
if (c=='F'&&f==true) f1=true;
}
if (f==true&&f1=true) cout<<"Yes\n";
else cout<<"No\n";
return 0;
} | a.cc: In function 'int main()':
a.cc:12:16: error: lvalue required as left operand of assignment
12 | if (f==true&&f1=true) cout<<"Yes\n";
| ~~~~~~~^~~~
|
s428739363 | p03957 | C++ | #include<cstdio>
#include<cstring>
char a[10010];
bool c,f;
int main() {
cin>>a;
for(int i=0;i<strlen(a);i++) {
if(a[i]=='C') c=1;
if(a[i]=='F'&&c==1) f=1;
}
if(f==1) cout<<"Yes"<<endl;
else cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
6 | cin>>a;
| ^~~
a.cc:11:14: error: 'cout' was not declared in this scope
11 | if(f==1) cout<<"Yes"<<endl;
| ^~~~
a.cc:11:27: error: 'endl' was not declared in this scope
11 | if(f==... |
s926101358 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
char s[200];
int l;
int mian()
{
cin>>s;
l=strlen(s);
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<<"Yes"<<en... | 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... |
s440672865 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<<"Yes";
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
|
s523793302 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<<"Yes";
... | 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... |
s537639525 | p03957 | C++ | #include<iostream>
#include<cstring>
#include<algorithm>
using namespace std;
int main(){
string s;int ans1=0,ans2=0;
len=s.length;
for(int i=0;i<len;i++){
if(a[i]=='C') ans1=i;
if(a[i]=='F') ans2=i;
}
if(ans1!=0&&ans2!=0&&ans<ans2) cout<<"Yes";
else cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:7:9: error: 'len' was not declared in this scope; did you mean 'mblen'?
7 | len=s.length;
| ^~~
| mblen
a.cc:9:20: error: 'a' was not declared in this scope
9 | if(a[i]=='C') ans1=i;
| ^
a.cc:10:20:... |
s780321510 | p03957 | C++ | #include <iostream>
using namespace std;
int main()
{
char ch[10000]='0';
cin>>ch;
int k,x,l;
for (int i=1;i<=10000;i++) if (ch[i]=='0') {l=i-1;break;}
for (int i=1;i<=l;i++) if (ch[i]=='f') k=i;
for (int i=l;i>=1;i--) if (ch[i]=='c') x=i;
if (x<k) cout<<"Yes"<<endl;
else cout<<"No"<<end... | a.cc: In function 'int main()':
a.cc:5:20: error: array must be initialized with a brace-enclosed initializer
5 | char ch[10000]='0';
| ^~~
|
s311397921 | p03957 | C++ | #include <iostream>
using namespace std;
int main()
{
char ch[10000];
cin>>ch;
int l=strlen(ch);
int k,x;
for (int i=1;i<=l;i++) if (ch[i]=='f') k=i;
for (int i=l;i>=1;i--) if (ch[i]=='c') x=i;
if (x<k) cout<<"Yes"<<endl;
else cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:11: error: 'strlen' was not declared in this scope
7 | int l=strlen(ch);
| ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
1 | #include <iostream>
+++ |+#include <cstring>
2... |
s293949476 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
string s;
int l;
int mian(){
cin>>s;
l=s.size();
for(int i=0;i<l;i++)
if(s[i]=='C')
for(int j=i+1;j<l;j++)
if(s[j]=='F'){
cout<<"Yes"<<endl;
return 0;
}
cout<<"No"<<en... | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
|
s043345197 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<<"Yes";
... | 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... |
s880247792 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
... | 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... |
s139240716 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cin>>s;
for(int i=0;i<=s.size;i++){
if(s[i]=='C'){
for(int j=i+1;j<=s.size;j++){
if(s[j]=='F'){
cout<<"Yes"<<endl;
return 0;
}
}
... | a.cc: In function 'int main()':
a.cc:6:22: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsign... |
s443019356 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
... | 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... |
s498232263 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
#define ll long long
void init();
void solve();
#define rep(i, a) for (int i = 0; (i) < (int) (a); (i)++)
#define reps(i, a, b) for (int i = (int) (a); (i) < (int) (b); (i)++)
#define rrep(i, a) for (int i = (int) a-1; (i) >= 0; (i)--)
#define rreps(i, a, b) for (int ... | a.cc:56:18: error: macro "rep" passed 3 arguments, but takes just 2
56 | rep(j, i+1, l) {
| ^
a.cc:9:9: note: macro "rep" defined here
9 | #define rep(i, a) for (int i = 0; (i) < (int) (a); (i)++)
| ^~~
a.cc: In function 'void solve()':
a.cc:56:5: error: 'rep' was not dec... |
s774611510 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
... | 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... |
s020595460 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
string n;
int main()
{
cin>>n;
int s=n.length();
for (int i=0;i<s;i++)
{
if (s[i]=='C')
{
int k=i;
for (int j=k;j<s;j++)
if (s[j]=='K')
cout<<"Yes",return 0;
}
}
cout<<"No",return 0;
}
| a.cc: In function 'int main()':
a.cc:10:22: error: invalid types 'int[int]' for array subscript
10 | if (s[i]=='C')
| ^
a.cc:14:31: error: invalid types 'int[int]' for array subscript
14 | if (s[j]=='K')
| ^
a.... |
s978400469 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<<"Yes";
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
|
s107546425 | p03957 | C++ | #include<iostream>
#include<cstring>
char a[10086];
bool c, f;
int main() {
cin>>a;
for(int i=0; i<strlen(a); i++) {
if(a[i]=='C') c=true;
if(a[i]=='F'&&c==true) f=true;
}
if(f==true) cout<<"Yes"<<endl;
else cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | cin>>a;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to... |
s902771539 | p03957 | C++ | #include<iosrteam>
#include<cstring>
char a[10086];
bool c, f;
int main() {
cin>>a;
for(int i=0; i<strlen(a); i++) {
if(a[i]=='C') c=true;
if(a[i]=='F'&&c==true) f=true;
}
if(f==true) cout<<"Yes"<<endl;
else cout<<"No"<<endl;
return 0;
} | a.cc:1:9: fatal error: iosrteam: No such file or directory
1 | #include<iosrteam>
| ^~~~~~~~~~
compilation terminated.
|
s510253015 | p03957 | C++ | #include<iostream>
using namespace std;
int main(){
string str;
cin >> str;
bool is_c = false;
for(int i=0;i<s.size();i++){
if(str[i] == "C"){
is_c = true;
}
if(is_c && str[i] == "F")
{
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:17: error: 's' was not declared in this scope
8 | for(int i=0;i<s.size();i++){
| ^
a.cc:9:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | if(str[i] == "C"){
a.cc:12:23: error: ISO C++ forbids comparison betwe... |
s632793156 | p03957 | C++ | #include<iostream>
using namespace std;
int main(){
string str;
cin >> str;
bool is_c = flase;
for(int i=0;i<s.size();i++){
if(str[i] == "C"){
is_c = true;
}
if(is_c && str[i] == "F")
{
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:15: error: 'flase' was not declared in this scope; did you mean 'fclose'?
7 | bool is_c = flase;
| ^~~~~
| fclose
a.cc:8:17: error: 's' was not declared in this scope
8 | for(int i=0;i<s.size();i++){
| ^
a.c... |
s769789000 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
string a;
int ans;
int main()
{
cin>>a;
for(int i=0;i<size.a;i++)
{
if(ans==0&&a[i]=='C')
ans=1;
if(ans==1&&a[i]=='F')
ans=2;
}
if(ans==2)
cout<<"YES";
else
cout<<"NO";
return 0;
}
//前排出租广告位
//前排出租广告位
//此广告已被河蟹
/*
1.FFF团并不以烧为代表而是以审判为代表(异端审... | a.cc: In function 'int main()':
a.cc:8:28: error: overloaded function with no contextual type information
8 | for(int i=0;i<size.a;i++)
| ^
|
s138630648 | p03957 | C++ | #include<iostream>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<<"Yes";
... | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
|
s359176333 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
#define _overload3(_1,_2,_3,_4,name,...) name
#define _rep(i,n) _repi(i,0,n)
#define _repi(i,a,b) for(int i=a, i##_len=(b); i<i##_len; ++i)
#define _repis(i,a,b,s) for(int i=a, i##_len(b); i<i##_len; i+=s)
#define REP(...) _overload3(__VA_ARGS__,_repis,_repi,_rep,)(__VA_A... | a.cc: In function 'int main()':
a.cc:12:40: error: 'sz' was not declared in this scope; did you mean 's'?
12 | #define REPARR(i, v) for(int i = 0;i < sz(v);++i)
| ^~
a.cc:25:5: note: in expansion of macro 'REPARR'
25 | REPARR(i,s){
| ^~~~~~
|
s288231260 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
string a;
bool c, f;
int b;
cin>>a;
b=a.size()
for(int i=1;i<b;i++)
{
if(a[i]=='C')
{
for(int j=i+1;j<b;j++)
{
if(a[j]=='F')
{
printf("Yes... | a.cc: In function 'int main()':
a.cc:9:15: error: expected ';' before 'for'
9 | b=a.size()
| ^
| ;
10 | for(int i=1;i<b;i++)
| ~~~
a.cc:10:17: error: 'i' was not declared in this scope
10 | for(int i=1;i<b;i++)
| ^
|
s484453953 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
string a;
bool c, f;
cin>>a;
for(int i=1;i<strlen(a);i++)
{
if(a[i]=='C')
{
for(int j=i+1;j<strlen(a);j++)
{
if(a[j]=='F')
{
printf("Yes");
... | a.cc: In function 'int main()':
a.cc:8:26: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
8 | for(int i=1;i<strlen(a);i++)
| ^
| |
| std::string {aka std::__cxx11::basic_st... |
s491809248 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
string a;
bool c, f;
cin>>a;
for(int i=1;i<=strlen(a);i++)
{
if(a[i]=='C')
{
for(int j=i+1;j<=strlen(a)-i;j++)
{
if(a[j]=='F')
{
printf("Yes");
... | a.cc: In function 'int main()':
a.cc:8:27: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
8 | for(int i=1;i<=strlen(a);i++)
| ^
| |
| std::string {aka std::__cxx11::basi... |
s739567713 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
char s[100000];
int l;
int mian()
{
cin>>s;
l=strlen(s);
for(int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
c... | a.cc: In function 'int mian()':
a.cc:10:7: error: 'strlen' was not declared in this scope
10 | l=strlen(s);
| ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
2 | #include<cstdio>
+++ |+#include <cstring>
3 | #include<... |
s970161585 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<<"Y... | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
|
s988170081 | p03957 | C++ | #include<iostream>
#include<cstring>
using namespace std;
int main(void)
{
bool flag_1(false);
char *str;
gets(str);
for(int i=0;i<strlen(str);i++)
{
if(str[i]=='C')
flag_1=true;
if(str[i]=='F'&&flag_1)
{
printf("YES\n");
return 0;
}
}
printf("NO\n");
return 0;
} | a.cc: In function 'int main()':
a.cc:9:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
9 | gets(str);
| ^~~~
| getw
|
s737968269 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
... | 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... |
s708814977 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
string a;
int main(){
cin>>ch;
bool flag=false;
for(int i=0;i<ch.size();i++){
if(a[i]=='C')flag=true;
if(flag&&a[i]=='F'){
cout<<"Yes"<<endl;
exit(0);
}
}
printf("No\n");
return 0;
} | a.cc: In function 'int main()':
a.cc:5:14: error: 'ch' was not declared in this scope
5 | cin>>ch;
| ^~
|
s934592534 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
... | 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... |
s318791503 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
char a[100000000000];
int main()
{gets(a);
int m=strlen(a);
int p=0,q=0;
for(int i=0;i<m;i++)
if(a[i]=='C')
{p=i;
}
for(int i=m-1;i>0;i--)
if(a[i]=='F')
{q=i;
}
if(p<q)
cout<<"Yes";
else
cout<<"No";
} | a.cc: In function 'int main()':
a.cc:5:2: error: 'gets' was not declared in this scope; did you mean 'getw'?
5 | {gets(a);
| ^~~~
| getw
|
s918299492 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s,ans="";
cin>>s;
int i
for(i=0;i<s.size();i++){
if(s[i]=='C'){
break;
}
if(i==s.size()-2){
cout<<"No"<<endl;
return 0;
}
}
for(int j=i+1;j<s.size();j++){
if(s[j]=='F'){
cout<<"Yes"<<endl;
retu... | a.cc: In function 'int main()':
a.cc:8:3: error: expected initializer before 'for'
8 | for(i=0;i<s.size();i++){
| ^~~
a.cc:8:11: error: 'i' was not declared in this scope
8 | for(i=0;i<s.size();i++){
| ^
|
s360522623 | p03957 | C++ | import re
print ['No', 'Yes'][re.match('.*C.*F.*', raw_input()) != None]
| a.cc:2:8: warning: multi-character character constant [-Wmultichar]
2 | print ['No', 'Yes'][re.match('.*C.*F.*', raw_input()) != None]
| ^~~~
a.cc:2:14: warning: multi-character character constant [-Wmultichar]
2 | print ['No', 'Yes'][re.match('.*C.*F.*', raw_input()) != None]
| ... |
s446773459 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
strint s;
cin>>s;
int x=0;
for(int i=0;i<s.length();i++)
{
if(x==0&&s[i]=='C') x=1;
else if(x==1&&s[i]=='F') x=2;
}
if(x==2) cout<<"Yes"<<endl;
else cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:5:5: error: 'strint' was not declared in this scope; did you mean 'strcat'?
5 | strint s;
| ^~~~~~
| strcat
a.cc:6:10: error: 's' was not declared in this scope
6 | cin>>s;
| ^
|
s622605007 | p03957 | C++ | include<bits/stdc++.h>
using namespace std;
int main()
{
cout<<yes;
} | a.cc:1:1: error: 'include' does not name a type
1 | include<bits/stdc++.h>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'cout' was not declared in this scope
5 | cout<<yes;
| ^~~~
a.cc:5:11: error: 'yes' was not declared in this scope
5 | cout<<yes;
| ^~... |
s408632691 | p03957 | Java | import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner sc=new Scanner(System.in);
String s=sc.nextLine();
if (s.contains("C")) {
s=s.substring(indexOf("C")+1);
if (s.contains("F")) {
System.out.println("Yes");
... | Main.java:7: error: cannot find symbol
s=s.substring(indexOf("C")+1);
^
symbol: method indexOf(String)
location: class Main
1 error
|
s698920701 | p03957 | Java | import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner sc=new Scanner(System.in);
String s=sc.nextLine();
if (s.contains("C")) {
s=s.substring(indexOf("C")+1);
if (s.contains("F") {
System.out.println("Yes");
... | Main.java:8: error: ')' expected
if (s.contains("F") {
^
1 error
|
s820333537 | p03957 | C++ | #include<cstdio>
#include<cstdlib>
char s[1001];
int main() {
srand(time(0));
scanf("%s",s);
printf(rand()%2==0?"Yes":"No");
} | a.cc: In function 'int main()':
a.cc:5:11: error: 'time' was not declared in this scope
5 | srand(time(0));
| ^~~~
a.cc:3:1: note: 'time' is defined in header '<ctime>'; this is probably fixable by adding '#include <ctime>'
2 | #include<cstdlib>
+++ |+#include <ctime>
3 | char s[1001];... |
s235402117 | p03957 | C++ | #include<cstdio>
#include<cstdlib>
int main() {
scanf("%s",&s);
printf(rand()%2==0?"Yes":"No");
} | a.cc: In function 'int main()':
a.cc:4:17: error: 's' was not declared in this scope
4 | scanf("%s",&s);
| ^
|
s118914281 | p03957 | C++ | #include<cstdio>
int main() {
scanf("%s",&s);
printf(rand()%2==0?"Yes":"No");
} | a.cc: In function 'int main()':
a.cc:3:17: error: 's' was not declared in this scope
3 | scanf("%s",&s);
| ^
a.cc:4:12: error: 'rand' was not declared in this scope
4 | printf(rand()%2==0?"Yes":"No");
| ^~~~
|
s644610033 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int mian(){
string s;
cin>>s;
int l=s.size();
for(int i=0;i<l;i++){
if(s[i]=='C'){
for(int j=i+1;j<l;j++){
if(s[j]=='F'){
cout<<"Yes";
return 0;
}
}
}... | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
|
s627592769 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int mian(){
char s[101];
gets(s);
int l=strlen(s);
for(int i=0;i<l;i++){
if(s[i]=='C'){
for(int j=i+1;j<l;j++){
if(s[j]=='F'){
cout<<"Yes";
return 0;
}
}
... | a.cc: In function 'int mian()':
a.cc:5:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
5 | gets(s);
| ^~~~
| getw
|
s165407830 | p03957 | C++ | #include<iostream>
#include<cstring>
using namespace std;
string a,b="CF";
int al,bl;
int main(){
getline(cin,a);
al=a.length();
for(int i=0;i<al;i++)
if(a[i]==b[bl]){
bl++;
if(bl==2)
break;
}
if(bl==2) cout<<"Yes";
else cout<<"No";
... | a.cc: In function 'int main()':
a.cc:19:16: error: '\U0000884c' was not declared in this scope
19 | cout<<endl;行
| ^~
|
s751541197 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
... | 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... |
s760300681 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
string a;
bool c=false,f=false;
int main(){
cin>>a;
for(int i=0;i<a.size(); i++) {
if(a[i]=='C')
c=true;
if(a[i]=='F'&&c=true)
f=true;
}
if(f==true)
cout<<"Yes";
else
cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:10:21: error: lvalue required as left operand of assignment
10 | if(a[i]=='F'&&c=true)
|
s239063176 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
char a[10005];
bool c,f;
int main(){
cin>>a;
for(int i=0;i<a.size(); i++) {
if(a[i]=='C')
c=true;
if(a[i]=='F')
f=true;
}
if(f==true&&c==true)
cout<<"YES";
else
cout<<"NO";
return 0;
} | a.cc: In function 'int main()':
a.cc:7:21: error: request for member 'size' in 'a', which is of non-class type 'char [10005]'
7 | for(int i=0;i<a.size(); i++) {
| ^~~~
|
s070146267 | p03957 | C++ | #include <iostream>
#include <cstring>
using namespace std;
int main()
{
char ch[10000];
cin>>ch;
int l=strlen(ch);
int ma=INT_MAX;
int k,x;
for (int i=1;i<=l;i++) if (ch[i]=='F') k=i;
for (int i=l;i>=1;i--) if (ch[i]=='c') x=i;
if (x<k) cout<<"Yes";
else cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:9:12: error: 'INT_MAX' was not declared in this scope
9 | int ma=INT_MAX;
| ^~~~~~~
a.cc:3:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
2 | #include <cstring>
+++ |+#include <climits>
... |
s645152453 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
cin>>s;
for (int i=0; i<strlen(s); ++i)
if (s[i]=='C') for (int j=i+1; j<=strlen(s); ++j)
if (s[j]=='J') {cout<<"Yes"<<endl; return 0;}
cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:5:10: error: 's' was not declared in this scope
5 | cin>>s;
| ^
|
s871495399 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
... | 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... |
s319404316 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
... | 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... |
s326838715 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
char a[110];
gets(a);
int pd=0;
for(int s=1;s<=n;s++)
{
if(pd==0 && a[s]=='C')
pd=1;
else if(pd==1 && a[s]=='F')
pd=2;
}
if(pd==2)
cout<<"Yes";
else cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
6 | gets(a);
| ^~~~
| getw
a.cc:8:24: error: 'n' was not declared in this scope
8 | for(int s=1;s<=n;s++)
| ^
|
s802324624 | p03957 | C++ | #include<iostream>
#include<cstring>
using namespace std;
int main(){
char a[101];
gets(a);
for(int i=0;i<strlen(a);i++){
if(a[i]=='C'){
for(int j=i+1;j<strlen(a);j++){
if(a[j]=='F'){
cout<<"YES"<<endl;
return 0;
}
}
}
}
cout<<"NO"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
6 | gets(a);
| ^~~~
| getw
|
s076486867 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
if(s[i]=='C')
for(register int j=i+1;j<l;j++)
if(s[j]=='F')
{
cout<<"Yes";
return 0;
... | a.cc: In function 'int mian()':
a.cc:9:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
9 | for(register int i=0;i<l;i++)
| ^
a.cc:11:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
11 | for(regi... |
s982603263 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=strlen(s);
for( int i=0;i<l;i++)
{
if(s[i]=='C')
{
for( int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<... | a.cc: In function 'int mian()':
a.cc:10:7: error: 'strlen' was not declared in this scope
10 | l=strlen(s);
| ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
2 | #include<cstdio>
+++ |+#include <cstring>
3 | #include<... |
s652405929 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int i,j,k,n;
int x;
bool y;
char a[20000];
int main()
{
gets(a);
n=strlen(a);
for(i=0;i<n;i++)
{
if(a[i]=='C')
x=-1;
if(a[i]=='F' && x=-1)
{
cout<<"Yes";
return 0;
}
}
cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:9:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
9 | gets(a);
| ^~~~
| getw
a.cc:15:30: error: lvalue required as left operand of assignment
15 | if(a[i]=='F' && x=-1)
| ~~~~~~... |
s707671526 | p03957 | C++ | #include <iostream>
#include <cstdio>
#include <cstring>
#include <string.h>
using namespace std;
int main()
{
char a[500],stack[500],t;
int top=0;
cin>>a;
for(int i=0;i<strlen(a);i++)
{
if(a[i]=='F'&&top==0)
continue;
else if(a[i]=='C'){
stack[top++]=a[i];
... | a.cc: In function 'int main()':
a.cc:22:15: error: 'strack' was not declared in this scope; did you mean 'stack'?
22 | t=strack[--top];
| ^~~~~~
| stack
|
s433746912 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
string s;
int main()
{
cin>>s;
int len=s.size();
for(int i=0;i<=len;i++)
{
if(s[i])=='C'
{
for(int j=i;j<=len;j++)
{
if(s[j]=='F')
{
printf("Yes\n");
return 0;
}
}
}
}
printf("No\n");
return 0;
} | a.cc: In function 'int main()':
a.cc:11:25: error: expected primary-expression before '==' token
11 | if(s[i])=='C'
| ^~
|
s917988655 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
char a[10000];
bool c, f;
int main()
{
gets(a)
for(int i=0; i<strlen(a); i++)
{
if(a[i]=='C')
c=true;
if(a[i]=='F'&&c==true)
f=true;
}
if(f==true)
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(a)
| ^~~~
| getw
a.cc:8:18: error: 'i' was not declared in this scope
8 | for(int i=0; i<strlen(a); i++)
| ^
|
s021083122 | p03957 | C++ | #include<cstdio>
#include<iostream>
#include<cstring>
using namespace std;
string s;
stack<int>a;
int main()
{
cin>>s;
for(int i=0;i<s.size();i++)
{
if(s[i]=='C')
{
for(int j=i;j<=s.size();j++)
if(s[j]=='F')
{
cout<<"YES";
return 0;
}
}
}
cout<<"NO";
return 0;
} | a.cc:6:1: error: 'stack' does not name a type; did you mean 'obstack'?
6 | stack<int>a;
| ^~~~~
| obstack
|
s816869703 | p03957 | C++ | #include<cstdio>
#include<iostream>
using namespace std;
string s;
stack<int>a;
int main()
{
cin>>s;
for(int i=0;i<s.size();i++)
{
if(s[i]=='C')
{
for(int j=i;j<=s.size();j++)
if(s[j]=='F')
{
cout<<"YES";
return 0;
}
}
}
cout<<"NO";
return 0;
} | a.cc:5:1: error: 'stack' does not name a type; did you mean 'obstack'?
5 | stack<int>a;
| ^~~~~
| obstack
|
s818905955 | p03957 | C++ | #include <bits/stdc++.h>
#include <assert.h>
using namespace std;
int main()
{
string s;
bool c=false;
for(int i=0;i<s.size();i++)
{
if(s[i]=='C')
c=true;
else if(c&&[i]=='F')
{
cout<< "Yes"<< endl;
return 0;
}
}
cout<< "No"<< endl;
return 0;
}
| a.cc: In lambda function:
a.cc:14:31: error: expected '{' before '==' token
14 | else if(c&&[i]=='F')
| ^~
a.cc: In function 'int main()':
a.cc:14:31: error: no match for 'operator==' (operand types are 'main()::<lambda()>' and 'char')
14 | else ... |
s472219685 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian(){
cin>>s;
l=s.size();
for(int i=0;i<l;i++){
if(s[i]=='C') {
for(int j=i+1;j<l;j++) {
if(s[j]=='F'){
cout<<"Yes";
return 0;
... | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
|
s707537012 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian(){
cin>>s;
l=s.size();
for(register int i=0;i<l;i++){
if(s[i]=='C') {
for(register int j=i+1;j<l;j++) {
if(s[j]=='F'){
cout<<"Yes";
... | a.cc: In function 'int mian()':
a.cc:10:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
10 | for(register int i=0;i<l;i++){
| ^
a.cc:12:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
12 | for(re... |
s538918926 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
string a;
int b1=0,b2=0;
cin >> a;
for(int i=0;i<=a.size;i++)
{
if(a[i]=='F' && b1==0)
cout <<"No\n";
if(a[i]=='F')
b2=1;
if(a[i]=='C')
b1=1;
}
if(b1!=1 || b2!=1)
cout <<"No\n";
else
cout <<"Yes\n";
return 0;
} | a.cc: In function 'int main()':
a.cc:8:26: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsign... |
s781850264 | p03957 | C++ | #include<iostream>
#include<cstring>
using namespace std;
int main()
{
string s;
int len;
bool pd=false;
cin>>s;
len=s.length()-1;
for(int a=0;a<=s;a++)
{
if(s[a]=='C')
{
pd=true;
}
else
{
if(s[a]=='F'&&pd==true)
{
cout<<"Yes"<<endl;
return 0;
}
}
}
cout<<"No"<<endl;
} | a.cc: In function 'int main()':
a.cc:11:22: error: no match for 'operator<=' (operand types are 'int' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
11 | for(int a=0;a<=s;a++)
| ~^~~
| | |
| | std::string {aka std::_... |
s017589936 | p03957 | C++ | #include <iostream>
#include <string>
using namespace std;
int main()
{
string a;
cin>>a;
int l=a.size();
bool flag=false;
for(int i=0;i<l;i++)
{
if(a[i]=='C')
{
flag=true;
}
for(int j=i+1;j<l;j++)
if(a[i]=='F')
{
cout<<"Yes"<<endl;
return 0l
}
}
cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:20:12: error: expected ';' before '}' token
20 | return 0l
| ^
| ;
21 | }
| ~
|
s928733368 | p03957 | C++ | #include <iostream>
#include <string>
using namespace std;
int main()
{
string a;
cin>>a;
int l=a.size();
bool flag=false;
for(int i=0;i<l;i++)
{
if(a[i]=='C')
{
flag=true;
}
else if(a[i]=='F'&&flag==tre)
{
cout<<"YES";
cout<<endl;
return 0;
}
... | a.cc: In function 'int main()':
a.cc:16:38: error: 'tre' was not declared in this scope
16 | else if(a[i]=='F'&&flag==tre)
| ^~~
|
s959126517 | p03957 | C++ | #include<cstdio>
#include<cstdlib>
#include<cmath>
#include<cstring>
#include<iostream>
#include<algorithm>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
... | a.cc: In function 'int mian()':
a.cc:14:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
14 | for(register int i=0;i<l;i++)
| ^
a.cc:18:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
18 | for(reg... |
s705302941 | p03957 | C++ | #icnldue<bits/stdc++.h>
using namespace std;
int main(){
char a[100];
scanf("%s",a);
int l=strlen (a),n;
for(int i=0;i<l;i++){
if(a[i]=='C')n=i;
}
bool p=false;
for(int i=n;i<l;i++)if(a[i]=='F')p=true;
if(p)cout<<"Yes";
else cout<<"No";
} | a.cc:1:2: error: invalid preprocessing directive #icnldue; did you mean #include?
1 | #icnldue<bits/stdc++.h>
| ^~~~~~~
| include
a.cc: In function 'int main()':
a.cc:5:5: error: 'scanf' was not declared in this scope
5 | scanf("%s",a);
| ^~~~~
a.cc:6:11: error: 'strlen' was not decl... |
s173078937 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
string a
cin>>a;
if(a.find("CF"))
{
cout<<"Yes"<<endl;
return 0;
}
else cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'cin'
6 | cin>>a;
| ^~~
a.cc:7:8: error: 'a' was not declared in this scope
7 | if(a.find("CF"))
| ^
|
s236674554 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
string a
cin>>a;
if(a.find(CF))
{
cout<<"Yes"<<endl;
return 0;
}
else cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'cin'
6 | cin>>a;
| ^~~
a.cc:7:8: error: 'a' was not declared in this scope
7 | if(a.find(CF))
| ^
a.cc:7:15: error: 'CF' was not declared in this scope
7 | if(a.find(CF))
| ^~... |
s238569347 | p03957 | C++ | #include <map>
#include <set>
#include <list>
#include <cmath>
#include <queue>
#include <stack>
#include <cstdio>
#include <string>
#include <vector>
#include <complex>
#include <cstdlib>
#include <cstring>
#include <numeric>
#include <sstream>
#include <iostream>
#include <algorithm>
#include <functional>
#define ... | a.cc: In function 'int main()':
a.cc:45:23: error: 'N' was not declared in this scope
45 | for (int i = 0; i < N; i++) {
| ^
|
s400148712 | p03957 | C++ | #include<iostream>
#include<cmath>
#include<cstring>
#include<algorithm>
using namespace std;
int main()
{
char a[100];
gets(a);
int x,y=0,z=0;
for(x=0;x<=strlen(a);x++)
{
if(a[x]=='C')
{
y++;
}
if(a[x]=='F')
{
z++;
}
}
if(y>=1&&z>=1)
{
cout<<"Yes"<<endl;
}
else cout<<"No"<<endl;
} | a.cc: In function 'int main()':
a.cc:9:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
9 | gets(a);
| ^~~~
| getw
|
s809844781 | p03957 | C++ | #include<iostream>
#include<cmath>
#include<cstring>
#include<algorithm>
using namespace std;
int main()
{
char a[100];
gets(a);
int x,y=0,z=0;
for(x=0;x<=strlen(a);x++)
{
if(a[x]=='C')
{
y++;
}
if(a[x]=='F')
{
z++;
}
}
if(y>=1&&z>=1)
{
cout<<"Yes"<<endl;
}
else cout<<"No"<<endl;
} | a.cc: In function 'int main()':
a.cc:9:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
9 | gets(a);
| ^~~~
| getw
|
s475525457 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
string temp;
cin>>temp;
int len=temp.size();
bool flag=0;
for(int i=0;i<len;i++)
{
if(flag==0)
{
if(temp[i]=='C') flag==1;
continue
}
if(flag==1)
{
if(temp[i]==... | a.cc: In function 'int main()':
a.cc:16:21: error: expected ';' before '}' token
16 | continue
| ^
| ;
17 | }
| ~
|
s786556667 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
... | 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... |
s901298886 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
... | 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... |
s032858862 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
string a,b="CF";
int al,bl;
int main(){
getline(cin,a);
al=a.length();
for(int i=0;i<al;i++)
if(a[i]==b[bl]){
bl++;
if(bl==2)
break;
}
if(bl==2) cout<<"Yes";
else cout<<"No";
cout<<endl;
... | a.cc: In function 'int main()':
a.cc:17:13: error: expected ';' before '}' token
17 | return 0
| ^
| ;
18 | }
| ~
|
s917927735 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
bool a=false,b=false;
int i=1;
char c[10000];
gets(c);
while(c[i]!=' ')
{
if(c[i]=='C') then a=true;
if(c[i]=='F') then b=true;
i++;
}
if (a&&b) cout<<"Yes";
else cout<<"No";
} | a.cc: In function 'int main()':
a.cc:8:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
8 | gets(c);
| ^~~~
| getw
a.cc:11:31: error: 'then' was not declared in this scope
11 | if(c[i]=='C') then a=true;
| ... |
s388627889 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
int a[10086],x,i,j=0,t=0;
char as[100086]
gets(as);
x=strlen(as);
for(i=0;i<as;i++)
{
if(as[i]=='C')
t=1;
if(as[i]=='F'&&t==1)
{
cout<<"Yes";
return 0;
}
}
cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:8:9: error: expected initializer before 'gets'
8 | gets(as);
| ^~~~
a.cc:9:18: error: 'as' was not declared in this scope; did you mean 'a'?
9 | x=strlen(as);
| ^~
| a
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.