submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s596885597
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(int i=0;i<l;i++) { if(s[i]=='C') { for(int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"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
s710469670
p03957
C++
#include<iostream> using namespace std; int main() { bool p; p=1; string a; cin>>a; for(int i=0;i<a.size();i++) { if(a[i]=='C') { p=0; break; } } if(p==1) { cout<<"Yes"<<endl; } if(p==0) { for(i=i;i<a.size();i++) { if(a[i]=='F') { cout<<"Yes"<<endl; return 0; } } } cout<<"Yes"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:23:13: error: 'i' was not declared in this scope 23 | for(i=i;i<a.size();i++) | ^
s752485313
p03957
C++
#include<bits/stdc++.h> using namespace std; int main() { string s[100]; for(int i=1;i<=101;i++) { cin>>a[i]; if(s[i]=='C'&&a[i+1]=='F') cout<<"YES"; else cout<<"NO"; } return 0; }
a.cc: In function 'int main()': a.cc:8:14: error: 'a' was not declared in this scope 8 | cin>>a[i]; | ^ a.cc:9:16: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 9 | if(s[i]=='C'&&a[i+1]=='F') | ~~~~^~~~~ | | | | | 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:9:18: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 9 | if(s[i]=='C'&&a[i+1]=='F') | ^~~ /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:18: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 9 | if(s[i]=='C'&&a[i+1]=='F') | ^~~ /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:18: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 9 | if(s[i]=='C'&&a[i+1]=='F') | ^~~ /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:18: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 9 | if(s[i]=='C'&&a[i+1]=='F') | ^~~ /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:18: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 9 | if(s[i]=='C'&&a[i+1]=='F') | ^~~ /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:18: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 9 | if(s[i]=='C'&&a[i+1]=='F') | ^~~ /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:18: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 9 | if(s[i]=='C'&&a[i+1]=='F') | ^~~ /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:18: 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'&&a[i+1]=='F') | ^~~ 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:18: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 9 | if(s[i]=='C'&&a[i+1]=='F') | ^~~ 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:18: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 9 | if(s[i]=='C'&&a[i+1]=='F') | ^~~ /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:9:18: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 9 | if(s[i]=='C'&&a[i+1]=='F') | ^~~ /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:9:18: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 9 | if(s[i]=='C'&&a[i+1]=='F') | ^~~ /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:9:18: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 9 | if(s[i]=='C'&&a[i+1]=='F') | ^~~ 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:9:18: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>' 9 | if(s[i]=='C'&&a[i+1]=='F') | ^~~ 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:9:18: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>' 9 | if(s[i]=='C'&&a[i+1]=='F') | ^~~ 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<_CharT, _Traits>, __type_identity_t<basic
s575651460
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { 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
s622604648
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"Yes"; 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
s807528733
p03957
C++
#include<bits/stdc++.h> using namespace std; int main() { char a[1000]; bool s=false; gets(a); int l; l=strlen(a); for(int i=0;i<l;i++) { if(a[i]=='C'||a[i]=='c') { s=true; } if(a[i]=='F'||a[j]=='f'&&s==true) { cout<<"YES"; return 0; } } cout<<"N0"; return 0; }
a.cc: In function 'int main()': a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 7 | gets(a); | ^~~~ | getw a.cc:16:41: error: 'j' was not declared in this scope 16 | if(a[i]=='F'||a[j]=='f'&&s==true) | ^
s928834279
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"Yes"; 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
s759525749
p03957
C++
#include <bits/stdc++.h> using namespace std; using llong = long long; using P = pair<llong, llong>; #define BE(x) x.begin(), x.end() const llong inf = llong(1e18)+7; const llong mod = 1e9+7; int main(){ string s; cin >> s; strin c; for(auto x : s) if(x == 'C'){ if((int)s.size() == 0) c += x; }else if(x == 'F'){ if((int)s.size() == 1) c += x; } if(c == "CF") cout << "Yes" << endl; else cout << "No" << endl; return 0; }
a.cc: In function 'int main()': a.cc:16:9: error: 'strin' was not declared in this scope; did you mean 'stdin'? 16 | strin c; | ^~~~~ | stdin a.cc:20:33: error: 'c' was not declared in this scope 20 | c += x; | ^ a.cc:23:33: error: 'c' was not declared in this scope 23 | c += x; | ^ a.cc:26:12: error: 'c' was not declared in this scope 26 | if(c == "CF") | ^
s625028925
p03957
C++
#include <bits/stdc++.h> using namespace std; using llong = long long; using P = pair<llong, llong>; #define BE(x) x.begin(), x.end() const llong inf = llong(1e18)+7; const llong mod = 1e9+7; int main(){ string s; cin >> s; string c; for(auto x : s) if(x == 'C'){ if((int)s.size() == 0) c += x: }else if(x == 'F'){ if((int)s.size() == 1) c += x; } if(c == "CF") cout << "Yes" << endl; else cout << "No" << endl; return 0; }
a.cc: In function 'int main()': a.cc:20:39: error: expected ';' before ':' token 20 | c += x: | ^ | ;
s286893601
p03957
C++
#include <bits/stdc++.h> using namespace std; using llong = long long; using P = pair<llong, llong>; #define BE(x) x.begin(), x.end() const llong inf = llong(1e18)+7; const llong mod = 1e9+7; int main(){ string s; cin >> s; strin c; for(auto x : s) if(x == 'C'){ if((int)s.size() == 0) c += x: }else if(x == 'F'){ if((int)s.size() == 1) c += x; } if(c == "CF") cout << "Yes" << endl; else cout << "No" << endl; return 0; }
a.cc: In function 'int main()': a.cc:16:9: error: 'strin' was not declared in this scope; did you mean 'stdin'? 16 | strin c; | ^~~~~ | stdin a.cc:20:33: error: 'c' was not declared in this scope 20 | c += x: | ^ a.cc:23:33: error: 'c' was not declared in this scope 23 | c += x; | ^ a.cc:26:12: error: 'c' was not declared in this scope 26 | if(c == "CF") | ^
s309499356
p03957
C++
#include<bits/stdc++.h> using namespace std; int main() { string a; cin >> a; int cnt=0; for(int i=0;i<a.size();i++) if(a[i]=='C') cnt=1; if(a[i]=='C') cnt=1; if(a[i]=='C') cnt=1; if(a[i]=='F'&&cnt==1) cout << "Yes"; cout << "No"; return 0; }
a.cc: In function 'int main()': a.cc:13:10: error: 'i' was not declared in this scope 13 | if(a[i]=='C') | ^ a.cc:15:10: error: 'i' was not declared in this scope 15 | if(a[i]=='C') | ^ a.cc:17:10: error: 'i' was not declared in this scope 17 | if(a[i]=='F'&&cnt==1) | ^
s934288725
p03957
C++
#include <cstdio> #include <cstring> int main() { char x[100005]; scanf("%s",x); bool c=false,f=false; for(int i=0;i<strlen(x);i++) { if(a[i]=='C') c=1; if(a[i]=='F') f=1; } if(c&&f) printf("Yes"); else printf("No"); return 0; }
a.cc: In function 'int main()': a.cc:9:20: error: 'a' was not declared in this scope 9 | if(a[i]=='C') c=1; | ^ a.cc:10:20: error: 'a' was not declared in this scope 10 | if(a[i]=='F') f=1; | ^
s930094544
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"Yes"; 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
s629341222
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int l; int mian() { cin>>s; l=strlen(s); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"Yes"; return 0; } } } } cout<<"No"; return 0; }
a.cc: In function 'int mian()': a.cc:8:14: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*' 8 | l=strlen(s); | ^ | | | std::string {aka std::__cxx11::basic_string<char>} In file included from /usr/include/c++/14/cstring:43, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121, from a.cc:1: /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: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++) | ^
s452305195
p03957
C++
#include<bits/stdc++.h> using namesapce std; string s; int main() { cin>>s; for(int i=0;i<s.length();i++) { if(s[i]=='C') { for(int j=i+1;j<s.length();j++) { if(s[j]=='F') { cout<<"Yes"<<endl; return 0; } } } } cout<<"No"<<endl; return 0; }
a.cc:2:7: error: expected nested-name-specifier before 'namesapce' 2 | using namesapce std; | ^~~~~~~~~ a.cc:3:1: error: 'string' does not name a type; did you mean 'stdin'? 3 | string s; | ^~~~~~ | stdin a.cc: In function 'int main()': a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | 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:6:10: error: 's' was not declared in this scope 6 | cin>>s; | ^ a.cc:15:21: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 15 | cout<<"Yes"<<endl; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:15:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 15 | cout<<"Yes"<<endl; | ^~~~ | std::endl In file included from /usr/include/c++/14/istream:41, from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/complex:45, from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127: /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ a.cc:21:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 21 | cout<<"No"<<endl; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:21:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 21 | cout<<"No"<<endl; | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
s742762253
p03957
C++
#include<bits/stdc++.h> using namespace std; int main() { string s; int a=0; cin>>s; for(int i=0;i<s.length();i++) { if(s[i]=='C') a=1; if(a[i]=='F'&&a=1) { cout<<"Yes"; return 0; } } cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:12:21: error: invalid types 'int[int]' for array subscript 12 | if(a[i]=='F'&&a=1) | ^
s226839773
p03957
C
char *S[]={"No","Yes"}; char C="CF"; char c; int f; int main(){ while((c=getchar())!=10){ f+=c==C[f]; } f=f==2; puts(S[f]); }
main.c:2:8: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion] 2 | char C="CF"; | ^~~~ main.c:2:8: error: initializer element is not computable at load time main.c: In function 'main': main.c:6:12: error: implicit declaration of function 'getchar' [-Wimplicit-function-declaration] 6 | while((c=getchar())!=10){ | ^~~~~~~ main.c:1:1: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>' +++ |+#include <stdio.h> 1 | char *S[]={"No","Yes"}; main.c:7:12: error: subscripted value is neither array nor pointer nor vector 7 | f+=c==C[f]; | ^ main.c:10:3: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration] 10 | puts(S[f]); | ^~~~ main.c:10:3: note: include '<stdio.h>' or provide a declaration of 'puts'
s210766924
p03957
C
char *S[]={"No","Yes"}; char C="CF"; char f; int main(){ while((c=getchar())!=10){ f+=c==C[f]; } f=f==2; puts(S[f]); }
main.c:2:8: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion] 2 | char C="CF"; | ^~~~ main.c:2:8: error: initializer element is not computable at load time main.c: In function 'main': main.c:5:10: error: 'c' undeclared (first use in this function) 5 | while((c=getchar())!=10){ | ^ main.c:5:10: note: each undeclared identifier is reported only once for each function it appears in main.c:5:12: error: implicit declaration of function 'getchar' [-Wimplicit-function-declaration] 5 | while((c=getchar())!=10){ | ^~~~~~~ main.c:1:1: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>' +++ |+#include <stdio.h> 1 | char *S[]={"No","Yes"}; main.c:6:12: error: subscripted value is neither array nor pointer nor vector 6 | f+=c==C[f]; | ^ main.c:9:3: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration] 9 | puts(S[f]); | ^~~~ main.c:9:3: note: include '<stdio.h>' or provide a declaration of 'puts'
s148522732
p03957
C++
#include<bits/stdc++.h> using namespace std; int main() { string s[100]; for(int i=1;i<=101;i++) { cin>>a[i]; if(s[i]=='C'&&a[i+1]=='F') cout<<"YES"; else cout<<"NO"; } return 0; }
a.cc: In function 'int main()': a.cc:8:14: error: 'a' was not declared in this scope 8 | cin>>a[i]; | ^ a.cc:9:16: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 9 | if(s[i]=='C'&&a[i+1]=='F') | ~~~~^~~~~ | | | | | 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:9:18: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 9 | if(s[i]=='C'&&a[i+1]=='F') | ^~~ /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:18: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 9 | if(s[i]=='C'&&a[i+1]=='F') | ^~~ /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:18: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 9 | if(s[i]=='C'&&a[i+1]=='F') | ^~~ /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:18: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 9 | if(s[i]=='C'&&a[i+1]=='F') | ^~~ /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:18: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 9 | if(s[i]=='C'&&a[i+1]=='F') | ^~~ /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:18: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 9 | if(s[i]=='C'&&a[i+1]=='F') | ^~~ /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:18: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 9 | if(s[i]=='C'&&a[i+1]=='F') | ^~~ /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:18: 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'&&a[i+1]=='F') | ^~~ 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:18: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 9 | if(s[i]=='C'&&a[i+1]=='F') | ^~~ 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:18: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 9 | if(s[i]=='C'&&a[i+1]=='F') | ^~~ /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:9:18: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 9 | if(s[i]=='C'&&a[i+1]=='F') | ^~~ /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:9:18: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 9 | if(s[i]=='C'&&a[i+1]=='F') | ^~~ /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:9:18: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 9 | if(s[i]=='C'&&a[i+1]=='F') | ^~~ 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:9:18: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>' 9 | if(s[i]=='C'&&a[i+1]=='F') | ^~~ 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:9:18: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>' 9 | if(s[i]=='C'&&a[i+1]=='F') | ^~~ 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<_CharT, _Traits>, __type_identity_t<basic
s314196688
p03957
C++
#include<bits/stdc++.h> using namespace std; int main() { string s[100]; for(int i=1;i<=101;i++) { cin>>a[i]; if(a[i]=='C'&&a[i+1]=='F') cout<<"YES"; else cout<<"NO"; } return 0; }
a.cc: In function 'int main()': a.cc:8:14: error: 'a' was not declared in this scope 8 | cin>>a[i]; | ^
s792279297
p03957
C++
#include <bits/stdc++.h> using namespace std; string s; int main () { cin>>s; int flag1=0,flag2=0; for(int i=0;i<=s.size()-1;++i) { if(s[i]=='C') flag1=1; if(s[i]=='F' && flag1) flag2=1; } if(flag2) puts("Yes"); else put("No"); return 0; }
a.cc: In function 'int main()': a.cc:14:14: error: 'put' was not declared in this scope; did you mean 'putw'? 14 | else put("No"); | ^~~ | putw
s127007223
p03957
C++
#include <bits/stdc++.h> using namespace std; string s; int main () { cin>>s; int flag1=0,flag2=0; for(int i=0;i<=s.size-1;++i) { if(s[i]=='C') flag1=1; if(s[i]=='F' && flag1) flag2=1; } if(flag2) puts("Yes"); else put("No"); return 0; }
a.cc: In function 'int main()': a.cc:8:26: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?) 8 | for(int i=0;i<=s.size-1;++i) | ~~^~~~ | () a.cc:14:14: error: 'put' was not declared in this scope; did you mean 'putw'? 14 | else put("No"); | ^~~ | putw
s299535679
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { 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
s893554356
p03957
C++
#include<bits/stdc++.h>//'三玖是天! '. using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"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
s691736164
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int main() { cin>>s; l=s.leng(); for (register int i(0);i<l;++i) if (s[i]=='C') for (register int j(i+1);j<l;++j) if (s[j]=='F') { printf("Yes"); return 0; } printf("No"); return 0; }
a.cc: In function 'int main()': a.cc:10:9: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'leng' 10 | l=s.leng(); | ^~~~ a.cc:11:23: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 11 | for (register int i(0);i<l;++i) | ^ a.cc:13:31: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 13 | for (register int j(i+1);j<l;++j) | ^
s475052996
p03957
C++
#include<bits/stdc++.h> using namespace std; int main(){ char a[1001],c=0,f=0; gets(a); for(i=0;i<strlen(a);i++){ if(a[i]=='C') c=1; if(c==1 and a[i]=='F') f=1; } if(f=1) cout<<"Yes"; else cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:5:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 5 | gets(a); | ^~~~ | getw a.cc:6:13: error: 'i' was not declared in this scope 6 | for(i=0;i<strlen(a);i++){ | ^
s607390597
p03957
C++
#include <bits/stdc++.h> using namespace std; int main() { string a; int f; cin>>a; for(int i=1;i<=n.length();i++) { if(a[i]=='C') f=0; if(!f&&a[i]=='F') { cout<<"Yes"; return 0; } } cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:8:24: error: 'n' was not declared in this scope 8 | for(int i=1;i<=n.length();i++) | ^
s221766248
p03957
C++
#include <bits/stdc++.h> using namespace std; int main() { string n; int f; cin>>n; for(i=1;i<=n.length();i++) { if(a[i]=='C') f=0; if(!f&&a[i]=='F') { cout<<"Yes"; return 0; } } cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:8:13: error: 'i' was not declared in this scope 8 | for(i=1;i<=n.length();i++) | ^ a.cc:10:20: error: 'a' was not declared in this scope 10 | if(a[i]=='C') | ^ a.cc:12:24: error: 'a' was not declared in this scope 12 | if(!f&&a[i]=='F') | ^
s648802978
p03957
C++
#include <bits/stdc++.h> using namespace std; int main() { string n; int f; cin>>n; for(i=1;i<=n.length;i++) { if(a[i]=='C') f=0; if(!f&&a[i]=='F') { cout<<"Yes"; return 0; } } cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:8:13: error: 'i' was not declared in this scope 8 | for(i=1;i<=n.length;i++) | ^ a.cc:10:20: error: 'a' was not declared in this scope 10 | if(a[i]=='C') | ^ a.cc:12:24: error: 'a' was not declared in this scope 12 | if(!f&&a[i]=='F') | ^
s354690858
p03957
C++
#include<bits/stdc++.h> #include<conio.h> using namespace std; int main() { char str[10001]; bool f1=false,f2=false; scanf("%s",str+1); for(int i=1; i<=strlen(str+1); i++) { if(str[i]=='C'&&!f2)f1=true; if(str[i]=='F'&& f1)f2=true; } cout<<(f1&&f2?"YES":"NO"); return 0; }
a.cc:2:9: fatal error: conio.h: No such file or directory 2 | #include<conio.h> | ^~~~~~~~~ compilation terminated.
s350381275
p03957
C++
implicit none integer(8) :: i,l character :: s*105 logical :: c,f read*,s c = .false. f = .false. l = len(trim(s)) do i = 1,l if(s(i:i)=='C')then c = .true. else if(s(i:i)=='F' .and. c)then f = .true. endif enddo if(c .and. f)then write(*,'(a)')'Yes' else write(*,'(a)')'No' endif end
a.cc:17:17: warning: multi-character character constant [-Wmultichar] 17 | write(*,'(a)')'Yes' | ^~~~~ a.cc:17:23: warning: multi-character character constant [-Wmultichar] 17 | write(*,'(a)')'Yes' | ^~~~~ a.cc:19:17: warning: multi-character character constant [-Wmultichar] 19 | write(*,'(a)')'No' | ^~~~~ a.cc:19:23: warning: multi-character character constant [-Wmultichar] 19 | write(*,'(a)')'No' | ^~~~ a.cc:1:1: error: 'implicit' does not name a type; did you mean 'explicit'? 1 | implicit none | ^~~~~~~~ | explicit
s831815496
p03957
C++
#include<bits/stdc++.h> using namespace std; int l,i,j; char a[1100]; int main(){ gets(a); l=srelen(a); for(i=0;i<l;i++){ if(a[i]=='C')break; } for(j=i+1;j<l;j++){ if(a[i]=='F'){ cout<<"Yes"; return 0; } } cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:6:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 6 | gets(a); | ^~~~ | getw a.cc:7:7: error: 'srelen' was not declared in this scope; did you mean 'strnlen'? 7 | l=srelen(a); | ^~~~~~ | strnlen
s923807418
p03957
C++
#include<bits/stdc++.h> main() { char a[123];gets(a); register int i=0; for(;a[i];++i)if(a[i]=='C')break; if(!a[i]){puts("No");return 0;} for(++i;a[i];++i)if(a[i]=='F')break; if(!a[i]){puts("No");return 0;} puts("Yes"); }
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 2 | main() | ^~~~ a.cc: In function 'int main()': a.cc:4:17: error: 'gets' was not declared in this scope; did you mean 'getw'? 4 | char a[123];gets(a); | ^~~~ | getw a.cc:5:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 5 | register int i=0; | ^
s933157168
p03957
C++
#include<stdio.h> main() { char a[123];gets(a); register int i=0; for(;a[i];++i)if(a[i]=='C')break; if(!a[i]){puts("No");return 0;} for(++i;a[i];++i)if(a[i]=='F')break; if(!a[i]){puts("No");return 0;} puts("Yes"); }
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 2 | main() | ^~~~ a.cc: In function 'int main()': a.cc:4:17: error: 'gets' was not declared in this scope; did you mean 'getw'? 4 | char a[123];gets(a); | ^~~~ | getw a.cc:5:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 5 | register int i=0; | ^
s445728485
p03957
C++
#include<iostream> #include<cstdio> #include<cstring> #include<string> using namespace std; char s[105]; int mian() { cin>>s; int lens=strlen(s); for(int i=0;i<lens;i++) { if(s[i]=='C') { for(int j=i+1;j<lens;j++) { if(s[j]=='F') { 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
s631212372
p03957
C++
#include<iostream> #include<cstdio> #include<cstring> #include<string> using namespace std; char s[105]; int mian() { cin>>s; int lens=strlen(s); for(int i=0;i<lens;i++) { if(s[i]=='C') { for(int j=i+1;j<lenc;j++) { if(s[j]=='F') { cout<<"Yes"; return 0; } } } } cout<<"No"; return 0; }
a.cc: In function 'int mian()': a.cc:15:29: error: 'lenc' was not declared in this scope; did you mean 'lens'? 15 | for(int j=i+1;j<lenc;j++) | ^~~~ | lens
s315945675
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int l; int mian(){ cin>>s; l=s.size(); for(register int i=0;i<l;i++){ if(s[i]=='C'){ for(register int j=i+1;j<l;j++){ if(s[j]=='F'){ cout<<"Yes"; return 0; } } } } 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
s409710342
p03957
C++
#include<iostream> #include<cstring> using namespace std; int main() { char str[101]; gets(str); for(int i=0;i<strlen(str);i++){ if(str[i]=='C'){ for(int j=i+1;j<strlen(str);j++){ if(str[j]=='F'){ cout<<"Yes"<<"\n"; return 0; } } } } cout<<"No"<<"\n"; return 0; }
a.cc: In function 'int main()': a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 7 | gets(str); | ^~~~ | getw
s449798267
p03957
C++
#include<iostream> #include<cstring> using namespace std; int main() { char str[101]; gets(str); for(int i=0;i<strlen(str);i++){ if(str[i]=='C'){ for(int j=i+1;j<strlen(str);j++){ if(str[j]=='F'){ cout<<"Yes"<<"\n"; return 0; } } } } cout<<"No"<<"\n"; return 0; }
a.cc: In function 'int main()': a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 7 | gets(str); | ^~~~ | getw
s628619932
p03957
C++
include<iostream> #include<cstring> using namespace std; string a,b="CF"; //打表 int al,bl; int main(){ getline(cin,a); al=a.length(); for(int i=0;i<al;i++) if(a[i]==b[bl]){ //当找到一个的时候加一 bl++; if(bl==2) //都找到的时候就退出 break; } if(bl==2) cout<<"Yes"; //判断并且输出 else cout<<"No"; cout<<endl;//最后不要忘了打个换行 return 0; }
a.cc:1:1: error: 'include' does not name a type 1 | include<iostream> | ^~~~~~~ a.cc:5:1: error: 'string' does not name a type 5 | string a,b="CF"; //打表 | ^~~~~~ a.cc: In function 'int main()': a.cc:9:13: error: 'cin' was not declared in this scope 9 | getline(cin,a); | ^~~ 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:9:17: error: 'a' was not declared in this scope; did you mean 'al'? 9 | getline(cin,a); | ^ | al a.cc:9:5: error: 'getline' was not declared in this scope 9 | getline(cin,a); | ^~~~~~~ a.cc:12:18: error: 'b' was not declared in this scope 12 | if(a[i]==b[bl]){ //当找到一个的时候加一 | ^ a.cc:17:15: error: 'cout' was not declared in this scope 17 | if(bl==2) cout<<"Yes"; //判断并且输出 | ^~~~ a.cc:17:15: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:18:10: error: 'cout' was not declared in this scope 18 | else cout<<"No"; | ^~~~ a.cc:18:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:19:5: error: 'cout' was not declared in this scope 19 | cout<<endl;//最后不要忘了打个换行 | ^~~~ a.cc:19:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:19:11: error: 'endl' was not declared in this scope 19 | cout<<endl;//最后不要忘了打个换行 | ^~~~ a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>' 2 | #include<cstring> +++ |+#include <ostream> 3 | using namespace std;
s702474208
p03957
C++
#include<iostream> #include<cstring> using namespace std; bool a=0,b=0,c,d,e,f; int main() { char s[100]; gets(s); for(int i=0;i<strlen(s);++i) {if(s[i]=='C')a=1,c=i,e=c; if(s[i]=='F')b=1,d=i,f=d; } if(a==1&&b==1&&e<f) cout<<"Yes"<<endl; if(a!=1||b!=1||e>f) cout<<"N0"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 7 | gets(s); | ^~~~ | getw
s858448837
p03957
C++
#include<iostream> #include<cstring> using namespace std; bool a=0,b=0,c,d,e,f; int main() { char s[100]; gets(s); for(int i=0;i<strlen(s);++i) {if(s[i]=='C')a=1,c=i,e=c; if(s[i]=='F')b=1,d=i,f=d; } if(a==1&&b==1&&e<f) cout<<"Yes"<<endl; if(a!=1||b!=1||e>f) cout<<"N0"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:8:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 8 | gets(s); | ^~~~ | getw
s179626743
p03957
C++
#include<iostream> #include<algorithm> #include<cstring> using namespace std; int ans; int main() { string a; cin>>a; int k=a.length(); for(int i=1;i<=k;i++) { if(a[i]=='C'&&ans=0) ans=1; if(a[i]=='F'&&ans==1) ans=2; } if(ans==2) cout<<"Yes"<<endl; else cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:13:29: error: lvalue required as left operand of assignment 13 | if(a[i]=='C'&&ans=0)
s873482428
p03957
C++
#include<iostream> #include<algorithm> #include<cstring> using namespace std; int ans; int main() { string a; cin>>a; int k=a.length(); for(int i=1;i<=k;i++) { if(a[i]=='C') ans=1; if(a[i]=='F'&&ans=1) ans=2; } if(ans==2) cout<<"Yes"<<endl; else cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:15:29: error: lvalue required as left operand of assignment 15 | if(a[i]=='F'&&ans=1)
s327283237
p03957
C++
#include"/dev/console"
a.cc:1:9: fatal error: /dev/console: No such file or directory 1 | #include"/dev/console" | ^~~~~~~~~~~~~~ compilation terminated.
s267979434
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { 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
s537166773
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int mian() { int len; cin>>str; l=str.size(); for(i=0;i<l;i++) { if(str[i]=='C') { for(j=i+1;j<l;j++) { if(str[j]=='F') { printf("Yes"); return 0; } } } } printf("No"); return 0; }
a.cc: In function 'int mian()': a.cc:7:10: error: 'str' was not declared in this scope; did you mean 'std'? 7 | cin>>str; | ^~~ | std a.cc:8:5: error: 'l' was not declared in this scope 8 | l=str.size(); | ^ a.cc:9:9: error: 'i' was not declared in this scope 9 | for(i=0;i<l;i++) | ^ a.cc:13:17: error: 'j' was not declared in this scope 13 | for(j=i+1;j<l;j++) | ^
s608607722
p03957
C++
#include<bits\stdc++.h> using namespace std; string a; int main() { cin>>a; int n,s=0; n=a.size(); for(int i=0;i<n;++i) { if(a[i]=='C') { for(int j=i+1;j<n;j++) { if(a[j]=='F') { s++; } } } } if(s!=0) cout<<"YES"; else cout<<"NO"; return 0; }
a.cc:1:9: fatal error: bits\stdc++.h: No such file or directory 1 | #include<bits\stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s481080929
p03957
C++
#include<bits\stdc++.h> using namespace std; string a; int main() { cin>>a; int n,s=0; n=a.size(); for(int i=0;i<n;++i) { if(a[i]=='C') { for(int j=i+1;j<n;j++) { if(a[j]=='F') { s++; } } } } if(s!=0) cout<<"YES"; else cout<<"NO"; return 0; }
a.cc:1:9: fatal error: bits\stdc++.h: No such file or directory 1 | #include<bits\stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s665154929
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int l; int mian() { cin >> s; l = s.size(); for (int i = 0; i < l; i++) { if (s[i] == 'C') { for (int j = i + 1; j < l; j++) { if (s[j] == 'F') { cout << "Yes"; return 0; } } } } 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
s192529034
p03957
C++
#include<bits/stdc++.h> using namespace std; bool x=0,y=0; char a; int main() { while(a!=EOF) { a=getchar(); if(a=='C') x=1; if(a=='F'&&x) y=1; } if(x&&y) cout<<"Yes"; else cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:7:5: error: 'while\U0000ff08a' was not declared in this scope 7 | while(a!=EOF) | ^~~~~~~~
s965672933
p03957
C++
#include<bits/stdc++.h> using namespace std; bool x=0,y=0; char a; int main() { while(a!='\n') { a=getchar(); if(a=='C') x=1; if(a=='F'&&x) y=1; } if(x&&y) cout<<"Yes"; else cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:7:5: error: 'while\U0000ff08a' was not declared in this scope 7 | while(a!='\n') | ^~~~~~~~
s976863805
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"Yes"; 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
s676414883
p03957
C++
#include<bits/stdc++.h> using namespace std; int main () { string a; cin>>a; int b=0,c=0; for(int i=0;i<a.length();i++) { if(a[i]=='C') b=i; if(a[i]=='F') c=i; } if(a=='CF') cout<<"Yes"; if(b==0||c==0) cout<<"No"; else if(b>c) cout<<"No"; else cout<<"Yes"; }
a.cc:13:15: warning: multi-character character constant [-Wmultichar] 13 | if(a=='CF') cout<<"Yes"; | ^~~~ a.cc: In function 'int main()': a.cc:13:13: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 13 | if(a=='CF') cout<<"Yes"; | ~^~~~~~ | | | | | int | 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:13:15: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 13 | if(a=='CF') cout<<"Yes"; | ^~~~ /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:13:15: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 13 | if(a=='CF') cout<<"Yes"; | ^~~~ /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:13:15: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 13 | if(a=='CF') cout<<"Yes"; | ^~~~ /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:13:15: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 13 | if(a=='CF') cout<<"Yes"; | ^~~~ /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:13:15: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 13 | if(a=='CF') cout<<"Yes"; | ^~~~ /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:13:15: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 13 | if(a=='CF') cout<<"Yes"; | ^~~~ /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:13:15: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 13 | if(a=='CF') cout<<"Yes"; | ^~~~ /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:13:15: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>' 13 | if(a=='CF') cout<<"Yes"; | ^~~~ 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:13:15: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 13 | if(a=='CF') cout<<"Yes"; | ^~~~ 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:13:15: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 13 | if(a=='CF') cout<<"Yes"; | ^~~~ /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:13:15: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 13 | if(a=='CF') cout<<"Yes"; | ^~~~ /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:13:15: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 13 | if(a=='CF') cout<<"Yes"; | ^~~~ /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:13:15: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 13 | if(a=='CF') cout<<"Yes"; | ^~~~ 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:13:15: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>' 13 | if(a=='CF') cout<<"Yes"; | ^~~~ 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:13:15: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>' 13 | if(a=='CF') cout<<"Yes"; | ^~~~ 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<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Trait
s666556337
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { 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
s694139534
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { 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
s062332142
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0; i<l; i++) { if(s[i]=='C') { for(register int j=i+1; j<l; j++) { if(s[j]=='F') { cout<<"Yes"<<endl; return 0; } } } } cout<<"No"<<endl; return 0; }
a.cc: In function 'int mian()': a.cc:10:26: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 10 | for(register int i=0; i<l; i++) { | ^ a.cc:12:42: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 12 | 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
s049912413
p03957
C++
#include <bits/stdc++.h> using namespace std; bool a==false; char s[500]; int main() { cin>>s; for(int i=0;i<strlen(s);i++) { if(s[i]=='F' && a==true) { cout<<"YES"; return 0; } if(s[i]=='C') { a=true; } } cout<<"NO"; return 0; }
a.cc:3:7: error: expected initializer before '==' token 3 | bool a==false; | ^~ a.cc: In function 'int main()': a.cc:10:33: error: 'a' was not declared in this scope 10 | if(s[i]=='F' && a==true) | ^ a.cc:17:25: error: 'a' was not declared in this scope 17 | a=true; | ^
s885453612
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { 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
s754815791
p03957
C++
#include<bits/stdc++.h> using namespace std; string a; int l; int main() { cin>>a; l=length(a); for(int i=0; i<l; i++) { if(s[i]=='C') { for(int j=i+1; j<l; j++) { if(s[j]=='F') { cout>>"YES"; return 0; } } } } cout<<"NO"; return 0; }
a.cc: In function 'int main()': a.cc:7:11: error: 'length' was not declared in this scope 7 | l=length(a); | ^~~~~~ a.cc:10:20: error: 's' was not declared in this scope 10 | if(s[i]=='C') { | ^ a.cc:13:45: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]') 13 | cout>>"YES"; | ~~~~^~~~~~~ | | | | | const char [4] | std::ostream {aka std::basic_ostream<char>} In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41, from a.cc:1: /usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)' 131 | operator>>(byte __b, _IntegerType __shift) noexcept | ^~~~~~~~ /usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed: a.cc:13:41: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte' 13 | cout>>"YES"; | ^~~~ 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: /usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 835 | operator>>(basic_istream<_CharT, _Traits>& __in, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed: a.cc:13:47: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout>>"YES"; | ^~~~~ /usr/include/c++/14/bitset:1597:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, bitset<_Nb>&)' 1597 | operator>>(std::basic_istream<_CharT, _Traits>& __is, bitset<_Nb>& __x) | ^~~~~~~~ /usr/include/c++/14/bitset:1597:5: note: template argument deduction/substitution failed: a.cc:13:47: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout>>"YES"; | ^~~~~ In file included from /usr/include/c++/14/istream:1109, from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/complex:45, from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127: /usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)' 978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) | ^~~~~~~~ /usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed: a.cc:13:47: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout>>"YES"; | ^~~~~ /usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)' 849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c) | ^~~~~~~~ /usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed: a.cc:13:47: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 13 | cout>>"YES"; | ^~~~~ /usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)' 854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c) | ^~~~~~~~ /usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed: a.cc:13:47: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 13 | cout>>"YES"; | ^~~~~ /usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)' 896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) | ^~~~~~~~ /usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed: a.cc:13:47: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout>>"YES"; | ^~~~~ /usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)' 939 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s) | ^~~~~~~~ /usr/include/c++/14/istream:939:5: note: template argument deduction/substitution failed: a.cc:13:47: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 13 | cout>>"YES"; | ^~~~~ /usr/include/c++/14/istream:945:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*)' 945 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s) | ^~~~~~~~ /usr/include/c++/14/istream:945:5: note: template argument deduction/substitution failed: a.cc:13:47: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 13 | cout>>"YES"; | ^~~~~ /usr/include/c++/14/istream:1099:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)' 1099 | operator>>(_Istream&& __is, _Tp&& __x) | ^~~~~~~~ /usr/include/c++/14/istream:1099:5: note: template argument deduction/substitution failed: /usr/include/c++/14/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = const char (&)[4]]': a.cc:13:12: required from here 13 | cout>>"YES"; | ^~~~~ /usr/include/c++/14/istream:1099:5: error: no type named 'type' in 'struct std::enable_if<false, void>' 1099 | operator>>(_Istream&& __is, _Tp&& __x) | ^~~~~~~~ /usr/include/c++/14/complex:509:5: note: candidate: 'template<class _Tp, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, complex<_Tp>&)' 509 | operator>>(basic_istream<_CharT, _Traits>& __is, complex<_Tp>& __x) | ^~~~~~~~ /usr/include/c++/14/complex:509:5: note: template argument deduction/substitution failed: a.cc:13:47: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout>>"YES"; | ^~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:143: /usr/include/c++/14/iomanip:76:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Resetiosflags)' 76 | operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:76:5: note: template argument deduction/substitution failed: a.cc:13:47: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout>>"YES"; | ^~~~~ /usr/include/c++/14/iomanip:106:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setiosflags)' 106 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:106:5: note: template argument deduction/substitution failed: a.cc:13:47: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout>>"YES"; | ^~~~~ /usr/include/c++/14/iomanip:137:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setbase)' 137 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:137:5: note: template argument deduction/substitution failed: a.cc:13:47: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from '
s713240274
p03957
C++
#include<bits/stdc++.h> using namespace std; char s[1005]; int main() { gets(s); int g=str.len(s); for(int i=0;i<g;i++) { if(s[i]='C') { for(int j=i;j<g;j++) { if(s[j]=='F') { printf("Yes"); return 0; } } printf("No"); return 0; } } printf("No"); return 0; }
a.cc: In function 'int main()': a.cc:6:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 6 | gets(s); | ^~~~ | getw a.cc:7:11: error: 'str' was not declared in this scope; did you mean 'std'? 7 | int g=str.len(s); | ^~~ | std
s908638341
p03957
C++
#include<bits/stdc++.h> using namespace std; char s[1005]; int main() { gets(s); int g=str.len(); for(int i=0;i<g;i++) { if(s[i]='C') { for(int j=i;j<g;j++) { if(s[j]=='F') { printf("Yes"); return 0; } } printf("No"); return 0; } } printf("No"); return 0; }
a.cc: In function 'int main()': a.cc:6:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 6 | gets(s); | ^~~~ | getw a.cc:7:11: error: 'str' was not declared in this scope; did you mean 'std'? 7 | int g=str.len(); | ^~~ | std
s168883620
p03957
C
#include<stdio.h> #include<string.h> using namespace std; char a; int flag; int main() { a=getchar(); while(a!=10) { if(flag==0) { if(a='C') flag++; } else if(a='F') flag++; a=getchar(); } if(flag>=2) printf("是"); else printf("不是"); return 0; }
main.c:3:1: error: unknown type name 'using' 3 | using namespace std; | ^~~~~ main.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std' 3 | using namespace std; | ^~~
s357610830
p03957
C
#include<stdio.h> #include<algorithm> #include<cstring> using namespace std; char a; int flag; int main() { a=getchar(); while(a!=10) { if(flag==0) { if(a='C') flag++; } else if(a='F') flag++; a=getchar(); } if(flag>=2) printf("是"); else printf("不是"); return 0; }
main.c:2:9: fatal error: algorithm: No such file or directory 2 | #include<algorithm> | ^~~~~~~~~~~ compilation terminated.
s003738370
p03957
C++
#include<bits/stdc++.h> using namespace std; int main(){ string a; int idx; bool f1,f2; f1=f2=false; cin>>a; for(int i=0;i<a.size();i++){ if(a[i]=='C')f1=1,idx=i,break; } if(!f1){ cout<<"No"<<endl; return 0; }else{ for(int i=idx;i<a.size();i++){ if(a[i]=='F')f2=1,break; } } if(f2){ cout<<"Yes"<<endl; }else{ cout<<"No"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:10:33: error: expected primary-expression before 'break' 10 | if(a[i]=='C')f1=1,idx=i,break; | ^~~~~ a.cc:17:31: error: expected primary-expression before 'break' 17 | if(a[i]=='F')f2=1,break; | ^~~~~
s504035379
p03957
C++
#include<bits/stdc++.h> using namespace std; int main(){ string a; int idx; bool f1,f2; f1=f2=false; cin>>a; for(int i=0;i<n.size();i++){ if(a[i]=='C')f1=1,idx=i,break; } if(!f1){ cout<<"No"<<endl; return 0; }else{ for(int i=idx;i<a.size();i++){ if(a[i]=='F')f2=1,break; } } if(f2){ cout<<"Yes"<<endl; }else{ cout<<"No"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:9:19: error: 'n' was not declared in this scope 9 | for(int i=0;i<n.size();i++){ | ^ a.cc:10:33: error: expected primary-expression before 'break' 10 | if(a[i]=='C')f1=1,idx=i,break; | ^~~~~ a.cc:17:31: error: expected primary-expression before 'break' 17 | if(a[i]=='F')f2=1,break; | ^~~~~
s505468278
p03957
C++
#include<cstdio> #include<cmath> #include<algorithm> #include<cctype> #include<cstring> #include<queue> #include<iostream> #include<map> using namespace std; typedef long long ll; typedef double lf; typedef unsigned un; typedef int in; #define mian main #define maxn 10000+10 #define maxm 10000+10 #define _(a) read(a) #define non void #define inf 2147483647 #define bre break #define con continue #define prq priority_queue #define re register #define bu bool #define cz char #define cst const #define ope operator #define inl inline #define upp upper_bound #define low lower_bound #define next_per next_permutation cz obuf[1<<23],*O=obuf,buf[1<<23],*L=buf,*R=buf; inl cz gc(){return L==R&&(R=(L=buf)+fread(buf,1,100000,stdin),L==R)?EOF:*L++;} template<typename T>inl T Max(T a,T b){return a>b?a:b;} template<typename T>inl T Min(T a,T b){return a<b?a:b;} template<typename T>inl T Abs(T a){return a<0?-a:a;} template<typename T>inl non read(T &a){a=0;T k=1;char c=gc();while(c<'0'||c>'9')k=c=='-'?-1:k,c=gc();while(c>='0'&&c<='9')a=a*10+(c^48),c=gc();if(c!='.'){a*=k;return;}T t=0.1;while(c<'0'||c>'9')c=gc();while(c>='0'&&c<='9')a+=t*(c^48),c=gc(),t*=0.1;a*=k;} template<typename T>non print(T x){if(x>9)print(x/10);*O++=x%10+'0';} template<typename T>non out(T a,cz t='\n'){print(a);*O++=t;} non fresh(){fwrite(obuf,O-obuf,1,stdout);} string s; in n,i; bu a; in main() { cin>>s; n=s.size(); for(i=0;i<n;++i)if(s[i]=='C')bre; for(;i<n;++i)if(s[i]=='F')a=1; if(a)*O++'Y',*O++='e',*O++='s'; else *O++='N',*O++='o'; *O++='\n',fresh(); //freopen("a.in","r",stdin); //freopen(".out","w",stdout); }
a.cc: In function 'in main()': a.cc:50:18: error: expected ';' before 'Y' 50 | if(a)*O++'Y',*O++='e',*O++='s'; | ^~~ | ;
s546517158
p03957
C++
#include<bits/stdc++.h> using namespace std; const int M=105; char a[M]; bool C=false,F=false; int main() { gets(a); int lne=strlen(a); for (int i=0;i<len;++i) if (a[i]=='C') c=true; else if (C&&a[i]=='F') F=true; if (F) cout<<"Yes"; else cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:10:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 10 | gets(a); | ^~~~ | getw a.cc:12:24: error: 'len' was not declared in this scope; did you mean 'lne'? 12 | for (int i=0;i<len;++i) | ^~~ | lne a.cc:14:25: error: 'c' was not declared in this scope 14 | c=true; | ^
s842120218
p03957
C++
#include <iostream> #include <cstring> using namespace std; int mian(){ char s[105]; cin >> s; int len = strlen(s); bool flagc = false; bool flagf = false; bool flags = false; for(int i = 0; i < len; i++){ if(s[i] == 'C'){ flagc = true; } if(s[i] == 'F'){ flagf = true; } if(flagc == true && flagf == false){ flags = true; } } if(flagc == true && flagf == true && flags == true){ cout << "Yes"; }else{ 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
s175774353
p03957
C++
#include<bits/stdc++.h> using namespace std; char s[105]; int i,j; int main() { gets(s); for(i=0;i<strlen(s);i++) if(a[i]=='C') { for(j=i+1;j<strlen(s);j++) if(a[j]=='F') { cout<<"Yes"; return 0; } } cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 7 | gets(s); | ^~~~ | getw a.cc:9:8: error: 'a' was not declared in this scope 9 | if(a[i]=='C') | ^
s653274905
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0; i<l; i++) { if(s[i]=='C') { for(register int j=i+1; j<l; j++) { if(s[j]=='F') { cout<<"Yes"; return 0; } } } } cout<<"No"; return 0; }
a.cc: In function 'int mian()': a.cc:8:26: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 8 | for(register int i=0; i<l; i++) { | ^ a.cc:10:42: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 10 | 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
s409149778
p03957
C++
#include<iostream> #include<cstdio> #include<cstring> using namespace std; int main(){ char a[10000]; int b=0,c=0,l=0; cin>>a; b=strlen(a); for(int i=0;i<b;i++){ if(a[i]=='C'){ c++; l=1; }else if(a[i]=='F'){ c++; l=0; } } if(c>0&&l=0) cout<<"Yes"<<endl; else cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:19:15: error: lvalue required as left operand of assignment 19 | if(c>0&&l=0) cout<<"Yes"<<endl; | ~~~^~~
s554280352
p03957
C++
#include<iostream> #include<cstring> using namespace std; char s[101]; int i,k,j; int main(){ cin>>s; for(i=0;i<strlen(s);i++){ if(s[i]=='C'){ for(j=i+1;j<l;j++){ if(s[j]=='F'){ cout<<"Yes"; return 0; } } } } cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:10:37: error: 'l' was not declared in this scope 10 | for(j=i+1;j<l;j++){ | ^
s668222929
p03957
C++
#include <iostream> #include <string> #include <algorithm> using namespace std; int main(void){ int i, j; string s; cin >> s; for(int p: s){ if(s.at(p)=='C'){ i = p; } if(s.at(p)=='F'){ j = q; } } if(i<j){ cout << "Yes" << endl; }else{ cout << "No" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:15:11: error: 'q' was not declared in this scope 15 | j = q; | ^
s569046683
p03957
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <cmath> #include <cstdlib> #include <thread> #include <chrono> #include <queue> using namespace std; int main(void){ string s; cin >> s; int c_location = -1; int f_location = -1; for(int i=0: s){ if(s.at(i)=='C'){ for(int j=i:s){ if(s.at(j)=='F'){ cout << "Yes" << endl; } } } } cout << "no" << endl; return 0; }
a.cc: In function 'int main()': a.cc:18:18: error: initializer in range-based 'for' loop 18 | for(int i=0: s){ | ^ a.cc:20:34: error: initializer in range-based 'for' loop 20 | for(int j=i:s){ | ^
s121131364
p03957
C++
#include <iostream> #include <vector> #include <algorithm> #include <string> #include <cmath> #include <cstdlib> #include <thread> #include <chrono> using namespace std; int main(void){ string s; cin >> s; int n = s.length(); for(char c: n){ if(c=='C'){ for(char d=c:n){ if(d=='F'){ cout << "Yes" << endl; exit(0); } } cout << "No" << endl; exit(0); } } cout << "No" << endl; return 0; }
a.cc: In function 'int main()': a.cc:16:21: error: 'begin' was not declared in this scope; did you mean 'std::begin'? 16 | for(char c: n){ | ^ | std::begin In file included from /usr/include/c++/14/string:53, from /usr/include/c++/14/bits/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/range_access.h:114:37: note: 'std::begin' declared here 114 | template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept; | ^~~~~ a.cc:16:21: error: 'end' was not declared in this scope; did you mean 'std::end'? 16 | for(char c: n){ | ^ | std::end /usr/include/c++/14/bits/range_access.h:116:37: note: 'std::end' declared here 116 | template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept; | ^~~ a.cc:18:35: error: initializer in range-based 'for' loop 18 | for(char d=c:n){ | ^
s690514483
p03957
C++
#include <iostream> #include <vector> #include <algorithm> #include <string> #include <cmath> #include <cstdlib> #include <thread> #include <chrono> using namespace std; int main(void){ string s; cin >> s; int n = s.length(); for(char c: n{ if(c=='C'){ for(char d=c:n{ if(d=='F'){ cout << "Yes" << endl; exit(0); } } cout << "No" << endl; exit(0); } } cout << "No" << endl; return 0; }
a.cc: In function 'int main()': a.cc:16:21: error: 'begin' was not declared in this scope; did you mean 'std::begin'? 16 | for(char c: n{ | ^ | std::begin In file included from /usr/include/c++/14/string:53, from /usr/include/c++/14/bits/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/range_access.h:114:37: note: 'std::begin' declared here 114 | template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept; | ^~~~~ a.cc:16:21: error: 'end' was not declared in this scope; did you mean 'std::end'? 16 | for(char c: n{ | ^ | std::end /usr/include/c++/14/bits/range_access.h:116:37: note: 'std::end' declared here 116 | template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept; | ^~~ a.cc:16:22: error: expected ')' before '{' token 16 | for(char c: n{ | ~ ^ | ) a.cc:18:35: error: initializer in range-based 'for' loop 18 | for(char d=c:n{ | ^ a.cc:18:39: error: expected ')' before '{' token 18 | for(char d=c:n{ | ~ ^ | )
s472952877
p03957
C++
#include <iostream> #include <vector> #include <algorithm> #include <string> #include <cmath> #include <cstdlib> #include <thread> #include <chrono> using namespace std; int main(void){ string s; cin >> s; for(char c: s.length()){ if(c=='C'){ for(char d=c:s.length()){ if(d=='F'){ cout << "Yes" << endl; exit(0); } } cout << "No" << endl; exit(0); } } cout << "No" << endl; return 0; }
a.cc: In function 'int main()': a.cc:15:30: error: 'begin' was not declared in this scope; did you mean 'std::begin'? 15 | for(char c: s.length()){ | ^ | std::begin In file included from /usr/include/c++/14/string:53, from /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/range_access.h:114:37: note: 'std::begin' declared here 114 | template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept; | ^~~~~ a.cc:15:30: error: 'end' was not declared in this scope; did you mean 'std::end'? 15 | for(char c: s.length()){ | ^ | std::end /usr/include/c++/14/bits/range_access.h:116:37: note: 'std::end' declared here 116 | template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept; | ^~~ a.cc:17:35: error: initializer in range-based 'for' loop 17 | for(char d=c:s.length()){ | ^
s442380305
p03957
C++
#include <iostream> #include <vector> #include <algorithm> #include <string> #include <cmath> #include <cstdlib> #include <thread> #include <chrono> using namespace std; int main(void){ string s; cin >> s; for(char c: n){ if(c=='C'){ for(char d=c:n){ if(d=='F'){ cout << "Yes" << endl; exit(0); } } cout << "No" << endl; exit(0); } } cout << "No" << endl; return 0; }
a.cc: In function 'int main()': a.cc:16:21: error: 'n' was not declared in this scope 16 | for(char c: n){ | ^ a.cc:18:35: error: initializer in range-based 'for' loop 18 | for(char d=c:n){ | ^
s591277997
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"Yes"; 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
s704681857
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { 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
s437160375
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { 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
s793127864
p03957
C++
#include<bits/stdc++.h> using namespace std; char p[3]="CF",c[1005]; int main() { ios::sync_with_stdio(false); int x=0; gets(c); for(int i=0;i<strlen(c);i++) if(c[i]==p[x]) x++; if(x>=2) cout<<"YES"<<endl; else cout<<"NO"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 7 | gets(c); | ^~~~ | getw
s546402581
p03957
C++
#include<bits/stdc++.h> using namespace std; char p[3]=" CF",c[1005]; int main() { ios::sync_with_stdio(false); int x=0; gets(c); for(int i=0;i<strlen(c);i++) if(c[i]==p[x]) x++; if(x>=2) cout<<"YES"<<endl; else cout<<"NO"<<endl; return 0; }
a.cc:3:11: error: initializer-string for 'char [3]' is too long [-fpermissive] 3 | char p[3]=" CF",c[1005]; | ^~~~~ a.cc: In function 'int main()': a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 7 | gets(c); | ^~~~ | getw
s344332910
p03957
C++
#include<bits/stdc++.h> using namespace std; char p[6]=" CF",c[1005]; int main() { ios::sync_with_stdio(false); int x=0; gets(c); for(int i=0;i<strlen(c);i++) if(c[i]==p[x]) x++; if(x>=2) cout<<"YES"<<endl; else cout<<"NO"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 7 | gets(c); | ^~~~ | getw
s553684628
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian(){ cin>>s; l=s.size(); for(register int i=0;i<l;i++){ if(s[i]=='C'){ for(register int j=i+1;j<l;j++){ if(s[j]=='F'){ cout<<"Yes"; 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<l;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
s657754918
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int l; int mian(){ cin>>s; l=s.size(); for(register int i=0;i<l;i++){ if(s[i]=='C'){ for(register int j=i+1;j<l;j++){ if(s[j]=='F'){ cout<<"Yes"; return 0; } } } } 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
s666216477
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian(){ cin>>s; l=s.size(); for(register int i=0;i<l;i++){ if(s[i]=='C'){ for(register int j=i+1;j<l;j++){ if(s[j]=='F'){ cout<<"Yes"; 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<l;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
s214429881
p03957
C++
#include<bits/stdc++.h> using namespace std; int C_POS=-1; int rp; char command[10000]; int main() { gets(command); for(int i=0;i<strlen(command);i++) { if(command[i]=='C') { rp++; first_C=!first_C; C_POS=i; } if(command[i]=='F' && i>C_POS && C_POS!=-1) { rp++; first_F=!first_F; } if(rp==2) { 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(command); | ^~~~ | getw a.cc:14:25: error: 'first_C' was not declared in this scope 14 | first_C=!first_C; | ^~~~~~~ a.cc:20:25: error: 'first_F' was not declared in this scope 20 | first_F=!first_F; | ^~~~~~~
s975025383
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { 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
s191554595
p03957
C++
#include<bits/stdc++.h> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { cout<<"Yes"; 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
s989109162
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { 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
s093973424
p03957
C++
#include<iostream> #include<cstdio> #include<string> using namespace std; string s; int l; int mian() { cin>>s; l=s.size(); for(register int i=0;i<l;i++) { if(s[i]=='C') { for(register int j=i+1;j<l;j++) { if(s[j]=='F') { 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
s757401273
p03957
C++
#include<bits/stdc++.h> using namespace std; char s[10001]; int l; int main() { scanf("%s ",s) l=strlen(s); for( int i=0;i<l;i++) { if(s[i]=='C') { for(int j=i+1;j<l;j++) { if(s[j]=='F') { printf("Yes\n"); return 0; } } } } printf("No\n"); return 0; }
a.cc: In function 'int main()': a.cc:7:19: error: expected ';' before 'l' 7 | scanf("%s ",s) | ^ | ; 8 | l=strlen(s); | ~
s573942408
p03957
C++
#include<bits/stdc++.h> using namespace std; char n[50001] int main() { int i,ans=0,sum=0; gets(n); int len=strlen(n); for(i=0;i<len;++i) { if(n[i]='C') ans++; if(n[i]='F') sum++; } if(ans!=0&&sum!=0) cout<<"yes"; else cout<<"no"; return 0; }
a.cc:4:1: error: expected initializer before 'int' 4 | int main() | ^~~
s834659946
p03957
C++
#include <bits/stdc++.h> using namespace std; void hh(){ return 0; } int main(){ int a,b; a=b=0; char aa[10005]; gets(aa); for(int i=0;i<strlen(aa);i++){ if(aa[i]=='C'){ for(int j=i;j<strlen(aa);j++){ if(aa[j]=='F'){ cout<<"Yes"<<endl; hh(); } } } } cout<<"No"<<endl; hh(); }
a.cc: In function 'void hh()': a.cc:4:12: error: return-statement with a value, in function returning 'void' [-fpermissive] 4 | return 0; | ^ a.cc: In function 'int main()': a.cc:10:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 10 | gets(aa); | ^~~~ | getw
s922371285
p03957
C++
#include <bits/stdc++.h> using namespace std; void hh(){ return 0; } int main(){ int a,b; a=b=0; char aa[10005]; gets(aa); for(int i=0;i<strlen(aa);i++){ if(aa[i]=='C'){ for(int j=i;j<l;j++){ if(aa[j]=='F'){ cout<<"Yes"<<endl; hh(); } } } } cout<<"No"<<endl; hh(); }
a.cc: In function 'void hh()': a.cc:4:12: error: return-statement with a value, in function returning 'void' [-fpermissive] 4 | return 0; | ^ a.cc: In function 'int main()': a.cc:10:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 10 | gets(aa); | ^~~~ | getw a.cc:13:27: error: 'l' was not declared in this scope 13 | for(int j=i;j<l;j++){ | ^
s790088465
p03957
C++
#include <bits/stdc++.h> using namespace std; void hh(){ return 0; } int main(){ int a,b; a=b=0; char aa[10005]; gets(aa); for(int i=0;i<strlen(aa);i++){ if(aa[i]=='C'){ for(int j=i;j<l;j++){ if(aa[j]=='F'){ cout<<"Yes"<<endl; hh(); } } } } else cout<<"No"<<endl; hh(); }
a.cc: In function 'void hh()': a.cc:4:12: error: return-statement with a value, in function returning 'void' [-fpermissive] 4 | return 0; | ^ a.cc: In function 'int main()': a.cc:10:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 10 | gets(aa); | ^~~~ | getw a.cc:13:27: error: 'l' was not declared in this scope 13 | for(int j=i;j<l;j++){ | ^ a.cc:21:5: error: 'else' without a previous 'if' 21 | else cout<<"No"<<endl; | ^~~~
s160025961
p03957
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a,b; a=b=0; char aa[10005]; gets(a); for(int i=0;i<strlen(aa);i++){ if(aa[i]=='C') a++; if(aa[i]=='F') b++; } if(a!=0&&b!=0) cout<<"Yes"<<endl; else cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 7 | gets(a); | ^~~~ | getw
s146308169
p03957
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a,b; a=b=0; char aa[10005]; gets(a); for(int i=0;i<strlen(a);i++){ if(aa[i]=='C') a++; if(aa[i]=='F') b++; } if(a!=0&&b!=0) cout<<"Yes"<<endl; else cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 7 | gets(a); | ^~~~ | getw a.cc:8:26: error: invalid conversion from 'int' to 'const char*' [-fpermissive] 8 | for(int i=0;i<strlen(a);i++){ | ^ | | | int 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:407:35: note: initializing argument 1 of 'size_t strlen(const char*)' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~