submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s153434255
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c; cin >> c; if ( c == "a" || c == "i" || c == "u" || c == "e" || c == "o" ) cout << "vowel" << endl; else cout << "consonant" << endl; }
a.cc: In function 'int main()': a.cc:8:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if ( c == "a" || c == "i" || c == "u" || c == "e" || c == "o" ) | ~~^~~~~~ a.cc:8:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if ( c == "a" || c == "i" || c == "u" || c == "e" || c == "o" ) | ~~^~~~~~ a.cc:8:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if ( c == "a" || c == "i" || c == "u" || c == "e" || c == "o" ) | ~~^~~~~~ a.cc:8:46: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if ( c == "a" || c == "i" || c == "u" || c == "e" || c == "o" ) | ~~^~~~~~ a.cc:8:58: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if ( c == "a" || c == "i" || c == "u" || c == "e" || c == "o" ) | ~~^~~~~~
s764084815
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c; cin >> c; if (c == "a"){ cout << "vowel" << endl; } else if (c == "i"){ cout << "vowel" << endl; } else if (c == "u"){ cout << "vowel" << endl; } else if (c == "e"){ cout << "vowel" << endl; } else if (c == "o"){ cout << "vowel" << endl; } else { cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:8:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if (c == "a"){ | ~~^~~~~~ a.cc:11:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 11 | else if (c == "i"){ | ~~^~~~~~ a.cc:14:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 14 | else if (c == "u"){ | ~~^~~~~~ a.cc:17:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 17 | else if (c == "e"){ | ~~^~~~~~ a.cc:20:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 20 | else if (c == "o"){ | ~~^~~~~~
s798159399
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c; cin >> c; if (c = "a"){ cout << "vowel" << endl; } else if (c = "i"){ cout << "vowel" << endl; } else if (c = "u"){ cout << "vowel" << endl; } else if (c = "e"){ cout << "vowel" << endl; } else if (c = "o"){ cout << "vowel" << endl; } else { cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:8:11: error: invalid conversion from 'const char*' to 'char' [-fpermissive] 8 | if (c = "a"){ | ^~~ | | | const char* a.cc:11:16: error: invalid conversion from 'const char*' to 'char' [-fpermissive] 11 | else if (c = "i"){ | ^~~ | | | const char* a.cc:14:16: error: invalid conversion from 'const char*' to 'char' [-fpermissive] 14 | else if (c = "u"){ | ^~~ | | | const char* a.cc:17:16: error: invalid conversion from 'const char*' to 'char' [-fpermissive] 17 | else if (c = "e"){ | ^~~ | | | const char* a.cc:20:16: error: invalid conversion from 'const char*' to 'char' [-fpermissive] 20 | else if (c = "o"){ | ^~~ | | | const char*
s188519263
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c cin >> c; if (c = "a"){ cout << "vowel" << endl; } else if (c = "i"){ cout << "vowel" << endl; } else if (c = "u"){ cout << "vowel" << endl; } else if (c = "e"){ cout << "vowel" << endl; } else if (c = "o"){ cout << "vowel" << endl; } else { cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:6:3: error: expected initializer before 'cin' 6 | cin >> c; | ^~~ a.cc:8:7: error: 'c' was not declared in this scope 8 | if (c = "a"){ | ^
s058778989
p03852
C++
int main() { string S,T; string answer = ""; vector<string> matcher = vector<string>(4,""); matcher[0]="dream"; matcher[1]="dreamer"; matcher[2]="erase"; matcher[3]="eraser"; T = ""; vector<string> tmp; cin >> S; tmp.push_back(T); while(!tmp.empty()){ T = tmp[tmp.size()-1]; if (T == S){ answer = "YES"; break; } tmp.pop_back(); for(int j = 0; j < matcher.size(); j++){ string calc_tmp = T + matcher[j]; int tmp_size = calc_tmp.size() -1; if (T.size() > S.size()){continue;} if(S.compare(0,tmp_size,calc_tmp,0,tmp_size) == 0){ tmp.push_back(calc_tmp); } } } if (T == S){ answer = "YES"; }else{ answer = "NO"; } cout << answer << endl; return 0; }
a.cc: In function 'int main()': a.cc:2:5: error: 'string' was not declared in this scope 2 | string S,T; | ^~~~~~ a.cc:3:11: error: expected ';' before 'answer' 3 | string answer = ""; | ^~~~~~~ | ; a.cc:4:5: error: 'vector' was not declared in this scope 4 | vector<string> matcher = vector<string>(4,""); | ^~~~~~ a.cc:4:20: error: 'matcher' was not declared in this scope 4 | vector<string> matcher = vector<string>(4,""); | ^~~~~~~ a.cc:9:5: error: 'T' was not declared in this scope 9 | T = ""; | ^ a.cc:10:20: error: 'tmp' was not declared in this scope 10 | vector<string> tmp; | ^~~ a.cc:11:5: error: 'cin' was not declared in this scope 11 | cin >> S; | ^~~ a.cc:11:12: error: 'S' was not declared in this scope 11 | cin >> S; | ^ a.cc:18:13: error: 'answer' was not declared in this scope 18 | answer = "YES"; | ^~~~~~ a.cc:23:19: error: expected ';' before 'calc_tmp' 23 | string calc_tmp = T + matcher[j]; | ^~~~~~~~~ | ; a.cc:24:28: error: 'calc_tmp' was not declared in this scope 24 | int tmp_size = calc_tmp.size() -1; | ^~~~~~~~ a.cc:33:9: error: 'answer' was not declared in this scope 33 | answer = "YES"; | ^~~~~~ a.cc:35:9: error: 'answer' was not declared in this scope 35 | answer = "NO"; | ^~~~~~ a.cc:38:5: error: 'cout' was not declared in this scope 38 | cout << answer << endl; | ^~~~ a.cc:38:13: error: 'answer' was not declared in this scope 38 | cout << answer << endl; | ^~~~~~ a.cc:38:23: error: 'endl' was not declared in this scope 38 | cout << answer << endl; | ^~~~
s340870502
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin>>c; if(c='a'||c='i'||c='u'||c='e'||c='o') cout>>"vowel">>endl; else cout>>"consonant">>endl; }
a.cc: In function 'int main()': a.cc:9:30: error: lvalue required as left operand of assignment 9 | if(c='a'||c='i'||c='u'||c='e'||c='o') | ~~~^~~ a.cc:10:5: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [6]') 10 | cout>>"vowel">>endl; | ~~~~^~~~~~~~~ | | | | | const char [6] | 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:10:1: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte' 10 | cout>>"vowel">>endl; | ^~~~ 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:10:7: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 10 | cout>>"vowel">>endl; | ^~~~~~~ /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:10:7: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 10 | cout>>"vowel">>endl; | ^~~~~~~ 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:10:7: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 10 | cout>>"vowel">>endl; | ^~~~~~~ /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:10:7: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 10 | cout>>"vowel">>endl; | ^~~~~~~ /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:10:7: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 10 | cout>>"vowel">>endl; | ^~~~~~~ /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:10:7: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 10 | cout>>"vowel">>endl; | ^~~~~~~ /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:10:7: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 10 | cout>>"vowel">>endl; | ^~~~~~~ /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:10:7: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 10 | cout>>"vowel">>endl; | ^~~~~~~ /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 (&)[6]]': a.cc:10:7: required from here 10 | cout>>"vowel">>endl; | ^~~~~~~ /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:10:7: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 10 | cout>>"vowel">>endl; | ^~~~~~~ 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:10:7: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 10 | cout>>"vowel">>endl; | ^~~~~~~ /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:10:7: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 10 | cout>>"vowel">>endl; | ^~~~~~~ /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:10:7: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 10 | cout>>"vowel">>endl; | ^~~~~~~ /usr/include/c++/14/iomanip:177:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setfill<_CharT>)' 177 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setfill<_CharT> __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:177:5: note: template argument deduction/substitution failed: a.cc:10:7: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 10 | cout>>"vowel">>endl; | ^~~~~~~ /usr/include/c++/14/iomanip:207:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setprecision)' 207 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setprecision __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:207:5: note: template argument deduction/substitution failed: a.cc:10:7: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 10 | cout>>"vowel">>endl;
s758942718
p03852
C++
#include <iostream> using namespace std; #include <string> int main() { string c; cin >> c; string aeiou = "aeiou"; if(c.find(aeiou) == ::npos) cout << "consonant"; else cout << "vowel"; cout << endl; return 0; }
a.cc: In function 'int main()': a.cc:11:31: error: '::npos' has not been declared 11 | if(c.find(aeiou) == ::npos) cout << "consonant"; | ^~~~
s956481712
p03852
C++
#include <iostream> using namespace std; #include <string> int main() { string c; cin >> c; string aeiou = "aeiou;" if(c.find(aeiou) == ::npos) cout << "consonant"; else cout << "vowel"; cout << endl; return 0; }
a.cc: In function 'int main()': a.cc:11:9: error: expected ',' or ';' before 'if' 11 | if(c.find(aeiou) == ::npos) cout << "consonant"; | ^~ a.cc:12:9: error: 'else' without a previous 'if' 12 | else cout << "vowel"; | ^~~~
s433184167
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u'){ cout << "vowel"<<endl; } else{ cout << consonant << endl ; } }
a.cc: In function 'int main()': a.cc:12:9: error: 'consonant' was not declared in this scope 12 | cout << consonant << endl ; | ^~~~~~~~~
s509717124
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char Q; cin >> Q; if(Q = "a" || "e" || "i" || "o" || "u" ){ cout << "vowel"; } else(){ cout << "consonant"; } }
a.cc: In function 'int main()': a.cc:9:6: error: expected primary-expression before ')' token 9 | else(){ | ^
s176447360
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char Q; cin >> Q; if(Q = a || e || i || o || u ){ cout << "vowel"; } else(){ cout << "consonant"; } }
a.cc: In function 'int main()': a.cc:6:8: error: 'a' was not declared in this scope 6 | if(Q = a || e || i || o || u ){ | ^ a.cc:6:13: error: 'e' was not declared in this scope 6 | if(Q = a || e || i || o || u ){ | ^ a.cc:6:18: error: 'i' was not declared in this scope 6 | if(Q = a || e || i || o || u ){ | ^ a.cc:6:23: error: 'o' was not declared in this scope 6 | if(Q = a || e || i || o || u ){ | ^ a.cc:6:28: error: 'u' was not declared in this scope 6 | if(Q = a || e || i || o || u ){ | ^ a.cc:9:6: error: expected primary-expression before ')' token 9 | else(){ | ^
s849912471
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char Q; cin >> Q; if(Q = a || e|| i || o || u ){ cout << vowel; } else(){ cout << consonant; } }
a.cc: In function 'int main()': a.cc:6:8: error: 'a' was not declared in this scope 6 | if(Q = a || e|| i || o || u ){ | ^ a.cc:6:13: error: 'e' was not declared in this scope 6 | if(Q = a || e|| i || o || u ){ | ^ a.cc:6:17: error: 'i' was not declared in this scope 6 | if(Q = a || e|| i || o || u ){ | ^ a.cc:6:22: error: 'o' was not declared in this scope 6 | if(Q = a || e|| i || o || u ){ | ^ a.cc:6:27: error: 'u' was not declared in this scope 6 | if(Q = a || e|| i || o || u ){ | ^ a.cc:7:9: error: 'vowel' was not declared in this scope 7 | cout << vowel; | ^~~~~ a.cc:9:6: error: expected primary-expression before ')' token 9 | else(){ | ^
s636071649
p03852
C++
#inclide <bits/stdc++.h> using namespace std; int main(){ char Q; cin >> Q; if(Q = a || e|| i || o || u ){ cout << vowel; } else(){ cout << consonant; } }
a.cc:1:2: error: invalid preprocessing directive #inclide; did you mean #include? 1 | #inclide <bits/stdc++.h> | ^~~~~~~ | include a.cc: In function 'int main()': a.cc:5:1: error: 'cin' was not declared in this scope 5 | cin >> Q; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | #inclide <bits/stdc++.h> a.cc:6:8: error: 'a' was not declared in this scope 6 | if(Q = a || e|| i || o || u ){ | ^ a.cc:6:13: error: 'e' was not declared in this scope 6 | if(Q = a || e|| i || o || u ){ | ^ a.cc:6:17: error: 'i' was not declared in this scope 6 | if(Q = a || e|| i || o || u ){ | ^ a.cc:6:22: error: 'o' was not declared in this scope 6 | if(Q = a || e|| i || o || u ){ | ^ a.cc:6:27: error: 'u' was not declared in this scope 6 | if(Q = a || e|| i || o || u ){ | ^ a.cc:7:1: error: 'cout' was not declared in this scope 7 | cout << vowel; | ^~~~ a.cc:7:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:7:9: error: 'vowel' was not declared in this scope 7 | cout << vowel; | ^~~~~ a.cc:9:6: error: expected primary-expression before ')' token 9 | else(){ | ^
s404496935
p03852
C++
include <bits/stdc++.h> using namespace std; int main(){ char c; cin>>c; if(c =="a") cout<<"vowel"; else if(c =="e") cout<<"vowel"; else if(c =="i") cout<<"vowel"; else if(c =="o") cout<<"vowel"; else if(c =="u") cout<<"vowel"; else cout << "consonant"; return 0; }
a.cc:1:1: error: 'include' does not name a type 1 | include <bits/stdc++.h> | ^~~~~~~ a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope 6 | cin>>c; | ^~~ a.cc:7:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(c =="a") cout<<"vowel"; | ~~^~~~~ a.cc:7:15: error: 'cout' was not declared in this scope 7 | if(c =="a") cout<<"vowel"; | ^~~~ a.cc:8:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | else if(c =="e") cout<<"vowel"; | ~~^~~~~ a.cc:8:20: error: 'cout' was not declared in this scope 8 | else if(c =="e") cout<<"vowel"; | ^~~~ a.cc:9:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 9 | else if(c =="i") cout<<"vowel"; | ~~^~~~~ a.cc:9:20: error: 'cout' was not declared in this scope 9 | else if(c =="i") cout<<"vowel"; | ^~~~ a.cc:10:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 10 | else if(c =="o") cout<<"vowel"; | ~~^~~~~ a.cc:10:20: error: 'cout' was not declared in this scope 10 | else if(c =="o") cout<<"vowel"; | ^~~~ a.cc:11:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 11 | else if(c =="u") cout<<"vowel"; | ~~^~~~~ a.cc:11:20: error: 'cout' was not declared in this scope 11 | else if(c =="u") cout<<"vowel"; | ^~~~ a.cc:12:8: error: 'cout' was not declared in this scope 12 | else cout << "consonant"; | ^~~~
s358820691
p03852
C++
include <bits/stdc++> using namespace std; int main(){ char c; cin>>c; if(c =="a") cout<<"vowel"; else if(c =="e") cout<<"vowel"; else if(c =="i") cout<<"vowel"; else if(c =="o") cout<<"vowel"; else if(c =="u") cout<<"vowel"; else cout << "consonant"; return 0; }
a.cc:1:1: error: 'include' does not name a type 1 | include <bits/stdc++> | ^~~~~~~ a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope 6 | cin>>c; | ^~~ a.cc:7:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(c =="a") cout<<"vowel"; | ~~^~~~~ a.cc:7:15: error: 'cout' was not declared in this scope 7 | if(c =="a") cout<<"vowel"; | ^~~~ a.cc:8:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | else if(c =="e") cout<<"vowel"; | ~~^~~~~ a.cc:8:20: error: 'cout' was not declared in this scope 8 | else if(c =="e") cout<<"vowel"; | ^~~~ a.cc:9:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 9 | else if(c =="i") cout<<"vowel"; | ~~^~~~~ a.cc:9:20: error: 'cout' was not declared in this scope 9 | else if(c =="i") cout<<"vowel"; | ^~~~ a.cc:10:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 10 | else if(c =="o") cout<<"vowel"; | ~~^~~~~ a.cc:10:20: error: 'cout' was not declared in this scope 10 | else if(c =="o") cout<<"vowel"; | ^~~~ a.cc:11:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 11 | else if(c =="u") cout<<"vowel"; | ~~^~~~~ a.cc:11:20: error: 'cout' was not declared in this scope 11 | else if(c =="u") cout<<"vowel"; | ^~~~ a.cc:12:8: error: 'cout' was not declared in this scope 12 | else cout << "consonant"; | ^~~~
s565310399
p03852
C++
include <bits/stdc++> using namespace std; int main(){ char c; cin>>c; if(c ==a) cout<<"vowel"; else if(c ==e) cout<<"vowel"; else if(c ==i) cout<<"vowel"; else if(c ==o) cout<<"vowel"; else if(c ==u) cout<<"vowel"; else cout << "consonant"; return 0; }
a.cc:1:1: error: 'include' does not name a type 1 | include <bits/stdc++> | ^~~~~~~ a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope 6 | cin>>c; | ^~~ a.cc:7:10: error: 'a' was not declared in this scope 7 | if(c ==a) cout<<"vowel"; | ^ a.cc:7:13: error: 'cout' was not declared in this scope 7 | if(c ==a) cout<<"vowel"; | ^~~~ a.cc:8:15: error: 'e' was not declared in this scope 8 | else if(c ==e) cout<<"vowel"; | ^ a.cc:8:18: error: 'cout' was not declared in this scope 8 | else if(c ==e) cout<<"vowel"; | ^~~~ a.cc:9:15: error: 'i' was not declared in this scope 9 | else if(c ==i) cout<<"vowel"; | ^ a.cc:9:18: error: 'cout' was not declared in this scope 9 | else if(c ==i) cout<<"vowel"; | ^~~~ a.cc:10:15: error: 'o' was not declared in this scope 10 | else if(c ==o) cout<<"vowel"; | ^ a.cc:10:18: error: 'cout' was not declared in this scope 10 | else if(c ==o) cout<<"vowel"; | ^~~~ a.cc:11:15: error: 'u' was not declared in this scope 11 | else if(c ==u) cout<<"vowel"; | ^ a.cc:11:18: error: 'cout' was not declared in this scope 11 | else if(c ==u) cout<<"vowel"; | ^~~~ a.cc:12:8: error: 'cout' was not declared in this scope 12 | else cout << "consonant"; | ^~~~
s958485093
p03852
C++
include <bits/stdc++> using namespace std; int main(){ char c; cin>>c; if(c in {a,e,i,o,u}) cout<<"vowel"; else cout << "consonant"; return 0; }
a.cc:1:1: error: 'include' does not name a type 1 | include <bits/stdc++> | ^~~~~~~ a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope 6 | cin>>c; | ^~~ a.cc:7:7: error: expected ')' before 'in' 7 | if(c in {a,e,i,o,u}) cout<<"vowel"; | ~ ^~~ | ) a.cc:7:24: error: 'cout' was not declared in this scope 7 | if(c in {a,e,i,o,u}) cout<<"vowel"; | ^~~~ a.cc:8:8: error: 'cout' was not declared in this scope 8 | else cout << "consonant"; | ^~~~
s049448219
p03852
C++
#include<bits/stdc++.h> using namespace std; int main(){ char s; string ans; cin >> s; if( s='a' || s='i' || s='u' || s='e'|| s='o'){ ans="vowel"; } else{ ans="consonant"; } cout << ans << endl; }
a.cc: In function 'int main()': a.cc:8:39: error: lvalue required as left operand of assignment 8 | if( s='a' || s='i' || s='u' || s='e'|| s='o'){ | ~~~^~~~
s095690996
p03852
C++
#include<bits/stdc++.h> using namespace std; int main(){ char s; string ans; cin >> s; if( s='a'||s='i'||s='u'||s='e'||s='o'){ ans="vowel"; } else{ ans="consonant"; } cout << ans << endl; }
a.cc: In function 'int main()': a.cc:8:33: error: lvalue required as left operand of assignment 8 | if( s='a'||s='i'||s='u'||s='e'||s='o'){ | ~~~^~~
s237424611
p03852
C++
#include<bits/stdc++.h> using namespace std; int main(){ string s,ans; cin >> s; if( s='a'||s='i'||s='u'||s='e'||s='o'){ ans="vowel"; } else{ ans="consonant"; } cout << ans << endl; }
a.cc: In function 'int main()': a.cc:7:12: error: no match for 'operator||' (operand types are 'char' and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 7 | if( s='a'||s='i'||s='u'||s='e'||s='o'){ | ~~~^~~ | | | | char std::string {aka std::__cxx11::basic_string<char>} a.cc:7:12: note: candidate: 'operator||(bool, bool)' (built-in) 7 | if( s='a'||s='i'||s='u'||s='e'||s='o'){ | ~~~^~~ a.cc:7:12: note: no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool' In file included from /usr/include/c++/14/valarray:605, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166, from a.cc:1: /usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const _Expr<_Dom2, typename _Dom2::value_type>&)' 416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed: a.cc:7:14: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'char' 7 | if( s='a'||s='i'||s='u'||s='e'||s='o'){ | ^ /usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)' 416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed: a.cc:7:14: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'char' 7 | if( s='a'||s='i'||s='u'||s='e'||s='o'){ | ^ /usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const typename _Dom::value_type&, const _Expr<_Dom1, typename _Dom1::value_type>&)' 416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed: a.cc:7:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>' 7 | if( s='a'||s='i'||s='u'||s='e'||s='o'){ | ^ /usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_ValArray, _Dom, typename _Dom::value_type>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const valarray<typename _Dom::value_type>&)' 416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed: a.cc:7:14: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'char' 7 | if( s='a'||s='i'||s='u'||s='e'||s='o'){ | ^ /usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_ValArray, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const valarray<typename _Dom::value_type>&, const _Expr<_Dom1, typename _Dom1::value_type>&)' 416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed: a.cc:7:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>' 7 | if( s='a'||s='i'||s='u'||s='e'||s='o'){ | ^ /usr/include/c++/14/valarray:1207:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_ValArray, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__logical_or, _Tp>::result_type> std::operator||(const valarray<_Tp>&, const valarray<_Tp>&)' 1207 | _DEFINE_BINARY_OPERATOR(||, __logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/valarray:1207:1: note: template argument deduction/substitution failed: a.cc:7:14: note: mismatched types 'const std::valarray<_Tp>' and 'char' 7 | if( s='a'||s='i'||s='u'||s='e'||s='o'){ | ^ /usr/include/c++/14/valarray:1207:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_ValArray, std::_Constant, _Tp, _Tp>, typename std::__fun<std::__logical_or, _Tp>::result_type> std::operator||(const valarray<_Tp>&, const typename valarray<_Tp>::value_type&)' 1207 | _DEFINE_BINARY_OPERATOR(||, __logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/valarray:1207:1: note: template argument deduction/substitution failed: a.cc:7:14: note: mismatched types 'const std::valarray<_Tp>' and 'char' 7 | if( s='a'||s='i'||s='u'||s='e'||s='o'){ | ^ /usr/include/c++/14/valarray:1207:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Constant, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__logical_or, _Tp>::result_type> std::operator||(const typename valarray<_Tp>::value_type&, const valarray<_Tp>&)' 1207 | _DEFINE_BINARY_OPERATOR(||, __logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/valarray:1207:1: note: template argument deduction/substitution failed: a.cc:7:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::valarray<_Tp>' 7 | if( s='a'||s='i'||s='u'||s='e'||s='o'){ | ^ a.cc:7:19: error: no match for 'operator||' (operand types are 'char' and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 7 | if( s='a'||s='i'||s='u'||s='e'||s='o'){ | ~~~^~~ | | | | char std::string {aka std::__cxx11::basic_string<char>} a.cc:7:19: note: candidate: 'operator||(bool, bool)' (built-in) 7 | if( s='a'||s='i'||s='u'||s='e'||s='o'){ | ~~~^~~ a.cc:7:19: note: no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool' /usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const _Expr<_Dom2, typename _Dom2::value_type>&)' 416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed: a.cc:7:21: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'char' 7 | if( s='a'||s='i'||s='u'||s='e'||s='o'){ | ^ /usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)' 416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed: a.cc:7:21: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'char' 7 | if( s='a'||s='i'||s='u'||s='e'||s='o'){ | ^ /usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const typename _Dom::value_type&, const _Expr<_Dom1, typename _Dom1::value_type>&)' 416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed: a.cc:7:21: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>' 7 | if( s='a'||s='i'||s='u'||s='e'||s='o'){ | ^ /usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_ValArray, _Dom, typename _Dom::value_type>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const valarray<typename _Dom::value_type>&)' 416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:416:5: no
s684637115
p03852
C++
#define REP(i, n) for(int i = 0;i < n;i++) #define INF 2e9 #define ll long long #define SORT(v, n) sort(v, v+n); #define VSORT(v) sort(v.begin(), v.end()); #define ALL(v) v.begin(), v.end() #include <bits/stdc++.h> using namespace std; typedef pair<int, int> P; typedef pair<ll, ll> LP; int dy[]={0, 0, 1, -1}; int dx[]={1, -1, 0, 0}; int main(){ cin.tie(0); ios::sync_with_stdio(false); char c; cin >> c; if (c == 'a' or c=='e' or c == 'i' or c == 'e' or c == 'o') cout << "vowel" << endl; else cout << consonant << endl; }
a.cc: In function 'int main()': a.cc:21:16: error: 'consonant' was not declared in this scope 21 | else cout << consonant << endl; | ^~~~~~~~~
s530908051
p03852
C++
#include<bits/stdc++.h> using namespace std; int main(){ char c; cin>>c; if (c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){ cout<<"vowel"<<endl; else { cout<<"consonant"<<endl; } }
a.cc: In function 'int main()': a.cc:9:3: error: expected '}' before 'else' 9 | else { | ^~~~ a.cc:7:46: note: to match this '{' 7 | if (c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){ | ^
s558291373
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char a; cin>>a; if(a=='a'||a=='i'||a=='u'||a=='e'||a='o'){ cout<<"vowel"<<endl; } else{ cout<<"consonant"<<endl; } }
a.cc: In function 'int main()': a.cc:7:38: error: lvalue required as left operand of assignment 7 | if(a=='a'||a=='i'||a=='u'||a=='e'||a='o'){ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
s292514999
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ string a; cin>>a; if(a=="a"||a=="i"||a=="u"||a=="e"||a="o"){ cout<<"vowel"<<endl; } else{ cout<<"consonant"<<endl; } }
a.cc: In function 'int main()': a.cc:7:38: error: no match for 'operator||' (operand types are 'bool' and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 7 | if(a=="a"||a=="i"||a=="u"||a=="e"||a="o"){ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ | | | | bool std::string {aka std::__cxx11::basic_string<char>} a.cc:7:38: note: candidate: 'operator||(bool, bool)' (built-in) 7 | if(a=="a"||a=="i"||a=="u"||a=="e"||a="o"){ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ a.cc:7:38: note: no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool' In file included from /usr/include/c++/14/valarray:605, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166, from a.cc:1: /usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const _Expr<_Dom2, typename _Dom2::value_type>&)' 416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed: a.cc:7:40: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'bool' 7 | if(a=="a"||a=="i"||a=="u"||a=="e"||a="o"){ | ^ /usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)' 416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed: a.cc:7:40: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'bool' 7 | if(a=="a"||a=="i"||a=="u"||a=="e"||a="o"){ | ^ /usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const typename _Dom::value_type&, const _Expr<_Dom1, typename _Dom1::value_type>&)' 416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed: a.cc:7:40: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>' 7 | if(a=="a"||a=="i"||a=="u"||a=="e"||a="o"){ | ^ /usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_ValArray, _Dom, typename _Dom::value_type>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const valarray<typename _Dom::value_type>&)' 416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed: a.cc:7:40: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'bool' 7 | if(a=="a"||a=="i"||a=="u"||a=="e"||a="o"){ | ^ /usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_ValArray, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const valarray<typename _Dom::value_type>&, const _Expr<_Dom1, typename _Dom1::value_type>&)' 416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed: a.cc:7:40: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>' 7 | if(a=="a"||a=="i"||a=="u"||a=="e"||a="o"){ | ^ /usr/include/c++/14/valarray:1207:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_ValArray, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__logical_or, _Tp>::result_type> std::operator||(const valarray<_Tp>&, const valarray<_Tp>&)' 1207 | _DEFINE_BINARY_OPERATOR(||, __logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/valarray:1207:1: note: template argument deduction/substitution failed: a.cc:7:40: note: mismatched types 'const std::valarray<_Tp>' and 'bool' 7 | if(a=="a"||a=="i"||a=="u"||a=="e"||a="o"){ | ^ /usr/include/c++/14/valarray:1207:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_ValArray, std::_Constant, _Tp, _Tp>, typename std::__fun<std::__logical_or, _Tp>::result_type> std::operator||(const valarray<_Tp>&, const typename valarray<_Tp>::value_type&)' 1207 | _DEFINE_BINARY_OPERATOR(||, __logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/valarray:1207:1: note: template argument deduction/substitution failed: a.cc:7:40: note: mismatched types 'const std::valarray<_Tp>' and 'bool' 7 | if(a=="a"||a=="i"||a=="u"||a=="e"||a="o"){ | ^ /usr/include/c++/14/valarray:1207:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Constant, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__logical_or, _Tp>::result_type> std::operator||(const typename valarray<_Tp>::value_type&, const valarray<_Tp>&)' 1207 | _DEFINE_BINARY_OPERATOR(||, __logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/valarray:1207:1: note: template argument deduction/substitution failed: a.cc:7:40: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::valarray<_Tp>' 7 | if(a=="a"||a=="i"||a=="u"||a=="e"||a="o"){ | ^
s423158887
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ string a; cin>>a; if(a=='a'||a=='i'||a=="u"||a=='e'||a='o'){ cout<<"vowel"<<endl; } else{ cout<<"consonant"<<endl; } }
a.cc: In function 'int main()': a.cc:7:9: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 7 | if(a=='a'||a=='i'||a=="u"||a=='e'||a='o'){ | ~^~~~~ | | | | | 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:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | if(a=='a'||a=='i'||a=="u"||a=='e'||a='o'){ | ^~~ /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:7:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 7 | if(a=='a'||a=='i'||a=="u"||a=='e'||a='o'){ | ^~~ /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:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | if(a=='a'||a=='i'||a=="u"||a=='e'||a='o'){ | ^~~ /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:7:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 7 | if(a=='a'||a=='i'||a=="u"||a=='e'||a='o'){ | ^~~ /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:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | if(a=='a'||a=='i'||a=="u"||a=='e'||a='o'){ | ^~~ /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:7:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 7 | if(a=='a'||a=='i'||a=="u"||a=='e'||a='o'){ | ^~~ /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:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | if(a=='a'||a=='i'||a=="u"||a=='e'||a='o'){ | ^~~ /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:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>' 7 | if(a=='a'||a=='i'||a=="u"||a=='e'||a='o'){ | ^~~ 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:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 7 | if(a=='a'||a=='i'||a=="u"||a=='e'||a='o'){ | ^~~ 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:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 7 | if(a=='a'||a=='i'||a=="u"||a=='e'||a='o'){ | ^~~ /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:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 7 | if(a=='a'||a=='i'||a=="u"||a=='e'||a='o'){ | ^~~ /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:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 7 | if(a=='a'||a=='i'||a=="u"||a=='e'||a='o'){ | ^~~ /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:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 7 | if(a=='a'||a=='i'||a=="u"||a=='e'||a='o'){ | ^~~ 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:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>' 7 | if(a=='a'||a=='i'||a=="u"||a=='e'||a='o'){ | ^~~ 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:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>' 7 | if(a=='a'||a=='i'||a=="u"||a=='e'||a='o'){ | ^~~ 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, _Traits> >)' 629 |
s862620495
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ string a; cin>>a; if(a=="a"||a=="i"||a=="u"||a=="e"||a="o"){ cout<<"vowel"<<endl; } else{ cout<<"consonant"<<endl; } }
a.cc: In function 'int main()': a.cc:7:38: error: no match for 'operator||' (operand types are 'bool' and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 7 | if(a=="a"||a=="i"||a=="u"||a=="e"||a="o"){ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ | | | | bool std::string {aka std::__cxx11::basic_string<char>} a.cc:7:38: note: candidate: 'operator||(bool, bool)' (built-in) 7 | if(a=="a"||a=="i"||a=="u"||a=="e"||a="o"){ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ a.cc:7:38: note: no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool' In file included from /usr/include/c++/14/valarray:605, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166, from a.cc:1: /usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const _Expr<_Dom2, typename _Dom2::value_type>&)' 416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed: a.cc:7:40: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'bool' 7 | if(a=="a"||a=="i"||a=="u"||a=="e"||a="o"){ | ^ /usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)' 416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed: a.cc:7:40: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'bool' 7 | if(a=="a"||a=="i"||a=="u"||a=="e"||a="o"){ | ^ /usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const typename _Dom::value_type&, const _Expr<_Dom1, typename _Dom1::value_type>&)' 416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed: a.cc:7:40: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>' 7 | if(a=="a"||a=="i"||a=="u"||a=="e"||a="o"){ | ^ /usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_ValArray, _Dom, typename _Dom::value_type>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const valarray<typename _Dom::value_type>&)' 416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed: a.cc:7:40: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'bool' 7 | if(a=="a"||a=="i"||a=="u"||a=="e"||a="o"){ | ^ /usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_ValArray, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const valarray<typename _Dom::value_type>&, const _Expr<_Dom1, typename _Dom1::value_type>&)' 416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed: a.cc:7:40: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>' 7 | if(a=="a"||a=="i"||a=="u"||a=="e"||a="o"){ | ^ /usr/include/c++/14/valarray:1207:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_ValArray, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__logical_or, _Tp>::result_type> std::operator||(const valarray<_Tp>&, const valarray<_Tp>&)' 1207 | _DEFINE_BINARY_OPERATOR(||, __logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/valarray:1207:1: note: template argument deduction/substitution failed: a.cc:7:40: note: mismatched types 'const std::valarray<_Tp>' and 'bool' 7 | if(a=="a"||a=="i"||a=="u"||a=="e"||a="o"){ | ^ /usr/include/c++/14/valarray:1207:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_ValArray, std::_Constant, _Tp, _Tp>, typename std::__fun<std::__logical_or, _Tp>::result_type> std::operator||(const valarray<_Tp>&, const typename valarray<_Tp>::value_type&)' 1207 | _DEFINE_BINARY_OPERATOR(||, __logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/valarray:1207:1: note: template argument deduction/substitution failed: a.cc:7:40: note: mismatched types 'const std::valarray<_Tp>' and 'bool' 7 | if(a=="a"||a=="i"||a=="u"||a=="e"||a="o"){ | ^ /usr/include/c++/14/valarray:1207:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Constant, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__logical_or, _Tp>::result_type> std::operator||(const typename valarray<_Tp>::value_type&, const valarray<_Tp>&)' 1207 | _DEFINE_BINARY_OPERATOR(||, __logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/valarray:1207:1: note: template argument deduction/substitution failed: a.cc:7:40: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::valarray<_Tp>' 7 | if(a=="a"||a=="i"||a=="u"||a=="e"||a="o"){ | ^
s088275594
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; string = S; if(c=='a' || c=='i' || c=='u' || c=='e' || c=='o'){ S= 'vowel'; } else { S= 'consonant'; } cout << S << endl; }
a.cc:10:8: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes 10 | S= 'vowel'; | ^~~~~~~ a.cc:13:8: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes 13 | S= 'consonant'; | ^~~~~~~~~~~ a.cc: In function 'int main()': a.cc:7:10: error: expected unqualified-id before '=' token 7 | string = S; | ^ a.cc:10:5: error: 'S' was not declared in this scope 10 | S= 'vowel'; | ^ a.cc:13:5: error: 'S' was not declared in this scope 13 | S= 'consonant'; | ^ a.cc:15:11: error: 'S' was not declared in this scope 15 | cout << S << endl; | ^
s579877785
p03852
C++
#include<bits/stdc++.h> using namespace std; int main(){ string v=abcde; string c; cin >> c; int count=0; for(int i=0;i<5;i++){ if(c == vec.at(i)){ cout << "vowel" << endl; break; } else{ count++ } } if(count=5){ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:5:12: error: 'abcde' was not declared in this scope 5 | string v=abcde; | ^~~~~ a.cc:11:13: error: 'vec' was not declared in this scope 11 | if(c == vec.at(i)){ | ^~~ a.cc:16:14: error: expected ';' before '}' token 16 | count++ | ^ | ; 17 | } | ~
s191827103
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c; cin >> c; if(c == 'a' ||'e' ||' i '|| 'o' || 'u') cout << "vowel" << endl; }else{ cout << "consonant" << endl; } }
a.cc:8:21: warning: multi-character character constant [-Wmultichar] 8 | if(c == 'a' ||'e' ||' i '|| 'o' || 'u') | ^~~~~ a.cc:10:2: error: expected unqualified-id before 'else' 10 | }else{ | ^~~~ a.cc:13:1: error: expected declaration before '}' token 13 | } | ^
s858993481
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c; cin >> c; if(c == a ||c == e ||c == i ||c == o ||c == u) cout << "vowel" << endl; }else{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:8:9: error: 'a' was not declared in this scope 8 | if(c == a ||c == e ||c == i ||c == o ||c == u) | ^ a.cc:8:18: error: 'e' was not declared in this scope 8 | if(c == a ||c == e ||c == i ||c == o ||c == u) | ^ a.cc:8:27: error: 'i' was not declared in this scope 8 | if(c == a ||c == e ||c == i ||c == o ||c == u) | ^ a.cc:8:36: error: 'o' was not declared in this scope 8 | if(c == a ||c == e ||c == i ||c == o ||c == u) | ^ a.cc:8:45: error: 'u' was not declared in this scope 8 | if(c == a ||c == e ||c == i ||c == o ||c == u) | ^ a.cc: At global scope: a.cc:10:2: error: expected unqualified-id before 'else' 10 | }else{ | ^~~~ a.cc:13:1: error: expected declaration before '}' token 13 | } | ^
s898305575
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c; cin >> c; if(c == a || e || i || o || u) cout << "vowel" << endl; }else{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:8:9: error: 'a' was not declared in this scope 8 | if(c == a || e || i || o || u) | ^ a.cc:8:14: error: 'e' was not declared in this scope 8 | if(c == a || e || i || o || u) | ^ a.cc:8:19: error: 'i' was not declared in this scope 8 | if(c == a || e || i || o || u) | ^ a.cc:8:24: error: 'o' was not declared in this scope 8 | if(c == a || e || i || o || u) | ^ a.cc:8:29: error: 'u' was not declared in this scope 8 | if(c == a || e || i || o || u) | ^ a.cc: At global scope: a.cc:10:2: error: expected unqualified-id before 'else' 10 | }else{ | ^~~~ a.cc:13:1: error: expected declaration before '}' token 13 | } | ^
s171813073
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string x; cin >> x; if(x=="a"or"i"or"u"or"e"or"o"){ cout << "vowl" << endl; } else{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:7:29: error: unable to find string literal operator 'operator""or' with 'const char [6]', 'long unsigned int' arguments 7 | if(x=="a"or"i"or"u"or"e"or"o"){ | ^~~
s313039488
p03852
C++
puts (gets=~/[aiueo]/ ? "vowel" : "consonant")
a.cc:1:6: error: expected constructor, destructor, or type conversion before '(' token 1 | puts (gets=~/[aiueo]/ ? "vowel" : "consonant") | ^
s550429861
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >>c; if (c==a||c==i||c==u||c==e||c==o){ cout <<"vowel"<<endl; } else{ cout<<"consonant"<<endl; } }
a.cc: In function 'int main()': a.cc:7:8: error: 'a' was not declared in this scope 7 | if (c==a||c==i||c==u||c==e||c==o){ | ^ a.cc:7:14: error: 'i' was not declared in this scope 7 | if (c==a||c==i||c==u||c==e||c==o){ | ^ a.cc:7:20: error: 'u' was not declared in this scope 7 | if (c==a||c==i||c==u||c==e||c==o){ | ^ a.cc:7:26: error: 'e' was not declared in this scope 7 | if (c==a||c==i||c==u||c==e||c==o){ | ^ a.cc:7:32: error: 'o' was not declared in this scope 7 | if (c==a||c==i||c==u||c==e||c==o){ | ^
s794230549
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string c; cin >>c; if (c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){ cout <<"vowel"<<endl; } else{ cout<<"consonant"<<endl; } }
a.cc: In function 'int main()': a.cc:7:6: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 7 | if (c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){ | ~^~~~~ | | | | | 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:7:8: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | if (c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){ | ^~~ /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:7:8: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 7 | if (c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){ | ^~~ /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:7:8: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | if (c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){ | ^~~ /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:7:8: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 7 | if (c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){ | ^~~ /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:7:8: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | if (c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){ | ^~~ /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:7:8: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 7 | if (c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){ | ^~~ /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:7:8: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | if (c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){ | ^~~ /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:7:8: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>' 7 | if (c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){ | ^~~ 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:7:8: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 7 | if (c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){ | ^~~ 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:7:8: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 7 | if (c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){ | ^~~ /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:7:8: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 7 | if (c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){ | ^~~ /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:7:8: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 7 | if (c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){ | ^~~ /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:7:8: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 7 | if (c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){ | ^~~ 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:7:8: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>' 7 | if (c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){ | ^~~ 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:7:8: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>' 7 | if (c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){ | ^~~ 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, _Traits> >)' 629 | operator==(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view
s728447214
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string c; cin >>c; if (c==a||c==i||c==u||c==e||c==o){ cout <<"vowel"<<endl; } else{ cout<<"consonant"<<endl; } }
a.cc: In function 'int main()': a.cc:7:8: error: 'a' was not declared in this scope 7 | if (c==a||c==i||c==u||c==e||c==o){ | ^ a.cc:7:14: error: 'i' was not declared in this scope 7 | if (c==a||c==i||c==u||c==e||c==o){ | ^ a.cc:7:20: error: 'u' was not declared in this scope 7 | if (c==a||c==i||c==u||c==e||c==o){ | ^ a.cc:7:26: error: 'e' was not declared in this scope 7 | if (c==a||c==i||c==u||c==e||c==o){ | ^ a.cc:7:32: error: 'o' was not declared in this scope 7 | if (c==a||c==i||c==u||c==e||c==o){ | ^
s650115250
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string c; cin >>c; if (c==a||c==i||c==u||c==e||c==o||){ cout <<"vowel"<<endl; } else{ cou<<t"consonant"<<endl; } }
a.cc: In function 'int main()': a.cc:7:8: error: 'a' was not declared in this scope 7 | if (c==a||c==i||c==u||c==e||c==o||){ | ^ a.cc:7:14: error: 'i' was not declared in this scope 7 | if (c==a||c==i||c==u||c==e||c==o||){ | ^ a.cc:7:20: error: 'u' was not declared in this scope 7 | if (c==a||c==i||c==u||c==e||c==o||){ | ^ a.cc:7:26: error: 'e' was not declared in this scope 7 | if (c==a||c==i||c==u||c==e||c==o||){ | ^ a.cc:7:32: error: 'o' was not declared in this scope 7 | if (c==a||c==i||c==u||c==e||c==o||){ | ^ a.cc:7:35: error: expected primary-expression before ')' token 7 | if (c==a||c==i||c==u||c==e||c==o||){ | ^ a.cc:11:1: error: 'cou' was not declared in this scope; did you mean 'cos'? 11 | cou<<t"consonant"<<endl; | ^~~ | cos a.cc:11:6: error: 't' was not declared in this scope 11 | cou<<t"consonant"<<endl; | ^
s765461033
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if(c == 'a'){ cout >> "vowel" >> endl; }else if(c == 'i'){ cout >> "vowel" >> endl; }else if(c == 'u'){ cout >> "vowel" >> endl; }else if(c == 'e'){ cout >> "vowel" >> endl; }else if(c == 'o'){ cout << "vowel" << endl; }else{ cout >> "consonant" >> endl; } }
a.cc: In function 'int main()': a.cc:8:14: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [6]') 8 | cout >> "vowel" >> endl; | ~~~~ ^~ ~~~~~~~ | | | | | const char [6] | 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:8:9: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte' 8 | cout >> "vowel" >> endl; | ^~~~ 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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ 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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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 (&)[6]]': a.cc:8:10: required from here 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ 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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/iomanip:177:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setfill<_CharT>)' 177 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setfill<_CharT> __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:177:5: note: template argument deduction/substitution failed: a.cc:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/iomanip:207:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setprecision)' 207 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setprecision __f) | ^~~~~~~~ /usr/include/c++/14/ioman
s324102149
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin << c; if(c == "a"){ cout >> "vowel" >> endl; }else if(c == "i"){ cout >> "vowel" >> endl; }else if(c == "u"){ cout >> "vowel" >> endl; }else if(c == "e"){ cout >> "vowel" >> endl; }else if(c == "o"){ cout >> "vowel" >> endl; }else{ cout >> "consonant" >> endl; } }
a.cc: In function 'int main()': a.cc:6:13: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'char') 6 | cin << c; | ~~~ ^~ ~ | | | | | char | std::istream {aka std::basic_istream<char>} a.cc:6:13: note: candidate: 'operator<<(int, int)' (built-in) 6 | cin << c; | ~~~~^~~~ a.cc:6:13: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int' In file included from /usr/include/c++/14/regex:68, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181, from a.cc:1: /usr/include/c++/14/bits/regex.h:1715:5: note: candidate: 'template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const sub_match<_Bi_iter>&)' 1715 | operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1715:5: note: template argument deduction/substitution failed: a.cc:6:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << c; | ^ In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41: /usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)' 125 | operator<<(byte __b, _IntegerType __shift) noexcept | ^~~~~~~~ /usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed: a.cc:6:9: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte' 6 | cin << c; | ^~~ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)' 763 | operator<<(basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed: a.cc:6:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << c; | ^ /usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 4077 | operator<<(basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed: a.cc:6:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << c; | ^ /usr/include/c++/14/bitset:1687:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const bitset<_Nb>&)' 1687 | operator<<(std::basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/include/c++/14/bitset:1687:5: note: template argument deduction/substitution failed: a.cc:6:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << c; | ^ In file included from /usr/include/c++/14/bits/ios_base.h:46, from /usr/include/c++/14/streambuf:43, from /usr/include/c++/14/bits/streambuf_iterator.h:35, from /usr/include/c++/14/iterator:66, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54: /usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)' 339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e) | ^~~~~~~~ /usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed: a.cc:6:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << c; | ^ In file included from /usr/include/c++/14/memory:80, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:56: /usr/include/c++/14/bits/shared_ptr.h:70:5: note: candidate: 'template<class _Ch, class _Tr, class _Tp, __gnu_cxx::_Lock_policy _Lp> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __shared_ptr<_Tp, _Lp>&)' 70 | operator<<(std::basic_ostream<_Ch, _Tr>& __os, | ^~~~~~~~ /usr/include/c++/14/bits/shared_ptr.h:70:5: note: template argument deduction/substitution failed: a.cc:6:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << c; | ^ 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:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)' 563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c) | ^~~~~~~~ /usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed: a.cc:6:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << c; | ^ /usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)' 573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed: a.cc:6:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << c; | ^ /usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)' 579 | operator<<(basic_ostream<char, _Traits>& __out, char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed: a.cc:6:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 6 | cin << c; | ^ /usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)' 590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed: a.cc:6:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 6 | cin << c; | ^ /usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)' 595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed: a.cc:6:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 6 | cin << c; | ^ /usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)' 654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s) | ^~~~~~~~ /usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed: a.cc:6:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << c; | ^ In file included from /usr/include/c++/14/ostream:1022: /usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)' 307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s) | ^~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed: a.cc:6:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << c; | ^ /usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)' 671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s) | ^~~~~~~~ /usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed: a.cc:6:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 6 |
s939516885
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { String x; cin >> x; if( x == "a" || "i" || "u" || "e" || "o"){ cout << "vowel" << endl; }else{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:5:9: error: 'String' was not declared in this scope 5 | String x; | ^~~~~~ a.cc:6:16: error: 'x' was not declared in this scope 6 | cin >> x; | ^
s685746291
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { String x; cin >> x; if(x == "a" || x == "i" || x == "u" || x == "e" || x == "o"){ cout << "vowel" << endl; }else{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:5:9: error: 'String' was not declared in this scope 5 | String x; | ^~~~~~ a.cc:6:16: error: 'x' was not declared in this scope 6 | cin >> x; | ^
s419279903
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { String x; cin << x; if(x == "a" || x == "i" || x == "u" || x == "e" || x == "o"){ cout >> "vowel" >> endl; }else{ cout >> "consonant" >> endl; } }
a.cc: In function 'int main()': a.cc:5:9: error: 'String' was not declared in this scope 5 | String x; | ^~~~~~ a.cc:6:16: error: 'x' was not declared in this scope 6 | cin << x; | ^ a.cc:8:14: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [6]') 8 | cout >> "vowel" >> endl; | ~~~~ ^~ ~~~~~~~ | | | | | const char [6] | 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:8:9: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte' 8 | cout >> "vowel" >> endl; | ^~~~ 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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ 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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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 (&)[6]]': a.cc:8:10: required from here 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ 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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/iomanip:177:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setfill<_CharT>)' 177 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setfill<_CharT> __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:177:5: note: template argument deduction/substitution failed: a.cc:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/iomanip:207:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream
s193080362
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { String c; cin << c; if(c == "a" || c == "e" || c == "i" || c == "o" c == "u"){ cout >> "vowel" >> endl; }else{ cout >> "consonant" >> endl; } }
a.cc: In function 'int main()': a.cc:5:9: error: 'String' was not declared in this scope 5 | String c; | ^~~~~~ a.cc:6:16: error: 'c' was not declared in this scope 6 | cin << c; | ^ a.cc:7:56: error: expected ')' before 'c' 7 | if(c == "a" || c == "e" || c == "i" || c == "o" c == "u"){ | ~ ^~ | ) a.cc:8:14: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [6]') 8 | cout >> "vowel" >> endl; | ~~~~ ^~ ~~~~~~~ | | | | | const char [6] | 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:8:9: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte' 8 | cout >> "vowel" >> endl; | ^~~~ 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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ 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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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 (&)[6]]': a.cc:8:10: required from here 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ 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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/iomanip:177:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setfill<_CharT>)' 177 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setfill<_CharT> __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:177:5: note: template argument deduction/substitution failed: a.cc:8:17: note: 'std::ostream' {aka 'std::basic_ostream<
s666614230
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char 'c'; cin << c; if(c == a || c == e || c || i c == o c == u){ cout >> "vowel" >> endl; }else{ cout >> "consonant" >> endl; } }
a.cc: In function 'int main()': a.cc:5:14: error: expected unqualified-id before 'c' 5 | char 'c'; | ^~~ a.cc:6:16: error: 'c' was not declared in this scope 6 | cin << c; | ^ a.cc:7:17: error: 'a' was not declared in this scope 7 | if(c == a || c == e || c || i c == o c == u){ | ^ a.cc:7:27: error: 'e' was not declared in this scope 7 | if(c == a || c == e || c || i c == o c == u){ | ^ a.cc:7:37: error: 'i' was not declared in this scope 7 | if(c == a || c == e || c || i c == o c == u){ | ^ a.cc:7:38: error: expected ')' before 'c' 7 | if(c == a || c == e || c || i c == o c == u){ | ~ ^~ | ) a.cc:8:14: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [6]') 8 | cout >> "vowel" >> endl; | ~~~~ ^~ ~~~~~~~ | | | | | const char [6] | 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:8:9: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte' 8 | cout >> "vowel" >> endl; | ^~~~ 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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ 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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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 (&)[6]]': a.cc:8:10: required from here 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ 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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /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:8:17: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/iomanip:177:5: note: candidat
s765261303
p03852
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String s = scan.next(); if(s.contains("a")||s.contains("i")|| s.contains("u")|| s.contains("e")||s.contains("o")){ System.out.print("vowel"); } else{ SYstem.out.print("consonant"); } } }
Main.java:13: error: package SYstem does not exist SYstem.out.print("consonant"); ^ 1 error
s957439894
p03852
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String s = scan.next(); if(s.contains("a")||s.contains("i")|| s.contains("u")|| s.contains("e")||s.contains("o")||){ System.out.print("vowel"); } else{ SYstem.out.print("consonant"); } } }
Main.java:9: error: illegal start of expression s.contains("e")||s.contains("o")||){ ^ 1 error
s462437067
p03852
C++
#include<bits/stdc++.h> using namespace std; int main() { char C; cin >> C; if(C=='a' || C=='i' || C=='u' || C=='e' || C=='o'){ cout << vowel << endl; } else{ cout << consonant<< endl; } }
a.cc: In function 'int main()': a.cc:9:9: error: 'vowel' was not declared in this scope 9 | cout << vowel << endl; | ^~~~~ a.cc:13:9: error: 'consonant' was not declared in this scope 13 | cout << consonant<< endl; | ^~~~~~~~~
s129299774
p03852
C++
#include<bits/stdc++.h> using namespace std; int main() { char C; cin >> C; if(C=='a' || C=='i' || C=='u' || C=='e' || C=='o'){ cout << vowel << endl; else{ cout << consonant<< endl; } }
a.cc: In function 'int main()': a.cc:9:9: error: 'vowel' was not declared in this scope 9 | cout << vowel << endl; | ^~~~~ a.cc:11:1: error: expected '}' before 'else' 11 | else{ | ^~~~ a.cc:8:51: note: to match this '{' 8 | if(C=='a' || C=='i' || C=='u' || C=='e' || C=='o'){ | ^ a.cc:12:9: error: 'consonant' was not declared in this scope 12 | cout << consonant<< endl; | ^~~~~~~~~
s854346401
p03852
C++
#include<bits/stdc++.h> using namespace std; int main() { char C; cin >> C; if(C=='a' || C=='i' || C=='u' || C=='e' || C=='o'){ cout << vowel << endl; else{ cout << consonant<< endl; }
a.cc: In function 'int main()': a.cc:9:9: error: 'vowel' was not declared in this scope 9 | cout << vowel << endl; | ^~~~~ a.cc:11:1: error: expected '}' before 'else' 11 | else{ | ^~~~ a.cc:8:51: note: to match this '{' 8 | if(C=='a' || C=='i' || C=='u' || C=='e' || C=='o'){ | ^ a.cc:12:9: error: 'consonant' was not declared in this scope 12 | cout << consonant<< endl; | ^~~~~~~~~ a.cc:13:2: error: expected '}' at end of input 13 | } | ^ a.cc:4:1: note: to match this '{' 4 | { | ^
s624815865
p03852
C++
#include<bits/stdc++.h> using namespace std; int main(){ char C; cin >> C ; if (C=='a') cout <<vowel << endl; if (C=='i') cout <<vowel << endl; if (C=='u') cout <<vowel << endl; if (C=='e') cout <<vowel << endl; if (C=='o') cout <<vowel << endl; else cout<<consonant <<endl; }
a.cc: In function 'int main()': a.cc:7:8: error: 'vowel' was not declared in this scope 7 | cout <<vowel << endl; | ^~~~~ a.cc:9:8: error: 'vowel' was not declared in this scope 9 | cout <<vowel << endl; | ^~~~~ a.cc:11:8: error: 'vowel' was not declared in this scope 11 | cout <<vowel << endl; | ^~~~~ a.cc:13:8: error: 'vowel' was not declared in this scope 13 | cout <<vowel << endl; | ^~~~~ a.cc:15:8: error: 'vowel' was not declared in this scope 15 | cout <<vowel << endl; | ^~~~~ a.cc:17:7: error: 'consonant' was not declared in this scope 17 | cout<<consonant <<endl; | ^~~~~~~~~
s577339892
p03852
C++
#include<bits/stdc++.h> using namespace std; int main(){ char c; cin>>c; if(c=='a'||c=='i'||a=='u'||a=='e'||a=='o'){ cout << "vowel"; }else{ cout << "constant"; } return 0; }
a.cc: In function 'int main()': a.cc:7:22: error: 'a' was not declared in this scope 7 | if(c=='a'||c=='i'||a=='u'||a=='e'||a=='o'){ | ^
s278697258
p03852
C++
#include<bits/stdc++.h> using namespace std; int main(){ char w; cin>>w; if(w=='a'||w=='i'||w=='u'||w=='e'||w=='o'){ cout<<"vowel"<<endl; } else{ cout<<consonant<<endl; } }
a.cc: In function 'int main()': a.cc:10:11: error: 'consonant' was not declared in this scope 10 | cout<<consonant<<endl; | ^~~~~~~~~
s763097565
p03852
C++
#include<bits/stdc++.h> using namespace std; int main(){ char w; cin>>w; if(w=='a'||w=='i'||w=='u'||w=='e'||w=='o'){ cout<<"vowel"<<endl; } else{ cout<<consonant<<endl; } }
a.cc: In function 'int main()': a.cc:10:11: error: 'consonant' was not declared in this scope 10 | cout<<consonant<<endl; | ^~~~~~~~~
s292227389
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { int c; cin>>c; if (c=="a") { cout<<"vowel"<<endl; } else if (c=="e") { cout<<"vowel"<<endl; } else if (c=="i") { cout<<"vowel"<<endl; } else if (c=="o") { cout<<"vowel"<<endl; } else if (c=="u") { cout<<"vowel"<<endl; } else { cout<<"consonant"<<endl; } }
a.cc: In function 'int main()': a.cc:7:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if (c=="a") { | ~^~~~~ a.cc:10:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 10 | else if (c=="e") { | ~^~~~~ a.cc:13:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 13 | else if (c=="i") { | ~^~~~~ a.cc:16:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 16 | else if (c=="o") { | ~^~~~~ a.cc:19:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 19 | else if (c=="u") { | ~^~~~~
s060917466
p03852
C++
#include <iostream> #include <algorithm> #include <string> #include <cmath> #include <ctype.h> #include <map> #include <vector> #include <stdlib.h> #include <cctype> #define REP(i,n) for(int i=0;i<(int)n;++i) #define REP1(j,n) for(int j=0;j<(int)n;++j) #define REPD(i,n) for(int i=n;i>=0;--i) #define REPD1(j,n) for(int j=n;j=>0;--j) #define REPS(i,n) for(int i=1;i<=(int)n;++i) #define REPS1(j,n) for(int j=1;j<=(int)n;++j) #define rep(i,a,n) for(int i=a;i<=(int)n;++i) #define SZ(x) ((int)(x).size()) //size() unsigned -> int #define DescSort(a) sort(a.begin(),a.end(),std::greater<int>()) using namespace std; typedef long long ll; int main(void) { char c; cin >> c; if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o') cout << "vowel" << endl; else cout << "consonant" < endl; }
a.cc: In function 'int main()': a.cc:29:37: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 29 | cout << "consonant" < endl; | ~~~~~~~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/string:48, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/include/c++/14/bits/ios_base.h:41, from /usr/include/c++/14/ios:44, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 448 | operator<(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed: a.cc:29:39: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>' 29 | cout << "consonant" < endl; | ^~~~ /usr/include/c++/14/bits/stl_iterator.h:493:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 493 | operator<(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:493:5: note: template argument deduction/substitution failed: a.cc:29:39: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>' 29 | cout << "consonant" < endl; | ^~~~ /usr/include/c++/14/bits/stl_iterator.h:1694:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1694 | operator<(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1694:5: note: template argument deduction/substitution failed: a.cc:29:39: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>' 29 | cout << "consonant" < endl; | ^~~~ /usr/include/c++/14/bits/stl_iterator.h:1760:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1760 | operator<(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1760:5: note: template argument deduction/substitution failed: a.cc:29:39: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>' 29 | cout << "consonant" < endl; | ^~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/string:51: /usr/include/c++/14/bits/stl_pair.h:1045:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1045 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed: a.cc:29:39: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>' 29 | cout << "consonant" < endl; | ^~~~ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54: /usr/include/c++/14/string_view:673:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 673 | operator< (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:673:5: note: template argument deduction/substitution failed: a.cc:29:39: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 29 | cout << "consonant" < endl; | ^~~~ /usr/include/c++/14/string_view:680:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)' 680 | operator< (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:680:5: note: template argument deduction/substitution failed: a.cc:29:39: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 29 | cout << "consonant" < endl; | ^~~~ /usr/include/c++/14/string_view:688:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)' 688 | operator< (__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:688:5: note: template argument deduction/substitution failed: a.cc:29:39: note: couldn't deduce template parameter '_CharT' 29 | cout << "consonant" < endl; | ^~~~ /usr/include/c++/14/bits/basic_string.h:3874:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3874 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3874:5: note: template argument deduction/substitution failed: a.cc:29:39: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 29 | cout << "consonant" < endl; | ^~~~ /usr/include/c++/14/bits/basic_string.h:3888:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)' 3888 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3888:5: note: template argument deduction/substitution failed: a.cc:29:39: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 29 | cout << "consonant" < endl; | ^~~~ /usr/include/c++/14/bits/basic_string.h:3901:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3901 | operator<(const _CharT* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3901:5: note: template argument deduction/substitution failed: a.cc:29:39: note: mismatched types 'const _CharT*' and 'std::basic_ostream<char>' 29 | cout << "consonant" < endl; | ^~~~ In file included from /usr/include/c++/14/bits/memory_resource.h:47, from /usr/include/c++/14/string:68: /usr/include/c++/14/tuple:2600:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator<(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)' 2600 | operator<(const tuple<_TElements...>& __t, | ^~~~~~~~ /usr/include/c++/14/tuple:2600:5: note: template argument deduction/substitution failed: a.cc:29:39: note: 'std::basic_ostream<char>' is not derived from 'const std::tuple<_UTypes ...>' 29 | cout << "consonant" < endl; | ^~~~ In file included from /usr/include/c++/14/map:63, from a.cc:6: /usr/include/c++/14/bits/stl_map.h:1550:5: note: candidate: 'template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator<(const map<_Key, _Tp, _Compare, _Allocator>&, const map<_Key, _Tp, _Compare, _Allocator>&)' 1550 | operator<(const map<_Key, _Tp, _Compare, _Alloc>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_map.h:1550:5: note: template argument deduction/substitution failed: a.cc:29:39: note: 'std::basic_ostream<char>' is not derived from 'const std::map<_Key, _Tp, _Compare, _Allocator>' 29 | cout << "consonant" < endl; | ^~~~ In file included from /usr/include/c++/14/map:64: /usr/include/c++/14/bits/stl_multimap.h:1172:5: note: candidate: 'template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator<(const multimap<_Key, _Tp, _Compare, _Allocator>&, const multimap<_Key, _Tp, _Compare, _Allocator>&)' 1172 | operator<(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_multimap.h:1172:5: note: template argument deduction/substitution failed: a.cc:29:39: note: 'std::basic_ostream<char>' is not derived from 'const std::multimap<_Key, _Tp, _Compare, _Allocator>' 29 | cout << "consonant" < endl; | ^~~~ In file included from /usr/include/c++/14/vector:66, from a.cc:7: /usr/include/c++/14/bits/stl_vector.h:2089:5: note: candidate: 'template<class _Tp, class _Alloc> bool std::operator<(const vector<_Tp, _Alloc>&, const vector<_Tp, _Alloc>&)' 2089 | operator<(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_vector.h:2089:5: note: template argument deduction/substitution failed: a.cc:29:39: note: 'std::basic_ostream<char>' is not derived from 'const std::vector<_Tp, _Alloc>' 29 |
s430584597
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o') { cout << "vowel" << endl; } else { cout << consonant << endl; }
a.cc: In function 'int main()': a.cc:11:13: error: 'consonant' was not declared in this scope 11 | cout << consonant << endl; | ^~~~~~~~~ a.cc:13:2: error: expected '}' at end of input 13 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s205749867
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c; cin >> c; if c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'{ cout << "vowel" << endl; } else { cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:12:8: error: expected '(' before 'c' 12 | if c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'{ | ^ | ( a.cc:14:7: error: 'else' without a previous 'if' 14 | } else { | ^~~~
s259545790
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c; cin >> c; if c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'{ cout << "vowel" << endl; } else{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:12:8: error: expected '(' before 'c' 12 | if c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'{ | ^ | ( a.cc:14:7: error: 'else' without a previous 'if' 14 | } else{ | ^~~~
s845164696
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; string ans = "consonant"; if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u' || ) ans = "vowel"; cout << ans << endl; }
a.cc: In function 'int main()': a.cc:11:34: error: expected primary-expression before ')' token 11 | || c == 'o' || c == 'u' || ) ans = "vowel"; | ^
s659197532
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string c; cin>>c; if(c =='a'){ cout << "vowel" <<endl; } if(c =='i'){ cout << "vowel" <<endl; } if(c =='u'){ cout << "vowel" <<endl; } if(c =='e'){ cout << "vowel" <<endl; } if(c =='o'){ cout << "vowel" <<endl; } else { cout << "consonant"<<endl; } }
a.cc: In function 'int main()': a.cc:8:14: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 8 | if(c =='a'){ | ~ ^~~~~ | | | | | char | std::string {aka std::__cxx11::basic_string<char>} In file included from /usr/include/c++/14/regex:68, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181, from a.cc:1: /usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed: a.cc:8:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 8 | if(c =='a'){ | ^~~ /usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)' 1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed: a.cc:8:16: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 8 | if(c =='a'){ | ^~~ /usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)' 1274 | operator==(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed: a.cc:8:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 8 | if(c =='a'){ | ^~~ /usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed: a.cc:8:16: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 8 | if(c =='a'){ | ^~~ /usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1441 | operator==(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed: a.cc:8:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 8 | if(c =='a'){ | ^~~ /usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed: a.cc:8:16: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 8 | if(c =='a'){ | ^~~ /usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1613 | operator==(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed: a.cc:8:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 8 | if(c =='a'){ | ^~~ /usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)' 2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed: a.cc:8:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>' 8 | if(c =='a'){ | ^~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51: /usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed: a.cc:8:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 8 | if(c =='a'){ | ^~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 441 | operator==(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed: a.cc:8:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 8 | if(c =='a'){ | ^~~ /usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 486 | operator==(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed: a.cc:8:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 8 | if(c =='a'){ | ^~~ /usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1667 | operator==(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed: a.cc:8:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 8 | if(c =='a'){ | ^~~ /usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1737 | operator==(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed: a.cc:8:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 8 | if(c =='a'){ | ^~~ In file included from /usr/include/c++/14/bits/char_traits.h:42, from /usr/include/c++/14/string:42, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)' 192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed: a.cc:8:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>' 8 | if(c =='a'){ | ^~~ In file included from /usr/include/c++/14/string:43: /usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)' 235 | operator==(const allocator<_T1>&, const allocator<_T2>&) | ^~~~~~~~ /usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed: a.cc:8:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>' 8 | if(c =='a'){ | ^~~ 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, _Traits> >)' 629 | operator==(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:629:5: note: template argument deduction/substitution failed: a.cc:8:16: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 8 | if(c =='a'){ |
s146257760
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string c; cin>>c; if(c =='a'){ cout << "vowel" <<endl; } if(c =='i'){ cout << "vowel" <<endl; } if(c =='u'){ cout << "vowel" <<endl; } if(c =='e'){ cout << "vowel" <<endl; } if(c =='o'){ cout << "vowel" <<endl; } else { cout << "consonant"<<endl; } }
a.cc: In function 'int main()': a.cc:8:14: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 8 | if(c =='a'){ | ~ ^~~~~ | | | | | char | std::string {aka std::__cxx11::basic_string<char>} In file included from /usr/include/c++/14/regex:68, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181, from a.cc:1: /usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed: a.cc:8:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 8 | if(c =='a'){ | ^~~ /usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)' 1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed: a.cc:8:16: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 8 | if(c =='a'){ | ^~~ /usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)' 1274 | operator==(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed: a.cc:8:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 8 | if(c =='a'){ | ^~~ /usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed: a.cc:8:16: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 8 | if(c =='a'){ | ^~~ /usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1441 | operator==(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed: a.cc:8:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 8 | if(c =='a'){ | ^~~ /usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed: a.cc:8:16: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 8 | if(c =='a'){ | ^~~ /usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1613 | operator==(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed: a.cc:8:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 8 | if(c =='a'){ | ^~~ /usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)' 2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed: a.cc:8:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>' 8 | if(c =='a'){ | ^~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51: /usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed: a.cc:8:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 8 | if(c =='a'){ | ^~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 441 | operator==(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed: a.cc:8:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 8 | if(c =='a'){ | ^~~ /usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 486 | operator==(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed: a.cc:8:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 8 | if(c =='a'){ | ^~~ /usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1667 | operator==(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed: a.cc:8:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 8 | if(c =='a'){ | ^~~ /usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1737 | operator==(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed: a.cc:8:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 8 | if(c =='a'){ | ^~~ In file included from /usr/include/c++/14/bits/char_traits.h:42, from /usr/include/c++/14/string:42, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)' 192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed: a.cc:8:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>' 8 | if(c =='a'){ | ^~~ In file included from /usr/include/c++/14/string:43: /usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)' 235 | operator==(const allocator<_T1>&, const allocator<_T2>&) | ^~~~~~~~ /usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed: a.cc:8:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>' 8 | if(c =='a'){ | ^~~ 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, _Traits> >)' 629 | operator==(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:629:5: note: template argument deduction/substitution failed: a.cc:8:16: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 8 | if(c =='a'){ |
s338452430
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin>>c; if(c=='a'){ cout<<"vowel"<<endl; }else if(c=='i'){ cout<<"vowel<<endl; }else if(c=='u'){ cout<<"vowel<<endl; }else if(c=='e'){ cout<<"vowel<<endl; }else if(c=='o'){ cout<<"vowel<<endl; }else{ cout<<"consonant"<<endl; } }
a.cc:10:7: warning: missing terminating " character 10 | cout<<"vowel<<endl; | ^ a.cc:10:7: error: missing terminating " character 10 | cout<<"vowel<<endl; | ^~~~~~~~~~~~~ a.cc:12:7: warning: missing terminating " character 12 | cout<<"vowel<<endl; | ^ a.cc:12:7: error: missing terminating " character 12 | cout<<"vowel<<endl; | ^~~~~~~~~~~~~ a.cc:14:7: warning: missing terminating " character 14 | cout<<"vowel<<endl; | ^ a.cc:14:7: error: missing terminating " character 14 | cout<<"vowel<<endl; | ^~~~~~~~~~~~~ a.cc:16:7: warning: missing terminating " character 16 | cout<<"vowel<<endl; | ^ a.cc:16:7: error: missing terminating " character 16 | cout<<"vowel<<endl; | ^~~~~~~~~~~~~ a.cc: In function 'int main()': a.cc:11:1: error: expected primary-expression before '}' token 11 | }else if(c=='u'){ | ^ a.cc:13:1: error: expected primary-expression before '}' token 13 | }else if(c=='e'){ | ^ a.cc:15:1: error: expected primary-expression before '}' token 15 | }else if(c=='o'){ | ^ a.cc:17:1: error: expected primary-expression before '}' token 17 | }else{ | ^
s734294186
p03852
Java
bo = ['a', 'i', 'u', 'e', 'o'] if (input() in bo): print("vowel") else : print("consonant")
Main.java:1: error: class, interface, enum, or record expected bo = ['a', 'i', 'u', 'e', 'o'] ^ 1 error
s253525376
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ dhar c; cin >> c; if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ cout << "vowel" << endl; } else{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:5:1: error: 'dhar' was not declared in this scope; did you mean 'char'? 5 | dhar c; | ^~~~ | char a.cc:6:10: error: 'c' was not declared in this scope 6 | cin >> c; | ^
s853143510
p03852
C++
#include<string> using namespace std; int main(){ string s; cin>>s; if(s=="a" || s=="i" || s=="u" || s=="e" || s=="o") cout<<"vowel"<<endl; else cout<<"consonant"<<endl; }
a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope 6 | cin>>s; | ^~~ a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 1 | #include<string> +++ |+#include <iostream> 2 | using namespace std; a.cc:7:54: error: 'cout' was not declared in this scope 7 | if(s=="a" || s=="i" || s=="u" || s=="e" || s=="o") cout<<"vowel"<<endl; | ^~~~ a.cc:7:54: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:7:69: error: 'endl' was not declared in this scope 7 | if(s=="a" || s=="i" || s=="u" || s=="e" || s=="o") cout<<"vowel"<<endl; | ^~~~ a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>' 1 | #include<string> +++ |+#include <ostream> 2 | using namespace std; a.cc:8:8: error: 'cout' was not declared in this scope 8 | else cout<<"consonant"<<endl; | ^~~~ a.cc:8:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:8:27: error: 'endl' was not declared in this scope 8 | else cout<<"consonant"<<endl; | ^~~~ a.cc:8:27: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
s812742697
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { str x; cin >> x; if (x == "a" || x == "e" || x == "i" || x == "o" || x == "u") { cout << "vowel" << endl; } else { cout << "constant" << endl; } }
a.cc: In function 'int main()': a.cc:5:3: error: 'str' was not declared in this scope; did you mean 'std'? 5 | str x; | ^~~ | std a.cc:6:10: error: 'x' was not declared in this scope 6 | cin >> x; | ^
s009422760
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c;cin>>c; if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u')cout<<"vowel"<<endl; else cout<<"consonant"<<endl}
a.cc: In function 'int main()': a.cc:6:31: error: expected ';' before '}' token 6 | else cout<<"consonant"<<endl} | ^ | ;
s500607005
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c;cin>>c; if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u')cout<<"vowel"<<endl; else cout<<"consonant"<<endl;
a.cc: In function 'int main()': a.cc:6:32: error: expected '}' at end of input 6 | else cout<<"consonant"<<endl; | ^ a.cc:3:11: note: to match this '{' 3 | int main(){ | ^
s686891519
p03852
C
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #define _CRT_SECURE_NO_WARNINGS #define TLong long long int main(int argc, char const *argv[]){ char string[] = "aiueo"; char ch; scanf("%c",&ch); for (int i = 0; i < 5; ++i) { if(ch == string[i]){ puts("vowel") return 0; } } puts("consonant"); }
main.c: In function 'main': main.c:17:38: error: expected ';' before 'return' 17 | puts("vowel") | ^ | ; 18 | return 0; | ~~~~~~
s717059008
p03852
C
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #define _CRT_SECURE_NO_WARNINGS #define TLong long long int main(int argc, char const *argv[]){ char string[] = "aiueo"; char ch; scanf("%c",&ch); for (int i = 0; i < 5; ++i) { if(ch == string[i]){ puts("Yes") return 0; } } puts("No"); }
main.c: In function 'main': main.c:17:36: error: expected ';' before 'return' 17 | puts("Yes") | ^ | ; 18 | return 0; | ~~~~~~
s077202769
p03852
C
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #define _CRT_SECURE_NO_WARNINGS #define TLong long long int main(int argc, char const *argv[]){ char string[] = "aiueo"; char ch; scanf("%c",ch); for (int i = 0; i < 5; ++i) { if(ch == string[i]){ puts("Yes") return 0; } } puts("No"); }
main.c: In function 'main': main.c:17:36: error: expected ';' before 'return' 17 | puts("Yes") | ^ | ; 18 | return 0; | ~~~~~~
s209366282
p03852
C++
#include<iostream> #include<string> #include <algorithm> using namespace std; int main() { string c; cin >> c; target_list = "aiueo"; if(target_list.find(c) != string::npos){ cout << "vowel" << endl; }else{ cout << "consonant" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:9:3: error: 'target_list' was not declared in this scope 9 | target_list = "aiueo"; | ^~~~~~~~~~~
s630458700
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ string c; cin >> c; if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ cout << "vowel" << endl; } else { cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:7:11: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ | ~ ^~ ~~~ | | | | | 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:7:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ | ^~~ /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:7:14: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ | ^~~ /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:7:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ | ^~~ /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:7:14: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ | ^~~ /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:7:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ | ^~~ /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:7:14: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ | ^~~ /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:7:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ | ^~~ /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:7:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>' 7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ | ^~~ 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:7:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ | ^~~ 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:7:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ | ^~~ /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:7:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ | ^~~ /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:7:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ | ^~~ /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:7:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ | ^~~ 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:7:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>' 7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ | ^~~ 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:7:14: note: 'std::string' {aka 'std::__cxx11::basic_stri
s335719161
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ string c; cin >> c; if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ cout << "vowel" << endl; } else { cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:7:11: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ | ~ ^~ ~~~ | | | | | 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:7:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ | ^~~ /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:7:14: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ | ^~~ /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:7:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ | ^~~ /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:7:14: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ | ^~~ /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:7:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ | ^~~ /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:7:14: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ | ^~~ /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:7:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ | ^~~ /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:7:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>' 7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ | ^~~ 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:7:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ | ^~~ 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:7:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ | ^~~ /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:7:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ | ^~~ /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:7:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ | ^~~ /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:7:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ | ^~~ 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:7:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>' 7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){ | ^~~ 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:7:14: note: 'std::string' {aka 'std::__cxx11::basic_stri
s920983605
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c; cin >> c; if (c == "a" || c == "i" || c == "u" || c == "e" ||c == "o"){ cout << "vowel" << endl; } else { cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:6:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 6 | if (c == "a" || c == "i" || c == "u" || c == "e" ||c == "o"){ | ~~^~~~~~ a.cc:6:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 6 | if (c == "a" || c == "i" || c == "u" || c == "e" ||c == "o"){ | ~~^~~~~~ a.cc:6:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 6 | if (c == "a" || c == "i" || c == "u" || c == "e" ||c == "o"){ | ~~^~~~~~ a.cc:6:44: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 6 | if (c == "a" || c == "i" || c == "u" || c == "e" ||c == "o"){ | ~~^~~~~~ a.cc:6:55: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 6 | if (c == "a" || c == "i" || c == "u" || c == "e" ||c == "o"){ | ~~^~~~~~
s629873762
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){ cout << "vowel" << endl; } else{ cout < "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:11:24: error: invalid operands of types 'const char [10]' and '<unresolved overloaded function type>' to binary 'operator<<' 11 | cout < "consonant" << endl; | ~~~~~~~~~~~~^~~~~~~
s983626091
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o' ) cout << "vowel"; else cout << "consonant" }
a.cc: In function 'int main()': a.cc:11:22: error: expected ';' before '}' token 11 | cout << "consonant" | ^ | ; 12 | } | ~
s445097182
p03852
Java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String c = sc.nex(); if(c.equals("a") || c.equals("e") || c.equals("i") || c.equals("o") || c.equals("u")) { System.out.println("vowel"); }else { System.out.println("consonant"); } } }
Main.java:5: error: cannot find symbol String c = sc.nex(); ^ symbol: method nex() location: variable sc of type Scanner 1 error
s924111706
p03852
C++
#include <bits/stdc++.h> using namespace std; #define cinf(n,x) for(int i=0;i<(n);I++) cin >> x[i]; int main(){ string s; cin >> s; if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') cout <<"vowel" <<endl; else cout << "consonant" << endl; }
a.cc: In function 'int main()': a.cc:8:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 8 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') | ~ ^~ ~~~ | | | | | char | std::string {aka std::__cxx11::basic_string<char>} In file included from /usr/include/c++/14/regex:68, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181, from a.cc:1: /usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed: a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 8 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') | ^~~ /usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)' 1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed: a.cc:8:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 8 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') | ^~~ /usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)' 1274 | operator==(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed: a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 8 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') | ^~~ /usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed: a.cc:8:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 8 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') | ^~~ /usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1441 | operator==(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed: a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 8 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') | ^~~ /usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed: a.cc:8:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 8 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') | ^~~ /usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1613 | operator==(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed: a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 8 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') | ^~~ /usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)' 2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed: a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>' 8 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') | ^~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51: /usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed: a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 8 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') | ^~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 441 | operator==(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed: a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 8 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') | ^~~ /usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 486 | operator==(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed: a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 8 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') | ^~~ /usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1667 | operator==(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed: a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 8 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') | ^~~ /usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1737 | operator==(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed: a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 8 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') | ^~~ In file included from /usr/include/c++/14/bits/char_traits.h:42, from /usr/include/c++/14/string:42, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)' 192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed: a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>' 8 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') | ^~~ In file included from /usr/include/c++/14/string:43: /usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)' 235 | operator==(const allocator<_T1>&, const allocator<_T2>&) | ^~~~~~~~ /usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed: a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>' 8 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') | ^~~ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/in
s020177309
p03852
C++
#include <bits.stdc++.h> using namespace std; int main(){ char s; cin>>s; if(s=='a'||s=='i'||s=='u'||s=='e'||s=='o'){ cout<<"vowel"<<endl; } else{ cout<<"consonant"<<endl; } }
a.cc:1:10: fatal error: bits.stdc++.h: No such file or directory 1 | #include <bits.stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s566573953
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; if (S.at(0)='a' ||S.at(0)='e'||S.at(0)='i'||S.at(0)='o'||S.at(0)='u'){ cout << "vowel" << endl; } else { cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:7:58: error: lvalue required as left operand of assignment 7 | if (S.at(0)='a' ||S.at(0)='e'||S.at(0)='i'||S.at(0)='o'||S.at(0)='u'){ | ~~~^~~~~~~~~
s411701094
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; if (S.at(0)='a' || S.at(0)='e'||S.at(0)='i'||S.at(0)='o'||S.at(0)='u'||){ cout << "voel" << endl; } else { cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:7:74: error: expected primary-expression before ')' token 7 | if (S.at(0)='a' || S.at(0)='e'||S.at(0)='i'||S.at(0)='o'||S.at(0)='u'||){ | ^
s106177580
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c; cin >> c; if(c == 'a' || c == 'e' || c == 'i' || c =='o' || c== 'u'){ cout << "vowel" << endl; } else{ cout << "consonant" << endl; }
a.cc: In function 'int main()': a.cc:12:2: error: expected '}' at end of input 12 | } | ^ a.cc:4:11: note: to match this '{' 4 | int main(){ | ^
s297787956
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; const string vowel="aeiou"; cout << vowel.find(c)==sring::npos ? "vowel":"consonant"<<endl; }
a.cc: In function 'int main()': a.cc:8:24: error: 'sring' has not been declared 8 | cout << vowel.find(c)==sring::npos ? "vowel":"consonant"<<endl; | ^~~~~ a.cc:8:57: error: invalid operands of types 'const char [10]' and '<unresolved overloaded function type>' to binary 'operator<<' 8 | cout << vowel.find(c)==sring::npos ? "vowel":"consonant"<<endl; | ~~~~~~~~~~~^~~~~~
s251333902
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; const string vowel="aeiou"; cout << vowel.find(c)==sring::npos ? "vowel":"consonant"<<endl; }
a.cc: In function 'int main()': a.cc:8:24: error: 'sring' has not been declared 8 | cout << vowel.find(c)==sring::npos ? "vowel":"consonant"<<endl; | ^~~~~ a.cc:8:57: error: invalid operands of types 'const char [10]' and '<unresolved overloaded function type>' to binary 'operator<<' 8 | cout << vowel.find(c)==sring::npos ? "vowel":"consonant"<<endl; | ~~~~~~~~~~~^~~~~~
s609641502
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; const string vowel="aeiou"; cout << vowel.find(c)==sring::npos ? "vowel":"consonant"<<endl; cout << ans << endl; }
a.cc: In function 'int main()': a.cc:8:24: error: 'sring' has not been declared 8 | cout << vowel.find(c)==sring::npos ? "vowel":"consonant"<<endl; | ^~~~~ a.cc:8:57: error: invalid operands of types 'const char [10]' and '<unresolved overloaded function type>' to binary 'operator<<' 8 | cout << vowel.find(c)==sring::npos ? "vowel":"consonant"<<endl; | ~~~~~~~~~~~^~~~~~ a.cc:9:11: error: 'ans' was not declared in this scope; did you mean 'abs'? 9 | cout << ans << endl; | ^~~ | abs
s429389439
p03852
C++
#include <iostream> int main() { char c; cin >> c; if(c== 'a' || c== 'i' || c == 'u' || c == 'e' || c=='o') cout << "vowel" << endl; else cout << "consonant" << endl; }
a.cc: In function 'int main()': a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 4 | cin >> c; | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~ a.cc:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 6 | cout << "vowel" << 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:6:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 6 | cout << "vowel" << endl; | ^~~~ | std::endl In file included from /usr/include/c++/14/iostream:41: /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 8 | cout << "consonant" << 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:8:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 8 | cout << "consonant" << endl; | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
s520958311
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin>>c; if (c=='a'||c=='e'||c='i'||c=='o'||c=='u'){ cout<<"vowel"<<endl; }else { cout<<"consonant"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:7:19: error: lvalue required as left operand of assignment 7 | if (c=='a'||c=='e'||c='i'||c=='o'||c=='u'){ | ~~~~~~~~~~~~~~^~~
s907422150
p03852
C++
#include <bits/stdc++.h> using namespace std; int main () { char c; cin >> c; if ( c =="a"||c =="i"||c =="u"||c =="e"||c =="o") { cout << "vowel" << endl; } else { cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:8:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if ( c =="a"||c =="i"||c =="u"||c =="e"||c =="o") { | ~~^~~~~ a.cc:8:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if ( c =="a"||c =="i"||c =="u"||c =="e"||c =="o") { | ~~^~~~~ a.cc:8:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if ( c =="a"||c =="i"||c =="u"||c =="e"||c =="o") { | ~~^~~~~ a.cc:8:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if ( c =="a"||c =="i"||c =="u"||c =="e"||c =="o") { | ~~^~~~~ a.cc:8:46: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if ( c =="a"||c =="i"||c =="u"||c =="e"||c =="o") { | ~~^~~~~
s303643695
p03852
C++
#include <bits/stdc++.h> using namespace std; int main () { char c; cin >> c; if ( c == "a" || c == "i"|| c == "u" || c == "e" || c == "o") { cout << "vowel" << endl; } else { cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:8:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if ( c == "a" || c == "i"|| c == "u" || c == "e" || c == "o") { | ~~^~~~~~ a.cc:8:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if ( c == "a" || c == "i"|| c == "u" || c == "e" || c == "o") { | ~~^~~~~~ a.cc:8:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if ( c == "a" || c == "i"|| c == "u" || c == "e" || c == "o") { | ~~^~~~~~ a.cc:8:45: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if ( c == "a" || c == "i"|| c == "u" || c == "e" || c == "o") { | ~~^~~~~~ a.cc:8:57: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if ( c == "a" || c == "i"|| c == "u" || c == "e" || c == "o") { | ~~^~~~~~
s497439416
p03852
C++
#include <bits/stdc++.h> using namespace std; int main () { char c; cin >> c; char a, i, u, e, o; if ( c == a || C == i || c == u || c == e || c == o) { cout << "vowel" << endl; } else { cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:9:18: error: 'C' was not declared in this scope 9 | if ( c == a || C == i || c == u || c == e || c == o) { | ^
s158943167
p03852
C++
#include <bits/stdc++.h> using namespace std; int main () { char c; cin >> c; if ( c == a || C == i || c == u || c == e || c == o) { cout << "vowel" << endl; } else { cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:8:13: error: 'a' was not declared in this scope 8 | if ( c == a || C == i || c == u || c == e || c == o) { | ^ a.cc:8:18: error: 'C' was not declared in this scope 8 | if ( c == a || C == i || c == u || c == e || c == o) { | ^ a.cc:8:23: error: 'i' was not declared in this scope 8 | if ( c == a || C == i || c == u || c == e || c == o) { | ^ a.cc:8:33: error: 'u' was not declared in this scope 8 | if ( c == a || C == i || c == u || c == e || c == o) { | ^ a.cc:8:43: error: 'e' was not declared in this scope 8 | if ( c == a || C == i || c == u || c == e || c == o) { | ^ a.cc:8:53: error: 'o' was not declared in this scope 8 | if ( c == a || C == i || c == u || c == e || c == o) { | ^
s944063364
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ string s; cin >> s; if(s=="a" || s=="i" || s=="u" || s=="e" || s="o"){ cout << "vowel" << endl; }else{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:7:43: error: no match for 'operator||' (operand types are 'bool' and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 7 | if(s=="a" || s=="i" || s=="u" || s=="e" || s="o"){ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ ~ | | | | bool std::string {aka std::__cxx11::basic_string<char>} a.cc:7:43: note: candidate: 'operator||(bool, bool)' (built-in) 7 | if(s=="a" || s=="i" || s=="u" || s=="e" || s="o"){ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ a.cc:7:43: note: no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool' In file included from /usr/include/c++/14/valarray:605, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166, from a.cc:1: /usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const _Expr<_Dom2, typename _Dom2::value_type>&)' 416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed: a.cc:7:46: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'bool' 7 | if(s=="a" || s=="i" || s=="u" || s=="e" || s="o"){ | ^ /usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)' 416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed: a.cc:7:46: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'bool' 7 | if(s=="a" || s=="i" || s=="u" || s=="e" || s="o"){ | ^ /usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const typename _Dom::value_type&, const _Expr<_Dom1, typename _Dom1::value_type>&)' 416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed: a.cc:7:46: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>' 7 | if(s=="a" || s=="i" || s=="u" || s=="e" || s="o"){ | ^ /usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_ValArray, _Dom, typename _Dom::value_type>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const valarray<typename _Dom::value_type>&)' 416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed: a.cc:7:46: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'bool' 7 | if(s=="a" || s=="i" || s=="u" || s=="e" || s="o"){ | ^ /usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_ValArray, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const valarray<typename _Dom::value_type>&, const _Expr<_Dom1, typename _Dom1::value_type>&)' 416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed: a.cc:7:46: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>' 7 | if(s=="a" || s=="i" || s=="u" || s=="e" || s="o"){ | ^ /usr/include/c++/14/valarray:1207:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_ValArray, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__logical_or, _Tp>::result_type> std::operator||(const valarray<_Tp>&, const valarray<_Tp>&)' 1207 | _DEFINE_BINARY_OPERATOR(||, __logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/valarray:1207:1: note: template argument deduction/substitution failed: a.cc:7:46: note: mismatched types 'const std::valarray<_Tp>' and 'bool' 7 | if(s=="a" || s=="i" || s=="u" || s=="e" || s="o"){ | ^ /usr/include/c++/14/valarray:1207:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_ValArray, std::_Constant, _Tp, _Tp>, typename std::__fun<std::__logical_or, _Tp>::result_type> std::operator||(const valarray<_Tp>&, const typename valarray<_Tp>::value_type&)' 1207 | _DEFINE_BINARY_OPERATOR(||, __logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/valarray:1207:1: note: template argument deduction/substitution failed: a.cc:7:46: note: mismatched types 'const std::valarray<_Tp>' and 'bool' 7 | if(s=="a" || s=="i" || s=="u" || s=="e" || s="o"){ | ^ /usr/include/c++/14/valarray:1207:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Constant, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__logical_or, _Tp>::result_type> std::operator||(const typename valarray<_Tp>::value_type&, const valarray<_Tp>&)' 1207 | _DEFINE_BINARY_OPERATOR(||, __logical_or) | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/valarray:1207:1: note: template argument deduction/substitution failed: a.cc:7:46: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::valarray<_Tp>' 7 | if(s=="a" || s=="i" || s=="u" || s=="e" || s="o"){ | ^
s903553878
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char s; cin >> s; if(s=="a" || s=="i" || s=="u" || s=="e" || s="o"){ cout << "vowel" << endl; }else{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:7:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(s=="a" || s=="i" || s=="u" || s=="e" || s="o"){ | ~^~~~~ a.cc:7:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(s=="a" || s=="i" || s=="u" || s=="e" || s="o"){ | ~^~~~~ a.cc:7:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(s=="a" || s=="i" || s=="u" || s=="e" || s="o"){ | ~^~~~~ a.cc:7:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(s=="a" || s=="i" || s=="u" || s=="e" || s="o"){ | ~^~~~~ a.cc:7:43: error: lvalue required as left operand of assignment 7 | if(s=="a" || s=="i" || s=="u" || s=="e" || s="o"){ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
s718247861
p03852
C++
#include <iostream> #include <algorithm> #include <string> #include <vector> #include <iomanip> using namespace std; int main() { string A; if (A == "a" || A == "i" || A == "u" || A == "e" || A == "o") { cout << "vowel" << endl; } else { cout << "consonant" } }
a.cc: In function 'int main()': a.cc:15:36: error: expected ';' before '}' token 15 | cout << "consonant" | ^ | ; 16 | } | ~
s458192465
p03852
C
#include <stdio.h> int main(void){ char s[2]; scanf("%s",s); if(a[0]=='a'||a[0]=='b'||a[0]=='c'||a[0]=='d'||a[0]=='e'){ printf("vowel"); } else{ printf("consonant"); } return 0; }
main.c: In function 'main': main.c:5:6: error: 'a' undeclared (first use in this function) 5 | if(a[0]=='a'||a[0]=='b'||a[0]=='c'||a[0]=='d'||a[0]=='e'){ | ^ main.c:5:6: note: each undeclared identifier is reported only once for each function it appears in
s373762746
p03852
C++
#include <iostream> using namespace std; int main(){ string s;cin>>s; if(s=='a' or s=='e' or s=='i' or s=='o' or s=='u') cout<<"vowel"<<endl; else cout<<"consonant"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:6:7: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 6 | if(s=='a' or s=='e' or s=='i' or s=='o' or s=='u') cout<<"vowel"<<endl; | ~^~~~~ | | | | | char | std::string {aka std::__cxx11::basic_string<char>} In file included from /usr/include/c++/14/iosfwd:42, from /usr/include/c++/14/ios:40, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/bits/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:6:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>' 6 | if(s=='a' or s=='e' or s=='i' or s=='o' or s=='u') cout<<"vowel"<<endl; | ^~~ In file included from /usr/include/c++/14/string:43, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/include/c++/14/bits/ios_base.h:41, from /usr/include/c++/14/ios:44: /usr/include/c++/14/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:6:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>' 6 | if(s=='a' or s=='e' or s=='i' or s=='o' or s=='u') cout<<"vowel"<<endl; | ^~~ In file included from /usr/include/c++/14/string:48: /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:6:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 6 | if(s=='a' or s=='e' or s=='i' or s=='o' or s=='u') cout<<"vowel"<<endl; | ^~~ /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:6:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 6 | if(s=='a' or s=='e' or s=='i' or s=='o' or s=='u') cout<<"vowel"<<endl; | ^~~ /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:6:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 6 | if(s=='a' or s=='e' or s=='i' or s=='o' or s=='u') cout<<"vowel"<<endl; | ^~~ /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:6:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 6 | if(s=='a' or s=='e' or s=='i' or s=='o' or s=='u') cout<<"vowel"<<endl; | ^~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/string:51: /usr/include/c++/14/bits/stl_pair.h: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:6:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 6 | if(s=='a' or s=='e' or s=='i' or s=='o' or s=='u') cout<<"vowel"<<endl; | ^~~ 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, _Traits> >)' 629 | operator==(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:629:5: note: template argument deduction/substitution failed: a.cc:6:9: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 6 | if(s=='a' or s=='e' or s=='i' or s=='o' or s=='u') cout<<"vowel"<<endl; | ^~~ /usr/include/c++/14/string_view:637:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 637 | operator==(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:637:5: note: template argument deduction/substitution failed: a.cc:6:9: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 6 | if(s=='a' or s=='e' or s=='i' or s=='o' or s=='u') cout<<"vowel"<<endl; | ^~~ /usr/include/c++/14/string_view:644:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)' 644 | operator==(__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:644:5: note: template argument deduction/substitution failed: a.cc:6:9: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'char' 6 | if(s=='a' or s=='e' or s=='i' or s=='o' or s=='u') cout<<"vowel"<<endl; | ^~~ /usr/include/c++/14/bits/basic_string.h:3755:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3755 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3755:5: note: template argument deduction/substitution failed: a.cc:6:9: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'char' 6 | if(s=='a' or s=='e' or s=='i' or s=='o' or s=='u') cout<<"vowel"<<endl; | ^~~ /usr/include/c++/14/bits/basic_string.h:3772:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)' 3772 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3772:5: note: template argument deduction/substitution failed: a.cc:6:9: note: mismatched types 'const _CharT*' and 'char' 6 | if(s=='a' or s=='e' or s=='i' or s=='o' or s=='u') cout<<"vowel"<<endl; | ^~~ /usr/include/c++/14/bits/basic_string.h:3819:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3819 | operator==(const _CharT* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3819:5: note: template argument deduction/substitution failed: a.cc:6:9: note: mismatched types 'const _CharT*' and 'std::__cxx11::basic_string<char>' 6 | if(s=='a' or s=='e' or s=='i' or s=='o' or s=='u') cout<<"vowel"<<endl; | ^~~ In file included from /usr/include/c++/14/bits/memory_resource.h:47, from /usr/include/c++/14/string:68: /usr/include/c++/14/tuple:2558:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator==(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)' 2558 | operator==(const tuple<_TElements...>& __t, | ^~~~~~~~ /usr/include/c++/14/tuple:2558:5: note: template argument deduction/substitution failed: a.cc:6:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::tuple<_UTypes ...>' 6 | if(s=='a' or s=='e' or s=='i' or s=='o' or s=='u') cout<<"vowel"<<endl; | ^~~ In file included from /usr/include/c++/14/bits/locale_facets.h:48, from /usr/include/c++/14/bits/basic_ios.h:37, from /usr/include/c++/14/ios:46: /usr/include/c++/14/bits/streambuf_iterator.h:234:5: note: candidate: 'template<class _CharT, class _Traits> bool std::operator==(const istreambuf_iterator<_CharT, _Traits>&, const istreambuf_iterator<_CharT, _Traits>&)' 234 | operator==(const istreambuf_iterator<_CharT, _Traits>& __a, | ^~~~~~~~ /usr/incl
s643138388
p03852
C
#include<stdio.h> int main() { char a; scanf("%c",&a); int q; int w; int e; init o; if(a=='a'||a=='e'||a=='i'||a=='o'||a=='u') printf("vowel"); else printf("consonant"); return 0; }
main.c: In function 'main': main.c:8:9: error: unknown type name 'init'; did you mean 'int'? 8 | init o; | ^~~~ | int
s871741982
p03852
C++
#include <iostream> #include <array> #include <vector> #include <iomanip> #include <string> #include <cmath> #include <algorithm> #include <queue> #include <map> #include <set> using namespace std; typedef pair<int, int> P; typedef long long LL; const LL INF = 1 << 31; int main() { string a[4] = {"dream", "erase", "dreamer", "eraser"}; string s; cin >> s; reverse(s.begin(), s.end()); for (int i = 0; i < 4; ++i) { reverse(a[i].begin(), a[i].end()); } bool ans = false; LL j = 0; bool aaa = true; while (aaa) { bool ans2 = false; for (int i = 0; i < 4; ++i) { if (i < 2) { string d = s.substr(j, 5); if (d == a[i]) { j += 5; ans2 = true; } continue; } else if (i == 3) { string d = s.substr(j, 6); if (d == a[i]) { j += 6; ans2 = true; } continue; } else { string d = s.substr(i, 7); if (d == a[i]) { j += 7; ans2 = true; } continue; } } LL uuu = s.size(); if (!ans2) { aaa = false; break; } else if (j >= uuu - 1) { ans = true; break; } if (ans) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:81:6: error: expected '}' at end of input 81 | } | ^ a.cc:18:1: note: to match this '{' 18 | { | ^
s278472994
p03852
C++
// ABC049_A #include <iostream> #include <cstdio> #include <string> #include <vector> #include <iterator> // std::back_inserter() #include <tuple> // std::tuple std::get #include <set> #include <map> #include <unordered_map> #include <unordered_set> #include <algorithm> // std::copy() #include <functional> // std::greater<T>() #include <utility> // std::swap() #include <numeric> // accumulate(ALL(vec), 0) 0 は初期値 #include <bitset> // static_cast<std::bitset<8>> #include <sstream> // std::stringstream #include <cmath> #include <climits> // INT_MIN #include <cctype> // std::isdigit() #include <iomanip> // std::setprecision() using namespace std; #define ALL(obj) (obj).begin(), (obj).end() #define REP(i, n) for (ll i=0; i < n; i++) // 0 ~ n-1 #define REPN(i, n) for (ll i=1; i <= n; i++) // 1 ~ n #define MIN(vec) min_element(ALL((vec))) // イテレータのため、値を取り出すときは * を先頭につける #define MAX(vec) max_element(ALL((vec))) #define IDX(vec, element_iter) distance((vec).begin(), element_iter) #define SUM(vec) accumulate(ALL((vec)), 0LL) // 0 は初期値 #define COPY(vec1, vec2) copy(ALL(vec1), back_inserter(vec2)) // vec1をvec2にコピーする vec2は空にしておく必要あり typedef long long ll; const ll MOD7 = 1000000007; // 1 000 000 007 const ll MOD9 = 1000000009; // 1 000 000 009 int main() { cin.tie(0); ios::sync_with_stdio(false); // input char ch; cin >> ch; // calculation if (ch == 'a' || ch == 'e' ||ch == 'i' ||ch == 'o' ||ch == 'u' ||){ cout << "vowel" << "\n"; } else { cout << "consonant" << "\n"; } return 0; }
a.cc: In function 'int main()': a.cc:46:70: error: expected primary-expression before ')' token 46 | if (ch == 'a' || ch == 'e' ||ch == 'i' ||ch == 'o' ||ch == 'u' ||){ | ^