submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s596885597 | 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
|
s710469670 | p03957 | C++ | #include<iostream>
using namespace std;
int main()
{
bool p;
p=1;
string a;
cin>>a;
for(int i=0;i<a.size();i++)
{
if(a[i]=='C')
{
p=0;
break;
}
}
if(p==1)
{
cout<<"Yes"<<endl;
}
if(p==0)
{
for(i=i;i<a.size();... | a.cc: In function 'int main()':
a.cc:23:13: error: 'i' was not declared in this scope
23 | for(i=i;i<a.size();i++)
| ^
|
s752485313 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
string s[100];
for(int i=1;i<=101;i++)
{
cin>>a[i];
if(s[i]=='C'&&a[i+1]=='F')
cout<<"YES";
else cout<<"NO";
}
return 0;
} | a.cc: In function 'int main()':
a.cc:8:14: error: 'a' was not declared in this scope
8 | cin>>a[i];
| ^
a.cc:9:16: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
9 | if(s[i]=='C'&&a[i+1]=='F')
| ... |
s575651460 | 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... |
s622604648 | 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... |
s807528733 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
char a[1000];
bool s=false;
gets(a);
int l;
l=strlen(a);
for(int i=0;i<l;i++)
{
if(a[i]=='C'||a[i]=='c')
{
s=true;
}
if(a[i]=='F'||a[j]=='f'&&s==true)
{
cout<<"YES";
return 0;
}
}
cout<<"N0";
return 0;
} | a.cc: In function 'int main()':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(a);
| ^~~~
| getw
a.cc:16:41: error: 'j' was not declared in this scope
16 | if(a[i]=='F'||a[j]=='f'&&s==true)
| ... |
s928834279 | 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... |
s759525749 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
using llong = long long;
using P = pair<llong, llong>;
#define BE(x) x.begin(), x.end()
const llong inf = llong(1e18)+7;
const llong mod = 1e9+7;
int main(){
string s;
cin >> s;
strin c;
for(auto x : s)
if(x == 'C'){
if((int)s.size() == 0)
c += x;
}else ... | a.cc: In function 'int main()':
a.cc:16:9: error: 'strin' was not declared in this scope; did you mean 'stdin'?
16 | strin c;
| ^~~~~
| stdin
a.cc:20:33: error: 'c' was not declared in this scope
20 | c += x;
| ... |
s625028925 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
using llong = long long;
using P = pair<llong, llong>;
#define BE(x) x.begin(), x.end()
const llong inf = llong(1e18)+7;
const llong mod = 1e9+7;
int main(){
string s;
cin >> s;
string c;
for(auto x : s)
if(x == 'C'){
if((int)s.size() == 0)
c += x:
}else... | a.cc: In function 'int main()':
a.cc:20:39: error: expected ';' before ':' token
20 | c += x:
| ^
| ;
|
s286893601 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
using llong = long long;
using P = pair<llong, llong>;
#define BE(x) x.begin(), x.end()
const llong inf = llong(1e18)+7;
const llong mod = 1e9+7;
int main(){
string s;
cin >> s;
strin c;
for(auto x : s)
if(x == 'C'){
if((int)s.size() == 0)
c += x:
}else ... | a.cc: In function 'int main()':
a.cc:16:9: error: 'strin' was not declared in this scope; did you mean 'stdin'?
16 | strin c;
| ^~~~~
| stdin
a.cc:20:33: error: 'c' was not declared in this scope
20 | c += x:
| ... |
s309499356 | 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]=='C')
cnt=1;
if(a[i]=='C')
cnt=1;
if(a[i]=='F'&&cnt==1)
cout << "Yes";
cout << "No";
return 0;
} | a.cc: In function 'int main()':
a.cc:13:10: error: 'i' was not declared in this scope
13 | if(a[i]=='C')
| ^
a.cc:15:10: error: 'i' was not declared in this scope
15 | if(a[i]=='C')
| ^
a.cc:17:10: error: 'i' was not declared in this scope
17 | if(a[i]=='F'&&cnt==1)
... |
s934288725 | p03957 | C++ | #include <cstdio>
#include <cstring>
int main() {
char x[100005];
scanf("%s",x);
bool c=false,f=false;
for(int i=0;i<strlen(x);i++)
{
if(a[i]=='C') c=1;
if(a[i]=='F') f=1;
}
if(c&&f) printf("Yes");
else printf("No");
return 0;
} | a.cc: In function 'int main()':
a.cc:9:20: error: 'a' was not declared in this scope
9 | if(a[i]=='C') c=1;
| ^
a.cc:10:20: error: 'a' was not declared in this scope
10 | if(a[i]=='F') f=1;
| ^
|
s930094544 | 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... |
s629341222 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
string s;
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";
... | a.cc: In function 'int mian()':
a.cc:8:14: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
8 | l=strlen(s);
| ^
| |
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/1... |
s452305195 | p03957 | C++ | #include<bits/stdc++.h>
using namesapce std;
string s;
int main()
{
cin>>s;
for(int i=0;i<s.length();i++)
{
if(s[i]=='C')
{
for(int j=i+1;j<s.length();j++)
{
if(s[j]=='F')
{
cout<<"Yes"<<endl;
ret... | a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
2 | using namesapce std;
| ^~~~~~~~~
a.cc:3:1: error: 'string' does not name a type; did you mean 'stdin'?
3 | string s;
| ^~~~~~
| stdin
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this sco... |
s742762253 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
string s;
int a=0;
cin>>s;
for(int i=0;i<s.length();i++)
{
if(s[i]=='C')
a=1;
if(a[i]=='F'&&a=1)
{
cout<<"Yes";
return 0;
}
}
cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:12:21: error: invalid types 'int[int]' for array subscript
12 | if(a[i]=='F'&&a=1)
| ^
|
s226839773 | p03957 | C | char *S[]={"No","Yes"};
char C="CF";
char c;
int f;
int main(){
while((c=getchar())!=10){
f+=c==C[f];
}
f=f==2;
puts(S[f]);
} | main.c:2:8: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
2 | char C="CF";
| ^~~~
main.c:2:8: error: initializer element is not computable at load time
main.c: In function 'main':
main.c:6:12: error: implicit declaration of function 'getchar'... |
s210766924 | p03957 | C | char *S[]={"No","Yes"};
char C="CF";
char f;
int main(){
while((c=getchar())!=10){
f+=c==C[f];
}
f=f==2;
puts(S[f]);
} | main.c:2:8: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
2 | char C="CF";
| ^~~~
main.c:2:8: error: initializer element is not computable at load time
main.c: In function 'main':
main.c:5:10: error: 'c' undeclared (first use in this function... |
s148522732 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
string s[100];
for(int i=1;i<=101;i++)
{
cin>>a[i];
if(s[i]=='C'&&a[i+1]=='F')
cout<<"YES";
else cout<<"NO";
}
return 0;
} | a.cc: In function 'int main()':
a.cc:8:14: error: 'a' was not declared in this scope
8 | cin>>a[i];
| ^
a.cc:9:16: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
9 | if(s[i]=='C'&&a[i+1]=='F')
| ... |
s314196688 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
string s[100];
for(int i=1;i<=101;i++)
{
cin>>a[i];
if(a[i]=='C'&&a[i+1]=='F')
cout<<"YES";
else cout<<"NO";
}
return 0;
} | a.cc: In function 'int main()':
a.cc:8:14: error: 'a' was not declared in this scope
8 | cin>>a[i];
| ^
|
s792279297 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
string s;
int main ()
{
cin>>s;
int flag1=0,flag2=0;
for(int i=0;i<=s.size()-1;++i)
{
if(s[i]=='C') flag1=1;
if(s[i]=='F' && flag1) flag2=1;
}
if(flag2) puts("Yes");
else put("No");
return 0;
} | a.cc: In function 'int main()':
a.cc:14:14: error: 'put' was not declared in this scope; did you mean 'putw'?
14 | else put("No");
| ^~~
| putw
|
s127007223 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
string s;
int main ()
{
cin>>s;
int flag1=0,flag2=0;
for(int i=0;i<=s.size-1;++i)
{
if(s[i]=='C') flag1=1;
if(s[i]=='F' && flag1) flag2=1;
}
if(flag2) puts("Yes");
else put("No");
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... |
s299535679 | 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... |
s893554356 | 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<<"Y... | 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... |
s691736164 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int main()
{
cin>>s;
l=s.leng();
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')
{
printf("Yes");... | a.cc: In function 'int main()':
a.cc:10:9: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'leng'
10 | l=s.leng();
| ^~~~
a.cc:11:23: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
11 | for (register int i(0);i<l;++i)... |
s475052996 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
char a[1001],c=0,f=0;
gets(a);
for(i=0;i<strlen(a);i++){
if(a[i]=='C')
c=1;
if(c==1 and a[i]=='F')
f=1;
}
if(f=1)
cout<<"Yes";
else
cout<<"No";
return 0;
}
| a.cc: In function 'int main()':
a.cc:5:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
5 | gets(a);
| ^~~~
| getw
a.cc:6:13: error: 'i' was not declared in this scope
6 | for(i=0;i<strlen(a);i++){
| ^
|
s607390597 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
string a;
int f;
cin>>a;
for(int i=1;i<=n.length();i++)
{
if(a[i]=='C')
f=0;
if(!f&&a[i]=='F')
{
cout<<"Yes";
return 0;
}
}
cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:8:24: error: 'n' was not declared in this scope
8 | for(int i=1;i<=n.length();i++)
| ^
|
s221766248 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
string n;
int f;
cin>>n;
for(i=1;i<=n.length();i++)
{
if(a[i]=='C')
f=0;
if(!f&&a[i]=='F')
{
cout<<"Yes";
return 0;
}
}
cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:8:13: error: 'i' was not declared in this scope
8 | for(i=1;i<=n.length();i++)
| ^
a.cc:10:20: error: 'a' was not declared in this scope
10 | if(a[i]=='C')
| ^
a.cc:12:24: error: 'a' was not declared in this s... |
s648802978 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
string n;
int f;
cin>>n;
for(i=1;i<=n.length;i++)
{
if(a[i]=='C')
f=0;
if(!f&&a[i]=='F')
{
cout<<"Yes";
return 0;
}
}
cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:8:13: error: 'i' was not declared in this scope
8 | for(i=1;i<=n.length;i++)
| ^
a.cc:10:20: error: 'a' was not declared in this scope
10 | if(a[i]=='C')
| ^
a.cc:12:24: error: 'a' was not declared in this sco... |
s354690858 | p03957 | C++ | #include<bits/stdc++.h>
#include<conio.h>
using namespace std;
int main() {
char str[10001];
bool f1=false,f2=false;
scanf("%s",str+1);
for(int i=1; i<=strlen(str+1); i++) {
if(str[i]=='C'&&!f2)f1=true;
if(str[i]=='F'&& f1)f2=true;
}
cout<<(f1&&f2?"YES":"NO");
return 0;
} | a.cc:2:9: fatal error: conio.h: No such file or directory
2 | #include<conio.h>
| ^~~~~~~~~
compilation terminated.
|
s350381275 | p03957 | C++ | implicit none
integer(8) :: i,l
character :: s*105
logical :: c,f
read*,s
c = .false.
f = .false.
l = len(trim(s))
do i = 1,l
if(s(i:i)=='C')then
c = .true.
else if(s(i:i)=='F' .and. c)then
f = .true.
endif
enddo
if(c .and. f)then
write(*,'(a)')'Yes'
else
write(*,'(a)')'No'
endif
end | a.cc:17:17: warning: multi-character character constant [-Wmultichar]
17 | write(*,'(a)')'Yes'
| ^~~~~
a.cc:17:23: warning: multi-character character constant [-Wmultichar]
17 | write(*,'(a)')'Yes'
| ^~~~~
a.cc:19:17: warning: multi-character chara... |
s831815496 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int l,i,j;
char a[1100];
int main(){
gets(a);
l=srelen(a);
for(i=0;i<l;i++){
if(a[i]=='C')break;
}
for(j=i+1;j<l;j++){
if(a[i]=='F'){
cout<<"Yes";
return 0;
}
}
cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:6:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
6 | gets(a);
| ^~~~
| getw
a.cc:7:7: error: 'srelen' was not declared in this scope; did you mean 'strnlen'?
7 | l=srelen(a);
| ^~~~~~
| strnlen
|
s923807418 | p03957 | C++ | #include<bits/stdc++.h>
main()
{
char a[123];gets(a);
register int i=0;
for(;a[i];++i)if(a[i]=='C')break;
if(!a[i]){puts("No");return 0;}
for(++i;a[i];++i)if(a[i]=='F')break;
if(!a[i]){puts("No");return 0;}
puts("Yes");
} | a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | main()
| ^~~~
a.cc: In function 'int main()':
a.cc:4:17: error: 'gets' was not declared in this scope; did you mean 'getw'?
4 | char a[123];gets(a);
| ^~~~
| getw
a.cc:... |
s933157168 | p03957 | C++ | #include<stdio.h>
main()
{
char a[123];gets(a);
register int i=0;
for(;a[i];++i)if(a[i]=='C')break;
if(!a[i]){puts("No");return 0;}
for(++i;a[i];++i)if(a[i]=='F')break;
if(!a[i]){puts("No");return 0;}
puts("Yes");
} | a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | main()
| ^~~~
a.cc: In function 'int main()':
a.cc:4:17: error: 'gets' was not declared in this scope; did you mean 'getw'?
4 | char a[123];gets(a);
| ^~~~
| getw
a.cc:... |
s445728485 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<cstring>
#include<string>
using namespace std;
char s[105];
int mian()
{
cin>>s;
int lens=strlen(s);
for(int i=0;i<lens;i++)
{
if(s[i]=='C')
{
for(int j=i+1;j<lens;j++)
{
if(s[j]=='F')
{
... | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
|
s631212372 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<cstring>
#include<string>
using namespace std;
char s[105];
int mian()
{
cin>>s;
int lens=strlen(s);
for(int i=0;i<lens;i++)
{
if(s[i]=='C')
{
for(int j=i+1;j<lenc;j++)
{
if(s[j]=='F')
{
... | a.cc: In function 'int mian()':
a.cc:15:29: error: 'lenc' was not declared in this scope; did you mean 'lens'?
15 | for(int j=i+1;j<lenc;j++)
| ^~~~
| lens
|
s315945675 | 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... |
s409710342 | p03957 | C++ | #include<iostream>
#include<cstring>
using namespace std;
int main()
{
char str[101];
gets(str);
for(int i=0;i<strlen(str);i++){
if(str[i]=='C'){
for(int j=i+1;j<strlen(str);j++){
if(str[j]=='F'){
cout<<"Yes"<<"\n";
return 0;
}
}
}
}
cout<<"No"<<"\n";
return 0;
} | a.cc: In function 'int main()':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(str);
| ^~~~
| getw
|
s449798267 | p03957 | C++ | #include<iostream>
#include<cstring>
using namespace std;
int main()
{
char str[101];
gets(str);
for(int i=0;i<strlen(str);i++){
if(str[i]=='C'){
for(int j=i+1;j<strlen(str);j++){
if(str[j]=='F'){
cout<<"Yes"<<"\n";
return 0;
}
}
}
}
cout<<"No"<<"\n";
return 0;
} | a.cc: In function 'int main()':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(str);
| ^~~~
| getw
|
s628619932 | 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";... | a.cc:1:1: error: 'include' does not name a type
1 | include<iostream>
| ^~~~~~~
a.cc:5:1: error: 'string' does not name a type
5 | string a,b="CF"; //打表
| ^~~~~~
a.cc: In function 'int main()':
a.cc:9:13: error: 'cin' was not declared in this scope
9 | getline(cin,a);
| ^~~... |
s702474208 | p03957 | C++ | #include<iostream>
#include<cstring>
using namespace std;
bool a=0,b=0,c,d,e,f;
int main()
{ char s[100];
gets(s);
for(int i=0;i<strlen(s);++i)
{if(s[i]=='C')a=1,c=i,e=c;
if(s[i]=='F')b=1,d=i,f=d;
}
if(a==1&&b==1&&e<f)
cout<<"Yes"<<endl;
if(a!=1||b!=1||e>f)
cout<<"N0"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(s);
| ^~~~
| getw
|
s858448837 | p03957 | C++ | #include<iostream>
#include<cstring>
using namespace std;
bool a=0,b=0,c,d,e,f;
int main()
{ char s[100];
gets(s);
for(int i=0;i<strlen(s);++i)
{if(s[i]=='C')a=1,c=i,e=c;
if(s[i]=='F')b=1,d=i,f=d;
}
if(a==1&&b==1&&e<f)
cout<<"Yes"<<endl;
if(a!=1||b!=1||e>f)
cout<<"N0"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
8 | gets(s);
| ^~~~
| getw
|
s179626743 | p03957 | C++ | #include<iostream>
#include<algorithm>
#include<cstring>
using namespace std;
int ans;
int main()
{
string a;
cin>>a;
int k=a.length();
for(int i=1;i<=k;i++)
{
if(a[i]=='C'&&ans=0)
ans=1;
if(a[i]=='F'&&ans==1)
ans=2;
}
if(ans==2)
cout<<"Yes"<<endl;
else
cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:13:29: error: lvalue required as left operand of assignment
13 | if(a[i]=='C'&&ans=0)
|
s873482428 | p03957 | C++ | #include<iostream>
#include<algorithm>
#include<cstring>
using namespace std;
int ans;
int main()
{
string a;
cin>>a;
int k=a.length();
for(int i=1;i<=k;i++)
{
if(a[i]=='C')
ans=1;
if(a[i]=='F'&&ans=1)
ans=2;
}
if(ans==2)
cout<<"Yes"<<endl;
else
cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:15:29: error: lvalue required as left operand of assignment
15 | if(a[i]=='F'&&ans=1)
|
s327283237 | p03957 | C++ | #include"/dev/console" | a.cc:1:9: fatal error: /dev/console: No such file or directory
1 | #include"/dev/console"
| ^~~~~~~~~~~~~~
compilation terminated.
|
s267979434 | 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... |
s537166773 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
string s;
int mian()
{
int len;
cin>>str;
l=str.size();
for(i=0;i<l;i++)
{
if(str[i]=='C')
{
for(j=i+1;j<l;j++)
{
if(str[j]=='F')
{
printf("Yes");
... | a.cc: In function 'int mian()':
a.cc:7:10: error: 'str' was not declared in this scope; did you mean 'std'?
7 | cin>>str;
| ^~~
| std
a.cc:8:5: error: 'l' was not declared in this scope
8 | l=str.size();
| ^
a.cc:9:9: error: 'i' was not declared in this scope
... |
s608607722 | p03957 | C++ | #include<bits\stdc++.h>
using namespace std;
string a;
int main()
{
cin>>a;
int n,s=0;
n=a.size();
for(int i=0;i<n;++i)
{
if(a[i]=='C')
{
for(int j=i+1;j<n;j++)
{
if(a[j]=='F')
{
s++;
}
}
}
}
if(s!=0)
cout<<... | a.cc:1:9: fatal error: bits\stdc++.h: No such file or directory
1 | #include<bits\stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s481080929 | p03957 | C++ | #include<bits\stdc++.h>
using namespace std;
string a;
int main()
{
cin>>a;
int n,s=0;
n=a.size();
for(int i=0;i<n;++i)
{
if(a[i]=='C')
{
for(int j=i+1;j<n;j++)
{
if(a[j]=='F')
{
s++;
}
}
}
}
if(s!=0)
cout<<... | a.cc:1:9: fatal error: bits\stdc++.h: No such file or directory
1 | #include<bits\stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s665154929 | 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";
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
|
s192529034 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
bool x=0,y=0;
char a;
int main()
{
while(a!=EOF)
{
a=getchar();
if(a=='C') x=1;
if(a=='F'&&x) y=1;
}
if(x&&y) cout<<"Yes";
else cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:7:5: error: 'while\U0000ff08a' was not declared in this scope
7 | while(a!=EOF)
| ^~~~~~~~
|
s965672933 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
bool x=0,y=0;
char a;
int main()
{
while(a!='\n')
{
a=getchar();
if(a=='C') x=1;
if(a=='F'&&x) y=1;
}
if(x&&y) cout<<"Yes";
else cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:7:5: error: 'while\U0000ff08a' was not declared in this scope
7 | while(a!='\n')
| ^~~~~~~~
|
s976863805 | 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... |
s676414883 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main ()
{
string a;
cin>>a;
int b=0,c=0;
for(int i=0;i<a.length();i++)
{
if(a[i]=='C') b=i;
if(a[i]=='F') c=i;
}
if(a=='CF') cout<<"Yes";
if(b==0||c==0) cout<<"No";
else if(b>c) cout<<"No";
else cout<<"Yes";
} | a.cc:13:15: warning: multi-character character constant [-Wmultichar]
13 | if(a=='CF') cout<<"Yes";
| ^~~~
a.cc: In function 'int main()':
a.cc:13:13: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
13 | if(a... |
s666556337 | 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... |
s694139534 | 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... |
s062332142 | 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"<<endl;
return 0;
}
}
}
}
cout<<"No"<<endl;
retur... | a.cc: In function 'int mian()':
a.cc:10:26: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
10 | for(register int i=0; i<l; i++) {
| ^
a.cc:12:42: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
12 | ... |
s049912413 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
bool a==false;
char s[500];
int main()
{
cin>>s;
for(int i=0;i<strlen(s);i++)
{
if(s[i]=='F' && a==true)
{
cout<<"YES";
return 0;
}
if(s[i]=='C')
{
a=true;
}
}
cout<<"NO";
return 0;
} | a.cc:3:7: error: expected initializer before '==' token
3 | bool a==false;
| ^~
a.cc: In function 'int main()':
a.cc:10:33: error: 'a' was not declared in this scope
10 | if(s[i]=='F' && a==true)
| ^
a.cc:17:25: error: 'a' was not declared in this... |
s885453612 | 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... |
s754815791 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
string a;
int l;
int main() {
cin>>a;
l=length(a);
for(int i=0; i<l; i++) {
if(s[i]=='C') {
for(int j=i+1; j<l; j++) {
if(s[j]=='F') {
cout>>"YES";
return 0;
}
}
}
}
cout<<"NO";
return 0;
} | a.cc: In function 'int main()':
a.cc:7:11: error: 'length' was not declared in this scope
7 | l=length(a);
| ^~~~~~
a.cc:10:20: error: 's' was not declared in this scope
10 | if(s[i]=='C') {
| ^
a.cc:13:45: error: no match for 'operator>>' (operand... |
s713240274 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
char s[1005];
int main()
{
gets(s);
int g=str.len(s);
for(int i=0;i<g;i++)
{
if(s[i]='C')
{
for(int j=i;j<g;j++)
{
if(s[j]=='F')
{
printf("Yes");
... | a.cc: In function 'int main()':
a.cc:6:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
6 | gets(s);
| ^~~~
| getw
a.cc:7:11: error: 'str' was not declared in this scope; did you mean 'std'?
7 | int g=str.len(s);
| ^~~
| std
|
s908638341 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
char s[1005];
int main()
{
gets(s);
int g=str.len();
for(int i=0;i<g;i++)
{
if(s[i]='C')
{
for(int j=i;j<g;j++)
{
if(s[j]=='F')
{
printf("Yes");
r... | a.cc: In function 'int main()':
a.cc:6:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
6 | gets(s);
| ^~~~
| getw
a.cc:7:11: error: 'str' was not declared in this scope; did you mean 'std'?
7 | int g=str.len();
| ^~~
| std
|
s168883620 | p03957 | C | #include<stdio.h>
#include<string.h>
using namespace std;
char a;
int flag;
int main()
{
a=getchar();
while(a!=10)
{
if(flag==0)
{
if(a='C')
flag++;
}
else
if(a='F')
flag++;
a=getchar();
}
if(flag>=2)
print... | main.c:3:1: error: unknown type name 'using'
3 | using namespace std;
| ^~~~~
main.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
3 | using namespace std;
| ^~~
|
s357610830 | p03957 | C | #include<stdio.h>
#include<algorithm>
#include<cstring>
using namespace std;
char a;
int flag;
int main()
{
a=getchar();
while(a!=10)
{
if(flag==0)
{
if(a='C')
flag++;
}
else
if(a='F')
flag++;
a=getchar();
}
if(f... | main.c:2:9: fatal error: algorithm: No such file or directory
2 | #include<algorithm>
| ^~~~~~~~~~~
compilation terminated.
|
s003738370 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string a;
int idx;
bool f1,f2;
f1=f2=false;
cin>>a;
for(int i=0;i<a.size();i++){
if(a[i]=='C')f1=1,idx=i,break;
}
if(!f1){
cout<<"No"<<endl;
return 0;
}else{
for(int i=idx;i<a.size();i++){
... | a.cc: In function 'int main()':
a.cc:10:33: error: expected primary-expression before 'break'
10 | if(a[i]=='C')f1=1,idx=i,break;
| ^~~~~
a.cc:17:31: error: expected primary-expression before 'break'
17 | if(a[i]=='F')f2=1,break;
| ... |
s504035379 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string a;
int idx;
bool f1,f2;
f1=f2=false;
cin>>a;
for(int i=0;i<n.size();i++){
if(a[i]=='C')f1=1,idx=i,break;
}
if(!f1){
cout<<"No"<<endl;
return 0;
}else{
for(int i=idx;i<a.size();i++){
... | a.cc: In function 'int main()':
a.cc:9:19: error: 'n' was not declared in this scope
9 | for(int i=0;i<n.size();i++){
| ^
a.cc:10:33: error: expected primary-expression before 'break'
10 | if(a[i]=='C')f1=1,idx=i,break;
| ^~~~~
a.cc:17:31:... |
s505468278 | p03957 | C++ | #include<cstdio>
#include<cmath>
#include<algorithm>
#include<cctype>
#include<cstring>
#include<queue>
#include<iostream>
#include<map>
using namespace std;
typedef long long ll;
typedef double lf;
typedef unsigned un;
typedef int in;
#define mian main
#define maxn 10000+10
#define maxm 10000+10
#define _(a) read(a)
#... | a.cc: In function 'in main()':
a.cc:50:18: error: expected ';' before 'Y'
50 | if(a)*O++'Y',*O++='e',*O++='s';
| ^~~
| ;
|
s546517158 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
const int M=105;
char a[M];
bool C=false,F=false;
int main()
{
gets(a);
int lne=strlen(a);
for (int i=0;i<len;++i)
if (a[i]=='C')
c=true;
else if (C&&a[i]=='F')
F=true;
if (F)
cout<<"Yes";
else
cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:10:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
10 | gets(a);
| ^~~~
| getw
a.cc:12:24: error: 'len' was not declared in this scope; did you mean 'lne'?
12 | for (int i=0;i<len;++i)
| ... |
s842120218 | p03957 | C++ | #include <iostream>
#include <cstring>
using namespace std;
int mian(){
char s[105];
cin >> s;
int len = strlen(s);
bool flagc = false;
bool flagf = false;
bool flags = false;
for(int i = 0; i < len; i++){
if(s[i] == 'C'){
flagc = true;
}
if(s[i] == 'F'){
flagf = true;
}
if(flagc == true && flagf... | /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
|
s175774353 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
char s[105];
int i,j;
int main()
{
gets(s);
for(i=0;i<strlen(s);i++)
if(a[i]=='C')
{
for(j=i+1;j<strlen(s);j++)
if(a[j]=='F')
{
cout<<"Yes";
return 0;
}
}
cout<<"No";
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(s);
| ^~~~
| getw
a.cc:9:8: error: 'a' was not declared in this scope
9 | if(a[i]=='C')
| ^
|
s653274905 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
string s;
int l;
int mian() {
cin>>s;
l=s.size();
for(register int i=0; i<l; i++) {
if(s[i]=='C') {
for(register int j=i+1; j<l; j++) {
if(s[j]=='F') {
cout<<"Yes";
return 0;
}
}
}
}
cout<<"No";
return 0;
} | a.cc: In function 'int mian()':
a.cc:8:26: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
8 | for(register int i=0; i<l; i++) {
| ^
a.cc:10:42: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
10 | ... |
s409149778 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<cstring>
using namespace std;
int main(){
char a[10000];
int b=0,c=0,l=0;
cin>>a;
b=strlen(a);
for(int i=0;i<b;i++){
if(a[i]=='C'){
c++;
l=1;
}else if(a[i]=='F'){
c++;
l=0;
}
}
if(c>0&&l=0) cout<<"Yes"<<endl;
else cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:19:15: error: lvalue required as left operand of assignment
19 | if(c>0&&l=0) cout<<"Yes"<<endl;
| ~~~^~~
|
s554280352 | p03957 | C++ | #include<iostream>
#include<cstring>
using namespace std;
char s[101];
int i,k,j;
int main(){
cin>>s;
for(i=0;i<strlen(s);i++){
if(s[i]=='C'){
for(j=i+1;j<l;j++){
if(s[j]=='F'){
cout<<"Yes";
return 0;
}
}
}
}
cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:10:37: error: 'l' was not declared in this scope
10 | for(j=i+1;j<l;j++){
| ^
|
s668222929 | p03957 | C++ | #include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main(void){
int i, j;
string s;
cin >> s;
for(int p: s){
if(s.at(p)=='C'){
i = p;
}
if(s.at(p)=='F'){
j = q;
}
}
if(i<j){
cout << "Yes" << endl;
}else{
cout << "No" << endl;
}
retur... | a.cc: In function 'int main()':
a.cc:15:11: error: 'q' was not declared in this scope
15 | j = q;
| ^
|
s569046683 | p03957 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <thread>
#include <chrono>
#include <queue>
using namespace std;
int main(void){
string s;
cin >> s;
int c_location = -1;
int f_location = -1;
for(int i=0: s){
if(s.at(i)=='C'){
for(int ... | a.cc: In function 'int main()':
a.cc:18:18: error: initializer in range-based 'for' loop
18 | for(int i=0: s){
| ^
a.cc:20:34: error: initializer in range-based 'for' loop
20 | for(int j=i:s){
| ^
|
s121131364 | p03957 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <cmath>
#include <cstdlib>
#include <thread>
#include <chrono>
using namespace std;
int main(void){
string s;
cin >> s;
int n = s.length();
for(char c: n){
if(c=='C'){
for(char d=c:n){
if(d=='F'){
cout << "Yes" << ... | a.cc: In function 'int main()':
a.cc:16:21: error: 'begin' was not declared in this scope; did you mean 'std::begin'?
16 | for(char c: n){
| ^
| std::begin
In file included from /usr/include/c++/14/string:53,
from /usr/include/c++/14/bits/l... |
s690514483 | p03957 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <cmath>
#include <cstdlib>
#include <thread>
#include <chrono>
using namespace std;
int main(void){
string s;
cin >> s;
int n = s.length();
for(char c: n{
if(c=='C'){
for(char d=c:n{
if(d=='F'){
cout << "Yes" << en... | a.cc: In function 'int main()':
a.cc:16:21: error: 'begin' was not declared in this scope; did you mean 'std::begin'?
16 | for(char c: n{
| ^
| std::begin
In file included from /usr/include/c++/14/string:53,
from /usr/include/c++/14/bits/lo... |
s472952877 | p03957 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <cmath>
#include <cstdlib>
#include <thread>
#include <chrono>
using namespace std;
int main(void){
string s;
cin >> s;
for(char c: s.length()){
if(c=='C'){
for(char d=c:s.length()){
if(d=='F'){
cout << "Yes" << end... | a.cc: In function 'int main()':
a.cc:15:30: error: 'begin' was not declared in this scope; did you mean 'std::begin'?
15 | for(char c: s.length()){
| ^
| std::begin
In file included from /usr/include/c++/14/string:53,
from... |
s442380305 | p03957 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <cmath>
#include <cstdlib>
#include <thread>
#include <chrono>
using namespace std;
int main(void){
string s;
cin >> s;
for(char c: n){
if(c=='C'){
for(char d=c:n){
if(d=='F'){
cout << "Yes" << endl;
exit(0);
... | a.cc: In function 'int main()':
a.cc:16:21: error: 'n' was not declared in this scope
16 | for(char c: n){
| ^
a.cc:18:35: error: initializer in range-based 'for' loop
18 | for(char d=c:n){
| ^
|
s591277997 | 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... |
s704681857 | 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... |
s437160375 | 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... |
s793127864 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
char p[3]="CF",c[1005];
int main()
{ ios::sync_with_stdio(false);
int x=0;
gets(c);
for(int i=0;i<strlen(c);i++)
if(c[i]==p[x]) x++;
if(x>=2) 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(c);
| ^~~~
| getw
|
s546402581 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
char p[3]=" CF",c[1005];
int main()
{ ios::sync_with_stdio(false);
int x=0;
gets(c);
for(int i=0;i<strlen(c);i++)
if(c[i]==p[x]) x++;
if(x>=2) cout<<"YES"<<endl;
else cout<<"NO"<<endl;
return 0;
} | a.cc:3:11: error: initializer-string for 'char [3]' is too long [-fpermissive]
3 | char p[3]=" CF",c[1005];
| ^~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(c);
| ^~~~
| getw
|
s344332910 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
char p[6]=" CF",c[1005];
int main()
{ ios::sync_with_stdio(false);
int x=0;
gets(c);
for(int i=0;i<strlen(c);i++)
if(c[i]==p[x]) x++;
if(x>=2) 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(c);
| ^~~~
| getw
|
s553684628 | 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";
re... | 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... |
s657754918 | 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... |
s666216477 | 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";
re... | 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... |
s214429881 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int C_POS=-1;
int rp;
char command[10000];
int main()
{
gets(command);
for(int i=0;i<strlen(command);i++)
{
if(command[i]=='C')
{
rp++;
first_C=!first_C;
C_POS=i;
}
if(command[i]=='F' && i>C_POS && C_POS!=-1)
{
rp++;
first_F=!first_F;
}
if(rp=... | a.cc: In function 'int main()':
a.cc:8:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
8 | gets(command);
| ^~~~
| getw
a.cc:14:25: error: 'first_C' was not declared in this scope
14 | first_C=!first_C;
| ... |
s975025383 | 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... |
s191554595 | 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... |
s989109162 | 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... |
s093973424 | 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... |
s757401273 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
char s[10001];
int l;
int main()
{
scanf("%s ",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')
{
printf("Yes\n");
... | a.cc: In function 'int main()':
a.cc:7:19: error: expected ';' before 'l'
7 | scanf("%s ",s)
| ^
| ;
8 | l=strlen(s);
| ~
|
s573942408 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
char n[50001]
int main()
{
int i,ans=0,sum=0;
gets(n);
int len=strlen(n);
for(i=0;i<len;++i)
{
if(n[i]='C')
ans++;
if(n[i]='F')
sum++;
}
if(ans!=0&&sum!=0)
cout<<"yes";
else
cout<<"no";
... | a.cc:4:1: error: expected initializer before 'int'
4 | int main()
| ^~~
|
s834659946 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
void hh(){
return 0;
}
int main(){
int a,b;
a=b=0;
char aa[10005];
gets(aa);
for(int i=0;i<strlen(aa);i++){
if(aa[i]=='C'){
for(int j=i;j<strlen(aa);j++){
if(aa[j]=='F'){
cout<<"Yes"<<endl;
... | a.cc: In function 'void hh()':
a.cc:4:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
4 | return 0;
| ^
a.cc: In function 'int main()':
a.cc:10:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
10 | gets(aa);
| ^~~~
... |
s922371285 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
void hh(){
return 0;
}
int main(){
int a,b;
a=b=0;
char aa[10005];
gets(aa);
for(int i=0;i<strlen(aa);i++){
if(aa[i]=='C'){
for(int j=i;j<l;j++){
if(aa[j]=='F'){
cout<<"Yes"<<endl;
... | a.cc: In function 'void hh()':
a.cc:4:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
4 | return 0;
| ^
a.cc: In function 'int main()':
a.cc:10:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
10 | gets(aa);
| ^~~~
... |
s790088465 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
void hh(){
return 0;
}
int main(){
int a,b;
a=b=0;
char aa[10005];
gets(aa);
for(int i=0;i<strlen(aa);i++){
if(aa[i]=='C'){
for(int j=i;j<l;j++){
if(aa[j]=='F'){
cout<<"Yes"<<endl;
... | a.cc: In function 'void hh()':
a.cc:4:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
4 | return 0;
| ^
a.cc: In function 'int main()':
a.cc:10:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
10 | gets(aa);
| ^~~~
... |
s160025961 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a,b;
a=b=0;
char aa[10005];
gets(a);
for(int i=0;i<strlen(aa);i++){
if(aa[i]=='C') a++;
if(aa[i]=='F') b++;
}
if(a!=0&&b!=0) cout<<"Yes"<<endl;
else cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(a);
| ^~~~
| getw
|
s146308169 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a,b;
a=b=0;
char aa[10005];
gets(a);
for(int i=0;i<strlen(a);i++){
if(aa[i]=='C') a++;
if(aa[i]=='F') b++;
}
if(a!=0&&b!=0) cout<<"Yes"<<endl;
else cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(a);
| ^~~~
| getw
a.cc:8:26: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
8 | for(int i=0;i<strlen(a);i++){
| ^... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.