submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3 values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s150901872 | p03957 | C++ | #include<iostream>
#include<string.h>
using namespace std;
int main()
{
string s;
bool b;
int l=s.sizeof(),y;
for(int i=0;i<=l;i++)
{
if(s[i]=='C')
{
bool=1;
}
if()
}
return 0;
} | a.cc: In function 'int main()':
a.cc:8:17: error: expected unqualified-id before 'sizeof'
8 | int l=s.sizeof(),y;
| ^~~~~~
a.cc:13:29: error: expected unqualified-id before '=' token
13 | bool=1;
| ^
a.cc:17:20: error: expected primary-expression before ')' token
17 | if()
| ^
a.cc:18:9: error: expected primary-expression before '}' token
18 | }
| ^
|
s056660882 | p03957 | C++ | #include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int main()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<<"Yes";
return 0;
}
}
}
}
cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope
8 | cin>>s;
| ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
2 | #include<string>
+++ |+#include <iostream>
3 | using namespace std;
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:14:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
14 | for(register int j=i+1;j<l;j++)
| ^
a.cc:18:21: error: 'cout' was not declared in this scope
18 | cout<<"Yes";
| ^~~~
a.cc:18:21: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:24:5: error: 'cout' was not declared in this scope
24 | cout<<"No";
| ^~~~
a.cc:24:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
|
s234957918 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<<"Yes";
return 0;
}
}
}
}
cout<<"No";
return 0;
} | 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(register int j=i+1;j<l;j++)
| ^
/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
|
s301107633 | p03957 | C++ | #include<cstdio>
#include<cstring>
using namespace std;
char s[101];
bool c;
int main()
{
gets(s);
short len=strlen(s);
for(int i=0;i<len;i++)
{
if(s[i]=='C') c=true;
else if(s[i]=='F'&&c)
{
printf("Yes\n");
return 0;
}
}
printf("No\n");
return 0;
}
| a.cc: In function 'int main()':
a.cc:11:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
11 | gets(s);
| ^~~~
| getw
|
s949649328 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string a;
cin>>a;
int la=a.length();
int c=0,f=0;
for(int i=0;i<la;i++)
{
if(a[i]=='C'||a[i]='c')
{
c++;
}
if(a[i]=='F'||a[i]=='f')
{
f++;
}
}
if(c>0&&f>0)
cout<<"Yes";
else
cout<<"No";
} | a.cc: In function 'int main()':
a.cc:10:29: error: lvalue required as left operand of assignment
10 | if(a[i]=='C'||a[i]='c')
|
s292876577 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
int i,j;
char a[100];
gets(a);
for(i=0;i<strlen(a);i++)
{
if(a[i]=='C')
{
for(j=i+1;j<strlen(a);j++)
{
if(a[j]=='F')
{
cout<<"Yes"<<endl;
return 0;
}
}
}
}
cout<<"No"<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(a);
| ^~~~
| getw
|
s927923102 | p03957 | C++ | #include <cstring>
#include<cstdio>
#include<iostream>
#include<bits/stdc++.h>
using namespace std;
int main()
{
string s;
cin>>s;
#include <cstring>
#include<cstdio>
#include<iostream>
#include<bits/stdc++.h>
using namespace std;
int main()
{
string s;
cin>>s;
int sum=s.length();
for(int i=0;i<sum;i++)
{
if(s[i]=='C')
{
for(int j=i+1;j<sum;j++)
{
if(s[j]=='F')
{
cout<<"Yes"<<endl;
return 0;
}
}
}
}
cout<<"No"<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:15:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
15 | int main()
| ^~
a.cc:15:9: note: remove parentheses to default-initialize a variable
15 | int main()
| ^~
| --
a.cc:15:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:16:1: error: a function-definition is not allowed here before '{' token
16 | {
| ^
a.cc:36:2: error: expected '}' at end of input
36 | }
| ^
a.cc:7:1: note: to match this '{'
7 | {
| ^
|
s932186870 | p03957 | C++ | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define ll long long int
const int INF = 2147483647;
const ll MOD = 1000000007;
using namespace std;
int main() {
string s;
cin >> s;
REP(i, s.length()) {
if (s[i] == 'C') {
FOR(j, i, s.length()) {
if (s[j] == 'F') {
cout << "Yes" << endl;
return 0
}
}
}
}
cout << "No" << endl;
}
| a.cc: In function 'int main()':
a.cc:18:19: error: expected ';' before '}' token
18 | return 0
| ^
| ;
19 | }
| ~
|
s977691795 | p03957 | C++ | http://hzwer.com/wp-content/themes/ly/image/image_post/V%20N]_%7DUD%2009W_QB4QDS.jpg
| a.cc:1:1: error: 'http' does not name a type
1 | http://hzwer.com/wp-content/themes/ly/image/image_post/V%20N]_%7DUD%2009W_QB4QDS.jpg
| ^~~~
|
s481049723 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<<"Yes";
return 0;
}
}
}
}
cout<<"No";
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:13:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
13 | for(register int j=i+1;j<l;j++)
| ^
/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
|
s791069471 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<<"Yes";
return 0;
}
}
}
}
cout<<"No";
return 0;
} | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
|
s296464439 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
//#define int long long
#define fo(a,b) for(int a=0;a<b;a++)
#define Sort(a) sort(a.begin(),a.end())
#define rev(a) reverse(a.begin(),a.end())
#define fi first
#define se second
#define co(a) cout<<a<<endl
#define sz size()
#define bgn begin()
#define en end()
#define pb(a) push_back(a)
#define pop pop_back
#define V vector
#define P pair
#define V2(a,b,c) V<V<int>> a(b,V<int>(c))
#define V2a(a,b,c,d) V<V<int>> a(b,V<int>(c,d))
#define incin(a) int a; cin>>a
//#define min min<int>
//#define max max<int>
template<class T>
void cou(vector<vector<T>> a){
int b=a.size();
int c=a[0].size();
fo(i,b){
fo(j,c){
cout<<a[i][j];
if(j==c-1)
cout<<endl;
else
cout<<' ';
}
}
}
/*template<>
void cou(vector<vector<char>> a){
int b=a.size();
int c=a[0].size();
fo(i,b){
fo(j,c){
cout<<a[i][j];
if(j==c-1)
cout<<endl;
else
cout<<' ';
}
}
}*/
int wari(int a,int b) {
if(a%b==0)
return a/b;
else
return a/b+1;
}
int keta(int a){
double b=a;
b=log10(b);
int c=b;
return c+1;
}
int souwa(int a){
return a*(a+1)/2;
}
int lcm(int a,int b){
int d=a,e=b,f;
if(a<b)
swap(a,b);
int c,m=1;
while(m){
c=a%b;
if(c==0){
f=b;
m--;
}
else{
a=b;
b=c;
}
}
return d*e/f;
}
int gcm(int a,int b){
int d=a,e=b,f;
if(a<b)
swap(a,b);
int c,m=1;
while(m){
c=a%b;
if(c==0){
f=b;
m--;
}
else{
a=b;
b=c;
}
}
return f;
}
bool prime(int a){
if(a<2)
return false;
else if(a==2)
return true;
else if(a%2==0)
return false;
double b=sqrt(a);
for(int i=3;i<=b;i+=2){
if(a%i==0){
return false;
}
}
return true;
}
struct Union{
vector<int> par;
Union(int n){
par= vector<int>(n, -1);
}
int find(int x){
if(par[x]<0)
return x;
else
return par[x]=find(par[x]);
}
bool same(int a,int b){
return find(a)==find(b);
}
int Size(int a){
return -par[find(a)];
}
void unite(int a,int b){
a=find(a);
b=find(b);
if(a==b)
return;
if(Size(b)>Size(a))
swap<int>(a,b);
par[a]+=par[b];
par[b]=a;
}
};
int ketas(int a){
string b=to_string(a);
int c=0;
fo(i,keta(a)){
c+=b[i]-'0';
}
return c;
}
/*struct aa{
vector<int> gt;
aa(int n){
gt= vector<int>(n, 1);
}
void c(V<int> d,int b){
if(d[b]==0){
gt[d[b]-1]++;
gt[gt.sz-1]++;
}
else{
gt[d[b]-1]++;
c(d,d[d[b]]-1);
}
}
void cok(int a){
cout<<gt[a-1]<<endl;
fo(i,a-1)
cout<<gt[i]<<endl;
}
};
*/
signed main(){
string a;
cin>>a;
int b=0,c=0;
fo(i.a.sz){
if(a[i]=='C')
b=1;
if(b&&a[i]=='F')
c=1;
}
if(c)
cout<<"Yes"<<endl;
else
cout<<"No"<<endl;
} | a.cc:178:18: error: macro "fo" requires 2 arguments, but only 1 given
178 | fo(i.a.sz){
| ^
a.cc:4:9: note: macro "fo" defined here
4 | #define fo(a,b) for(int a=0;a<b;a++)
| ^~
a.cc: In function 'int main()':
a.cc:178:9: error: 'fo' was not declared in this scope
178 | fo(i.a.sz){
| ^~
|
s879320180 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
//#define int long long
#define fo(a,b) for(int a=0;a<b;a++)
#define Sort(a) sort(a.begin(),a.end())
#define rev(a) reverse(a.begin(),a.end())
#define fi first
#define se second
#define co(a) cout<<a<<endl
#define sz size()
#define bgn begin()
#define en end()
#define pb(a) push_back(a)
#define pop pop_back
#define V vector
#define P pair
#define V2(a,b,c) V<V<int>> a(b,V<int>(c))
#define V2a(a,b,c,d) V<V<int>> a(b,V<int>(c,d))
#define incin(a) int a; cin>>a
//#define min min<int>
//#define max max<int>
template<class T>
void cou(vector<vector<T>> a){
int b=a.size();
int c=a[0].size();
fo(i,b){
fo(j,c){
cout<<a[i][j];
if(j==c-1)
cout<<endl;
else
cout<<' ';
}
}
}
/*template<>
void cou(vector<vector<char>> a){
int b=a.size();
int c=a[0].size();
fo(i,b){
fo(j,c){
cout<<a[i][j];
if(j==c-1)
cout<<endl;
else
cout<<' ';
}
}
}*/
int wari(int a,int b) {
if(a%b==0)
return a/b;
else
return a/b+1;
}
int keta(int a){
double b=a;
b=log10(b);
int c=b;
return c+1;
}
int souwa(int a){
return a*(a+1)/2;
}
int lcm(int a,int b){
int d=a,e=b,f;
if(a<b)
swap(a,b);
int c,m=1;
while(m){
c=a%b;
if(c==0){
f=b;
m--;
}
else{
a=b;
b=c;
}
}
return d*e/f;
}
int gcm(int a,int b){
int d=a,e=b,f;
if(a<b)
swap(a,b);
int c,m=1;
while(m){
c=a%b;
if(c==0){
f=b;
m--;
}
else{
a=b;
b=c;
}
}
return f;
}
bool prime(int a){
if(a<2)
return false;
else if(a==2)
return true;
else if(a%2==0)
return false;
double b=sqrt(a);
for(int i=3;i<=b;i+=2){
if(a%i==0){
return false;
}
}
return true;
}
struct Union{
vector<int> par;
Union(int n){
par= vector<int>(n, -1);
}
int find(int x){
if(par[x]<0)
return x;
else
return par[x]=find(par[x]);
}
bool same(int a,int b){
return find(a)==find(b);
}
int Size(int a){
return -par[find(a)];
}
void unite(int a,int b){
a=find(a);
b=find(b);
if(a==b)
return;
if(Size(b)>Size(a))
swap<int>(a,b);
par[a]+=par[b];
par[b]=a;
}
};
int ketas(int a){
string b=to_string(a);
int c=0;
fo(i,keta(a)){
c+=b[i]-'0';
}
return c;
}
/*struct aa{
vector<int> gt;
aa(int n){
gt= vector<int>(n, 1);
}
void c(V<int> d,int b){
if(d[b]==0){
gt[d[b]-1]++;
gt[gt.sz-1]++;
}
else{
gt[d[b]-1]++;
c(d,d[d[b]]-1);
}
}
void cok(int a){
cout<<gt[a-1]<<endl;
fo(i,a-1)
cout<<gt[i]<<endl;
}
};
*/
signed main(){
string a;
cin>>a;
int b=0,c=0;
fo(i.a.sz){
if(a[i]='C')
b=1;
if(b&&a[i]=='F')
c=1;
}
if(c)
cout<<"Yes"<<endl;
else
cout<<"No"<<endl;
} | a.cc:178:18: error: macro "fo" requires 2 arguments, but only 1 given
178 | fo(i.a.sz){
| ^
a.cc:4:9: note: macro "fo" defined here
4 | #define fo(a,b) for(int a=0;a<b;a++)
| ^~
a.cc: In function 'int main()':
a.cc:178:9: error: 'fo' was not declared in this scope
178 | fo(i.a.sz){
| ^~
|
s546107033 | p03957 | C++ | #include <iostream>
#include <iomanip>
using namespace std;
int main(){
char input[1000];
cin >> input;
int len = strlen(input);
for(int i = 0; i < len; i++){
char ch = input[i];
if(input[i] == 'C'){
if(input[i] == 'F'){
cout << "Yes";
return 0;
} else {
cout << "No";
return 0;
}
} else {
cout << "No";
return 0;
}
}
} | a.cc: In function 'int main()':
a.cc:9:15: error: 'strlen' was not declared in this scope
9 | int len = strlen(input);
| ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
2 | #include <iomanip>
+++ |+#include <cstring>
3 |
|
s481119518 | p03957 | C++ | #include <bits/stdc++.h>
using namesapce std;
int main(){
char input[1000];
cin >> input;
int len = strlen(input);
for(int i = 0; i < len; i++){
char ch = input[i];
if(input[i] == 'C'){
if(input[i] == 'F'){
cout << "Yes";
return 0;
} else {
cout << "No";
return 0;
}
} else {
cout << "No";
return 0;
}
}
} | a.cc:3:7: error: expected nested-name-specifier before 'namesapce'
3 | using namesapce std;
| ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
7 | cin >> input;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:13:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
13 | cout << "Yes";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:16:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
16 | cout << "No";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:20:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
20 | cout << "No";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
|
s763615122 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char input[1000];
bool a = false, b = false;
cin >> input;
int len = stdlen(input);
for(int i = 0; i < len; i++){
char ch = input[i];
if(ch == 'C'){
a = true;
}
if(ch == 'F'){
b = true;
}
}
if(a){
if(b){
cout << "Yes"
} else {
cout << "No";
}
} else {
cout << "No";
}
} | a.cc: In function 'int main()':
a.cc:9:15: error: 'stdlen' was not declared in this scope; did you mean 'strlen'?
9 | int len = stdlen(input);
| ^~~~~~
| strlen
a.cc:21:26: error: expected ';' before '}' token
21 | cout << "Yes"
| ^
| ;
22 | } else {
| ~
|
s326553711 | p03957 | C++ | #include <bits/stdc++.h>
using namesapce std;
int main(){
char input[1000];
bool a = false, b = false;
cin >> input;
int len = stdlen(input);
for(int i = 0; i < len; i++){
char ch = input[i];
if(ch == 'C'){
a = true;
}
if(ch == 'F'){
b = true;
}
}
if(a){
if(b){
cout << "Yes"
} else {
cout << "No";
}
} else {
cout << "No";
}
} | a.cc:3:7: error: expected nested-name-specifier before 'namesapce'
3 | using namesapce std;
| ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
8 | cin >> input;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:9:15: error: 'stdlen' was not declared in this scope; did you mean 'strlen'?
9 | int len = stdlen(input);
| ^~~~~~
| strlen
a.cc:21:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
21 | cout << "Yes"
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:23:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
23 | cout << "No";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:26:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
26 | cout << "No";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
|
s516804140 | p03957 | C++ | #include <bits/stdc++.h>
using namesapce std;
int main(){
char input[1000];
cin >> input;
int len = stdlen(input);
for(int i = 0; i < len; i++){
char ch = input[i];
if(input[i] == 'C'){
for(int i = 0; i < len; i++){
if(input[i] = 'F'){
cout << "Yes";
} else {
cout << "No";
}
}
} else {
cout << "No";
}
}
} | a.cc:3:7: error: expected nested-name-specifier before 'namesapce'
3 | using namesapce std;
| ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
7 | cin >> input;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:8:15: error: 'stdlen' was not declared in this scope; did you mean 'strlen'?
8 | int len = stdlen(input);
| ^~~~~~
| strlen
a.cc:14:21: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
14 | cout << "Yes";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:16:21: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
16 | cout << "No";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:20:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
20 | cout << "No";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
|
s710621516 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string S;
cin >> S;
int i = 0;
while (i<N){
if (S.at(i)=='C') break;
i++;
}
if (i==N){
cout << "No";
} else {
while (i<N){
if (S.at(i)=='F') break;
i++;
}
if (i==N){
cout << "No";
} else {
cout << "Yes";
}
}
} | a.cc: In function 'int main()':
a.cc:7:12: error: 'N' was not declared in this scope
7 | while (i<N){
| ^
a.cc:11:10: error: 'N' was not declared in this scope
11 | if (i==N){
| ^
|
s772882888 | p03957 | C++ | #include<iostream>
using namespace std;
int main(){
string a;
bool v[2]={0};
cin>>a;
for(int i=0;i<a.length();i++)
{
if(a[i]=='C') v[0]=1;
if(a[i]=='F'&&v[0])
v[1]=1;
}
if(v[1]) cout<<"Yes";
else cout<<"No";
return 0;
}
cout<<"No";
return 0;
} | a.cc:17:5: error: 'cout' does not name a type
17 | cout<<"No";
| ^~~~
a.cc:18:5: error: expected unqualified-id before 'return'
18 | return 0;
| ^~~~~~
a.cc:19:1: error: expected declaration before '}' token
19 | }
| ^
|
s316197617 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<<"Yes";
return 0;
}
}
}
}
cout<<"No";
return 0;
} | a.cc: In function 'int mian()':
a.cc:11:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
11 | for(register int i=0;i<l;i++)
| ^
a.cc:15:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
15 | for(register int j=i+1;j<l;j++)
| ^
/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
|
s128767281 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
string a;
int main()
{
cin>>a;
for(register int i=0;i<a.size();++i)
if(a[i]=='C')
for(register int j=i+1;j<a.size;++j)
if(a[j]=='F') return printf("Yes")%1;
return printf("No")%1;
}
| a.cc: In function 'int main()':
a.cc:7:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
7 | for(register int i=0;i<a.size();++i)
| ^
a.cc:9:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
9 | for(register int j=i+1;j<a.size;++j)
| ^
a.cc:9:40: 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 unsigned int]' (did you forget the '()' ?)
9 | for(register int j=i+1;j<a.size;++j)
| ~~^~~~
| ()
|
s117198423 | p03957 | C++ | #include <bits/stdc++.h>
using namesapce std;
int main(){
char input[1000];
cin >> input;
int len = stdlen(input);
for(int i = 0; i < len; i++){
char ch = input[i];
if(input[i] == 'C'){
if(input[i] == 'F'){
cout << "Yes";
return 0;
} else {
cout << "No";
return 0;
}
} else {
cout << "No";
return 0;
}
}
} | a.cc:3:7: error: expected nested-name-specifier before 'namesapce'
3 | using namesapce std;
| ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
7 | cin >> input;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:8:15: error: 'stdlen' was not declared in this scope; did you mean 'strlen'?
8 | int len = stdlen(input);
| ^~~~~~
| strlen
a.cc:13:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
13 | cout << "Yes";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:16:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
16 | cout << "No";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:20:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
20 | cout << "No";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
|
s503456085 | p03957 | C++ | #include<bist/stdc++.h>
using namespace std;
string s;
int i,n,j;
int main()
{
cin>>s;
n=s.size();
for(i=1;i<=n;i++)
{
if(s[i]=="C")
{
for(j=i+1;j<=n;j++)
{
if(s[j]=="F")
cout<<"Yes";
return 0;
}
}
}
cout<<"No";
return 0;
} | a.cc:1:9: fatal error: bist/stdc++.h: No such file or directory
1 | #include<bist/stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s879119779 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
#define ia ai
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<<"Yes";
return 0;
}
}
}
}
cout<<"No";
return 0;
} | 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(register int j=i+1;j<l;j++)
| ^
/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
|
s564277875 | p03957 | C++ | #include<iostream>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.length();
for(int i=0;i<l;i++)
{
if(s[i]=='C')
{
for( int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<<"Yes";
return 0;
}
}
}
}
cout<<"No";
return 0;
} | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
|
s527701054 | p03957 | C++ | #include<iostream>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.length();
for(int i=0;i<l;i++)
{
if(s[i]=='C')
{
for( int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<<"Yes";
return 0;
}
}
}
}
cout<<"No";
return 0;
} | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
|
s403314192 | p03957 | C++ | // luogu-judger-enable-o2
#include <stdio.h>
#include <string.h>
bool s;
int main()
{
string a;
scanf("%s",a);
int a1=strlen(a+1);
for(int i=1;i<=a1;i++)
{
if(a[i]=='C')
{
for(int j=1;j<=a1;j++)
if(a[i]=='F')
{
printf("Yes");
return 0;
}
}
}
printf("NO");
return 0;
} | a.cc: In function 'int main()':
a.cc:7:5: error: 'string' was not declared in this scope; did you mean 'stdin'?
7 | string a;
| ^~~~~~
| stdin
a.cc:8:16: error: 'a' was not declared in this scope
8 | scanf("%s",a);
| ^
|
s411665148 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define int ll
inline ll read(){
ll res=0,f=1;
char ch=getchar();
while(ch<'0'||ch>'9'){if(ch=='-')f=-f;ch=getchar();}
while(ch>='0'&&ch<='9'){res=(res<<3)+(res<<1)+ch-'0';ch=getchar();}
return res*f;
}
void write(ll x){
if(x<0) putchar('-'),x=-x;
if(x>9) write(x/10);
putchar(x%10|'0');
}
char a[1005];
signed main(){
cin>>(a+1);
int len=strlen(a+1);
int h=0;
for(int i=1;i<=n;i++){
if(a[i]=='C') h=1;
if(h==1&&a[i]=='F') {
cout<<"Yes"<<endl;
return 0;
}
}
cout<<"No"<<endl;
}
| a.cc: In function 'int main()':
a.cc:23:24: error: 'n' was not declared in this scope
23 | for(int i=1;i<=n;i++){
| ^
|
s603252295 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
bool flg=false;
while(cin>>){
string st;
cin>>st;
if(st=='C'){
flg=true;
}
if(st=='F'&&flg==true){
cout<<"Yes"<<endl;
return 0;
}
}
cout<<"No"<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:5:20: error: expected primary-expression before ')' token
5 | while(cin>>){
| ^
a.cc:8:22: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
8 | if(st=='C'){
| ~~^~~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if(st=='C'){
| ^~~
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if(st=='C'){
| ^~~
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if(st=='C'){
| ^~~
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if(st=='C'){
| ^~~
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if(st=='C'){
| ^~~
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if(st=='C'){
| ^~~
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if(st=='C'){
| ^~~
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
8 | if(st=='C'){
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
8 | if(st=='C'){
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | if(st=='C'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | if(st=='C'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | if(st=='C'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | if(st=='C'){
| ^~~
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
8 | if(st=='C'){
| ^~~
In file included from /usr/include/c++/14/string:43:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
8 | if(st=='C'){
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_Char |
s366406003 | p03957 | C++ | // luogu-judger-enable-o2
#include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<<"Yes"<<endl;
return 0;
}
}
}
}
cout<<"No"<<endl;
return 0;
} | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
|
s895119427 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string S;
cin >> S;
int c = 0;
int f = 0;
for (int i = 0; i < N; i++){
if (S[i] == 'C'){
c = i;
}
else if(S[i] == 'F'){
f = i;
}
}
if(c < f){
cout << "Yes" << endl;
}
else {
cout << "No" << endl;
}
} | a.cc: In function 'int main()':
a.cc:11:25: error: 'N' was not declared in this scope
11 | for (int i = 0; i < N; i++){
| ^
|
s628347582 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
unordered_set<char> t;
for(int i = 0; i < s.size(); i++)
t[s.at(i)];
if(t.count('C') && t.count('F'))
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| a.cc: In function 'int main()':
a.cc:9:6: error: no match for 'operator[]' (operand types are 'std::unordered_set<char>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'})
9 | t[s.at(i)];
| ^
|
s628275820 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
unordered_set<char> t;
for(int i = 0; i < s.size(); i++)
t[s.at(i)];
if(s.count('C') && s.count('F'))
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| a.cc: In function 'int main()':
a.cc:9:6: error: no match for 'operator[]' (operand types are 'std::unordered_set<char>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'})
9 | t[s.at(i)];
| ^
a.cc:10:8: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'count'
10 | if(s.count('C') && s.count('F'))
| ^~~~~
a.cc:10:24: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'count'
10 | if(s.count('C') && s.count('F'))
| ^~~~~
|
s510159070 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
unordered_set<char> t;
for(int i = 0; i < s.size(); i++)
t.insert(s.at(i));
if(s.count('C') && s.count('F'))
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| a.cc: In function 'int main()':
a.cc:10:8: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'count'
10 | if(s.count('C') && s.count('F'))
| ^~~~~
a.cc:10:24: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'count'
10 | if(s.count('C') && s.count('F'))
| ^~~~~
|
s935165141 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<cstring>
using namespace std;
int main()
{
string a;
cin>>a;
int b=false;
for(register int i=0;i<a.size();i++)
{
if(a[i]=='C')
flag=true;
if(a[i]=='F'&&b==true)
{
cout<<"Yes";
return 0;
}
}
cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:10:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
10 | for(register int i=0;i<a.size();i++)
| ^
a.cc:13:9: error: 'flag' was not declared in this scope
13 | flag=true;
| ^~~~
|
s073982503 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<cstring>
using namespace std;
int main()
{
string a;
cin>>a;
int b=false;
for(int i=0;i<a.size();i++)
{
if(a[i]=='C')
flag=true;
if(a[i]=='F'&&b==true)
{
cout<<"Yes"<<endl;
return 0;
}
}
cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:13:9: error: 'flag' was not declared in this scope
13 | flag=true;
| ^~~~
|
s584978416 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<cstring>
using namespace std;
int main()
{
string a;
cin>>a;
int b=false;
for(int i=0;i<a.size();i++)
{
if(a[i]=='C')
flag=true;
if(a[i]=='F'&&b==true)
{
cout<<"Yes";
return 0;
}
}
cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:13:9: error: 'flag' was not declared in this scope
13 | flag=true;
| ^~~~
|
s514535286 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
char a[10000];
gets(a);
int pd[100];
for(int i=0;i<strlen(a);i++)
{
if(a[i]=='C')
{
pd[0]=1;
}
if(a[i]=='F')
{
pd[1]=1;
}
}
if(pd[0]==1&&pd[1]==1)
{
cout<<"YES"<<endl;
}
else cotu<<"NO"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:5:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
5 | gets(a);
| ^~~~
| getw
a.cc:22:10: error: 'cotu' was not declared in this scope
22 | else cotu<<"NO"<<endl;
| ^~~~
|
s159484871 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<cstring>
using namespace std;
int main()
{
string a;
cin>>a;
int b=false;
for(int i=0;i<a.size();i++)
{
if(a[i]=='C')
flag=true;
if(a[i]=='F'&&b==true)
{
cout<<"Yes";
return 0;
}
}
cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:13:9: error: 'flag' was not declared in this scope
13 | flag=true;
| ^~~~
|
s940504233 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
int c;
string s;
int main()
{
cin>>s;
for(int i=0;i<s.length();i++)
if(s[i]=='C')
c = 1;
if(s[i]=='F' && c)
{
cout<<"Yes\n";
exit(0);
}
cout<<"No\n";
return 0;
} | a.cc: In function 'int main()':
a.cc:13:14: error: 'i' was not declared in this scope
13 | if(s[i]=='F' && c)
| ^
|
s394287142 | p03957 | C++ | #include<iostream>
using namespace std;
int n,m;
char a[100000];
int main()
{
for(int i=1;i<=100000)
{
while(cin>>a[i])
{
if(a[i]=='F')
m=i;
}
}
for(int i=1;i<=100000)
{
if(a[i]=='C')
{
n=i;
break;
}
}
if(n==0||m==0)
cout<<"No";
else
{
if(m>n)
cout<<"Yes";
else
cout<<"No";
}
} | a.cc: In function 'int main()':
a.cc:7:26: error: expected ';' before ')' token
7 | for(int i=1;i<=100000)
| ^
| ;
a.cc:15:26: error: expected ';' before ')' token
15 | for(int i=1;i<=100000)
| ^
| ;
|
s900083897 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
int mian()
{
long long n,i,j;
string s;
cin>>s;
n=s.size();
for(i=0;i<n;i++)
{
if(s[i]=='C')
{
for(j=i+1;j<n;j++)
{
if(s[j]=='F')
{
cout<<"Yes";
return 0;
}
}
}
}
cout<<"No";
return 0;
} | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
|
s473728482 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char a;
a=getchar();
while(a>='A'&&a<='Z'){
if(a=='C')cnt++;
if(cnt==1&&a=='F'){
cout<<"Yes";
return 0;
}
a=getchar();
}
cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:7:19: error: 'cnt' was not declared in this scope; did you mean 'int'?
7 | if(a=='C')cnt++;
| ^~~
| int
a.cc:8:12: error: 'cnt' was not declared in this scope; did you mean 'int'?
8 | if(cnt==1&&a=='F'){
| ^~~
| int
|
s621388468 | p03957 | C++ | #include <bits/stdc++.h>
using namesapce std;
int main(){
char a;
a=getchar();
while(a>='A'&&a<='Z'){
if(a=='C')cnt++;
if(cnt==1&&a=='F'){
cout<<"Yes";
return 0;
}
a=getchar();
}
cout<<"No";
return 0;
} | a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
2 | using namesapce std;
| ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:19: error: 'cnt' was not declared in this scope; did you mean 'int'?
7 | if(a=='C')cnt++;
| ^~~
| int
a.cc:8:12: error: 'cnt' was not declared in this scope; did you mean 'int'?
8 | if(cnt==1&&a=='F'){
| ^~~
| int
a.cc:9:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
9 | cout<<"Yes";
| ^~~~
| std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:14:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
14 | cout<<"No";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
|
s203448820 | p03957 | C++ | #include <bits/stdc++.h>
using namesapce std;
int main(){
char a;
while(a=getchar()){
if(a=='C')cnt++;
if(cnt==1&&a=='F'){
cout<<"Yes";
return 0;
}
}
cout<<"No";
return 0;
} | a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
2 | using namesapce std;
| ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:19: error: 'cnt' was not declared in this scope; did you mean 'int'?
6 | if(a=='C')cnt++;
| ^~~
| int
a.cc:7:12: error: 'cnt' was not declared in this scope; did you mean 'int'?
7 | if(cnt==1&&a=='F'){
| ^~~
| int
a.cc:8:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
8 | cout<<"Yes";
| ^~~~
| std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
12 | cout<<"No";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
|
s297052669 | p03957 | C++ | // luogu-judger-enable-o2
#include<cstring>
using namespace std;
int main()
{
char a[9999];
cin>>a;
int flagc=0;
for(int i=0;i<=strlen(a)-1;i++){
if(a[i]=='C'){
flagc=1;
}
if(flagc && a[i]=='F'){
cout<<"YES";
return 0;
}
}
cout<<"NO";
return 0;
} | a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
7 | cin>>a;
| ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
2 | #include<cstring>
+++ |+#include <iostream>
3 | using namespace std;
a.cc:14:13: error: 'cout' was not declared in this scope
14 | cout<<"YES";
| ^~~~
a.cc:14:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:5: error: 'cout' was not declared in this scope
18 | cout<<"NO";
| ^~~~
a.cc:18:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
|
s539704818 | p03957 | C++ | #include<iostream>
using namespace std;
int main()
{
char a[99999];
cin>>a;
for(int i=0;i<=strlen.a-1;i++){
if(a[i]=='C'){
flagc=1;
}
if(flagc && a[i]=='F'){
cout<<"YES";
return 0;
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:20: error: 'strlen' was not declared in this scope
7 | for(int i=0;i<=strlen.a-1;i++){
| ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
1 | #include<iostream>
+++ |+#include <cstring>
2 | using namespace std;
a.cc:9:13: error: 'flagc' was not declared in this scope
9 | flagc=1;
| ^~~~~
a.cc:11:12: error: 'flagc' was not declared in this scope
11 | if(flagc && a[i]=='F'){
| ^~~~~
|
s022228853 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
string s;
int len;
int main(){
gets(s);
len = s.size ();
for (int i = 0; i < len ; ++ i){
if (s [i] == 'C'){
for (int j = i; j < len; ++ j){
if (s [j] == 'F')
cout << "Yes";
return 0;
}
}
}
cout << "No";
return 0;
} | a.cc: In function 'int main()':
a.cc:9:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
9 | gets(s);
| ^~~~
| getw
|
s554666636 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<<"Yes";
return 0;
}
}
}
}
cout<<"No";
return 0;
} | 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(register int j=i+1;j<l;j++)
| ^
/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
|
s288542302 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int a=-1,b=-1;
string s;
int main()
{
cin>>s;
for(int i=0;i<s.size();i++)
{
if(s[i]=='C')
{
a=i;
break;
}
}
for(int i=a+1;i<s.size();i++)
{
if(s[i]=='F')
{
b=i;
break;
}
}
if(a!=-1 && b!=-1) cout<<"Yes";
else cout<<"No";
cout<<endl;
return 0;
| a.cc: In function 'int main()':
a.cc:28:14: error: expected '}' at end of input
28 | return 0;
| ^
a.cc:6:1: note: to match this '{'
6 | {
| ^
|
s235523745 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
char a[10001];
bool f=false;
int main(){
cin>>a;
int l=strlen(a);
for(int i=0;i<=l-1;i++){
if(a[i]=="C"){
for(int j=i;j<=l1;j++){
if(a[j]=="F")f=true;
}
}
}
if(f==true)cout<<"Yes"<<endl;
else cout<<"No"<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | if(a[i]=="C"){
| ~~~~^~~~~
a.cc:10:40: error: 'l1' was not declared in this scope; did you mean 'l'?
10 | for(int j=i;j<=l1;j++){
| ^~
| l
a.cc:11:40: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
11 | if(a[j]=="F")f=true;
| ~~~~^~~~~
|
s649424735 | p03957 | C++ | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstring>
#define Js for(int i=0;i<Len;i++) {
#define is if(c[i]=='C) p=1;
#define a if(C[i]=='F' && p==1) q=1;}
#define sha if(p&&q) cout<<"Yes\n"<<endl; else cout<<"No\n";
#define bi return 0;}
using namespace std;
char c[105];
int main() {
scanf("%s",c);
int p=0,q=0;
int Len=strlen(c);
Js is a sha bi | a.cc:6:21: warning: missing terminating ' character
6 | #define is if(c[i]=='C) p=1;
| ^
a.cc:6:21: error: missing terminating ' character
6 | #define is if(c[i]=='C) p=1;
| ^~~~~~~~
a.cc:16:8: note: in expansion of macro 'is'
16 | Js is a sha bi
| ^~
a.cc: In function 'int main()':
a.cc:7:11: error: expected primary-expression before 'if'
7 | #define a if(C[i]=='F' && p==1) q=1;}
| ^~
a.cc:16:11: note: in expansion of macro 'a'
16 | Js is a sha bi
| ^
a.cc:7:37: error: expected primary-expression before '}' token
7 | #define a if(C[i]=='F' && p==1) q=1;}
| ^
a.cc:16:11: note: in expansion of macro 'a'
16 | Js is a sha bi
| ^
a.cc:7:37: error: expected ')' before '}' token
7 | #define a if(C[i]=='F' && p==1) q=1;}
| ^
a.cc:16:11: note: in expansion of macro 'a'
16 | Js is a sha bi
| ^
a.cc:6:14: note: to match this '('
6 | #define is if(c[i]=='C) p=1;
| ^
a.cc:16:8: note: in expansion of macro 'is'
16 | Js is a sha bi
| ^~
a.cc:7:37: error: expected primary-expression before '}' token
7 | #define a if(C[i]=='F' && p==1) q=1;}
| ^
a.cc:16:11: note: in expansion of macro 'a'
16 | Js is a sha bi
| ^
|
s274067527 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
char a[50000];
bool c,f;
int main(){
gets(a);
for(i=0;i<strlen(a);i++){
if(a[i]=='C')c=1;
if(a[i]=='F'&&c==1)f=1;
}
if(c==1&&f==1)cout<<"Yes"<<endl;
else cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
6 | gets(a);
| ^~~~
| getw
a.cc:7:13: error: 'i' was not declared in this scope
7 | for(i=0;i<strlen(a);i++){
| ^
|
s981313440 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<cstring>
using namespace std;
char[105],flag;
int main()
{
cin>>a;
flag=0;
for(int i=0;i<strlen(a);i++)
{
if(a[i]=='C')
flag==1;
if(a[i]=='F'&&flag==1)
{
cout<<"Yes";
return 0;
}
}
cout<<"No";
return 0;
}
| a.cc:5:6: error: expected identifier before numeric constant
5 | char[105],flag;
| ^~~
a.cc:5:6: error: expected ']' before numeric constant
5 | char[105],flag;
| ^~~
| ]
a.cc:5:5: error: structured binding declaration cannot have type 'char'
5 | char[105],flag;
| ^
a.cc:5:5: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:5:5: error: empty structured binding declaration
a.cc:5:10: error: expected initializer before ',' token
5 | char[105],flag;
| ^
a.cc: In function 'int main()':
a.cc:8:14: error: 'a' was not declared in this scope
8 | cin>>a;
| ^
a.cc:9:9: error: 'flag' was not declared in this scope
9 | flag=0;
| ^~~~
|
s613751806 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int i,j;string s;bool b1=0,b2=0;
int main(){
cin>>s;
while(i<=s.length()){
i++;
if(s[i]=='C'){
b1=1,j=i;
while(j<=s.length()){
if(s[j]=='F')b2=1;
j++
}
}
}if(b1&&b2)cout<<"YES";
else cout<<"NO";
return 0;
} | a.cc: In function 'int main()':
a.cc:12:36: error: expected ';' before '}' token
12 | j++
| ^
| ;
13 | }
| ~
|
s441177668 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
char s[105];
void work()
{
int c=1;
for(int i=0;i<strlen(s);++i)
{
if(s[i]=='C'&&c==1)
c=0;
if(s[i]=='F'&&c==0)
{
printf("Yes\n");
return 0;
}
}
printf("No\n");
}
int main()
{
scanf("%s",s);
work();
} | a.cc: In function 'void work()':
a.cc:14:20: error: return-statement with a value, in function returning 'void' [-fpermissive]
14 | return 0;
| ^
|
s637242206 | p03957 | C++ | // luogu-judger-enable-o2
#include<bits/stdc++.h>
using namespace std;
char s[105];
void work()
{
int c=1;
for(int i=0;i<strlen(s);++i)
{
if(s[i]=='C'&&c==1)
c=0;
if(s[i]=='F'&&c==0)
{
printf("Yes\n");
return 0;
}
}
printf("No\n");
}
int main()
{
scanf("%s",s);
work();
} | a.cc: In function 'void work()':
a.cc:15:20: error: return-statement with a value, in function returning 'void' [-fpermissive]
15 | return 0;
| ^
|
s564765414 | p03957 | C++ | #include <iostream>
#include <cstdio>
#include <string>
using namespace std;
string s;
int mian() {
cin >> s;
int len = s.size();
for(int i = 0;i < len;i ++) {
if(s[i] == 'C') {
for(int j = i + 1;j < len;j ++) {
if(s[j] == 'F') {
cout << "Yes"; return 0;
}
}
}
}
cout << "No";
return 0;
} | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
|
s439793085 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
char s[105];
void in()
{
scanf("%s",s);
}
void work()
{
int c=1;
for(int i=0;i<strlen(s);++i)
{
if(s[i]=='C'&&c==1)
{
c=0;
}
if(s[i]=='F'&&c==0)
{
printf("Yes"\n);
exit(0);
}
}
printf("No"\n);
}
int main()
{
in();
work();
return 0;
}
| a.cc:22:25: error: stray '\' in program
22 | printf("Yes"\n);
| ^
a.cc:26:16: error: stray '\' in program
26 | printf("No"\n);
| ^
a.cc: In function 'void work()':
a.cc:22:25: error: expected ')' before 'n'
22 | printf("Yes"\n);
| ~ ^~
| )
a.cc:26:16: error: expected ')' before 'n'
26 | printf("No"\n);
| ~ ^~
| )
|
s062038888 | p03957 | C++ | #include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<bits/stdc++.h>
#include<cmath>
#include<bitset>
#define ll long long
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define FFOR(i,a,b) for(int i=(a);i<=(b);++i)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) FFOR(i,0,n)
#define SORT(V) sort((V).begin(),(V).end())
#define INF ((1LL<<62)-(1LL<<31))
#define MOD 1000000007
using namespace std;
int main(){
string S;
cin>>S;
bool CAN=false;
for(int i=0; i<S.size()-1; ++i){
for(int j=i+1; j<S.size(); ++j){
if(S.at(i)=="C" && S.at(j)=="F") CAN=true;
}
}
if(CAN) cout<<"Yes"<<endl;
else cout<<"No"<<endl;
} | a.cc: In function 'int main()':
a.cc:25:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
25 | if(S.at(i)=="C" && S.at(j)=="F") CAN=true;
| ~~~~~~~^~~~~
a.cc:25:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
25 | if(S.at(i)=="C" && S.at(j)=="F") CAN=true;
| ~~~~~~~^~~~~
|
s569305030 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<<"Yes";
return 0;
}
}
}
}
cout<<"No";
return 0;
} | 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(register int j=i+1;j<l;j++)
| ^
/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
|
s216042896 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<<"Yes";
return 0;
}
}
}
}
cout<<"No";
return 0;
} | 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(register int j=i+1;j<l;j++)
| ^
/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
|
s867508141 | p03957 | C++ | #include<iostream>
#include<cstring>
using namespace std;
char a[1000001],f[1000001],c[7],b=1,ans,h,d;
int main()
{
gets(a);
for(int i=0;i<strlen(a);i++)
{
if(h==0&&a[i]=='C')
{
h++;
d++;
}
else if(h==1&&a[i]=='F')
{
cout<<"Yes" ;
d++;
}
}
if(d!=2) cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(a);
| ^~~~
| getw
|
s811261401 | p03957 | C++ | #include<iostream>
#include<cstring>
using namespace std;
char a[1000001],f[1000001],c[7],b=1,ans,h,d;
int main()
{
gets(a);
for(int i=1;i<strlen(a);i++)
{
if(h==0&&a[i]=='C')
{
h++;
d++;
}
else if(h==1&&a[i]=='F')
{
cout<<"Yes" ;
d++;
}
}
if(d!=2) cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(a);
| ^~~~
| getw
|
s070529962 | p03957 | C++ | #include<iostream>
#include<cstring>
using namespace std;
char s[202];
int n;
bool flag=0;
int main(){
cin>>s;
n=strlen(s)-1;
for(int i=0;i<=n;i++){
if(s[i]=="C")flag=1;
if(flag&&s[i]=="F"){
cout<<"Yes";
return 0;
}
}
cout<<"No";
return 0;
}
| a.cc: In function 'int main()':
a.cc:11:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
11 | if(s[i]=="C")flag=1;
| ~~~~^~~~~
a.cc:12:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
12 | if(flag&&s[i]=="F"){
| ~~~~^~~~~
|
s008414038 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
char s[1000000];
int main() {
cin >> s;
int len = strlen(s), flag = 0;
for (int i = 0; i < len; ++i)
if (s[i] == 'C' && !flag) flag = 1;
else if (s[i] == 'F' && flag = 1) flag = 2;
if (flag == 2) puts("Yes");
else puts("No");
return 0;
}
| a.cc: In function 'int main()':
a.cc:12:26: error: lvalue required as left operand of assignment
12 | else if (s[i] == 'F' && flag = 1) flag = 2;
| ~~~~~~~~~~~~^~~~~~~
|
s680245052 | p03957 | C++ | #include<iostream>
#include<cstring>
#include<string>
int main()
{
string s;
char c='C',f='F';
int loc1=12321,loc2=-1;
for(int i=0;i,s.size();i++)
if(s[i]=='C')
{
loc1=i;
break;
}
for(int i=s.size()-1;i>=0;i--)
if(s[i]=='F')
{
loc2=i;
break;
}
if(loc2>loc1)
cout<<"Yes\n";
else
cout<<"no\n";
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:5: error: 'string' was not declared in this scope
6 | string s;
| ^~~~~~
a.cc:6:5: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note: 'std::string'
77 | typedef basic_string<char> string;
| ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note: 'std::pmr::string'
76 | using string = basic_string<char>;
| ^~~~~~
a.cc:9:19: error: 's' was not declared in this scope
9 | for(int i=0;i,s.size();i++)
| ^
a.cc:15:15: error: 's' was not declared in this scope
15 | for(int i=s.size()-1;i>=0;i--)
| ^
a.cc:22:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
22 | cout<<"Yes\n";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:24:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
24 | cout<<"no\n";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
|
s996586226 | p03957 | C++ | #include <cstdio>
#include <iostream>
using namespace std;
string a;
int main() {
cin >> a;
int len = a.size();
for(int i = 0; i < len; ++i) {
if(a[i] == 'C') {
for(int j = i + 1; j < len; ++j)
if(a[j] == 'F') {
puts("YES");
return 0;
}
}
}
}
puts("NO");
return 0;
} | a.cc:19:9: error: expected constructor, destructor, or type conversion before '(' token
19 | puts("NO");
| ^
a.cc:20:5: error: expected unqualified-id before 'return'
20 | return 0;
| ^~~~~~
a.cc:21:1: error: expected declaration before '}' token
21 | }
| ^
|
s430538832 | p03957 | C++ | #include <cstdio>
#include <iostream>
using namespace std;
string a;
int main() {
cin >> a;
int len = a.size();
for(int i = 0; i < len; ++i) {
if(a[i] == 'C') {
for(int j = i + 1; j < len; ++j)
if(a[j] == 'F') {
puts("YES");
return 0;
}
}
}
}
puts("NO");
return 0;
} | a.cc:19:9: error: expected constructor, destructor, or type conversion before '(' token
19 | puts("NO");
| ^
a.cc:20:5: error: expected unqualified-id before 'return'
20 | return 0;
| ^~~~~~
a.cc:21:1: error: expected declaration before '}' token
21 | }
| ^
|
s446938388 | p03957 | C++ | #include<iostream>
using namespace std;
int main()
{
string a;
cin>>a;
j=k=0;
for(int i=0;i<a.size();i++)
{
if(a[i]=='C')
{
for(int j=i+1;j<a.size();j++)
if(a[j]=='F')
{
cout<<"Yes"<<'\n';
goto hre;
}
}
}
cout<<"No"<<'\n';
hre:;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:5: error: 'j' was not declared in this scope
7 | j=k=0;
| ^
a.cc:7:7: error: 'k' was not declared in this scope
7 | j=k=0;
| ^
|
s242040254 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<<"Yes";
return 0;
}
}
}
}
cout<<"No";
return 0;
} | 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(register int j=i+1;j<l;j++)
| ^
/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
|
s152292529 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<<"Yes";
return 0;
}
}
}
}
cout<<"No";
return 0;
} | 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(register int j=i+1;j<l;j++)
| ^
/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
|
s341219445 | p03957 | C++ | #include<iostream>
using namespace std;
int main(){
string a; bool v[2]={0};
cin>>a;//读入
for(int i=0;i<a.length();i++){
if(a[i]=='C') v[0]=1;
}
if(v[1]) cout<<"Yes";
else cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:10:16: error: unable to find string literal operator 'operator""\U0000ff1b' with 'const char [3]', 'long unsigned int' arguments
10 | else cout<<"No";
| ^~~~~~
|
s952687744 | p03957 | C++ | #include<iostream>
using namespace std;
int main(){
string a; bool v[2]={0};
cin>>a;//读入
for(int i=0;i<a.length();i++){
if(a[i]=='C') v[0]=1;
}
if(v[1]) cout<<"Yes";
else cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:10:16: error: unable to find string literal operator 'operator""\U0000ff1b' with 'const char [3]', 'long unsigned int' arguments
10 | else cout<<"No";
| ^~~~~~
|
s951467950 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<<"Yes";
return 0;
}
}
}
}
cout<<"No";
return 0;
} | 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(register int j=i+1;j<l;j++)
| ^
/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
|
s668767952 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<<"Yes";
return 0;
}
}
}
}
cout<<"No";
return 0;
} | 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(register int j=i+1;j<l;j++)
| ^
/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
|
s150944851 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<<"Yes";
return 0;
}
}
}
}
cout<<"No";
return 0;
} | 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(register int j=i+1;j<l;j++)
| ^
/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
|
s112893992 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
string s;
int flag[3];
int main() {
cin >> s;
for(int i = 0; i < s.size(); ++i) {
if (a[i] == 'C') flag[1] = 1;
if(a[i]=='F' && flag[0] == 1) flag[2] = 1;
}
if(flag[2] == 0) cout << "No";
else cout << "Yes";
return 0;
} | a.cc: In function 'int main()':
a.cc:8:21: error: 'a' was not declared in this scope
8 | if (a[i] == 'C') flag[1] = 1;
| ^
a.cc:9:20: error: 'a' was not declared in this scope
9 | if(a[i]=='F' && flag[0] == 1) flag[2] = 1;
| ^
|
s085834360 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
string b;
int main(){
int q=0;
cin>>b;
for(int i=0;i<b.size();i++){
if(b[i]=='C')
qwq++;
if(q!=0&&b[i]=='F')
q-=10000000000;
}
if(q<0)
cout<<"Yes";
else
cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:9:5: error: 'qwq' was not declared in this scope
9 | qwq++;
| ^~~
|
s244656931 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
int q,p,w[1000001],u[1000001],o;
string a;
int main()
{
cin>>a;
for (int i=0;i<a.size();i++){
if (a[i]=='C'){
p++;
u[p]=i+1;
}
else if (a[i]=='F'){
q++;
w[q]=i+1;
}
}
if (q>=1 && p>=1){
for (int i=1;i<=p;i++){
for (int j=1;j<=q;j++){
if (u[i]<w[j]){
o=1;
}
}
}
if (o==1)
cout<<"Yes"<<end
else
cout<<"No"<<endl;
}
else
cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:29:36: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
29 | cout<<"Yes"<<end
| ~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/ostream:116:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ostream_type& (*)(__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
116 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ^~~~~~~~
/usr/include/c++/14/ostream:116:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)' {aka 'std::basic_ostream<char>& (*)(std::basic_ostream<char>&)'}
116 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:125:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; __ios_type = std::basic_ios<char>]'
125 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/usr/include/c++/14/ostream:125:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'}
125 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:135:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
135 | operator<<(ios_base& (*__pf) (ios_base&))
| ^~~~~~~~
/usr/include/c++/14/ostream:135:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::ios_base& (*)(std::ios_base&)'
135 | operator<<(ios_base& (*__pf) (ios_base&))
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:174:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
174 | operator<<(long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:174:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int'
174 | operator<<(long __n)
| ~~~~~^~~
/usr/include/c++/14/ostream:178:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
178 | operator<<(unsigned long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:178:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int'
178 | operator<<(unsigned long __n)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:182:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
182 | operator<<(bool __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:182:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'bool'
182 | operator<<(bool __n)
| ~~~~~^~~
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:96:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]'
96 | basic_ostream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:97:22: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short int'
97 | operator<<(short __n)
| ~~~~~~^~~
/usr/include/c++/14/ostream:189:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
189 | operator<<(unsigned short __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:189:33: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short unsigned int'
189 | operator<<(unsigned short __n)
| ~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/ostream.tcc:110:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]'
110 | basic_ostream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:111:20: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int'
111 | operator<<(int __n)
| ~~~~^~~
/usr/include/c++/14/ostream:200:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
200 | operator<<(unsigned int __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:200:31: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'unsigned int'
200 | operator<<(unsigned int __n)
| ~~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:211:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
211 | operator<<(long long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:211:28: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int'
211 | operator<<(long long __n)
| ~~~~~~~~~~^~~
/usr/include/c++/14/ostream:215:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
215 | operator<<(unsigned long long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:215:37: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long unsigned int'
215 | operator<<(unsigned long long __n)
| ~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:231:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
231 | operator<<(double __f)
| ^~~~~~~~
/usr/include/c++/14/ostream:231:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'double'
231 | operator<<(double __f)
| ~~~~~~~^~~
/usr/include/c++/14/ostream:235:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
235 | operator<<(float __f)
| ^~~~~~~~
/usr/include/c++/14/ostream:235:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float'
235 | operator<<(float __f)
| ~~~~~~^~~
/usr/include/c++/14/ostream:243:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
243 | operator<<(long double __f)
| ^~~~~~~~
/usr/include/c++/14/ostream:243:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long double'
243 | operator<<(long double __f)
| ~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:301:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
301 | operator<<(const void* __p)
| ^~~~~~~~
/usr/include/c++/14/ostream:301:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const void*'
301 | operator<<(const void* __p)
| ~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:306:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::nullptr_t) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; std::nullptr_t = std::nullptr_t]'
306 | operator<<(nullptr_t)
| ^~~~~~~~
/usr/include/c++/14/ostream:306:18: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::nullptr_t'
306 | |
s065088264 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++){
if(s[i]=='C'){
for(register int j=i+1;j<l;j++){
if(s[j]=='F'){
cout<<"Yes";
return 0;
}
}
}
}
cout<<"No";
return 0;
} | a.cc: In function 'int mian()':
a.cc:11:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
11 | for(register int i=0;i<l;i++){
| ^
a.cc:13:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
13 | for(register int j=i+1;j<l;j++){
| ^
/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
|
s060246113 | p03957 | C++ | #include<bits/stdc++.h>
using namspace std;
char s[10000001];
int main()
{
gets(s);
for(int i=0;i<n;i++)
{
if(s[i]=='C'){
for(int j=i;j<n;j++)
{
if(s[j]=='F'){cout<<"Yes";return 0;}
}
}
}
cout<<"No";
return 0;
} | a.cc:2:7: error: expected nested-name-specifier before 'namspace'
2 | using namspace std;
| ^~~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
6 | gets(s);
| ^~~~
| getw
a.cc:7:19: error: 'n' was not declared in this scope
7 | for(int i=0;i<n;i++)
| ^
a.cc:12:15: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
12 | if(s[j]=='F'){cout<<"Yes";return 0;}
| ^~~~
| std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:16:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
16 | cout<<"No";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
|
s320007731 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string a,b,c,d,e;
cin>>a;
b=a.size();
for(register int i=1;i<=b;i++){
if(a[i]=='C'){
c=i;
break;
}
}
for(register int i=b;i>=1;i++){
if(a[i]=='F'){
d=i;
break;
}
}
if(c<d) cout<<"Yes"<<endl;
else cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:26: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
7 | for(register int i=1;i<=b;i++){
| ^
a.cc:7:31: error: no match for 'operator<=' (operand types are 'int' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
7 | for(register int i=1;i<=b;i++){
| ~^~~
| | |
| | std::string {aka std::__cxx11::basic_string<char>}
| int
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1154:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator<=(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1154 | operator<=(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1154:5: note: template argument deduction/substitution failed:
a.cc:7:33: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int'
7 | for(register int i=1;i<=b;i++){
| ^
/usr/include/c++/14/bits/regex.h:1260:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<=(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1260 | operator<=(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1260:5: note: template argument deduction/substitution failed:
a.cc:7:33: note: mismatched types 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' and 'int'
7 | for(register int i=1;i<=b;i++){
| ^
/usr/include/c++/14/bits/regex.h:1353:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<=(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1353 | operator<=(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1353:5: note: template argument deduction/substitution failed:
a.cc:7:33: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int'
7 | for(register int i=1;i<=b;i++){
| ^
/usr/include/c++/14/bits/regex.h:1427:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<=(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1427 | operator<=(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1427:5: note: template argument deduction/substitution failed:
a.cc:7:33: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | for(register int i=1;i<=b;i++){
| ^
/usr/include/c++/14/bits/regex.h:1521:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<=(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1521 | operator<=(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1521:5: note: template argument deduction/substitution failed:
a.cc:7:33: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int'
7 | for(register int i=1;i<=b;i++){
| ^
/usr/include/c++/14/bits/regex.h:1599:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<=(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1599 | operator<=(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1599:5: note: template argument deduction/substitution failed:
a.cc:7:33: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | for(register int i=1;i<=b;i++){
| ^
/usr/include/c++/14/bits/regex.h:1699:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<=(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1699 | operator<=(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1699:5: note: template argument deduction/substitution failed:
a.cc:7:33: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int'
7 | for(register int i=1;i<=b;i++){
| ^
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1064:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<=(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1064 | operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1064:5: note: template argument deduction/substitution failed:
a.cc:7:33: note: mismatched types 'const std::pair<_T1, _T2>' and 'int'
7 | for(register int i=1;i<=b;i++){
| ^
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:469:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<=(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
469 | operator<=(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:469:5: note: template argument deduction/substitution failed:
a.cc:7:33: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'int'
7 | for(register int i=1;i<=b;i++){
| ^
/usr/include/c++/14/bits/stl_iterator.h:513:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<=(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
513 | operator<=(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:513:5: note: template argument deduction/substitution failed:
a.cc:7:33: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'int'
7 | for(register int i=1;i<=b;i++){
| ^
/usr/include/c++/14/bits/stl_iterator.h:1704:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<=(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1704 | operator<=(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1704:5: note: template argument deduction/substitution failed:
a.cc:7:33: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'int'
7 | for(register int i=1;i<=b;i++){
| ^
/usr/include/c++/14/bits/stl_iterator.h:1767:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<=(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1767 | operator<=(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1767:5: note: template argument deduction/substitution failed:
a.cc:7:33: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'int'
7 | for(register int i=1;i<=b;i++){
| ^
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/string_view:717:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<=(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
717 | operator<=(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:717:5: note: template argument deduction/substitution failed:
a.cc:7:33: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int'
7 | for(register int i=1;i<=b;i++){
| ^
/usr/include/c++/14/string_view:724:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<=(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
724 | operator<=(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:724:5: note: template argument deduction/substitution failed:
a.cc:7:33: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int'
7 | for(register int i=1;i<=b;i++){
| ^
/usr/include/c++/14/string_view:732:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<=(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)'
732 | operator<=(__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:732:5: note: template argument deduction/substitution failed:
a.cc:7:33: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
7 | for(register int i=1;i<=b;i++){
| ^
/usr/include/c++/14/bits/basic_string.h:3956:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<=(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3956 | |
s852125351 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
string b;
int main(){
int q=0;
cin>>b;
for(int i=0;i<b.size();i++){
if(b[i]=='C')
qwq++;
if(q!=0&&b[i]=='F')
q-=10000000000;/
}
if(q<0)
cout<<"Yes";
else
cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:9:5: error: 'qwq' was not declared in this scope
9 | qwq++;
| ^~~
a.cc:11:20: error: expected primary-expression before '/' token
11 | q-=10000000000;/
| ^
a.cc:12:5: error: expected primary-expression before '}' token
12 | }
| ^
|
s108038778 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<cstring>
using namespace std;
string b;
int main(){
int q=0;
cin>>b;
for(int i=0;i<b.size();i++){
if(b[i]=='C')
qwq++;
if(q!=0&&b[i]=='F')
q-=10000000000;/
}
if(q<0)
cout<<"Yes";
else
cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:11:5: error: 'qwq' was not declared in this scope
11 | qwq++;
| ^~~
a.cc:13:20: error: expected primary-expression before '/' token
13 | q-=10000000000;/
| ^
a.cc:14:5: error: expected primary-expression before '}' token
14 | }
| ^
|
s698033097 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<<"Yes";
return 0;
}
}
}
}
cout<<"No";
return 0;
} | 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(register int j=i+1;j<l;j++)
| ^
/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
|
s692970485 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<<"Yes";
return 0;
}
}
}
}
cout<<"No";
return 0;
} | 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(register int j=i+1;j<l;j++)
| ^
/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
|
s965026974 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
bool flg=false;
while(cin>>){
string st;
cin>>st;
if(st=='C'){
flg=true;
}
if(st=='F'&&flg==true){
cout<<"Yes"<<endl;
return 0;
}
}
cout<<"No"<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:5:20: error: expected primary-expression before ')' token
5 | while(cin>>){
| ^
a.cc:8:22: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
8 | if(st=='C'){
| ~~^~~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if(st=='C'){
| ^~~
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if(st=='C'){
| ^~~
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if(st=='C'){
| ^~~
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if(st=='C'){
| ^~~
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if(st=='C'){
| ^~~
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if(st=='C'){
| ^~~
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if(st=='C'){
| ^~~
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
8 | if(st=='C'){
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
8 | if(st=='C'){
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | if(st=='C'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | if(st=='C'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | if(st=='C'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | if(st=='C'){
| ^~~
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
8 | if(st=='C'){
| ^~~
In file included from /usr/include/c++/14/string:43:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
8 | if(st=='C'){
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_Char |
s956629921 | p03957 | C++ | #include<cstdio>
#include<iostream>
using namespace std;
char a[1000];
int main()
{
bool x=0;
gets(a);
int n=strlen(a);
for(int i=0;i<n;++i)
{
if(a[i]=='C')
x=1;
if(x==1&&a[i]=='F')
{
cout<<"Yes";
return 0;
}
}
cout<<"No";
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
8 | gets(a);
| ^~~~
| getw
a.cc:9:15: error: 'strlen' was not declared in this scope
9 | int n=strlen(a);
| ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
2 | #include<iostream>
+++ |+#include <cstring>
3 | using namespace std;
|
s092594157 | p03957 | C++ | #include<cstdio>
#include<iostream>
using namespace std;
char a[1000];
int main()
{
bool x=0;
gets(a);
int n=strlen(a);
for(int i=0;i<n;++i)
{
if(a[i]=='C')
x=1;
if(x==1&&a[i]=='F')
{
cout<<"Yes";
return 0;
}
}
cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:8:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
8 | gets(a);
| ^~~~
| getw
a.cc:9:15: error: 'strlen' was not declared in this scope
9 | int n=strlen(a);
| ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
2 | #include<iostream>
+++ |+#include <cstring>
3 | using namespace std;
|
s768219787 | p03957 | C++ | #include<cstdio>
#include<iostream>
using namespace std;
char a[1000];
int main()
{
bool x=0;
gets(a);
int n=strlen(a);
for(int i=0;i<n;++i)
{
if(a[i]=='C')
x=1;
if(x==1&&a[i]=='F')
{
cout<<"Yes"<<endl;
return 0;
}
}
cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:8:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
8 | gets(a);
| ^~~~
| getw
a.cc:9:15: error: 'strlen' was not declared in this scope
9 | int n=strlen(a);
| ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
2 | #include<iostream>
+++ |+#include <cstring>
3 | using namespace std;
|
s024036726 | p03957 | C++ | #include<cstdio>
#include<iostream>
using namespace std;
char a[1000];
int main()
{
bool x=0;
gets(a);
int n=strlen(a);
for(int i=0;i<n;++i)
{
if(a[i]=='C')
x=1;
if(x==1&&a[i]=='F')
{
cout<<"Yes"<<endl;
return 0;
}
}
cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
8 | gets(a);
| ^~~~
| getw
a.cc:9:15: error: 'strlen' was not declared in this scope
9 | int n=strlen(a);
| ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
2 | #include<iostream>
+++ |+#include <cstring>
3 | using namespace std;
|
s333104045 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int A,B,C,D,E;
string S;
cin >> S;
if(S.find("C")==string::npos||S.find("F")==string::npos)cout<<"No"<<endl;
else{
if(S.find("C")>S.find("F")){
if(S.find("CF")!=string::npos)cout << "Yes"<<endl;
else cout <<"No"<<endl;
else cout <<"Yes"<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:12:5: error: expected '}' before 'else'
12 | else cout <<"Yes"<<endl;
| ^~~~
a.cc:9:32: note: to match this '{'
9 | if(S.find("C")>S.find("F")){
| ^
|
s790988486 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int A,B,C,D,E;
string S;
cin >> S;
if(S.find("C")==string::npos||S.find("F")==string::npos)cout<<"No"<<endl;
else{
if(S.find("C")>S.find("F"))cout <<"No"<<endl;
else cout <<"Yes"<<endl;
}
| a.cc: In function 'int main()':
a.cc:11:2: error: expected '}' at end of input
11 | }
| ^
a.cc:3:11: note: to match this '{'
3 | int main(){
| ^
|
s658890682 | p03957 | C++ | #include<cstring>
#include<iostream>
using namespace std;
int main()
{
int le,f=0;
char c[101];
le=strlen(c)
for(int i=0;i<le;i++)
{
if(c[i]=='C'&&f==0)
f=i;
if(c[i]=='F'&&f!=0)
{
cout<<"YES";
return 0;
}
}
cout<<"NO";
} | a.cc: In function 'int main()':
a.cc:8:17: error: expected ';' before 'for'
8 | le=strlen(c)
| ^
| ;
9 | for(int i=0;i<le;i++)
| ~~~
a.cc:9:17: error: 'i' was not declared in this scope
9 | for(int i=0;i<le;i++)
| ^
|
s407869731 | p03957 | C++ | #include<cstring>
#include<iostream>
using namespace std;
int main()
{
int le,f=0;
char c[101];
le=strlen(c)
for(int i=0;i>le;i++)
{
if(c[i]=='C'&&f==0)
f=i;
if(c[i]=='F'&&f!=0)
{
cout<<"YES";
return 0;
}
}
cout<<"NO";
} | a.cc: In function 'int main()':
a.cc:8:17: error: expected ';' before 'for'
8 | le=strlen(c)
| ^
| ;
9 | for(int i=0;i>le;i++)
| ~~~
a.cc:9:17: error: 'i' was not declared in this scope
9 | for(int i=0;i>le;i++)
| ^
|
s955066056 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
string a;
cin>>a;
for(i=0;i<a.length();i++){
if(a[i]=='C'){
for(int j=i;j<a.length();j++){
if(a[j]=='F'){
cout<<"Yes";
break;
return 0;
}
}
}
}
cout<<"No";
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:13: error: 'i' was not declared in this scope
7 | for(i=0;i<a.length();i++){
| ^
|
s776387687 | p03957 | C++ | #include<bits/stdc++.h>
char n[10010];
bool c,f;
int main()
{
cin>>n;
for(int i=0; i<strlen(n); i++)
{
if(n[i]=='C')
c=true;
if(n[i]=='F'&&c==true)
f=true;
}
if(f==true)
cout<<"Yes\n";
else
cout<<"No\n";
return 0;
} | a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | cin>>n;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:15:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
15 | cout<<"Yes\n";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:17:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
17 | cout<<"No\n";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
|
s925536184 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<<"Yes";
return 0;
}
}
}
}
cout<<"No";
return 0;
} | 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(register int j=i+1;j<l;j++)
| ^
/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
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.