submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3 values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s083369330 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
string s;
cin>>s;
int t=-1;
int n=s.size();
for(int i=1;i<=n;i++)
if((char)s[i]=='C')
{
t=i;
break;
}
for(int j=t;j<=n;j++)
if((char)s[i]=='F')
{
cout<<"Yes";
return 0;
}
cout<<"No";
} | a.cc: In function 'int main()':
a.cc:16:28: error: 'i' was not declared in this scope
16 | if((char)s[i]=='F')
| ^
|
s683050336 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
string s;
cin>>s;
int t=-1;
int n=s.size();
for(int i=1;i<=n;i++)
if((char)s[i]=='C')
{
t=i;
break;
}
for(int j=t;j<=n;j++)
if((char)s[i]=='F')
{
cout<<"Yes";
return 0;
}
cout<<"No";
} | a.cc: In function 'int main()':
a.cc:16:28: error: 'i' was not declared in this scope
16 | if((char)s[i]=='F')
| ^
|
s197978910 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
string s;
cin>>s;
int t=-1;
int n=s.size();
for(int i=1;i<=n;i++)
if(s[i]=='C')
{
t=i;
break;
}
for(int j=t;j<=n;j++)
if(s[i]=='F')
{
cout<<"Yes";
return 0;
}
cout<<"No";
} | a.cc: In function 'int main()':
a.cc:16:22: error: 'i' was not declared in this scope
16 | if(s[i]=='F')
| ^
|
s121400193 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
string a;
int main()
{
cin>>a;
for(int i=0;i<a.size();i++)
{
if(a[i]=='C')
{
for(int j=i+1;j<a.size;j++)
{
if(a[j]=='F')return !(cout<<"Yes\n");
}
}
}
cout<<"No\n";
} | a.cc: In function 'int main()':
a.cc:11:31: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
11 | for(int j=i+1;j<a.size;j++)
| ~~^~~~
| ()
|
s500310528 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
int c=0;
int f=0;#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
int c=0;
int f=0;
int a=0;
for(int i=0;i<s.size();i++){
if(s.at(i)=='C'){
c++;
a = i;
break;
}
}
for(int i=a+1;i<s.size();i++){
if(s.at(i)=='F'){
f++;
break;
}
}
if(c>0 && f>0){
cout << "Yes" << endl;
}
else{
cout << "No" << endl;
}
}
| a.cc:8:13: error: stray '#' in program
8 | int f=0;#include <bits/stdc++.h>
| ^
a.cc: In function 'int main()':
a.cc:8:14: error: 'include' was not declared in this scope
8 | int f=0;#include <bits/stdc++.h>
| ^~~~~~~
a.cc:8:23: error: 'bits' was not declared in this scope
8 | int f=0;#include <bits/stdc++.h>
| ^~~~
a.cc:8:28: error: 'stdc' was not declared in this scope; did you mean 'std'?
8 | int f=0;#include <bits/stdc++.h>
| ^~~~
| std
a.cc:9:1: error: expected primary-expression before 'using'
9 | using namespace std;
| ^~~~~
a.cc:11:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
11 | int main() {
| ^~
a.cc:11:9: note: remove parentheses to default-initialize a variable
11 | int main() {
| ^~
| --
a.cc:11:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:11:12: error: a function-definition is not allowed here before '{' token
11 | int main() {
| ^
a.cc:36:2: error: expected '}' at end of input
36 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s967010530 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
int c=0;
int f=0;#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
int c=0;
int f=0;
int a=0;
for(int i=0;i<s.size();i++){
if(s.at(i)=='C'){
c++;
a = i;
break;
}
}
for(int i=a+1;i<s.size();i++){
if(s.at(i)=='F'){
f++;
break;
}
}
if(c>0 && f>0){
cout << "Yes" << endl;
}
else{
cout << "No" << endl;
}
}
for(int i=0;i<s.size();i++){
if(s.at(i)=='C'){
c++;
}
}
if(s.at(i)=='F'){
f++;
}
}
if(c>0 && f>0){
cout << "Yes" << endl;
}
else{
cout << "No" << endl;
}
}
| a.cc:8:13: error: stray '#' in program
8 | int f=0;#include <bits/stdc++.h>
| ^
a.cc: In function 'int main()':
a.cc:8:14: error: 'include' was not declared in this scope
8 | int f=0;#include <bits/stdc++.h>
| ^~~~~~~
a.cc:8:23: error: 'bits' was not declared in this scope
8 | int f=0;#include <bits/stdc++.h>
| ^~~~
a.cc:8:28: error: 'stdc' was not declared in this scope; did you mean 'std'?
8 | int f=0;#include <bits/stdc++.h>
| ^~~~
| std
a.cc:9:1: error: expected primary-expression before 'using'
9 | using namespace std;
| ^~~~~
a.cc:11:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
11 | int main() {
| ^~
a.cc:11:9: note: remove parentheses to default-initialize a variable
11 | int main() {
| ^~
| --
a.cc:11:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:11:12: error: a function-definition is not allowed here before '{' token
11 | int main() {
| ^
a.cc:44:15: error: 'i' was not declared in this scope
44 | if(s.at(i)=='F'){
| ^
a.cc: At global scope:
a.cc:48:5: error: expected unqualified-id before 'if'
48 | if(c>0 && f>0){
| ^~
a.cc:51:5: error: expected unqualified-id before 'else'
51 | else{
| ^~~~
a.cc:54:1: error: expected declaration before '}' token
54 | }
| ^
|
s149086602 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
int a=0;
string s;
int main()
{
cin>>s;
for (int i=0;i<s.size();i++)
{
if (s[i]=='C') a=1;
if (s[i]=='F'&&a=1){
cout<<"YES"<<endl;
return 0;
}
}
cout<<"NO"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:11:22: error: lvalue required as left operand of assignment
11 | if (s[i]=='F'&&a=1){
|
s828004207 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
int a=0
string s;
int main()
{
cin>>s;
for (int i=0;i<s.size();i++)
{
if (s[i]=='C') a=1;
if (s[i]=='F'&&a=1){
cout<<"YES"<<endl;
return 0;
}
}
cout<<"NO"<<endl;
return 0;
} | a.cc:4:1: error: expected ',' or ';' before 'string'
4 | string s;
| ^~~~~~
a.cc: In function 'int main()':
a.cc:7:10: error: 's' was not declared in this scope
7 | cin>>s;
| ^
|
s856963293 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
bool pd=true;
string s;
int main()
{
cin>>s;
for (int i=0;i<s.size();i++)
{
if (s[i]=='C') pd=false;
if (s[i]=="F"||pd==false){
cout<<"YES";
return 0;
}
}
cout<<"NO";
return 0;
} | a.cc: In function 'int main()':
a.cc:11:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
11 | if (s[i]=="F"||pd==false){
|
s181757741 | p03957 | C++ | #include <bits/stdc++.h>
using namspace std;
bool pd=true;
string s;
int main()
{
cin>>s;
for (int i=0;i<s.size();i++)
{
if (s[i]=='C') pd=false;
if (s[i]=="F"||pd==false){
cout<<"YES";
return 0;
}
}
cout<<"NO";
return 0;
} | a.cc:2:7: error: expected nested-name-specifier before 'namspace'
2 | using namspace std;
| ^~~~~~~~
a.cc:4:1: error: 'string' does not name a type; did you mean 'stdin'?
4 | string s;
| ^~~~~~
| stdin
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
7 | cin>>s;
| ^~~
| 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:7:10: error: 's' was not declared in this scope
7 | cin>>s;
| ^
a.cc:12:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
12 | 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:5: 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
| ^~~~
|
s225958251 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
string ans = "No";
for (int i = 0; i < s.size()-1; i++) {
if (str.at(i) == 'C') {
for (int j = i+1; j < s.size(); j++) {
if (str.at(j) == 'F') {
ans = "Yes";
}
}
}
}
cout << ans << endl;
}
| a.cc: In function 'int main()':
a.cc:9:13: error: 'str' was not declared in this scope; did you mean 'std'?
9 | if (str.at(i) == 'C') {
| ^~~
| std
|
s429645965 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
string ans = "No";
for (int i = 0; i < s.size()-1; i++) {
if (str.at(i) == 'C') {
for (int j = i+1; j < s.size(); j++) {
if (str.at(j) == 'F') {
ans = "Yes";
}
}
}
}
cout << ans << endl;
} | a.cc: In function 'int main()':
a.cc:9:13: error: 'str' was not declared in this scope; did you mean 'std'?
9 | if (str.at(i) == 'C') {
| ^~~
| std
|
s992988243 | p03957 | C++ | #include<iostream>
using namespace std;
char a[10000];
int main()
{
int c=0;
gets(a);
int len=strlen(a);
for(int i=0;i<len;i++)
{
if(a[i]=='C')
c=1;
if(c==1&&a[i]=='F')
{
cout<<"YES"<<endl;
return 0;
}
}
cout<<"NO"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(a);
| ^~~~
| getw
a.cc:8:13: error: 'strlen' was not declared in this scope
8 | int len=strlen(a);
| ^~~~~~
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;
|
s003309098 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
string s;
cin>>s;
int box1=0,box2=0;
for(int i=0;i<s.size;i++)
{
if(s[i]=='C')
{
box1++;
}
if(s[i]=='F')
{
box2++;
}
}
if(box1!=0&&box2!=0)
{
cout<<"Yes";
}
else
{
cout<<"No";
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:25: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
8 | for(int i=0;i<s.size;i++)
| ~~^~~~
| ()
|
s564732397 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string a;
cin>>a;
int num=0;
for(int i=0;i<a.size();i++){
if(a[i]=='C'){
num=1;
}
if(a[i]=='F'&&num==1){
cout<<"Yes"<<endl;
return 0;
}
}
cout<<"No"endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:16:11: error: unable to find string literal operator 'operator""endl' with 'const char [3]', 'long unsigned int' arguments
16 | cout<<"No"endl;
| ^~~~~~~~
|
s740951283 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string str;
cin>>str;
int ps=str.find('C');
if(ps==-1){
puts("No");
return 0;
}
if(str.find('F',ps)!=str::npos){
puts("Yes");
}else{
puts("No");
}
return 0;
} | a.cc: In function 'int main()':
a.cc:11:26: error: 'str' is not a class, namespace, or enumeration
11 | if(str.find('F',ps)!=str::npos){
| ^~~
|
s709874057 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
string s;
int mian()
{
cin>>s;
int len = s.size();
for(int i = 0;i < len;i++)
{
if(s[i] == 'C')
for(int j = i + 1;j < len;j++)
{
if(s[j]=='F')
{
cout << "Yes";
return 0;
}
}
}
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
|
s989062954 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
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
|
s445444379 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main() {
string a;
cin>>a;
int cnt=0;
for(int i=0; i<a.size(); i++) {
if(a[i]=='C') {
cnt=1;
}
if(a[i]=='F'&&cnt==1)
cout<<"Yes"<<endl;
else
cout<<"No"<<endl;
}
return 0; | a.cc: In function 'int main()':
a.cc:16:18: error: expected '}' at end of input
16 | return 0;
| ^
a.cc:3:12: note: to match this '{'
3 | int main() {
| ^
|
s929989002 | p03957 | C++ | #include <iostream>
#include <string>
using namespace std;
int main()
{
string str;
cin>>str;
if(str.find('C')!=npos&&str.find('F')!=npos&&str.find('C')<str.find('F'))
cout<<"Yes"<<endl;
else
cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:23: error: 'npos' was not declared in this scope
8 | if(str.find('C')!=npos&&str.find('F')!=npos&&str.find('C')<str.find('F'))
| ^~~~
|
s341679848 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
char ch[100001];
cin>>ch;
int flag=0;
for(int i=0;i<strlen(ch);i++)
{
if(a[i]=='C')
flag=1;
if(a[i]=='F'&&flag==1)
{
cout<<"Yes";
return 0;
}
}
cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:10:12: error: 'a' was not declared in this scope
10 | if(a[i]=='C')
| ^
a.cc:12:12: error: 'a' was not declared in this scope
12 | if(a[i]=='F'&&flag==1)
| ^
|
s791397025 | p03957 | C++ | #include<iostream>
#include<cstdlib>
#include<cstdio>
#include<cstring>
#include<string>
#include<cmath>
using namespace std;
char s[1001];
bool c=false,f=false;
int c1=0,f1=0;
int main()
{
gets(s);
int len=strlen(s);
for(int i=0;i<len;i++)
{
if(s[i]=='C' && c1==0)
{
c=true;
c1=i;
}
if(s[i]=='F)
{
f=true;
f1=i;
}
}
if(c1<f1 && (c) && (f)) cout<<"YES"<<endl;
else cout<<"NO"<<endl;
return 0;
} | a.cc:23:26: warning: missing terminating ' character
23 | if(s[i]=='F)
| ^
a.cc:23:26: error: missing terminating ' character
23 | if(s[i]=='F)
| ^~~
a.cc: In function 'int main()':
a.cc:14:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
14 | gets(s);
| ^~~~
| getw
a.cc:24:17: error: expected primary-expression before '{' token
24 | {
| ^
a.cc:23:26: error: expected ')' before '{' token
23 | if(s[i]=='F)
| ~ ^
| )
24 | {
| ~
a.cc:28:9: error: expected primary-expression before '}' token
28 | }
| ^
|
s924839000 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
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
|
s907769899 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cin>>s;
bool a=0,b=0;
for(int i=0;i<s.size();i++){
if(s[i]=='C'){
a=1;
}
}
if(a==0){
return 0;
cout<<"No";
}
for(int i=0;i<s.size();i++){
if(s[i]=='F'){
b=1;
}
}
if(b==0){
cout<<"No"
return 0;
}
cout<<"Yes";
return 0;
} | a.cc: In function 'int main()':
a.cc:23:27: error: expected ';' before 'return'
23 | cout<<"No"
| ^
| ;
24 | return 0;
| ~~~~~~
|
s424212951 | p03957 | C++ | #include <iostream>
#include <string.h>
#include <stdio.h>
#include <string>
using namespace std;
string a;
int main () {
cin >> a;
if (a.find(C) != string::npos
&& a.find(F) != string::npos) cout << "Yes" << endl;
else cout << "No" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:12:20: error: 'C' was not declared in this scope
12 | if (a.find(C) != string::npos
| ^
a.cc:13:19: error: 'F' was not declared in this scope
13 | && a.find(F) != string::npos) cout << "Yes" << endl;
| ^
|
s697438131 | p03957 | C++ | #include<cstdio>
#include<iostream>
using namespace std;
int main()
{
char t[100];
bool C=false,F=false;
cin>>t;
for(int i=0;t[i]!='\0';i++)
{
if(t[i]=='C')C=true;
if(t[i]=='F')f=true;
}
if(C&&F)printf("yes\n");
else printf("No\n");
return 0;
} | a.cc: In function 'int main()':
a.cc:12:22: error: 'f' was not declared in this scope
12 | if(t[i]=='F')f=true;
| ^
|
s207595694 | p03957 | C++ | #include<iostream>
#include<string>
using namespace std;
string x;
int c,f;
int main()
{
cin >> x;
for (int i = 0; i < x.length(); i++)
{
if (x[i] == 'C')
{
for (int j = i + 1;j < x.length; j++)
{
if (x[j] == 'F')
{
cout << "yes\n";
return 0;
}
}
}
}
cout << "no\n";
return 0;
} | a.cc: In function 'int main()':
a.cc:13:66: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
13 | for (int j = i + 1;j < x.length; j++)
| ~~^~~~~~
| ()
|
s935866570 | p03957 | C | #include<stdio.h>
#include<string.h>
char s[105];
int main()
{
int i,len,j;
scanf("%s",s);
len=strlen(s);
else if(len==2)
{
if(s[0]=='C'&&s[1]=='F')
printf("YES");
else printf("NO");
}
for(i=0;i<len-1;i++)
{
if(s[i]=='C')
{
for(j=i+1;j<len;j++)
{
if(s[j]=='F')
{
printf("Yes");
return 0;
}
}
}
}
printf("No");
return 0;
} | main.c: In function 'main':
main.c:9:9: error: 'else' without a previous 'if'
9 | else if(len==2)
| ^~~~
|
s856825042 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
char ch[110];
int main()
{
bool flag1=0,flag2=0;
cin>>ch;
int chlen=strlen(ch);
for(int i=0;i<chlen;i++)
{
if(ch[i]=='C') flag1=1,x=i;
if(ch[i]=='F') flag2=1,y=i;
}
if(flag1==1&&flag2==1&&x<y) cout<<"Yes"<<endl;
else cout<<"No"<<endl;
} | a.cc: In function 'int main()':
a.cc:11:40: error: 'x' was not declared in this scope
11 | if(ch[i]=='C') flag1=1,x=i;
| ^
a.cc:12:40: error: 'y' was not declared in this scope
12 | if(ch[i]=='F') flag2=1,y=i;
| ^
a.cc:14:32: error: 'x' was not declared in this scope
14 | if(flag1==1&&flag2==1&&x<y) cout<<"Yes"<<endl;
| ^
a.cc:14:34: error: 'y' was not declared in this scope; did you mean 'yn'?
14 | if(flag1==1&&flag2==1&&x<y) cout<<"Yes"<<endl;
| ^
| yn
|
s748181511 | p03957 | C++ | import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
boolean isC=false,ok=false;
String s=sc.next();
for(int i=0;i<s.length();i++){
if(s.charAt(i)=='C'){
isC=true;
}
if(isC&&s.charAt(i)=='F'){
ok=true;
}
}
if(ok==true){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
} | a.cc:1:1: error: 'import' does not name a type
1 | import java.util.*;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:15: error: expected ':' before 'static'
4 | public static void main(String[] args){
| ^~~~~~~
| :
a.cc:4:33: error: 'String' has not been declared
4 | public static void main(String[] args){
| ^~~~~~
a.cc:4:42: error: expected ',' or '...' before 'args'
4 | public static void main(String[] args){
| ^~~~
a.cc:22:2: error: expected ';' after class definition
22 | }
| ^
| ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:17: error: 'Scanner' was not declared in this scope
5 | Scanner sc=new Scanner(System.in);
| ^~~~~~~
a.cc:6:17: error: 'boolean' was not declared in this scope; did you mean 'bool'?
6 | boolean isC=false,ok=false;
| ^~~~~~~
| bool
a.cc:7:17: error: 'String' was not declared in this scope
7 | String s=sc.next();
| ^~~~~~
a.cc:8:31: error: 's' was not declared in this scope
8 | for(int i=0;i<s.length();i++){
| ^
a.cc:10:33: error: 'isC' was not declared in this scope
10 | isC=true;
| ^~~
a.cc:12:28: error: 'isC' was not declared in this scope
12 | if(isC&&s.charAt(i)=='F'){
| ^~~
a.cc:13:33: error: 'ok' was not declared in this scope
13 | ok=true;
| ^~
a.cc:16:20: error: 'ok' was not declared in this scope
16 | if(ok==true){
| ^~
a.cc:17:25: error: 'System' was not declared in this scope
17 | System.out.println("Yes");
| ^~~~~~
a.cc:19:25: error: 'System' was not declared in this scope
19 | System.out.println("No");
| ^~~~~~
|
s981399231 | p03957 | C++ | #include<iostream>
using namespace std;
int main(){
string a;
bool v[2]={0};
cin>>a;//读入
for(int i=0;i<a.length();i++)
if(a[i]=='C') v[0]=1;
if(a[i]=='F'&&v[0])
v[1]=1;
}
if(v[1]) cout<<"Yes";
else cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:9:14: error: 'i' was not declared in this scope
9 | if(a[i]=='F'&&v[0])
| ^
a.cc: At global scope:
a.cc:12:5: error: expected unqualified-id before 'if'
12 | if(v[1]) cout<<"Yes";
| ^~
a.cc:13:5: error: expected unqualified-id before 'else'
13 | else cout<<"No";
| ^~~~
a.cc:14:5: error: expected unqualified-id before 'return'
14 | return 0;
| ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
15 | }
| ^
|
s613821751 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
char a[266];
int main()
{
int b=100;
cin>>a;
for(int i=0;i<strlen(a)&&b!=0;i++)
{
if(a[i]=='C'||b=10)
{
b=10;
if(a[i]=='F'&&b==10)
b=0;
}
}
if(b==0)
cout<<"Yes";
else
cout<<"No";
} | a.cc: In function 'int main()':
a.cc:10:29: error: lvalue required as left operand of assignment
10 | if(a[i]=='C'||b=10)
| ~~~~~~~~~^~~
|
s123290235 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
char a[266];
int main()
{
int b=100;
cin>>a;
for(int i=0;i<strlen(a)&&b!=0;i++)
{
if(a[i]=='C')
{
b=10;
if(a[j]=='F'&&b==10)
b=0;
}
}
if(b==0)
cout<<"Yes";
else
cout<<"No";
} | a.cc: In function 'int main()':
a.cc:13:30: error: 'j' was not declared in this scope
13 | if(a[j]=='F'&&b==10)
| ^
|
s231750568 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
string s;
int sum,sum1,n;
int main()
{
cin>>s;
for(int i=0;i<s.size();i++)
{
if(s[i]=='C'&&sum==0)
{
sum1=1;
}
if(s[i]=='F'&&sum1=1)
{
sum=1;
}
}
n=sum+sum1;
if(n==2)cout<<"Yes";
else cout<<"No";
return 0;
}
| a.cc: In function 'int main()':
a.cc:14:29: error: lvalue required as left operand of assignment
14 | if(s[i]=='F'&&sum1=1)
|
s079014817 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
int q,p,w[1000001],u[1000001],o;
string a;
int main()
{
cin>>a;
for (int i=0;i<a.size();i++)
{
if (a[i]=='C')
{
p++;
u[p]=i+1;
}
else if (a[i]=='F')
{
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"<<endl;
else
cout<<"No"<<endl;
else
cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:40:6: error: expected '}' before 'else'
40 | else
| ^~~~
a.cc:24:6: note: to match this '{'
24 | {
| ^
|
s674324020 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
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
|
s785580056 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
string s;
cin>>s;
bool flag=true;
for(int i=0;i<s.size();i++)
{
if(s[i]=='C')
{
for(int j=i;j<S.size();j++)
{
if(s[j]=='F')
{
cout<<"Yes"<<endl;
return 0;
}
}
}
}
cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:12:27: error: 'S' was not declared in this scope
12 | for(int j=i;j<S.size();j++)
| ^
|
s174536262 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
string S;
cin>>S;
bool flag=true;
for(int i=0;i<S.size()&&flag=true;i++)
{
if(S[i]=='C')
{
for(int j=i;j<S.size();j++)
{
if(S[j]=='F')
{
flag=false;
break;
}
}
}
}
if(flag=true) cout<<"Yes"<<endl;
else cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:27: error: lvalue required as left operand of assignment
8 | for(int i=0;i<S.size()&&flag=true;i++)
| ~~~~~~~~~~^~~~~~
|
s163190797 | p03957 | C++ | #include<bits/stdc++.h>
#pragma GCC optimize(4)
using namespace std;
int main(){
bool a[3]={};
string s[10001];
getline(cin,s);
for(int i=0;i<s.length();i++){
if(s[i]=='C') s[1]=1;
if(s[i]=='F'&&s[1]) cout<<"Yes";return 0;
}
cout<<"No";
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:16: error: no matching function for call to 'getline(std::istream&, std::string [10001])'
7 | getline(cin,s);
| ~~~~~~~^~~~~~~
In file included from /usr/include/c++/14/string:55,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
from a.cc:1:
/usr/include/c++/14/bits/basic_string.tcc:907:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&, _CharT)'
907 | getline(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~
/usr/include/c++/14/bits/basic_string.tcc:907:5: note: candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/string:54:
/usr/include/c++/14/bits/basic_string.h:4117:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4117 | getline(basic_istream<_CharT, _Traits>& __is,
| ^~~~~~~
/usr/include/c++/14/bits/basic_string.h:4117:5: note: template argument deduction/substitution failed:
a.cc:7:16: note: mismatched types 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'std::string [10001]' {aka 'std::__cxx11::basic_string<char> [10001]'}
7 | getline(cin,s);
| ~~~~~~~^~~~~~~
/usr/include/c++/14/bits/basic_string.h:4125:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&, _CharT)'
4125 | getline(basic_istream<_CharT, _Traits>&& __is,
| ^~~~~~~
/usr/include/c++/14/bits/basic_string.h:4125:5: note: candidate expects 3 arguments, 2 provided
/usr/include/c++/14/bits/basic_string.h:4132:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4132 | getline(basic_istream<_CharT, _Traits>&& __is,
| ^~~~~~~
/usr/include/c++/14/bits/basic_string.h:4132:5: note: template argument deduction/substitution failed:
a.cc:7:16: note: mismatched types 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'std::string [10001]' {aka 'std::__cxx11::basic_string<char> [10001]'}
7 | getline(cin,s);
| ~~~~~~~^~~~~~~
In file included from /usr/include/c++/14/cstdio:42,
from /usr/include/c++/14/ext/string_conversions.h:45,
from /usr/include/c++/14/bits/basic_string.h:4154:
/usr/include/stdio.h:697:18: note: candidate: '__ssize_t getline(char**, size_t*, FILE*)'
697 | extern __ssize_t getline (char **__restrict __lineptr,
| ^~~~~~~
/usr/include/stdio.h:697:18: note: candidate expects 3 arguments, 2 provided
a.cc:8:25: error: request for member 'length' in 's', which is of non-class type 'std::string [10001]' {aka 'std::__cxx11::basic_string<char> [10001]'}
8 | for(int i=0;i<s.length();i++){
| ^~~~~~
a.cc:9:24: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
9 | if(s[i]=='C') s[1]=1;
| ~~~~^~~~~
| | |
| | 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:
/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:9:26: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | if(s[i]=='C') s[1]=1;
| ^~~
/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:9:26: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
9 | if(s[i]=='C') s[1]=1;
| ^~~
/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:9:26: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | if(s[i]=='C') s[1]=1;
| ^~~
/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:9:26: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
9 | if(s[i]=='C') s[1]=1;
| ^~~
/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:9:26: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | if(s[i]=='C') s[1]=1;
| ^~~
/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:9:26: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
9 | if(s[i]=='C') s[1]=1;
| ^~~
/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:9:26: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | if(s[i]=='C') s[1]=1;
| ^~~
/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:9:26: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
9 | if(s[i]=='C') s[1]=1;
| ^~~
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:9:26: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
9 | if(s[i]=='C') s[1]=1;
| ^~~
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:9:26: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
9 | if(s[i]=='C') s[1]=1;
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==( |
s427429314 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
string a;
int main()
{
cin>>a;
if(a=="CODEFESTIVAL")
{
cout<<"Yes"<<endl;
return 0;
}
for(int i=0;i<11;i++)
{
if(a[i]=="C"&&a[i+1]=="F")
{
cout<<"Yes"<<endl;
}
}
cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:14:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
14 | if(a[i]=="C"&&a[i+1]=="F")
a.cc:14:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
14 | if(a[i]=="C"&&a[i+1]=="F")
|
s252418853 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
using ll=long long;
int main(){
int i,j,cnt=0;
string s;
cin>>s;
int c=0;f=0;
for(i=0;i<s.size();i++){
if(s[i]=='C')c=1;
if(c){
if(s[i]=='F')f=1;
}
}
if(c==1 && f==1)cout<<"Yes";
else cout<<"No";
} | a.cc: In function 'int main()':
a.cc:9:11: error: 'f' was not declared in this scope
9 | int c=0;f=0;
| ^
|
s041154447 | p03957 | C++ | #include<stdio.h>
#include<stdio.h>
int main()
{
char a[1001];
while(scanf("%s",a)!=EOF){
int i,j,max,n;
n=strlen(a)
for(i=0;i<n-1;i++){
if(a[i]=='C')
break;
}
for(j=0;j<=n-1;j++){
if(a[j]=='F')
max=j;
}
if(i<max)
printf("Yes\n");
else
printf("No\n");
}
return 0;
} | a.cc: In function 'int main()':
a.cc:9:19: error: 'strlen' was not declared in this scope
9 | n=strlen(a)
| ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
1 | #include<stdio.h>
+++ |+#include <cstring>
2 | #include<stdio.h>
a.cc:10:34: error: expected ';' before ')' token
10 | for(i=0;i<n-1;i++){
| ^
| ;
|
s254401461 | p03957 | C++ | #include<stdio.h>
#include<stdio.h>
int main()
{
char a[1001];
while(scanf("%s",a)!=EOF){
int i,j,max;
for(i=0;i<strlen(a)-1;i++){
if(a[i]=='C')
break;
}
for(j=0;j<=strlen(a)-1;j++){
if(a[j]=='F')
max=j;
}
if(i<max)
printf("Yes\n");
else
printf("No\n");
}
return 0;
} | a.cc: In function 'int main()':
a.cc:9:27: error: 'strlen' was not declared in this scope
9 | for(i=0;i<strlen(a)-1;i++){
| ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
1 | #include<stdio.h>
+++ |+#include <cstring>
2 | #include<stdio.h>
a.cc:13:28: error: 'strlen' was not declared in this scope
13 | for(j=0;j<=strlen(a)-1;j++){
| ^~~~~~
a.cc:13:28: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
|
s697627129 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
char a[14];
int main()
{
cin>>a;
if(a[0]==‘c’)
return 0;
} | a.cc:7:14: error: extended character ‘ is not valid in an identifier
7 | if(a[0]==‘c’)
| ^
a.cc:7:14: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:7:14: error: '\U00002018c\U00002019' was not declared in this scope
7 | if(a[0]==‘c’)
| ^~~
|
s775077754 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
char a[14];
int main()
{
| a.cc: In function 'int main()':
a.cc:5:2: error: expected '}' at end of input
5 | {
| ~^
|
s003724019 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
char a[101];
bool flag[2]={0};
cin>>a;
for(int i=0;i<len(a);i++){
if(a[i]=='C') flag[0]=1;
if(a[i]=='F'&&flag[0]) flag[1]=1;
}
if(flag[1]) return !printf("Yes");
else return !printf("No");
} | a.cc: In function 'int main()':
a.cc:7:19: error: 'len' was not declared in this scope
7 | for(int i=0;i<len(a);i++){
| ^~~
|
s635752785 | p03957 | C | #include<stdio.h>
#include<cstring>
int main()
{
while(1)
{
char s[101];
scanf("%s",s);
int ans=0;
for(int i=0;i<strlen(s);i++)
{
if(s[i]=='C')
{
int j=i;
for(i=j;i<strlen(s);i++)
{
if(s[i]=='F')
{
ans=1;}
}
}
}
if(ans==1)
{
printf("Yes\n");}
else
{
printf("No\n");}
}
return 0;
}
| main.c:2:9: fatal error: cstring: No such file or directory
2 | #include<cstring>
| ^~~~~~~~~
compilation terminated.
|
s237003383 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
int n = -1;
for(int i = 0;i < s.size();i++){
if(s.at(i)=='C'){
n = i;
break;
}
}
int m = -1;
for(int j = 0;j < s.size();j++){
if(s.at(j)=='F'){
m = i;
break;
}
}
if(n >= 0 && m >= 0 && n<m){
cout << "Yes" << endl;
}
else{
cout << "No" << endl;
}
} | a.cc: In function 'int main()':
a.cc:19:11: error: 'i' was not declared in this scope
19 | m = i;
| ^
|
s762145444 | p03957 | C++ | #include<iostream>
#include<fstream>
#include<algorithm>
#include<cstdio>
#include<cmath>
#include<string>
#include<csstring>
using namespace std;
string st;
bool a;
int main()
{
cin>>st;
for(int i=0;i<st.size();i++)
{
if(st[i]=='C')a=1;
if(st[i]=='F')
{
if(a!=0)
{
cout<<"Yes"<<endl;
return 0;
}
}
}
cout<<"No"<<endl;
return 0;
} | a.cc:7:9: fatal error: csstring: No such file or directory
7 | #include<csstring>
| ^~~~~~~~~~
compilation terminated.
|
s542263716 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
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
|
s343319429 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
string s;
int l;
int mian(){
cin>>s;
l=s.size();
for(register int i=0;i<l;i++){
if(s[i]=='C'){
for(register int j=i+1;j<l;j++){
if(s[j]=='F'){
cout<<"Yes";
return 0;
}
}
}
}
cout<<"No";
return 0;
} | a.cc: In function 'int mian()':
a.cc:8:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
8 | for(register int i=0;i<l;i++){
| ^
a.cc:10:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
10 | for(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
|
s460303560 | p03957 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
string a;
int xx=0;
int b;
cin>>a;
b=a.length();
char s[200];
for(int i=1;i<=b;i++)
{
s[i]=a[i-1];
}
for(int i=1;i<=n;i++)
{
if(s[i]=='C') xx=1;
if(xx=1)
{
if(s[i]=='F')
{
cout<<"Yes"<<endl;
return 0;
}
}
}
cout<<"No"<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:15:24: error: 'n' was not declared in this scope
15 | for(int i=1;i<=n;i++)
| ^
|
s752541964 | p03957 | C++ | #include<bits/stdc++.h>
#include<cstdio>
using namespace std;
typedef long long ll;
char a[1001];
bool flag;
signed main()
{
gets(a);
int len=strlen(a);
for(int i=0;i<len;++i)
{
if(a[i]=='C')
{
flag=i;
break;
}
}
for(int i=flag;i<len;++i)
{
if(a[i]=='F')
{
printf("Yes\n");
return 0;
}
}
printf("No\n");
return 0;
} | a.cc: In function 'int main()':
a.cc:9:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
9 | gets(a);
| ^~~~
| getw
|
s504856398 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
char a[1001];
bool flag;
signed main()
{
gets(a);
int len=strlen(a);
for(int i=0;i<len;++i)
{
if(a[i]=='C')
{
flag=i;
break;
}
}
for(int i=flag;i<len;++i)
{
if(a[i]=='F')
{
printf("Yes\n");
return 0;
}
}
printf("No\n");
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
|
s276745196 | p03957 | C++ | #include<iostream>
#include<string>
using namespace std;
int main() {
string S;
cin >> S;
for (int i = 0; i < S.size(); i++) {
if (S[i] == 'C') {
for (int j = i; j < S.size(); j++) {
if (S[j]) == 'F'){
printf("Yes");
return 0;
}
}
}
}
printf("No");
return 0;
} | a.cc: In function 'int main()':
a.cc:11:43: error: expected primary-expression before '==' token
11 | if (S[j]) == 'F'){
| ^~
|
s039679562 | p03957 | C++ | #include<iostream>
#include<string>
using namespace std;
int main() {
string S;
cin >> S;
for (int i = 0; i < S.size(); i++) {
if (S[i] == 'C') {
for (int j = i; j < S.size(); j++) {
if (S[j]) == 'F'){
printf("Yes");
return 0;
}
}
}
}
printf("No");
return 0;
} | a.cc: In function 'int main()':
a.cc:11:43: error: expected primary-expression before '==' token
11 | if (S[j]) == 'F'){
| ^~
|
s444918815 | p03957 | C++ | #include<cstdio>
//#include<algorithm>//for sort,lower_bound,upper_bound...
//#include<map>//for map and multimap
//#include<vector>//for vector and bvector
//#include<string>//for string,wstring,u16string and u32string
//#include<queue>//for queue,priority_queue and deque
//#include<iostream>//for cin,cout,cerr and clog
//#include<cstring>//for memset,memcpy,strlen,strcmp...
//#include<ctime>//for clock
//#include<cstdlib>//for rand,exit,free and malloc
//#include<cmath>//for abs,sqrt,floor,log...
using namespace std;
#define max(a,b) (a>b?a:b)
#define min(a,b) (a<b?a:b)
#define swap(a,b) do{typeof(a) t=a;a=b;b=t;}while(false);
#define fe(v,bg) for(v=head[bg];v;v=e[v].next)
#define INF 0x7fffffff
#define re register
#define us unsigned
//#define RW_FILE 1
typedef long long ll;
template<typename T>inline T read(){T res=0;bool f=true;char ch=getchar();while(ch<'0'||ch>'9'){if(ch=='-')f=false;ch=getchar();}while(ch>='0'&&ch<='9')res=(res<<1)+(res<<3)+(ch^48),ch=getchar();return f?res:-res;}
inline int readi(){return read<int>();}inline ll readll(){return read<ll>();}
template<typename T>inline void write(T x,char ed=32){int p=0,num[20];if(!x)putchar('0');else{if(x<0)putchar('-'),x=-x;for(;x;x/=10)num[p++]=x%10;for(;p;)putchar(num[--p]+48);}putchar(ed);}
template<typename T>inline void writeln(T x){write(x,'\n');}
const int MAXN=1e5+15;
int main(){
string s;
cin>>s;
for(i=0;i<s.size();++i)
if(s[i]=='C'){
for(int j=i+1;j<s.size();++j)
if(s[j]=='F'){
cout<<"Yes\n";
return 0;
}
}
cout<<"No\n";
return 0;
}
| a.cc: In function 'int main()':
a.cc:28:9: error: 'string' was not declared in this scope
28 | string s;
| ^~~~~~
a.cc:2:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
1 | #include<cstdio>
+++ |+#include <string>
2 | //#include<algorithm>//for sort,lower_bound,upper_bound...
a.cc:29:9: error: 'cin' was not declared in this scope
29 | cin>>s;
| ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
1 | #include<cstdio>
+++ |+#include <iostream>
2 | //#include<algorithm>//for sort,lower_bound,upper_bound...
a.cc:29:14: error: 's' was not declared in this scope; did you mean 'us'?
29 | cin>>s;
| ^
| us
a.cc:30:13: error: 'i' was not declared in this scope
30 | for(i=0;i<s.size();++i)
| ^
a.cc:34:41: error: 'cout' was not declared in this scope
34 | cout<<"Yes\n";
| ^~~~
a.cc:34:41: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:38:9: error: 'cout' was not declared in this scope
38 | cout<<"No\n";
| ^~~~
a.cc:38:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
|
s634982929 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
string s;
int l,n,m;
int main() {
cin>>s;
l=s.length();
for(int i=0; i<l; i++) {
if(s[i]=='C')n=1;
else if(s[i]=='F')m=1;
}
if(m=1&&n=1)cout<<"Yes";
else cout<<"No";
} | a.cc: In function 'int main()':
a.cc:12:15: error: lvalue required as left operand of assignment
12 | if(m=1&&n=1)cout<<"Yes";
| ~^~~
|
s324439578 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
string s;
int l,n,m;
int main() {
cin>>s;
l=s.length();
for(int i=0; i<l; i++) {
if(s[i]=='C')n=1;
else if(s[i]=='F')m=1;
}
if(m=1&&n=1)cout<<"Yes";
else cout<<"No";
} | a.cc: In function 'int main()':
a.cc:12:15: error: lvalue required as left operand of assignment
12 | if(m=1&&n=1)cout<<"Yes";
| ~^~~
|
s245488654 | p03957 | Java | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.next();
int cIdx = -1;
for (int i = 0; i < N; i++) {
if (s.charAt(i) == 'C') {
cIdx = i;
break;
}
}
if (cIdx == -1) {
System.out.println("No");
return;
}
for (int i = cIdx; i < N; i++) {
if (s.charAt(i) == 'F') {
System.out.println("Yes");
return;
}
}
System.out.println("No");
}
} | Main.java:8: error: cannot find symbol
for (int i = 0; i < N; i++) {
^
symbol: variable N
location: class Main
Main.java:18: error: cannot find symbol
for (int i = cIdx; i < N; i++) {
^
symbol: variable N
location: class Main
2 errors
|
s001625272 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;//qwq
int main(){
string a;
bool v[2]={0};//hhh
cin>>a;//readin
for(int i=0;i<a.length();i++){see all
if(a[i]=='C') v[0]=1;//discover c
if(a[i]=='F'&&v[0]) v[1]=1;//discover f
}
if(v[1]) cout<<"Yes";//yes,you can
else cout<<"No";//no,you can't
return 0;
} | a.cc: In function 'int main()':
a.cc:7:35: error: 'see' was not declared in this scope
7 | for(int i=0;i<a.length();i++){see all
| ^~~
|
s715149729 | p03957 | C++ | #include<iostream>
#include<cstring>
using namespace std;
int main(){
string a;
bool f=0;
cin>>a;
for(int i=0;i<a.size();i++){
if(a[i]=='C') f=1;
if(a[i]=='F'&&f){
cout<<"Yes"<<endl;
return 0;
}
}
}
cout<<"No"<<endl;
return 0;
} | a.cc:16:5: error: 'cout' does not name a type
16 | cout<<"No"<<endl;
| ^~~~
a.cc:17:5: error: expected unqualified-id before 'return'
17 | return 0;
| ^~~~~~
a.cc:18:1: error: expected declaration before '}' token
18 | }
| ^
|
s274802198 | p03957 | C++ | #include<iostream>
#include<cstring>
using namespace std;
int main(){
string a;
bool v[2]={0};
cin>>a;
for(int i=0;i<a.size();i++){
if(a[i]=='C') v[0]=1;
if(a[i]=='F'&&v[0]){
cout<<"Yes"<<endl;
return 0;
}
}
}
cout<<"No"<<endl;
return 0;
} | a.cc:16:5: error: 'cout' does not name a type
16 | cout<<"No"<<endl;
| ^~~~
a.cc:17:5: error: expected unqualified-id before 'return'
17 | return 0;
| ^~~~~~
a.cc:18:1: error: expected declaration before '}' token
18 | }
| ^
|
s863837056 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
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
|
s027947951 | p03957 | C++ | #include<bits/std/c++.h>
using namespace std;
int main()
{
int kkk;
sting s;
cin>>s;
kkk=s.size();
for(register int i=0;i<kkk;i++){
if(s[i]=='C')
{
for(register int j=i+1;j<kkk;j++)
{
if(s[j]=='F')
{
cout<<"Yes";
return 0;
}
}
}
}
cout<<"No";
return 0;
} | a.cc:1:9: fatal error: bits/std/c++.h: No such file or directory
1 | #include<bits/std/c++.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
|
s147527143 | p03957 | C++ | #include <stdio.h>
#include <stdio.h>
#include <iostream>
int main()
{#include <stdio.h>
int main()
{
int a;
char n[105];
scanf("%c",&n);
for (int i=0;i<=n;i++)
{
if(n[i]=='C')
{
a=1;
}
if(n[i]=='F'&&a==1) printf("Yes/n");
return 0;
}
printf("No/n");
return 0;
} | a.cc:5:2: error: stray '#' in program
5 | {#include <stdio.h>
| ^
a.cc: In function 'int main()':
a.cc:5:3: error: 'include' was not declared in this scope
5 | {#include <stdio.h>
| ^~~~~~~
a.cc:5:12: error: 'stdio' was not declared in this scope; did you mean 'stdin'?
5 | {#include <stdio.h>
| ^~~~~
| stdin
a.cc:6:1: error: expected primary-expression before 'int'
6 | int main()
| ^~~
a.cc:22:2: error: expected '}' at end of input
22 | }
| ^
a.cc:5:1: note: to match this '{'
5 | {#include <stdio.h>
| ^
|
s508114509 | p03957 | C++ | #include <stdio.h>
#include <stdio.h>
#include <iostream>
int main()
{
int a;
char n[105];
scanf("%s",&n);
for (int i=0;i<n;i++)
{
if(n[i]=='C')
{
a=1;
}
if(n[i]=='F'&&a==1) printf("Yes/n");
return 0;
}
printf("No/n");
return 0;
} | a.cc: In function 'int main()':
a.cc:9:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | for (int i=0;i<n;i++)
| ~^~
|
s075585484 | p03957 | C++ | #include <stdio.h>
#include <iostream>
int main()
{
int a;
string n;
scanf("%c",&n);
for (int i=0;i<n.size();i++)
{
if(n[i]=='C')
{
a=1;
}
if(n[i]=='F'&&a==1) printf("Yes/n");
return 0;
}
printf("No/n");
return 0;
} | a.cc: In function 'int main()':
a.cc:6:9: error: 'string' was not declared in this scope
6 | string n;
| ^~~~~~
a.cc:6:9: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:2:
/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:7:21: error: 'n' was not declared in this scope
7 | scanf("%c",&n);
| ^
|
s210351550 | p03957 | C++ | #include <stdio.h>
int main()
{
int a;
string n;
scanf("%s",&n);
for (int i=0;i<n.size();i++)
{
if(a[i]=='C')
{
a=1;
}
if(a[i]=='F'&&a==1) printf("Yes/n");
return 0;
}
printf("No/n");
return 0;
} | a.cc: In function 'int main()':
a.cc:5:9: error: 'string' was not declared in this scope; did you mean 'stdin'?
5 | string n;
| ^~~~~~
| stdin
a.cc:6:21: error: 'n' was not declared in this scope
6 | scanf("%s",&n);
| ^
a.cc:9:21: error: invalid types 'int[int]' for array subscript
9 | if(a[i]=='C')
| ^
a.cc:13:13: error: invalid types 'int[int]' for array subscript
13 | if(a[i]=='F'&&a==1) printf("Yes/n");
| ^
|
s248969220 | p03957 | C++ | #include <stdio.h>
int main()
{
int a;
string n;
scanf("%s",&n);
for (i=0;i<n.size();i++)
{
if(a[i]=='C')
{
a=1;
}
if(a[i]=='F'&&a==1) printf("Yes/n");
return 0;
}
printf("No/n");
return 0;
} | a.cc: In function 'int main()':
a.cc:5:9: error: 'string' was not declared in this scope; did you mean 'stdin'?
5 | string n;
| ^~~~~~
| stdin
a.cc:6:21: error: 'n' was not declared in this scope
6 | scanf("%s",&n);
| ^
a.cc:7:14: error: 'i' was not declared in this scope
7 | for (i=0;i<n.size();i++)
| ^
|
s185127060 | p03957 | C++ | #include <stdio.h>
int main()
{
int a;
string n;
scanf("%s",&n);
for (i=0;i<n;i++)
{
if(a[i]=='C')
{
a=1;
}
if(a[i]=='F'&&a==1) printf("Yes/n");
return 0;
}
printf("No/n");
return 0;
} | a.cc: In function 'int main()':
a.cc:5:9: error: 'string' was not declared in this scope; did you mean 'stdin'?
5 | string n;
| ^~~~~~
| stdin
a.cc:6:21: error: 'n' was not declared in this scope
6 | scanf("%s",&n);
| ^
a.cc:7:14: error: 'i' was not declared in this scope
7 | for (i=0;i<n;i++)
| ^
|
s435841576 | p03957 | C++ | #include <stdio.h>
int main()
{
string n;
scanf("%s",&n);
for (int i=0;i<n.size();i++)
{
if (n[i]=='C'&&'F') printf("Yes/n");
return 0;
}
printf("No/n");
return 0;
} | a.cc: In function 'int main()':
a.cc:4:9: error: 'string' was not declared in this scope; did you mean 'stdin'?
4 | string n;
| ^~~~~~
| stdin
a.cc:5:21: error: 'n' was not declared in this scope
5 | scanf("%s",&n);
| ^
|
s736652126 | p03957 | C++ | #include <stdio.h>
int main()
{
string n;
scanf("%s",&n);
for (i=0;i<n.size();i++)
{
if (n[i]=='C'&&'F') printf("Yes/n");
return 0;
}
printf("No/n");
return 0;
} | a.cc: In function 'int main()':
a.cc:4:9: error: 'string' was not declared in this scope; did you mean 'stdin'?
4 | string n;
| ^~~~~~
| stdin
a.cc:5:21: error: 'n' was not declared in this scope
5 | scanf("%s",&n);
| ^
a.cc:6:14: error: 'i' was not declared in this scope
6 | for (i=0;i<n.size();i++)
| ^
|
s206999459 | p03957 | C++ | #include <stdio.h>
int main()
{
string n;
scanf("%s",&n);
for (i=0;i<n;i++)
{
if (n[i]=='C'&&'F') printf("Yes/n");
return 0;
}
printf("No/n");
return 0;
} | a.cc: In function 'int main()':
a.cc:4:9: error: 'string' was not declared in this scope; did you mean 'stdin'?
4 | string n;
| ^~~~~~
| stdin
a.cc:5:21: error: 'n' was not declared in this scope
5 | scanf("%s",&n);
| ^
a.cc:6:14: error: 'i' was not declared in this scope
6 | for (i=0;i<n;i++)
| ^
|
s336673471 | p03957 | C++ | #include <iostream>
using namespace std;
int main()
{
string n;
cin>>n;
for (int i=0;i<n;i++)
{
if (n[i]=='C'&&'F') cout<<"Yes";
return 0;
}
cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:7:23: error: no match for 'operator<' (operand types are 'int' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
7 | for (int i=0;i<n;i++)
| ~^~
| | |
| | std::string {aka std::__cxx11::basic_string<char>}
| int
In file included from /usr/include/c++/14/string:48,
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,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
448 | operator<(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed:
a.cc:7:24: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'int'
7 | for (int i=0;i<n;i++)
| ^
/usr/include/c++/14/bits/stl_iterator.h:493:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
493 | operator<(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:493:5: note: template argument deduction/substitution failed:
a.cc:7:24: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'int'
7 | for (int i=0;i<n;i++)
| ^
/usr/include/c++/14/bits/stl_iterator.h:1694:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1694 | operator<(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1694:5: note: template argument deduction/substitution failed:
a.cc:7:24: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'int'
7 | for (int i=0;i<n;i++)
| ^
/usr/include/c++/14/bits/stl_iterator.h:1760:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1760 | operator<(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1760:5: note: template argument deduction/substitution failed:
a.cc:7:24: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'int'
7 | for (int i=0;i<n;i++)
| ^
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/string:51:
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1045 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed:
a.cc:7:24: note: mismatched types 'const std::pair<_T1, _T2>' and 'int'
7 | for (int i=0;i<n;i++)
| ^
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:673:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
673 | operator< (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:673:5: note: template argument deduction/substitution failed:
a.cc:7:24: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int'
7 | for (int i=0;i<n;i++)
| ^
/usr/include/c++/14/string_view:680: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> >)'
680 | operator< (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:680:5: note: template argument deduction/substitution failed:
a.cc:7:24: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int'
7 | for (int i=0;i<n;i++)
| ^
/usr/include/c++/14/string_view:688: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>)'
688 | operator< (__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:688:5: note: template argument deduction/substitution failed:
a.cc:7:24: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
7 | for (int i=0;i<n;i++)
| ^
/usr/include/c++/14/bits/basic_string.h:3874: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>&)'
3874 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3874:5: note: template argument deduction/substitution failed:
a.cc:7:24: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'int'
7 | for (int i=0;i<n;i++)
| ^
/usr/include/c++/14/bits/basic_string.h:3888:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3888 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3888:5: note: template argument deduction/substitution failed:
a.cc:7:24: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'int'
7 | for (int i=0;i<n;i++)
| ^
/usr/include/c++/14/bits/basic_string.h:3901:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3901 | operator<(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3901:5: note: template argument deduction/substitution failed:
a.cc:7:24: note: mismatched types 'const _CharT*' and 'int'
7 | for (int i=0;i<n;i++)
| ^
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/tuple:2600:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator<(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)'
2600 | operator<(const tuple<_TElements...>& __t,
| ^~~~~~~~
/usr/include/c++/14/tuple:2600:5: note: template argument deduction/substitution failed:
a.cc:7:24: note: mismatched types 'const std::tuple<_UTypes ...>' and 'int'
7 | for (int i=0;i<n;i++)
| ^
In file included from /usr/include/c++/14/bits/ios_base.h:46:
/usr/include/c++/14/system_error:324:3: note: candidate: 'bool std::operator<(const error_code&, const error_code&)'
324 | operator<(const error_code& __lhs, const error_code& __rhs) noexcept
| ^~~~~~~~
/usr/include/c++/14/system_error:324:31: note: no known conversion for argument 1 from 'int' to 'const std::error_code&'
324 | operator<(const error_code& __lhs, const error_code& __rhs) noexcept
| ~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/14/system_error:507:3: note: candidate: 'bool std::operator<(const error_condition&, const error_condition&)'
507 | operator<(const error_condition& __lhs,
| ^~~~~~~~
/usr/include/c++/14/system_error:507:36: note: no known conversion for argument 1 from 'int' to 'const std::error_condition&'
507 | operator<(const error_condition& __lhs,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
|
s516375712 | p03957 | C++ | #include <stdio.h>
int main()
{
string n;
scanf("%s",&n);
for (i=0;i<n;i++)
{
if (n[i]=='C'&&'F') cout<<"Yes"
return 0;
}
cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:4:9: error: 'string' was not declared in this scope; did you mean 'stdin'?
4 | string n;
| ^~~~~~
| stdin
a.cc:5:21: error: 'n' was not declared in this scope
5 | scanf("%s",&n);
| ^
a.cc:6:14: error: 'i' was not declared in this scope
6 | for (i=0;i<n;i++)
| ^
a.cc:8:37: error: 'cout' was not declared in this scope
8 | if (n[i]=='C'&&'F') cout<<"Yes"
| ^~~~
a.cc:11:9: error: 'cout' was not declared in this scope
11 | cout<<"No";
| ^~~~
|
s559682221 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<<"Yes";
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
|
s062450525 | p03957 | C++ | #include<bits/stdc++.h>
using namesapce std;
int main()
{
string a;
cin>>a;
int h=a.length()
for(int i=0;i<h;i++)
{
if(a[i]=='C')
{
for(int j=i;j<h;j++)
{
if(a[j]=='F')
cout<<"YES";
return 0;
}
}
else continue;
}
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:5:5: error: 'string' was not declared in this scope
5 | string a;
| ^~~~~~
a.cc:5:5: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note: 'std::string'
77 | typedef basic_string<char> string;
| ^~~~~~
/usr/include/c++/14/string:76:11: note: 'std::pmr::string'
76 | using string = basic_string<char>;
| ^~~~~~
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | cin>>a;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:6:10: error: 'a' was not declared in this scope
6 | cin>>a;
| ^
a.cc:8:17: error: 'i' was not declared in this scope
8 | for(int i=0;i<h;i++)
| ^
a.cc:21:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
21 | cout<<"NO";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
|
s807440412 | p03957 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cin>>s;
int a=-1;
for(int i=0;i<s.size();i++)
if(a[i]=='C'){
a=i;
break;
}
if(a<0){cout<<"NO"; return 0;}
for(int i=a+1;i<s.size())
if(a[i]=='F'){
cout<<"YES";
return 0;
}
cout<<"NO";
} | a.cc: In function 'int main()':
a.cc:8:21: error: invalid types 'int[int]' for array subscript
8 | if(a[i]=='C'){
| ^
a.cc:13:33: error: expected ';' before ')' token
13 | for(int i=a+1;i<s.size())
| ^
| ;
a.cc:14:21: error: invalid types 'int[int]' for array subscript
14 | if(a[i]=='F'){
| ^
|
s248656154 | p03957 | C++ | #include<iostream>
#include<cstring>
using namespace std;
int main()
{
int l,bo=0;
char n[100];
gets(n);
l=strlen(n);
for(int i=0;i<l;i++)
{
if(n[i]=='C'&&bo==0) bo++;
if(bo==1&&n[i]=='F')
{
cout<<"YES";
bo++;
break;
}
}
if(bo!=2) cout<<"NO";
return 0;
} | a.cc: In function 'int main()':
a.cc:8:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
8 | gets(n);
| ^~~~
| getw
|
s042677646 | p03957 | C++ | #include<iostream>
#include<cstring>
using namespace std;
int main()
{
int l,bo=0;
char n[100];
gets(n);
l=strlen(n);
for(int i=0;i<l;i++)
{
if(n[i]=='C'&&bo==0) bo++;
if(bo==1&&n[i]=='F')
{
cout<<"YES";
bo++;
break;
}
}
if(bo!=2) cout<<"NO";
return 0;
} | a.cc: In function 'int main()':
a.cc:8:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
8 | gets(n);
| ^~~~
| getw
|
s116110810 | p03957 | C++ | #include<iostream>
#include<cstring>
using namespace std;
int main()
{
int l,bo=0;
char n[100];
gets(n);
l=strlen(n);
for(int i=0;i<l;i++)
{
if(n[i]=='C'&&bo==0) bo++;
if(bo==1&&n[i]=='F')
{
cout<<"YES";
bo++;
break;
}
}
if(bo!=2) cout<<"NO";
return 0;
} | a.cc: In function 'int main()':
a.cc:8:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
8 | gets(n);
| ^~~~
| getw
|
s287224798 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
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
|
s834651805 | p03957 | C++ | #include<iostream>
using namespace std;
int main(void){
int a=0,b;
string s;
cin >> s;
for(int i = 0;i < s.size();i++){
if(s.at(i) == "C"){
a = 1;
}
if((a == 1) && (s.at(i) == "F")){
cout << "Yes";
return 0;
}
}
cout << "No";
} | a.cc: In function 'int main()':
a.cc:8:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(s.at(i) == "C"){
| ~~~~~~~~^~~~~~
a.cc:11:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
11 | if((a == 1) && (s.at(i) == "F")){
| ~~~~~~~~^~~~~~
|
s800087369 | p03957 | C++ | #include<iostream>
using namespace std;
int main(void){
int a=0,b;
string s;
cin >> s;
for(int i = 0;i < s.size();i++){
if(s.at(i) == "C"){
a = 1;
}
if(a == 1 && s.at(i) == "F"){
cout << "Yes";
return 0;
}
}
cout << "No";
} | a.cc: In function 'int main()':
a.cc:8:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(s.at(i) == "C"){
| ~~~~~~~~^~~~~~
a.cc:11:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
11 | if(a == 1 && s.at(i) == "F"){
| ~~~~~~~~^~~~~~
|
s694771831 | p03957 | C++ | #include<iostream>
using namespace std;
int main(void){
int a=0,b;
string s;
cin >> s;
for(int i = 0;i < s.size();i++){
if(s.at(i) == "C"){
a == 1;
}
if(a == 1 && s.at(i) == "F"){
cout << "Yes";
return 0;
}
}
cout << "No";
} | a.cc: In function 'int main()':
a.cc:8:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(s.at(i) == "C"){
| ~~~~~~~~^~~~~~
a.cc:11:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
11 | if(a == 1 && s.at(i) == "F"){
| ~~~~~~~~^~~~~~
|
s647503691 | p03957 | C++ | #include<iostream>
using namespace std;
int main(void){
int a=0,b;
string s;
cin >> s;
for(int i = 0;i < s.size();i++){
if(s.at(i) == "C"){
a == 1;
}
if(a==1 && s.at(i) == "F"){
cout << "Yes";
return 0;
}
}
cout << "No";
} | a.cc: In function 'int main()':
a.cc:8:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(s.at(i) == "C"){
| ~~~~~~~~^~~~~~
a.cc:11:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
11 | if(a==1 && s.at(i) == "F"){
| ~~~~~~~~^~~~~~
|
s833064941 | p03957 | C++ | #include<iostream>
using namespace std;
int main(void){
int a=0,b;
string s;
cin >> s;
for(int i = 0;i < s.size();i++){
if(s.at(i) == "C"){
a == 1;
};
if(a==1 && s.at(i) == "F"){
cout << "Yes";
return 0;
}
}
cout << "No";
} | a.cc: In function 'int main()':
a.cc:8:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(s.at(i) == "C"){
| ~~~~~~~~^~~~~~
a.cc:11:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
11 | if(a==1 && s.at(i) == "F"){
| ~~~~~~~~^~~~~~
|
s898021276 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int main()
{
cin>>s;
for(int i=0;i<s.size();i++)
{
if(s[i]=='C')
{
for(int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<<"Yes";
return 0;
}
}
}
}
cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:14:29: error: 'l' was not declared in this scope
14 | for(int j=i+1;j<l;j++)
| ^
|
s954748729 | p03957 | C++ | include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int main()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
cout<<"Yes";
return 0;
}
}
}
}
cout<<"No";
return 0;
} | a.cc:1:1: error: 'include' does not name a type
1 | include<iostream>
| ^~~~~~~
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from a.cc:3:
/usr/include/c++/14/bits/postypes.h:68:11: error: 'ptrdiff_t' does not name a type
68 | typedef ptrdiff_t streamsize; // Signed integral type
| ^~~~~~~~~
/usr/include/c++/14/bits/postypes.h:41:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
40 | #include <cwchar> // For mbstate_t
+++ |+#include <cstddef>
41 |
In file included from /usr/include/c++/14/bits/char_traits.h:50:
/usr/include/c++/14/type_traits:666:33: error: 'nullptr_t' is not a member of 'std'
666 | struct is_null_pointer<std::nullptr_t>
| ^~~~~~~~~
/usr/include/c++/14/type_traits:666:42: error: template argument 1 is invalid
666 | struct is_null_pointer<std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:670:48: error: template argument 1 is invalid
670 | struct is_null_pointer<const std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:674:51: error: template argument 1 is invalid
674 | struct is_null_pointer<volatile std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:678:57: error: template argument 1 is invalid
678 | struct is_null_pointer<const volatile std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:1429:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1429 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^~~~~~
In file included from /usr/include/stdio.h:34,
from /usr/include/c++/14/cstdio:42,
from a.cc:2:
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/type_traits:1429:57: error: template argument 1 is invalid
1429 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^
/usr/include/c++/14/type_traits:1429:57: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1438:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1438 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/type_traits:1438:46: error: template argument 1 is invalid
1438 | : public integral_constant<std::size_t, 0> { };
| ^
/usr/include/c++/14/type_traits:1438:46: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1440:26: error: 'std::size_t' has not been declared
1440 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/14/type_traits:1441:21: error: '_Size' was not declared in this scope
1441 | struct rank<_Tp[_Size]>
| ^~~~~
/usr/include/c++/14/type_traits:1441:27: error: template argument 1 is invalid
1441 | struct rank<_Tp[_Size]>
| ^
/usr/include/c++/14/type_traits:1442:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/type_traits:1442:65: error: template argument 1 is invalid
1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/14/type_traits:1442:65: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1446:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/type_traits:1446:65: error: template argument 1 is invalid
1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/14/type_traits:1446:65: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:2086:26: error: 'std::size_t' has not been declared
2086 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/14/type_traits:2087:30: error: '_Size' was not declared in this scope
2087 | struct remove_extent<_Tp[_Size]>
| ^~~~~
/usr/include/c++/14/type_traits:2087:36: error: template argument 1 is invalid
2087 | struct remove_extent<_Tp[_Size]>
| ^
/usr/include/c++/14/type_traits:2099:26: error: 'std::size_t' has not been declared
2099 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/14/type_traits:2100:35: error: '_Size' was not declared in this scope
2100 | struct remove_all_extents<_Tp[_Size]>
| ^~~~~
/usr/include/c++/14/type_traits:2100:41: error: template argument 1 is invalid
2100 | struct remove_all_extents<_Tp[_Size]>
| ^
/usr/include/c++/14/type_traits:2171:12: error: 'std::size_t' has not been declared
2171 | template<std::size_t _Len>
| ^~~
/usr/include/c++/14/type_traits:2176:30: error: '_Len' was not declared in this scope
2176 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/14/type_traits:2194:12: error: 'std::size_t' has not been declared
2194 | template<std::size_t _Len, std::size_t _Align =
| ^~~
/usr/include/c++/14/type_traits:2194:30: error: 'std::size_t' has not been declared
2194 | template<std::size_t _Len, std::size_t _Align =
| ^~~
/usr/include/c++/14/type_traits:2195:55: error: '_Len' was not declared in this scope
2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^~~~
/usr/include/c++/14/type_traits:2195:59: error: template argument 1 is invalid
2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^
/usr/include/c++/14/type_traits:2202:30: error: '_Len' was not declared in this scope
2202 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/14/type_traits:2203:44: error: '_Align' was not declared in this scope
2203 | struct __attribute__((__aligned__((_Align)))) { } __align;
| ^~~~~~
/usr/include/c++/14/bits/char_traits.h:144:61: error: 'std::size_t' has not been declared
144 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/14/bits/char_traits.h:146:40: error: 'size_t' in namespace 'std' does not name a type
146 | static _GLIBCXX14_CONSTEXPR std::size_t
| ^~~~~~
/usr/include/c++/14/bits/char_traits.h:150:34: error: 'std::size_t' has not been declared
150 | find(const char_type* __s, std::size_t __n, const char_type& __a);
| ^~~
/usr/include/c++/14/bits/char_traits.h:153:52: error: 'std::size_t' has not been declared
153 | move(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/14/bits/char_traits.h:156:52: error: 'std::size_t' has not been declared
156 | copy(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/14/bits/char_traits.h:159:30: error: 'std::size_t' has not been declared
159 | assign(char_type* __s, std::size_t __n, char_type __a);
| ^~~
/usr/include/c++/14/bits/char_traits.h:187:59: error: 'std::size_t' has not been declared
187 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~
/usr/include/c++/14/bits/char_traits.h: In static member function 'static constexpr int __gnu_cxx::char_traits<_CharT>::compare(const char_type*, const char_type*, int)':
/usr/include/c++/14/bits/char_traits.h:189:17: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
189 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/bits/char_traits.h:189:33: error: '__i' was not declared in this scope; did you mean '__n'?
189 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~
| __n
/usr/include/c++/14/bits/char_traits.h: At global scope:
/usr/include/c++/14/bits/char_traits.h:198:31: error: 'size_t' in namespace 'std' does not name a type
198 | _GLIBCXX14_CONSTEXPR std::size_t
| ^~~~~~
/usr/ |
s556406424 | p03957 | C++ | #include<iostream>
#include<fstream>
#include<algorithm>
#include<cstdio>
#include<cmath>
#include<string>
#include<csstring>
using namespace std;
string st;
bool a;
int main()
{
cin>>st;
for(int i=0;i<st.size();i++)
{
if(st[i]=='C')a=1;
if(st[i]=='F')
{
if(a!=0)
{
cout<<"Yes"<<endl;
return 0;
}
}
}
cout<<"No"<<endl;
return 0;
} | a.cc:7:9: fatal error: csstring: No such file or directory
7 | #include<csstring>
| ^~~~~~~~~~
compilation terminated.
|
s126251030 | p03957 | C++ | #include<iostream>
#include<fstream>
#include<algorithm>
#include<cstdio>
#include<cmath>
#include<string>
#include<csstring>
using namespace std;
string st;//定义字符串
bool a;//定义a。
int main()
{
cin>>st;
for(int i=0;i<st.size();i++)
{
if(st[i]=='C')a=1;
//如果字符串的这个位置是C,就把a的值变成1。
if(st[i]=='F')
{
if(a!=0)。
{
cout<<"Yes"<<endl;
//输出Yes,记得换行。
return 0;//结束程序
}
}
}
cout<<"No"<<endl;
//输出No,记得换行。
return 0;
} | a.cc:7:9: fatal error: csstring: No such file or directory
7 | #include<csstring>
| ^~~~~~~~~~
compilation terminated.
|
s148370513 | p03957 | C++ | #include<iostream>
#include<fstream>
#include<algorithm>
#include<cstdio>
#include<cmath>
#include<string>
#include<csstring>
using namespace std;
string st;//定义字符串
bool a;//定义a。
int main()
{
cin>>st;
for(int i=0;i<st.size();i++)
{
if(st[i]=='C')a=1;
//如果字符串的这个位置是C,就把a的值变成1。
if(st[i]=='F')//如果字符串的这个位置是F,就
执行以下内容。
{
if(a!=0)//如果发现a不等于0,就说明前面已经
有字母C了,然后我们就执行以下内容。
{
cout<<"Yes"<<endl;
//输出Yes,记得换行。
return 0;//结束程序
}
}
}
cout<<"No"<<endl;
//输出No,记得换行。
return 0;
} | a.cc:7:9: fatal error: csstring: No such file or directory
7 | #include<csstring>
| ^~~~~~~~~~
compilation terminated.
|
s829940546 | p03957 | C++ | #include<bits/stdc++.h>
char str[256],*c,*f;
int main(void){
scanf("%s",str);
c=strchr(str,'c');
if(c!=NULL)f=strchr(c+1,'f');
printf("%s",c!=NULL&&f!=NULL?"Yes":"No");
reutrn 0;
} | a.cc: In function 'int main()':
a.cc:8:5: error: 'reutrn' was not declared in this scope
8 | reutrn 0;
| ^~~~~~
|
s807781332 | p03957 | C++ | #include<bits/stdc++.h>
char str[256],*c,*f;
int main(void){
scanf("%s",str);
c=strchr(str,'c');
if(c!=NULL)f=strchr(str,c+1);
printf("%s",c!=NULL&&f!=NULL?"Yes":"No");
reutrn 0;
} | a.cc: In function 'int main()':
a.cc:6:30: error: invalid conversion from 'char*' to 'int' [-fpermissive]
6 | if(c!=NULL)f=strchr(str,c+1);
| ~^~
| |
| char*
In file included from /usr/include/c++/14/cstring:43,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
from a.cc:1:
/usr/include/string.h:226:37: note: initializing argument 2 of 'char* strchr(char*, int)'
226 | extern char *strchr (char *__s, int __c)
| ~~~~^~~
a.cc:8:5: error: 'reutrn' was not declared in this scope
8 | reutrn 0;
| ^~~~~~
|
s748742460 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
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
|
s333892134 | p03957 | C++ | #include<iostream>
#include<string.h>
using namespace std;
string s;
bool b;
int y;
int main()
{
cin>>s;
int l=strlen(s);
for(int i=0;i<=l;i++)
{
if(s[i]=='C')
{
bool=true;
y=i;
}
if(s[i]=='F' && i>y)
{
bool=true;
}
else bool=false;
}
if(bool==true) cout<<"Yes"<<endl;
else cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:10:22: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
10 | int l=strlen(s);
| ^
| |
| std::string {aka std::__cxx11::basic_string<char>}
In file included from a.cc:2:
/usr/include/string.h:407:35: note: initializing argument 1 of 'size_t strlen(const char*)'
407 | extern size_t strlen (const char *__s)
| ~~~~~~~~~~~~^~~
a.cc:15:29: error: expected unqualified-id before '=' token
15 | bool=true;
| ^
a.cc:20:29: error: expected unqualified-id before '=' token
20 | bool=true;
| ^
a.cc:22:26: error: expected unqualified-id before '=' token
22 | else bool=false;
| ^
a.cc:24:16: error: expected unqualified-id before '==' token
24 | if(bool==true) cout<<"Yes"<<endl;
| ^~
|
s232895105 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
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
|
s352571035 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
l=s.size();
for(register int i=0;i<l;i++)
{
if(s[i]=='C')
{
for(register int j=i+1;j<l;j++)
{
if(s[j]=='F')
{
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
|
s709612279 | p03957 | C++ | #include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string s;
int l;
int mian()
{
cin>>s;
for(register int i=0;i<s.size();i++)
if(s[i]=='C')
for(register int j=i+1;j<l;j++)
if(s[j]=='F')
{
cout<<"Yes";
return 0;
}
cout<<"No";
return 0;
} | a.cc: In function 'int mian()':
a.cc:10:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
10 | for(register int i=0;i<s.size();i++)
| ^
a.cc:12:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
12 | 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.