submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s196622340
p03852
C++
C = input() if C == 'a' or C == 'i' or C == 'u' or C == 'e' or C == 'o': print("vowel") else: print("consonant")
a.cc:1:1: error: 'C' does not name a type 1 | C = input() | ^
s674845207
p03852
C++
#include<bits/stdc++.h> using namespace std; int main(){ char c; cin >> c; if(c == 'a' || c == 'e' || c == 'i' || c == 'u' || c == 'o'){ cout << "vowel" << endl; } else{ cout << consonant << endl; } }
a.cc: In function 'int main()': a.cc:11:9: error: 'consonant' was not declared in this scope 11 | cout << consonant << endl; | ^~~~~~~~~
s755398418
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:9: 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:12: 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:12: 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:12: 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:12: 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:12: 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:12: 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:12: 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:12: 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:12: 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:12: 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:12: 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:12: 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:12: 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:12: 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:12: 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:12: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 8 | if (c == 'a'){ | ^~~ /usr/include/c++/14/string_view:637:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basi
s665266065
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string c; cin >> c >> endl; 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:12: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>' and '<unresolved overloaded function type>') 5 | cin >> c >> endl; | ~~~~~~~~~^~~~~~~ In file included 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, from a.cc:1: /usr/include/c++/14/istream:170:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 170 | operator>>(bool& __n) | ^~~~~~~~ /usr/include/c++/14/istream:170:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'bool&' 170 | operator>>(bool& __n) | ~~~~~~^~~ /usr/include/c++/14/istream:174:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]' 174 | operator>>(short& __n); | ^~~~~~~~ /usr/include/c++/14/istream:174:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short int&' 174 | operator>>(short& __n); | ~~~~~~~^~~ /usr/include/c++/14/istream:177:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 177 | operator>>(unsigned short& __n) | ^~~~~~~~ /usr/include/c++/14/istream:177:34: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short unsigned int&' 177 | operator>>(unsigned short& __n) | ~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/istream:181:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]' 181 | operator>>(int& __n); | ^~~~~~~~ /usr/include/c++/14/istream:181:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int&' 181 | operator>>(int& __n); | ~~~~~^~~ /usr/include/c++/14/istream:184:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 184 | operator>>(unsigned int& __n) | ^~~~~~~~ /usr/include/c++/14/istream:184:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'unsigned int&' 184 | operator>>(unsigned int& __n) | ~~~~~~~~~~~~~~^~~ /usr/include/c++/14/istream:188:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 188 | operator>>(long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:188:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int&' 188 | operator>>(long& __n) | ~~~~~~^~~ /usr/include/c++/14/istream:192:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 192 | operator>>(unsigned long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:192:33: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int&' 192 | operator>>(unsigned long& __n) | ~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/istream:199:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 199 | operator>>(long long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:199:29: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int&' 199 | operator>>(long long& __n) | ~~~~~~~~~~~^~~ /usr/include/c++/14/istream:203:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 203 | operator>>(unsigned long long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:203:38: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long unsigned int&' 203 | operator>>(unsigned long long& __n) | ~~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/istream:219:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 219 | operator>>(float& __f) | ^~~~~~~~ /usr/include/c++/14/istream:219:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float&' 219 | operator>>(float& __f) | ~~~~~~~^~~ /usr/include/c++/14/istream:223:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 223 | operator>>(double& __f) | ^~~~~~~~ /usr/include/c++/14/istream:223:26: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'double&' 223 | operator>>(double& __f) | ~~~~~~~~^~~ /usr/include/c++/14/istream:227:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 227 | operator>>(long double& __f) | ^~~~~~~~ /usr/include/c++/14/istream:227:31: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long double&' 227 | operator>>(long double& __f) | ~~~~~~~~~~~~~^~~ /usr/include/c++/14/istream:328:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 328 | operator>>(void*& __p) | ^~~~~~~~ /usr/include/c++/14/istream:328:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'void*&' 328 | operator>>(void*& __p) | ~~~~~~~^~~ /usr/include/c++/14/istream:122:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__istream_type& (*)(__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 122 | operator>>(__istream_type& (*__pf)(__istream_type&)) | ^~~~~~~~ /usr/include/c++/14/istream:122:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&)' {aka 'std::basic_istream<char>& (*)(std::basic_istream<char>&)'} 122 | operator>>(__istream_type& (*__pf)(__istream_type&)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/istream:126:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; __ios_type = std::basic_ios<char>]' 126 | operator>>(__ios_type& (*__pf)(__ios_type&)) | ^~~~~~~~ /usr/include/c++/14/istream:126:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'} 126 | operator>>(__ios_type& (*__pf)(__ios_type&)) | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/c++/14/istream:133:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 133 | operator>>(ios_base& (*__pf)(ios_base&)) | ^~~~~~~~ /usr/include/c++/14/istream:133:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::ios_base& (*)(std::ios_base&)' 133 | operator>>(ios_base& (*__pf)(ios_base&)) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/c++/14/istream:352:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; __streambuf_type = std::basic_streambuf<char>]' 352 | operator>>(__streambuf_type* __sb); | ^~~~~~~~ /usr/include/c++/14/istream:352:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_istream<cha
s654168458
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c >> endl; 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:12: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>' and '<unresolved overloaded function type>') 5 | cin >> c >> endl; | ~~~~~~~~~^~~~~~~ In file included 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, from a.cc:1: /usr/include/c++/14/istream:170:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 170 | operator>>(bool& __n) | ^~~~~~~~ /usr/include/c++/14/istream:170:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'bool&' 170 | operator>>(bool& __n) | ~~~~~~^~~ /usr/include/c++/14/istream:174:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]' 174 | operator>>(short& __n); | ^~~~~~~~ /usr/include/c++/14/istream:174:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short int&' 174 | operator>>(short& __n); | ~~~~~~~^~~ /usr/include/c++/14/istream:177:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 177 | operator>>(unsigned short& __n) | ^~~~~~~~ /usr/include/c++/14/istream:177:34: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short unsigned int&' 177 | operator>>(unsigned short& __n) | ~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/istream:181:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]' 181 | operator>>(int& __n); | ^~~~~~~~ /usr/include/c++/14/istream:181:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int&' 181 | operator>>(int& __n); | ~~~~~^~~ /usr/include/c++/14/istream:184:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 184 | operator>>(unsigned int& __n) | ^~~~~~~~ /usr/include/c++/14/istream:184:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'unsigned int&' 184 | operator>>(unsigned int& __n) | ~~~~~~~~~~~~~~^~~ /usr/include/c++/14/istream:188:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 188 | operator>>(long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:188:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int&' 188 | operator>>(long& __n) | ~~~~~~^~~ /usr/include/c++/14/istream:192:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 192 | operator>>(unsigned long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:192:33: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int&' 192 | operator>>(unsigned long& __n) | ~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/istream:199:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 199 | operator>>(long long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:199:29: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int&' 199 | operator>>(long long& __n) | ~~~~~~~~~~~^~~ /usr/include/c++/14/istream:203:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 203 | operator>>(unsigned long long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:203:38: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long unsigned int&' 203 | operator>>(unsigned long long& __n) | ~~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/istream:219:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 219 | operator>>(float& __f) | ^~~~~~~~ /usr/include/c++/14/istream:219:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float&' 219 | operator>>(float& __f) | ~~~~~~~^~~ /usr/include/c++/14/istream:223:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 223 | operator>>(double& __f) | ^~~~~~~~ /usr/include/c++/14/istream:223:26: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'double&' 223 | operator>>(double& __f) | ~~~~~~~~^~~ /usr/include/c++/14/istream:227:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 227 | operator>>(long double& __f) | ^~~~~~~~ /usr/include/c++/14/istream:227:31: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long double&' 227 | operator>>(long double& __f) | ~~~~~~~~~~~~~^~~ /usr/include/c++/14/istream:328:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 328 | operator>>(void*& __p) | ^~~~~~~~ /usr/include/c++/14/istream:328:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'void*&' 328 | operator>>(void*& __p) | ~~~~~~~^~~ /usr/include/c++/14/istream:122:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__istream_type& (*)(__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 122 | operator>>(__istream_type& (*__pf)(__istream_type&)) | ^~~~~~~~ /usr/include/c++/14/istream:122:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&)' {aka 'std::basic_istream<char>& (*)(std::basic_istream<char>&)'} 122 | operator>>(__istream_type& (*__pf)(__istream_type&)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/istream:126:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; __ios_type = std::basic_ios<char>]' 126 | operator>>(__ios_type& (*__pf)(__ios_type&)) | ^~~~~~~~ /usr/include/c++/14/istream:126:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'} 126 | operator>>(__ios_type& (*__pf)(__ios_type&)) | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/c++/14/istream:133:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 133 | operator>>(ios_base& (*__pf)(ios_base&)) | ^~~~~~~~ /usr/include/c++/14/istream:133:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::ios_base& (*)(std::ios_base&)' 133 | operator>>(ios_base& (*__pf)(ios_base&)) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/c++/14/istream:352:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; __streambuf_type = std::basic_streambuf<char>]' 352 | operator>>(__streambuf_type* __sb); | ^~~~~~~~ /usr/include/c++/14/istream:352:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_istream<cha
s596237324
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\n"; else cout << "consonant\n"; return 0; }
a.cc: In function 'int main()': a.cc:8:66: error: expected primary-expression before ')' token 8 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u' ||) cout << "vowel\n"; | ^
s544149838
p03852
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int N = 1e5; const int INF = 1e9; int main() { char c; cin >> c; char arr = {'a', 'e', 'i', 'o', 'u'}; for (char z : arr) if (c == z) cout << "vowel", exit(0); cout << "consonant"; }
a.cc: In function 'int main()': a.cc:15:10: error: scalar object 'arr' requires one element in initializer 15 | char arr = {'a', 'e', 'i', 'o', 'u'}; | ^~~
s053802753
p03852
C++
#include <iostream> int main(){char S;std::cin>>S;std::cout<<((S=='a'||S=='i'||S =='u'||S=='e'||S=='o')?"vowel":"consonant")<<endl;}
a.cc: In function 'int main()': a.cc:2:107: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 2 | int main(){char S;std::cin>>S;std::cout<<((S=='a'||S=='i'||S =='u'||S=='e'||S=='o')?"vowel":"consonant")<<endl;} | ^~~~ | std::endl In file included from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
s149535696
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c[2]; scanf("%s", s); if (c[0] == 'a' || c[0] == 'e'|| c[0] == 'i'|| c[0] == 'o' || c[0] == 'u') puts("vowel"); else puts("consonant"); return 0; }
a.cc: In function 'int main()': a.cc:7:21: error: 's' was not declared in this scope 7 | scanf("%s", s); | ^
s949314104
p03852
C
#include <stdio.h> int main(void){ char s[1]; scanf("%c",&s); if(s[0]=='a'||s[0]=='e's[0]=='i's[0]=='u's[0]=='o'){printf("vowel");} else{printf("consonant");} return 0; }
main.c: In function 'main': main.c:5:26: error: expected ')' before 's' 5 | if(s[0]=='a'||s[0]=='e's[0]=='i's[0]=='u's[0]=='o'){printf("vowel");} | ~ ^ | )
s573465016
p03852
C++
#include<bits/stdc++.h> using namespace std; char a; int main() { cin>>c; if(c=='a' || c=='e' || c=='i' || c=='o' || c=='u') cout<<"vowel\n"; else cout<<"consonant\n"; return 0; }
a.cc: In function 'int main()': a.cc:6:10: error: 'c' was not declared in this scope 6 | cin>>c; | ^
s519295227
p03852
C++
#include<bits/stdc++.h> using namespace std; char c; int main () { 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:25: error: 'i' was not declared in this scope 8 | if ((c == a) || (c == i) || (c == u) || (c == e) || (c == o)) | ^ a.cc:8:37: error: 'u' was not declared in this scope 8 | if ((c == a) || (c == i) || (c == u) || (c == e) || (c == o)) | ^ a.cc:8:49: error: 'e' was not declared in this scope 8 | if ((c == a) || (c == i) || (c == u) || (c == e) || (c == o)) | ^ a.cc:8:61: error: 'o' was not declared in this scope 8 | if ((c == a) || (c == i) || (c == u) || (c == e) || (c == o)) | ^
s000435947
p03852
C++
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:4:3: error: 'cin' was not declared in this scope 4 | cin >> c; | ^~~ a.cc:6:5: error: 'cout' was not declared in this scope 6 | cout << "vowel"; | ^~~~ a.cc:9:5: error: 'cout' was not declared in this scope 9 | cout << "consonant"; | ^~~~
s476829122
p03852
C++
#include <bits/stdc++.h> using namespace std; char s; int main() { cin>>s; if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u'){ cout<<"vowel\n"; }else cout<<"consonant\n";z return 0; }
a.cc: In function 'int main()': a.cc:9:35: error: 'z' was not declared in this scope 9 | }else cout<<"consonant\n";z | ^
s968675875
p03852
C++
#include<iostream> using namespace std; #include<vector> #include<string> int main(){ sring s = "aioeu"; string c; cin >> c; if(s.find(c) != string::npos){ cout << "consonant" << endl; } else { cout << "vowel" << endl; } }
a.cc: In function 'int main()': a.cc:7:3: error: 'sring' was not declared in this scope 7 | sring s = "aioeu"; | ^~~~~ a.cc:10:6: error: 's' was not declared in this scope 10 | if(s.find(c) != string::npos){ | ^
s080799827
p03852
C++
#include<iostream> using namespace std; #include<vector> #include<string> int main(){ sring s = "aioeu"; string c; cin >> c; if(s.find(c) != npos){ cout << "consonant" << endl; } else { cout << "vowel" << endl; } }
a.cc: In function 'int main()': a.cc:7:3: error: 'sring' was not declared in this scope 7 | sring s = "aioeu"; | ^~~~~ a.cc:10:6: error: 's' was not declared in this scope 10 | if(s.find(c) != npos){ | ^ a.cc:10:19: error: 'npos' was not declared in this scope 10 | if(s.find(c) != npos){ | ^~~~
s523512959
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if(c=='a'||c=='e'||c=='i'||c=='u'||c=='o'){ cout << "vowel" << endl; } else{ cout << "consonant" << endl; }
a.cc: In function 'int main()': a.cc:13:4: error: expected '}' at end of input 13 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s260057228
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c ; char a == 'a'; char e == 'e'; char i == 'i'; char o == 'o'; char u == 'u'; 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:7:10: error: expected initializer before '==' token 7 | char a == 'a'; | ^~ a.cc:8:10: error: expected initializer before '==' token 8 | char e == 'e'; | ^~ a.cc:9:10: error: expected initializer before '==' token 9 | char i == 'i'; | ^~ a.cc:10:10: error: expected initializer before '==' token 10 | char o == 'o'; | ^~ a.cc:11:10: error: expected initializer before '==' token 11 | char u == 'u'; | ^~ a.cc:15:12: error: 'a' was not declared in this scope 15 | if((c == a) || (c == e) || (c == i) || (c == o) || (c == u)){ | ^ a.cc:15:24: error: 'e' was not declared in this scope 15 | if((c == a) || (c == e) || (c == i) || (c == o) || (c == u)){ | ^ a.cc:15:36: error: 'i' was not declared in this scope 15 | if((c == a) || (c == e) || (c == i) || (c == o) || (c == u)){ | ^ a.cc:15:48: error: 'o' was not declared in this scope 15 | if((c == a) || (c == e) || (c == i) || (c == o) || (c == u)){ | ^ a.cc:15:60: error: 'u' was not declared in this scope 15 | if((c == a) || (c == e) || (c == i) || (c == o) || (c == u)){ | ^
s021088962
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string 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:7:12: error: 'a' was not declared in this scope 7 | if((c == a) || (c == e) || (c == i) || (c == o) || (c == u)){ | ^ a.cc:7:24: error: 'e' was not declared in this scope 7 | if((c == a) || (c == e) || (c == i) || (c == o) || (c == u)){ | ^ a.cc:7:36: error: 'i' was not declared in this scope 7 | if((c == a) || (c == e) || (c == i) || (c == o) || (c == u)){ | ^ a.cc:7:48: error: 'o' was not declared in this scope 7 | if((c == a) || (c == e) || (c == i) || (c == o) || (c == u)){ | ^ a.cc:7:60: error: 'u' was not declared in this scope 7 | if((c == a) || (c == e) || (c == i) || (c == o) || (c == u)){ | ^
s746774063
p03852
C++
#include <iostream> #include <cstdlib> #include <algorithm> #include <vector> #include <string> #include <cmath> #include <cassert> #include <functional> #include <string> #include <sstream> #include <cctype> using namespace std; int main(){ vector<char> list = {a, i, u, e, o}; char c; cin >> c; if(find(list.begin(), list.end(), c) == list.end()) cout << "consonant" << endl; else cout << "vowel" << endl; }
a.cc: In function 'int main()': a.cc:16:24: error: 'a' was not declared in this scope 16 | vector<char> list = {a, i, u, e, o}; | ^ a.cc:16:27: error: 'i' was not declared in this scope 16 | vector<char> list = {a, i, u, e, o}; | ^ a.cc:16:30: error: 'u' was not declared in this scope 16 | vector<char> list = {a, i, u, e, o}; | ^ a.cc:16:33: error: 'e' was not declared in this scope 16 | vector<char> list = {a, i, u, e, o}; | ^ a.cc:16:36: error: 'o' was not declared in this scope 16 | vector<char> list = {a, i, u, e, o}; | ^ a.cc:16:37: error: could not convert '{<expression error>, <expression error>, <expression error>, <expression error>, <expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<char>' 16 | vector<char> list = {a, i, u, e, o}; | ^ | | | <brace-enclosed initializer list>
s450107338
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:8:13: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes 8 | cout << 'vowel'<< endl; | ^~~~~~~ a.cc:10:13: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes 10 | cout << 'consonant' << endl; | ^~~~~~~~~~~ a.cc: In function 'int main()': a.cc:7:67: error: expected primary-expression before ')' token 7 | if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o' || ) | ^
s886492920
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { cin >> s cout << "一行目 " << s << endl; cout << "二行目 " << t << endl; }
a.cc: In function 'int main()': a.cc:6:10: error: 's' was not declared in this scope 6 | cin >> s | ^ a.cc:9:24: error: 't' was not declared in this scope; did you mean 'tm'? 9 | cout << "二行目 " << t << endl; | ^ | tm
s874865386
p03852
C++
#include <its/stdc++.h> using Namespace std; int main(){ string str; cin >> str; if(str == "a" || str == "i" || str == "u" || str == "o" || str == "e"){ cout << "vowel" << endl; } else{ cout << "consonant" << endl; } return 0; }
a.cc:1:10: fatal error: its/stdc++.h: No such file or directory 1 | #include <its/stdc++.h> | ^~~~~~~~~~~~~~ compilation terminated.
s102324588
p03852
C++
#include <its/stdc++.h> using Namespace std; int main(){ char chr; cin >> chr; if(chr == 'a' || chr == 'i' || chr == 'u' || chr == 'o' || chr == 'e'){ cout << "vowel" << endl; } else{ cout << "consonant" << endl; } return 0; }
a.cc:1:10: fatal error: its/stdc++.h: No such file or directory 1 | #include <its/stdc++.h> | ^~~~~~~~~~~~~~ compilation terminated.
s118797951
p03852
C++
#include <its/stdc++.h> using Namespace std; int main(){ char chr; cin >> chr; if(chr == 'a' || chr == 'i' || chr == 'u' || chr == 'o' || chr == 'e'){ cout << "vowel" << endl; else{ cout << "consonant" << endl; }} return 0; }
a.cc:1:10: fatal error: its/stdc++.h: No such file or directory 1 | #include <its/stdc++.h> | ^~~~~~~~~~~~~~ compilation terminated.
s022097240
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c; cin >> c; if(c == a || c == o || c == e || c == u || c == i){ cout << 'vowel' << endl; } else cout << 'coonsonant' << endl; }
a.cc:8:13: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes 8 | cout << 'vowel' << endl; | ^~~~~~~ a.cc:10:16: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes 10 | else cout << 'coonsonant' << endl; | ^~~~~~~~~~~~ a.cc: In function 'int main()': a.cc:7:11: error: 'a' was not declared in this scope 7 | if(c == a || c == o || c == e || c == u || c == i){ | ^ a.cc:7:21: error: 'o' was not declared in this scope 7 | if(c == a || c == o || c == e || c == u || c == i){ | ^ a.cc:7:31: error: 'e' was not declared in this scope 7 | if(c == a || c == o || c == e || c == u || c == i){ | ^ a.cc:7:41: error: 'u' was not declared in this scope 7 | if(c == a || c == o || c == e || c == u || c == i){ | ^ a.cc:7:51: error: 'i' was not declared in this scope 7 | if(c == a || c == o || c == e || c == u || c == i){ | ^
s008714650
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s == "a") { cout << "vowel" << endl; } else if (s == "i") { cout << "vowel" << endl; } else if (s == "u") { cout << "vowel" << endl; } else if (s == "e") { cout << "vowel" << endl; } else if (s == "o") { cout << "vowel" << endl; } else { cout << "consonant" << end; } }
a.cc: In function 'int main()': a.cc:23:25: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 23 | cout << "consonant" << end; | ~~~~~~~~~~~~~~~~~~~~^~~~~~ 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, from a.cc:1: /usr/include/c++/14/ostream:116:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ostream_type& (*)(__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 116 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ^~~~~~~~ /usr/include/c++/14/ostream:116:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)' {aka 'std::basic_ostream<char>& (*)(std::basic_ostream<char>&)'} 116 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:125:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; __ios_type = std::basic_ios<char>]' 125 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ^~~~~~~~ /usr/include/c++/14/ostream:125:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'} 125 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:135:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 135 | operator<<(ios_base& (*__pf) (ios_base&)) | ^~~~~~~~ /usr/include/c++/14/ostream:135:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::ios_base& (*)(std::ios_base&)' 135 | operator<<(ios_base& (*__pf) (ios_base&)) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:174:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 174 | operator<<(long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:174:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int' 174 | operator<<(long __n) | ~~~~~^~~ /usr/include/c++/14/ostream:178:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 178 | operator<<(unsigned long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:178:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int' 178 | operator<<(unsigned long __n) | ~~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:182:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 182 | operator<<(bool __n) | ^~~~~~~~ /usr/include/c++/14/ostream:182:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'bool' 182 | operator<<(bool __n) | ~~~~~^~~ In file included from /usr/include/c++/14/ostream:1022: /usr/include/c++/14/bits/ostream.tcc:96:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]' 96 | basic_ostream<_CharT, _Traits>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:97:22: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short int' 97 | operator<<(short __n) | ~~~~~~^~~ /usr/include/c++/14/ostream:189:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 189 | operator<<(unsigned short __n) | ^~~~~~~~ /usr/include/c++/14/ostream:189:33: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short unsigned int' 189 | operator<<(unsigned short __n) | ~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/bits/ostream.tcc:110:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]' 110 | basic_ostream<_CharT, _Traits>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:111:20: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int' 111 | operator<<(int __n) | ~~~~^~~ /usr/include/c++/14/ostream:200:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 200 | operator<<(unsigned int __n) | ^~~~~~~~ /usr/include/c++/14/ostream:200:31: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'unsigned int' 200 | operator<<(unsigned int __n) | ~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:211:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 211 | operator<<(long long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:211:28: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int' 211 | operator<<(long long __n) | ~~~~~~~~~~^~~ /usr/include/c++/14/ostream:215:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 215 | operator<<(unsigned long long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:215:37: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long unsigned int' 215 | operator<<(unsigned long long __n) | ~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:231:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 231 | operator<<(double __f) | ^~~~~~~~ /usr/include/c++/14/ostream:231:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'double' 231 | operator<<(double __f) | ~~~~~~~^~~ /usr/include/c++/14/ostream:235:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 235 | operator<<(float __f) | ^~~~~~~~ /usr/include/c++/14/ostream:235:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float' 235 | operator<<(float __f) | ~~~~~~^~~ /usr/include/c++/14/ostream:243:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 243 | operator<<(long double __f) | ^~~~~~~~ /usr/include/c++/14/ostream:243:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long double' 243 | operator<<(long double __f) | ~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:301:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 301 | operator<<(const void* __p) | ^~~~~~~~ /usr/include/c++/14/ostream:301:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const void*' 301 | operator<<(const void* __p) | ~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:306:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::nullptr_t) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; std::nullptr_t = std::nullptr_
s293837919
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s == "a") { cout << vowel << endl; } else if (s == "i") { cout << vowel << endl; } else if (s == "u") { cout << vowel << endl; } else if (s == "e") { cout << vowel << endl; } else if (s == "o") { cout << vowel << endl; } else { cout << consonant << end; } }
a.cc: In function 'int main()': a.cc:8:13: error: 'vowel' was not declared in this scope 8 | cout << vowel << endl; | ^~~~~ a.cc:11:13: error: 'vowel' was not declared in this scope 11 | cout << vowel << endl; | ^~~~~ a.cc:14:13: error: 'vowel' was not declared in this scope 14 | cout << vowel << endl; | ^~~~~ a.cc:17:13: error: 'vowel' was not declared in this scope 17 | cout << vowel << endl; | ^~~~~ a.cc:20:13: error: 'vowel' was not declared in this scope 20 | cout << vowel << endl; | ^~~~~ a.cc:23:13: error: 'consonant' was not declared in this scope 23 | cout << consonant << end; | ^~~~~~~~~
s047420573
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s.at(1) = "a" || s.at(1) = "e" || s.at(1) = "i" || s.at(1) = "u" || s.at(1) = "o") { cout << "vowel" << endl; } else { cout << "consonant" << end; } }
a.cc: In function 'int main()': a.cc:7:72: error: lvalue required as left operand of assignment 7 | if (s.at(1) = "a" || s.at(1) = "e" || s.at(1) = "i" || s.at(1) = "u" || s.at(1) = "o") { | ~~~~^~~~~~~~~~ a.cc:11:25: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 11 | cout << "consonant" << end; | ~~~~~~~~~~~~~~~~~~~~^~~~~~ 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, from a.cc:1: /usr/include/c++/14/ostream:116:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ostream_type& (*)(__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 116 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ^~~~~~~~ /usr/include/c++/14/ostream:116:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)' {aka 'std::basic_ostream<char>& (*)(std::basic_ostream<char>&)'} 116 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:125:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; __ios_type = std::basic_ios<char>]' 125 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ^~~~~~~~ /usr/include/c++/14/ostream:125:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'} 125 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:135:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 135 | operator<<(ios_base& (*__pf) (ios_base&)) | ^~~~~~~~ /usr/include/c++/14/ostream:135:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::ios_base& (*)(std::ios_base&)' 135 | operator<<(ios_base& (*__pf) (ios_base&)) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:174:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 174 | operator<<(long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:174:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int' 174 | operator<<(long __n) | ~~~~~^~~ /usr/include/c++/14/ostream:178:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 178 | operator<<(unsigned long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:178:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int' 178 | operator<<(unsigned long __n) | ~~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:182:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 182 | operator<<(bool __n) | ^~~~~~~~ /usr/include/c++/14/ostream:182:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'bool' 182 | operator<<(bool __n) | ~~~~~^~~ In file included from /usr/include/c++/14/ostream:1022: /usr/include/c++/14/bits/ostream.tcc:96:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]' 96 | basic_ostream<_CharT, _Traits>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:97:22: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short int' 97 | operator<<(short __n) | ~~~~~~^~~ /usr/include/c++/14/ostream:189:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 189 | operator<<(unsigned short __n) | ^~~~~~~~ /usr/include/c++/14/ostream:189:33: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short unsigned int' 189 | operator<<(unsigned short __n) | ~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/bits/ostream.tcc:110:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]' 110 | basic_ostream<_CharT, _Traits>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:111:20: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int' 111 | operator<<(int __n) | ~~~~^~~ /usr/include/c++/14/ostream:200:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 200 | operator<<(unsigned int __n) | ^~~~~~~~ /usr/include/c++/14/ostream:200:31: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'unsigned int' 200 | operator<<(unsigned int __n) | ~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:211:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 211 | operator<<(long long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:211:28: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int' 211 | operator<<(long long __n) | ~~~~~~~~~~^~~ /usr/include/c++/14/ostream:215:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 215 | operator<<(unsigned long long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:215:37: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long unsigned int' 215 | operator<<(unsigned long long __n) | ~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:231:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 231 | operator<<(double __f) | ^~~~~~~~ /usr/include/c++/14/ostream:231:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'double' 231 | operator<<(double __f) | ~~~~~~~^~~ /usr/include/c++/14/ostream:235:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 235 | operator<<(float __f) | ^~~~~~~~ /usr/include/c++/14/ostream:235:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float' 235 | operator<<(float __f) | ~~~~~~^~~ /usr/include/c++/14/ostream:243:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 243 | operator<<(long double __f) | ^~~~~~~~ /usr/include/c++/14/ostream:243:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long double' 243 | operator<<(long double __f) | ~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:301:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 301 | operator<<(const void* __p) | ^~~~~~~~ /usr/include/c++/14/ostream:301:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const void*' 301 | operator<<(const void* __p) | ~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:306:7: note: cand
s322014830
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s.at(1) = "a" || s.at(1) = "e" || s.at(1) = "i" || s.at(1) = "u" || s.at(1) = "o") { cout << vowel << endl; } else { cout << consonant << end; } }
a.cc: In function 'int main()': a.cc:7:72: error: lvalue required as left operand of assignment 7 | if (s.at(1) = "a" || s.at(1) = "e" || s.at(1) = "i" || s.at(1) = "u" || s.at(1) = "o") { | ~~~~^~~~~~~~~~ a.cc:8:13: error: 'vowel' was not declared in this scope 8 | cout << vowel << endl; | ^~~~~ a.cc:11:13: error: 'consonant' was not declared in this scope 11 | cout << consonant << end; | ^~~~~~~~~
s762799461
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s = "a" || s = "e" || s = "i" || s = "u" || s = "o") { cout << vowel << endl; } else { cout << consonant << end; } }
a.cc: In function 'int main()': a.cc:7:15: error: no match for 'operator||' (operand types are 'const char [2]' and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 7 | if (s = "a" || s = "e" || s = "i" || s = "u" || s = "o") { | ~~~ ^~ ~ | | | | | std::string {aka std::__cxx11::basic_string<char>} | const char [2] a.cc:7:15: note: candidate: 'operator||(bool, bool)' (built-in) 7 | if (s = "a" || s = "e" || s = "i" || s = "u" || s = "o") { | ~~~~^~~~ a.cc:7:15: 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:18: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'const char [2]' 7 | if (s = "a" || s = "e" || s = "i" || s = "u" || 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:18: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'const char [2]' 7 | if (s = "a" || s = "e" || s = "i" || s = "u" || 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:18: 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 = "e" || s = "i" || s = "u" || 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:18: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'const char [2]' 7 | if (s = "a" || s = "e" || s = "i" || s = "u" || 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:18: 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 = "e" || s = "i" || s = "u" || 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:18: note: mismatched types 'const std::valarray<_Tp>' and 'const char [2]' 7 | if (s = "a" || s = "e" || s = "i" || s = "u" || 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:18: note: mismatched types 'const std::valarray<_Tp>' and 'const char [2]' 7 | if (s = "a" || s = "e" || s = "i" || s = "u" || 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:18: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::valarray<_Tp>' 7 | if (s = "a" || s = "e" || s = "i" || s = "u" || s = "o") { | ^ a.cc:7:26: error: no match for 'operator||' (operand types are 'const char [2]' and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 7 | if (s = "a" || s = "e" || s = "i" || s = "u" || s = "o") { | ~~~ ^~ ~ | | | | | std::string {aka std::__cxx11::basic_string<char>} | const char [2] a.cc:7:26: note: candidate: 'operator||(bool, bool)' (built-in) 7 | if (s = "a" || s = "e" || s = "i" || s = "u" || s = "o") { | ~~~~^~~~ a.cc:7:26: 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:29: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'const char [2]' 7 | if (s = "a" || s = "e" || s = "i" || s = "u" || 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:29: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'const char [2]' 7 | if (s = "a" || s = "e" || s = "i" || s = "u" || 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:29: 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 = "e" || s = "i" || s = "u" || s = "o") { | ^ /u
s951442427
p03852
C++
#include <bits/stdc++.h> #define r(i,n) for(int i = 0; i<n; i++) using namespace std; int main() { char c; cin >> c; if(c=='a'||c=='e'||c=='i'||c=='o'||=='u') cout << "vowel" << endl; else cout<< "consonant" << endl; }
a.cc: In function 'int main()': a.cc:8:38: error: expected primary-expression before '==' token 8 | if(c=='a'||c=='e'||c=='i'||c=='o'||=='u') cout << "vowel" << endl; | ^~
s724582968
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:13: error: 'vowel' was not declared in this scope 9 | cout << vowel << endl; | ^~~~~ a.cc:12:13: error: 'consonant' was not declared in this scope 12 | cout << consonant << endl; | ^~~~~~~~~
s374609102
p03852
C++
#include <iostream> using namespace std; int main(void){ // Your code here! char c; if(c == 'a' || c == 'e' || c == 'i' || c == 'u' || c == 'o' || ){ cout << "vowel" << endl; }else{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:6:68: error: expected primary-expression before ')' token 6 | if(c == 'a' || c == 'e' || c == 'i' || c == 'u' || c == 'o' || ){ | ^
s412506963
p03852
C++
#includee<iostream> using namespace std; int main() { char a; cin>>a; if(a=='a'||a=='e'||a=='i'||a=='o'||a=='u') cout<<"vowel"; else cout<<"consonant"; return 0; }
a.cc:1:2: error: invalid preprocessing directive #includee; did you mean #include? 1 | #includee<iostream> | ^~~~~~~~ | include a.cc: In function 'int main()': a.cc:6:9: error: 'cin' was not declared in this scope 6 | cin>>a; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | #includee<iostream> a.cc:8:9: error: 'cout' was not declared in this scope 8 | cout<<"vowel"; | ^~~~ a.cc:8:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:9:14: error: 'cout' was not declared in this scope 9 | else cout<<"consonant"; | ^~~~ a.cc:9:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
s014285523
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:7:48: error: lvalue required as left operand of assignment 7 | if (c = 'a' || c = 'e' || c = 'I' || c = 'o' || c = 'u') { | ~~~~^~~~
s372943502
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:8:12: error: empty character constant 8 | cout << ''vowel" << endl; | ^~~~~~~ a.cc:8:19: warning: missing terminating " character 8 | cout << ''vowel" << endl; | ^ a.cc:8:19: error: missing terminating " character 8 | cout << ''vowel" << endl; | ^~~~~~~~~~ a.cc: In function 'int main()': a.cc:7:48: error: lvalue required as left operand of assignment 7 | if (c = 'a' || c = 'e' || c = 'I' || c = 'o' || c = 'u') { | ~~~~^~~~ a.cc:8:12: error: unable to find character literal operator 'operator""vowel' with 'char' argument 8 | cout << ''vowel" << endl; | ^~~~~~~
s489680445
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 << '' } }
a.cc:8:11: error: empty character constant 8 | cout << '' | ^~ a.cc: In function 'int main()': a.cc:7:48: error: lvalue required as left operand of assignment 7 | if (c = 'a' || c = 'e' || c = 'I' || c = 'o' || c = 'u') { | ~~~~^~~~ a.cc:8:13: error: expected ';' before '}' token 8 | cout << '' | ^ | ; 9 | } | ~
s411887954
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:8:12: error: empty character constant 8 | cout << ''vowel" << endl; | ^~~~~~~ a.cc:8:19: warning: missing terminating " character 8 | cout << ''vowel" << endl; | ^ a.cc:8:19: error: missing terminating " character 8 | cout << ''vowel" << endl; | ^~~~~~~~~~ a.cc: In function 'int main()': a.cc:7:48: error: lvalue required as left operand of assignment 7 | if (c = 'a' || c = 'e' || c = 'I' || c = 'o' || c = 'u') { | ~~~~^~~~ a.cc:8:12: error: unable to find character literal operator 'operator""vowel' with 'char' argument 8 | cout << ''vowel" << endl; | ^~~~~~~ a.cc:12:2: error: expected '}' at end of input 12 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s837436260
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char a; cin >> a; if(a == 'a' || a == 'b' || a == 'c' || a == 'd' || a == 'e' ){ cout << vowel << endl; }else{ cout << dhwuiahi << endl; } }
a.cc: In function 'int main()': a.cc:8:13: error: 'vowel' was not declared in this scope 8 | cout << vowel << endl; | ^~~~~ a.cc:10:13: error: 'dhwuiahi' was not declared in this scope 10 | cout << dhwuiahi << endl; | ^~~~~~~~
s163988423
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string input; cin >> input; if ( input=='a' || input == 'i' || input == 'u' || input=='e' || input == 'o' ) { cout << "vowel" << endl; } else { cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:7:13: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 7 | if ( input=='a' || input == 'i' || input == 'u' || input=='e' || input == '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:15: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | if ( input=='a' || input == 'i' || input == 'u' || input=='e' || input == '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:15: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 7 | if ( input=='a' || input == 'i' || input == 'u' || input=='e' || input == '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:15: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | if ( input=='a' || input == 'i' || input == 'u' || input=='e' || input == '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:15: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 7 | if ( input=='a' || input == 'i' || input == 'u' || input=='e' || input == '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:15: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | if ( input=='a' || input == 'i' || input == 'u' || input=='e' || input == '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:15: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 7 | if ( input=='a' || input == 'i' || input == 'u' || input=='e' || input == '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:15: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | if ( input=='a' || input == 'i' || input == 'u' || input=='e' || input == '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:15: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>' 7 | if ( input=='a' || input == 'i' || input == 'u' || input=='e' || input == '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:15: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 7 | if ( input=='a' || input == 'i' || input == 'u' || input=='e' || input == '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:15: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 7 | if ( input=='a' || input == 'i' || input == 'u' || input=='e' || input == '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:15: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 7 | if ( input=='a' || input == 'i' || input == 'u' || input=='e' || input == '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:15: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 7 | if ( input=='a' || input == 'i' || input == 'u' || input=='e' || input == '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:15: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 7 | if ( input=='a' || input == 'i' || input == 'u' || input=='e' || input == '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:15: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>' 7 | if ( input=='a' || input == 'i' || input == 'u' || input=='e' || input == '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/all
s270694104
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string input; cin >> input; if (input=='a' || input == 'i' || input == 'u' || input=='e' || input == 'o' ) { cout << "vowel" << endl; } else { cout << ''consonant" << endl; } }
a.cc:10:13: error: empty character constant 10 | cout << ''consonant" << endl; | ^~~~~~~~~~~ a.cc:10:24: warning: missing terminating " character 10 | cout << ''consonant" << endl; | ^ a.cc:10:24: error: missing terminating " character 10 | cout << ''consonant" << endl; | ^~~~~~~~~~ a.cc: In function 'int main()': a.cc:7:12: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 7 | if (input=='a' || input == 'i' || input == 'u' || input=='e' || input == '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 (input=='a' || input == 'i' || input == 'u' || input=='e' || input == '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 (input=='a' || input == 'i' || input == 'u' || input=='e' || input == '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 (input=='a' || input == 'i' || input == 'u' || input=='e' || input == '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 (input=='a' || input == 'i' || input == 'u' || input=='e' || input == '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 (input=='a' || input == 'i' || input == 'u' || input=='e' || input == '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 (input=='a' || input == 'i' || input == 'u' || input=='e' || input == '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 (input=='a' || input == 'i' || input == 'u' || input=='e' || input == '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 (input=='a' || input == 'i' || input == 'u' || input=='e' || input == '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 (input=='a' || input == 'i' || input == 'u' || input=='e' || input == '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 (input=='a' || input == 'i' || input == 'u' || input=='e' || input == '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 (input=='a' || input == 'i' || input == 'u' || input=='e' || input == '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 (input=='a' || input == 'i' || input == 'u' || input=='e' || input == '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 (input=='a' || input == 'i' || input == 'u' || input=='e' || input == '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 (input=='a' || input == 'i' || input == 'u' || input=='e' || input == 'o' )
s052963604
p03852
C++
#include <iostream> #include <numeric> #include <math.h> #include <algorithm> #include <float.h> #include <limits> #include <vector> #include <string.h> #define rep(i,a,n) for(ll int (i) = (a);(i) < (n);(i)++) #define urep(i,a,n) for(ll int (i) = (a);(i) > (n);(i)--) #define MOD 1000000007 #define ll long long #define asort(a) sort(a.begin(),a.end()); using namespace::std; int jo(ll int jxo, ll int jyo){//累乗 ll int jhogeo = 1; rep(jinto,0,jyo) jhogeo=jhogeo*jxo; return jhogeo; } char tobig(char toxbig){//char大文字化 return (toxbig-0x20); } char tolow(char toxlow){//char小文字化 return (toxlow+0x20); } int ctoi(char cctoi){//char->int if('0' <= cctoi && cctoi <= '9') return (cctoi-'0'); return -1; } int gcd(int gcad, int gcbd) {//最大公約数 if(gcad < gcbd) return gcd(gcbd, gcad); int gcrd; while ((gcrd=gcad%gcbd)) { gcad = gcbd; gcbd = gcrd; } return gcbd; } int lcm(int lcam, int lcbm){//最小公倍数 return (lcam*lcbm)/gcd(lcam,lcbm); } int main(){ char c[5] = {'a','e','i','o','u'} char p; cin>>p; int ans=0; rep(i,0,5){ if(p==c[i]) ans++; } cout<<(ans?"vowel":"consonant"); } // int *p = new int[N]; // vector<int> 変数名(要素数); // sort(変数名.begin(),変数名.end());//昇順ソート // vector<vector<int>> 変数名(左の個数, vector<int>(右の個数)); //
a.cc: In function 'int main()': a.cc:49:3: error: expected ',' or ';' before 'char' 49 | char p; | ^~~~ a.cc:50:8: error: 'p' was not declared in this scope 50 | cin>>p; | ^
s652340182
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:52: error: lvalue required as left operand of assignment 7 | if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c = 'o' ){ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
s551589535
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:9:68: error: expected primary-expression before ')' token 9 | if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o' ||) | ^
s536712237
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:8:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if (a == "a" || a == "i" || a == "u" || a == "e" || a == "o") | ~~^~~~~~ a.cc:8:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if (a == "a" || a == "i" || a == "u" || a == "e" || a == "o") | ~~^~~~~~ a.cc:8:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if (a == "a" || a == "i" || a == "u" || a == "e" || a == "o") | ~~^~~~~~ a.cc:8:45: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if (a == "a" || a == "i" || a == "u" || a == "e" || a == "o") | ~~^~~~~~ a.cc:8:57: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if (a == "a" || a == "i" || a == "u" || a == "e" || a == "o") | ~~^~~~~~
s401603417
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char r; cin >> r >> ; if (r=='a' || r=='e'|| r=='u' || r=='i' || r=='o'){ cout << 'v' << endl; } else { cout << 'c' << endl; } }
a.cc: In function 'int main()': a.cc:6:15: error: expected primary-expression before ';' token 6 | cin >> r >> ; | ^
s893874599
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char r; cin >> r >> ; if (r=='a' || r=='e'|| r=='u' || r=='i' || r=='o'){ cout << 'v' << endl; } else { cout << 'c' << endl; } }
a.cc: In function 'int main()': a.cc:6:15: error: expected primary-expression before ';' token 6 | cin >> r >> ; | ^
s486729786
p03852
C++
def yes puts "vowel" exit end def no puts "consonant" exit end c = gets boin = "aiueo" boin.each_char do |b| if c[0] == b yes() end end no()
a.cc:1:1: error: 'def' does not name a type 1 | def yes | ^~~
s126655972
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char A; cin>>A; if(A=='a'){ cout<<"vowel"<<endl; } ifelse(A=='i'){ cout<<"vowel"<<endl; } ifelse(A=='u'){ cout<<"vowel"<<endl; } ifelse(A=='e'){ cout<<"vowel"<<endl; } ifelse(A=='o'){ cout<<"vowel"<<endl; } else{ cout<<"consonant"<<endl; } }
a.cc: In function 'int main()': a.cc:9:1: error: 'ifelse' was not declared in this scope; did you mean 'sigrelse'? 9 | ifelse(A=='i'){ | ^~~~~~ | sigrelse a.cc:21:1: error: 'else' without a previous 'if' 21 | else{ | ^~~~
s725747444
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char A; cin>>A; if(A=='a'){ cout<<"vowel"<<endl; } if else(A=='i'){ cout<<"vowel"<<endl; } if else(A=='u'){ cout<<"vowel"<<endl; } if else(A=='e'){ cout<<"vowel"<<endl; } if else(A=='o'){ cout<<"vowel"<<endl; } else{ cout<<"consonant"<<endl; } }
a.cc: In function 'int main()': a.cc:9:4: error: expected '(' before 'else' 9 | if else(A=='i'){ | ^~~~ | ( a.cc:12:4: error: expected '(' before 'else' 12 | if else(A=='u'){ | ^~~~ | ( a.cc:15:4: error: expected '(' before 'else' 15 | if else(A=='e'){ | ^~~~ | ( a.cc:18:4: error: expected '(' before 'else' 18 | if else(A=='o'){ | ^~~~ | ( a.cc:21:1: error: 'else' without a previous 'if' 21 | else{ | ^~~~
s821283613
p03852
C++
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u') cout << "vowel" <<endl; else cout << "consonant" <<endl; }
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'||s=='e'||s=='i'||s=='o'||s=='u') | ~^~~~~ | | | | | 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:6:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 6 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u') | ^~~ /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:6:9: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 6 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u') | ^~~ /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:6:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 6 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u') | ^~~ /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:6:9: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 6 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u') | ^~~ /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:6:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 6 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u') | ^~~ /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:6:9: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 6 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u') | ^~~ /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:6:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 6 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u') | ^~~ /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:6:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>' 6 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u') | ^~~ 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:6:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 6 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u') | ^~~ 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:6:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 6 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u') | ^~~ /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'||s=='e'||s=='i'||s=='o'||s=='u') | ^~~ /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'||s=='e'||s=='i'||s=='o'||s=='u') | ^~~ /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'||s=='e'||s=='i'||s=='o'||s=='u') | ^~~ 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:6:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>' 6 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u') | ^~~ 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:6:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>' 6 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u') | ^~~ 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
s355835385
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:4: error: expected '}' at end of input 12 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s208645864
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:8:10: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 8 | 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:8:13: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 8 | 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:8:13: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 8 | 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:8:13: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>' 8 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){ | ^~~ In file
s198541289
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:8:10: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 8 | 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:8:13: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 8 | 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:8:13: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 8 | 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:8:13: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>' 8 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){ | ^~~ In file
s430607347
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:8:10: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 8 | 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:8:13: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 8 | 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:8:13: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 8 | 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:8:13: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>' 8 | 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:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>' 8 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){ | ^~~ In file
s281918876
p03852
C++
#include<bits/stdc++.h> #define rep(i, n) for(int i = 0; i < n; i++) using namespace std; typedef long long ll; using Graph =vector<int>; typedef pair<ll,int> P; const ll MAX_N=131072; int bit[MAX_N*2-1]; ll n; int main(){ string s; cin >>s; if(s=="a"||s=="e"||s=="i"||s=="o"||s=="u") cout <<"vowel"<<end; else cout <<"consonant"<<endl; }
a.cc: In function 'int main()': a.cc:15:60: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 15 | if(s=="a"||s=="e"||s=="i"||s=="o"||s=="u") cout <<"vowel"<<end; | ~~~~~~~~~~~~~~^~~~~ 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, from a.cc:1: /usr/include/c++/14/ostream:116:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ostream_type& (*)(__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 116 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ^~~~~~~~ /usr/include/c++/14/ostream:116:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)' {aka 'std::basic_ostream<char>& (*)(std::basic_ostream<char>&)'} 116 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:125:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; __ios_type = std::basic_ios<char>]' 125 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ^~~~~~~~ /usr/include/c++/14/ostream:125:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'} 125 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:135:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 135 | operator<<(ios_base& (*__pf) (ios_base&)) | ^~~~~~~~ /usr/include/c++/14/ostream:135:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::ios_base& (*)(std::ios_base&)' 135 | operator<<(ios_base& (*__pf) (ios_base&)) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:174:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 174 | operator<<(long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:174:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int' 174 | operator<<(long __n) | ~~~~~^~~ /usr/include/c++/14/ostream:178:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 178 | operator<<(unsigned long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:178:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int' 178 | operator<<(unsigned long __n) | ~~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:182:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 182 | operator<<(bool __n) | ^~~~~~~~ /usr/include/c++/14/ostream:182:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'bool' 182 | operator<<(bool __n) | ~~~~~^~~ In file included from /usr/include/c++/14/ostream:1022: /usr/include/c++/14/bits/ostream.tcc:96:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]' 96 | basic_ostream<_CharT, _Traits>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:97:22: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short int' 97 | operator<<(short __n) | ~~~~~~^~~ /usr/include/c++/14/ostream:189:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 189 | operator<<(unsigned short __n) | ^~~~~~~~ /usr/include/c++/14/ostream:189:33: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short unsigned int' 189 | operator<<(unsigned short __n) | ~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/bits/ostream.tcc:110:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]' 110 | basic_ostream<_CharT, _Traits>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:111:20: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int' 111 | operator<<(int __n) | ~~~~^~~ /usr/include/c++/14/ostream:200:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 200 | operator<<(unsigned int __n) | ^~~~~~~~ /usr/include/c++/14/ostream:200:31: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'unsigned int' 200 | operator<<(unsigned int __n) | ~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:211:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 211 | operator<<(long long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:211:28: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int' 211 | operator<<(long long __n) | ~~~~~~~~~~^~~ /usr/include/c++/14/ostream:215:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 215 | operator<<(unsigned long long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:215:37: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long unsigned int' 215 | operator<<(unsigned long long __n) | ~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:231:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 231 | operator<<(double __f) | ^~~~~~~~ /usr/include/c++/14/ostream:231:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'double' 231 | operator<<(double __f) | ~~~~~~~^~~ /usr/include/c++/14/ostream:235:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 235 | operator<<(float __f) | ^~~~~~~~ /usr/include/c++/14/ostream:235:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float' 235 | operator<<(float __f) | ~~~~~~^~~ /usr/include/c++/14/ostream:243:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 243 | operator<<(long double __f) | ^~~~~~~~ /usr/include/c++/14/ostream:243:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long double' 243 | operator<<(long double __f) | ~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:301:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 301 | operator<<(const void* __p) | ^~~~~~~~ /usr/include/c++/14/ostream:301:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const void*' 301 | operator<<(const void* __p) | ~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:306:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::nullptr_t) [with _CharT = char; _Traits = std::char_traits<char>; __ost
s456383716
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ string c; cin>>c; regex re("[aouie]"); cout<<(regex_match(c,re)?"vowel":"consonant")<<endl return 0; }
a.cc: In function 'int main()': a.cc:8:54: error: expected ';' before 'return' 8 | cout<<(regex_match(c,re)?"vowel":"consonant")<<endl | ^ | ; 9 | return 0; | ~~~~~~
s401669493
p03852
Java
public class Main{public static void main(String[] args){Scanner sc=new Scanner(System.in);System.out.println(sc.next().matches("[aiueo]")?"vowel":"consonant");}}
Main.java:1: error: cannot find symbol public class Main{public static void main(String[] args){Scanner sc=new Scanner(System.in);System.out.println(sc.next().matches("[aiueo]")?"vowel":"consonant");}} ^ symbol: class Scanner location: class Main Main.java:1: error: cannot find symbol public class Main{public static void main(String[] args){Scanner sc=new Scanner(System.in);System.out.println(sc.next().matches("[aiueo]")?"vowel":"consonant");}} ^ symbol: class Scanner location: class Main 2 errors
s672467479
p03852
C++
#include<vector> #include<string> #include<algorithm> #include<cmath> #include<cstdlib> #include<tuple> #define int long using namespace std; signed 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:12:9: error: 'cin' was not declared in this scope 12 | cin >> A; | ^~~ a.cc:6:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 5 | #include<cstdlib> +++ |+#include <iostream> 6 | #include<tuple> a.cc:14:17: error: 'cout' was not declared in this scope 14 | cout << "vowel" << endl; | ^~~~ a.cc:14:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:14:36: error: 'endl' was not declared in this scope 14 | cout << "vowel" << endl; | ^~~~ a.cc:6:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>' 5 | #include<cstdlib> +++ |+#include <ostream> 6 | #include<tuple> a.cc:17:17: error: 'cout' was not declared in this scope 17 | cout << "consonant" << endl; | ^~~~ a.cc:17:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:17:40: error: 'endl' was not declared in this scope 17 | cout << "consonant" << endl; | ^~~~ a.cc:17:40: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
s102142731
p03852
C++
#include <iostream> #include <string> #include <vector> using namespace std; #define REP(i, n) for(int i=0; i<(n); i++) #define FOR(i, a, n) for(int i=0; i<(n); i++) int main(){ char s;cin >> s; char ans = s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o' ? "vowel" : "consonant"; cout << ans << endl; return 0; }
a.cc: In function 'int main()': a.cc:10:77: error: invalid conversion from 'const char*' to 'char' [-fpermissive] 10 | char ans = s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o' ? "vowel" : "consonant"; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ | | | const char*
s237598849
p03852
C++
#include <iostream> #include <string> #include <vector> using namespace std; #define REP(i, n) for(int i=0; i<(n); i++) #define FOR(i, a, n) for(int i=0; i<(n); i++) int main(){ string s;cin >> s; string ans = s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o' ? "vowel" : "consonant"; cout << ans << endl; return 0; }
a.cc: In function 'int main()': a.cc:10:24: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 10 | string ans = s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o' ? "vowel" : "consonant"; | ~ ^~ ~~~ | | | | | 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:10:27: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>' 10 | string ans = s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o' ? "vowel" : "consonant"; | ^~~ 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:10:27: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>' 10 | string ans = s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o' ? "vowel" : "consonant"; | ^~~ 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:10:27: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 10 | string ans = s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o' ? "vowel" : "consonant"; | ^~~ /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:10:27: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 10 | string ans = s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o' ? "vowel" : "consonant"; | ^~~ /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:10:27: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 10 | string ans = s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o' ? "vowel" : "consonant"; | ^~~ /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:10:27: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 10 | string ans = s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o' ? "vowel" : "consonant"; | ^~~ 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:10:27: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 10 | string ans = s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o' ? "vowel" : "consonant"; | ^~~ 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:10:27: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 10 | string ans = s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o' ? "vowel" : "consonant"; | ^~~ /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:10:27: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 10 | string ans = s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o' ? "vowel" : "consonant"; | ^~~ /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:10:27: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'char' 10 | string ans = s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o' ? "vowel" : "consonant"; | ^~~ /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:10:27: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'char' 10 | string ans = s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o' ? "vowel" : "consonant"; | ^~~ /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:10:27: note: mismatched types 'const _CharT*' and 'char' 10 | string ans = s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o' ? "vowel" : "consonant"; | ^~~ /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:10:27: note: mismatched types 'const _CharT*' and 'std::__cxx11::basic_string<char>' 10 | string ans = s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o' ? "vowel" : "consonant"; | ^~~ 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
s923201896
p03852
Java
public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); // String c = sc.nextLine(); if (c.equals("a")) { System.out.println("vowel"); } else if (c.equals("i")) { System.out.println("vowel"); } else if (c.equals("u")) { System.out.println("vowel"); } else if (c.equals("e")) { System.out.println("vowel"); } else if (c.equals("o")) { System.out.println("vowel"); } else { System.out.println("consonant"); } } }
Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); // ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); // ^ symbol: class Scanner location: class Main 2 errors
s561973203
p03852
Java
public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); // String c = scan.nextLine(); if (c.equals("a")) { System.out.println("vowel"); } else if (c.equals("i")) { System.out.println("vowel"); } else if (c.equals("u")) { System.out.println("vowel"); } else if (c.equals("e")) { System.out.println("vowel"); } else if (c.equals("o")) { System.out.println("vowel"); } else { System.out.println("consonant"); } } }
Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); // ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); // ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol String c = scan.nextLine(); ^ symbol: variable scan location: class Main 3 errors
s685599301
p03852
Java
public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); // String c = sc.nextLine(); // String a = "a"; String e = "e"; String i = "i"; String o = "o"; String u = "u"; if(c == a || c == e || c == i || c == o || c == u){ System.out.println("vowel"); } else{ System.out.println("consonant"); } } }
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); // ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); // ^ symbol: class Scanner location: class Main 2 errors
s842825006
p03852
Java
public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); // String c = sc.nextString(); // String a = "a"; String e = "e"; String i = "i"; String o = "o"; String u = "u"; if(c == a || c == e || c == i || c == o || c == u){ System.out.println("vowel"); } else{ System.out.println("consonant"); } } }
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); // ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); // ^ symbol: class Scanner location: class Main 2 errors
s198623055
p03852
Java
public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); // String c = sc.next(); // String a = "a"; String e = "e"; String i = "i"; String o = "o"; String u = "u"; if(c == a || c == e || c == i || c == o || c == u){ System.out.println("vowel"); } else{ System.out.println("consonant"); } } }
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); // ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); // ^ symbol: class Scanner location: class Main 2 errors
s126947044
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"; }else{ cout <<"consonant" } }
a.cc: In function 'int main()': a.cc:10:23: error: expected ';' before '}' token 10 | cout <<"consonant" | ^ | ; 11 | } | ~
s423287899
p03852
C++
#include<cstdio> int main(){ char c; scanf("%s", c); if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o") printf("vowel"); else printf("consonant"); return 0; }
a.cc: In function 'int main()': a.cc:6:7: 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:17: 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:27: 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:37: 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:47: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 6 | if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o") | ~^~~~~
s757709997
p03852
C++
#include<cstdio> int main(){ char c; scanf("%c", c); if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o") printf("vowel"); else printf("consonant"); return 0; }
a.cc: In function 'int main()': a.cc:6:7: 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:17: 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:27: 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:37: 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:47: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 6 | if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o") | ~^~~~~
s320280956
p03852
C++
#include <bits/stdc++.h> using namespace std; int main( ) { char C; cin >> C; if(char C == 'a' 'i' 'u' 'e' 'o' ) { cout << "vowel" << endl; } else { cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:9:15: error: expected initializer before '==' token 9 | if(char C == 'a' 'i' 'u' 'e' 'o' ) { | ^~ a.cc:9:14: error: expected ')' before '==' token 9 | if(char C == 'a' 'i' 'u' 'e' 'o' ) { | ~ ^~~ | )
s316493261
p03852
C++
#include<bits/stdc++.h> using namespace std; int main{ string c, d; cin>>c; if(c=="a"||c=="i"||c=="u"||c=="e"||c=="o") d="vowel"; else d="consonant"; cout<<d<<endl; }
a.cc:3:5: error: cannot declare '::main' to be a global variable 3 | int main{ | ^~~~ a.cc:4:10: error: expected primary-expression before 'c' 4 | string c, d; | ^ a.cc:4:10: error: expected '}' before 'c' a.cc:3:9: note: to match this '{' 3 | int main{ | ^ a.cc:5:3: error: 'cin' does not name a type 5 | cin>>c; | ^~~ a.cc:6:3: error: expected unqualified-id before 'if' 6 | if(c=="a"||c=="i"||c=="u"||c=="e"||c=="o") | ^~ a.cc:8:3: error: expected unqualified-id before 'else' 8 | else d="consonant"; | ^~~~ a.cc:9:3: error: 'cout' does not name a type 9 | cout<<d<<endl; | ^~~~ a.cc:10:1: error: expected declaration before '}' token 10 | } | ^
s389259783
p03852
C++
#include<bits/stdc++.h> using namespace std; int main{ char c; string d; cin>>c; if(c=='a'|c=='i'|c=='u'|c=='e'|c=='o') d="vowel"; else d="consonant"; cout<<d<<endl; }
a.cc:3:5: error: cannot declare '::main' to be a global variable 3 | int main{ | ^~~~ a.cc:4:3: error: expected primary-expression before 'char' 4 | char c; string d; | ^~~~ a.cc:4:3: error: expected '}' before 'char' a.cc:3:9: note: to match this '{' 3 | int main{ | ^ a.cc:5:3: error: 'cin' does not name a type 5 | cin>>c; | ^~~ a.cc:6:3: error: expected unqualified-id before 'if' 6 | if(c=='a'|c=='i'|c=='u'|c=='e'|c=='o') | ^~ a.cc:8:3: error: expected unqualified-id before 'else' 8 | else d="consonant"; | ^~~~ a.cc:9:3: error: 'cout' does not name a type 9 | cout<<d<<endl; | ^~~~ a.cc:10:1: error: expected declaration before '}' token 10 | } | ^
s050660671
p03852
C++
#include<bits/stdc++.h> using namespace std; int main{ char c; String d; cin>>c; if(c=='a'|c=='i'|c=='u'|c=='e'|c=='o') d=vowel; else d=consonant; cout<<d<<endl; }
a.cc:3:5: error: cannot declare '::main' to be a global variable 3 | int main{ | ^~~~ a.cc:4:3: error: expected primary-expression before 'char' 4 | char c; String d; | ^~~~ a.cc:4:3: error: expected '}' before 'char' a.cc:3:9: note: to match this '{' 3 | int main{ | ^ a.cc:4:11: error: 'String' does not name a type 4 | char c; String d; | ^~~~~~ a.cc:5:3: error: 'cin' does not name a type 5 | cin>>c; | ^~~ a.cc:6:3: error: expected unqualified-id before 'if' 6 | if(c=='a'|c=='i'|c=='u'|c=='e'|c=='o') | ^~ a.cc:8:3: error: expected unqualified-id before 'else' 8 | else d=consonant; | ^~~~ a.cc:9:3: error: 'cout' does not name a type 9 | cout<<d<<endl; | ^~~~ a.cc:10:1: error: expected declaration before '}' token 10 | } | ^
s284696753
p03852
C++
#include<bits/stdc++.h> using namespace std; int main{ char c; String d; cin>>c; if(c==a|c==i|c==u|c==e|c==o) d=vowel; else d=consonant; cout<<d<<endl; }
a.cc:3:5: error: cannot declare '::main' to be a global variable 3 | int main{ | ^~~~ a.cc:4:3: error: expected primary-expression before 'char' 4 | char c; String d; | ^~~~ a.cc:4:3: error: expected '}' before 'char' a.cc:3:9: note: to match this '{' 3 | int main{ | ^ a.cc:4:11: error: 'String' does not name a type 4 | char c; String d; | ^~~~~~ a.cc:5:3: error: 'cin' does not name a type 5 | cin>>c; | ^~~ a.cc:6:3: error: expected unqualified-id before 'if' 6 | if(c==a|c==i|c==u|c==e|c==o) | ^~ a.cc:8:3: error: expected unqualified-id before 'else' 8 | else d=consonant; | ^~~~ a.cc:9:3: error: 'cout' does not name a type 9 | cout<<d<<endl; | ^~~~ a.cc:10:1: error: expected declaration before '}' token 10 | } | ^
s231435040
p03852
C++
include<bits/stdc++.h> using namespace std; int main{ char c; String d; cin>>c; if(c==a|c==i|c==u|c==e|c==o) d=vowel; else d=consonant; cout<<d<<endl; }
a.cc:1:1: error: 'include' does not name a type 1 | include<bits/stdc++.h> | ^~~~~~~ a.cc:3:5: error: cannot declare '::main' to be a global variable 3 | int main{ | ^~~~ a.cc:4:3: error: expected primary-expression before 'char' 4 | char c; String d; | ^~~~ a.cc:4:3: error: expected '}' before 'char' a.cc:3:9: note: to match this '{' 3 | int main{ | ^ a.cc:4:11: error: 'String' does not name a type 4 | char c; String d; | ^~~~~~ a.cc:5:3: error: 'cin' does not name a type 5 | cin>>c; | ^~~ a.cc:6:3: error: expected unqualified-id before 'if' 6 | if(c==a|c==i|c==u|c==e|c==o) | ^~ a.cc:8:3: error: expected unqualified-id before 'else' 8 | else d=consonant; | ^~~~ a.cc:9:3: error: 'cout' does not name a type 9 | cout<<d<<endl; | ^~~~ a.cc:10:1: error: expected declaration before '}' token 10 | } | ^
s492168329
p03852
C++
include<bits/stdc++.h> using namespace std; int main{ char c; String d; cin>>c; if(c==a|c==i|c==u|c==e|c==o) d=vowel; else d=consonant; }
a.cc:1:1: error: 'include' does not name a type 1 | include<bits/stdc++.h> | ^~~~~~~ a.cc:3:5: error: cannot declare '::main' to be a global variable 3 | int main{ | ^~~~ a.cc:4:3: error: expected primary-expression before 'char' 4 | char c; String d; | ^~~~ a.cc:4:3: error: expected '}' before 'char' a.cc:3:9: note: to match this '{' 3 | int main{ | ^ a.cc:4:11: error: 'String' does not name a type 4 | char c; String d; | ^~~~~~ a.cc:5:3: error: 'cin' does not name a type 5 | cin>>c; | ^~~ a.cc:6:3: error: expected unqualified-id before 'if' 6 | if(c==a|c==i|c==u|c==e|c==o) | ^~ a.cc:8:3: error: expected unqualified-id before 'else' 8 | else d=consonant; | ^~~~ a.cc:9:1: error: expected declaration before '}' token 9 | } | ^
s478496556
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; if !(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o') cout << "consonant" << endl; return 0; }
a.cc: In function 'int main()': a.cc:17:4: error: expected '(' before '!' token 17 | if !(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o') | ^ | (
s352032281
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; } return 0; }
a.cc:20:1: error: expected unqualified-id before 'return' 20 | return 0; | ^~~~~~ a.cc:21:1: error: expected declaration before '}' token 21 | } | ^
s895666748
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; } return 0; }
a.cc: In function 'int main()': a.cc:5:7: error: expected unqualified-id before '=' token 5 | char = c; | ^ a.cc:6:8: error: 'c' was not declared in this scope 6 | cin >> c; | ^ a.cc: At global scope: a.cc:20:1: error: expected unqualified-id before 'return' 20 | return 0; | ^~~~~~ a.cc:21:1: error: expected declaration before '}' token 21 | } | ^
s324899110
p03852
C++
#include <bits/stdc++. 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; } return 0; }
a.cc:1:23: error: missing terminating > character 1 | #include <bits/stdc++. | ^ a.cc:1:10: fatal error: bits/stdc++.: No such file or directory 1 | #include <bits/stdc++. | ^ compilation terminated.
s196540255
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char input; cin >> input; if(input == 'a' ||input == 'i' || input == 'u' || input =='e' || input =='o'){ cout << "vowel"; }else{ cout << "consonant"; }
a.cc: In function 'int main()': a.cc:11:2: error: expected '}' at end of input 11 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s086979258
p03852
C++
#include<iostream> using namespace std; 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:19:2: error: expected '}' at end of input 19 | } | ^ a.cc:5:15: note: to match this '{' 5 | int main(void){ | ^
s757972957
p03852
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; int main() { string str; cin >> str; if(str == "a" || str == "i" || str == "u" || str == "e" || str == "o") cout << "vowel" << endl; else cout << "consonant" << endl; return 0; } 提出情報
a.cc:17:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' does not name a type 17 | 提出情報 | ^~~~~~~~
s154690426
p03852
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { string str; cin >> str; if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ cout << "vowel" << endl; } else{ cout << "consonant" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:13:10: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 13 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ | ~~~ ^~ ~~~ | | | | | 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:5: /usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed: a.cc:13:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 13 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ | ^~~ /usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)' 1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed: a.cc:13:13: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 13 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ | ^~~ /usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)' 1274 | operator==(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed: a.cc:13:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 13 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ | ^~~ /usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed: a.cc:13:13: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 13 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ | ^~~ /usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1441 | operator==(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed: a.cc:13:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 13 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ | ^~~ /usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed: a.cc:13:13: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 13 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ | ^~~ /usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1613 | operator==(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed: a.cc:13:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 13 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ | ^~~ /usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)' 2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed: a.cc:13:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>' 13 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ | ^~~ 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:13:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>' 13 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ | ^~~ 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:13:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>' 13 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ | ^~~ 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:13:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 13 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ | ^~~ /usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 486 | operator==(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed: a.cc:13:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 13 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ | ^~~ /usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1667 | operator==(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed: a.cc:13:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 13 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ | ^~~ /usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1737 | operator==(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed: a.cc:13:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 13 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ | ^~~ 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:13:13: no
s803120192
p03852
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <bits/stdc++.h> using namespace std; int main() { string str; cin >> str; if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ cout << "vowel" << endl; } else{ cout << "consonant" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:11:10: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 11 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ | ~~~ ^~ ~~~ | | | | | 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:5: /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:11:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 11 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ | ^~~ /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:11:13: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 11 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ | ^~~ /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:11:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 11 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ | ^~~ /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:11:13: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 11 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ | ^~~ /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:11:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 11 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ | ^~~ /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:11:13: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 11 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ | ^~~ /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:11:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 11 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ | ^~~ /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:11:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>' 11 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ | ^~~ 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:11:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>' 11 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ | ^~~ 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:11:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>' 11 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ | ^~~ 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:11:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 11 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ | ^~~ /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:11:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 11 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ | ^~~ /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:11:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 11 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ | ^~~ /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:11:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 11 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){ | ^~~ 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:11:13: no
s952923629
p03852
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #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; } return 0; }
a.cc: In function 'int main()': a.cc:11:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 11 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ | ~ ^~ ~~~ | | | | | 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:5: /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:11:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 11 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ | ^~~ /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:11:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 11 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ | ^~~ /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:11:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 11 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ | ^~~ /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:11:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 11 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ | ^~~ /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:11:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 11 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ | ^~~ /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:11:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 11 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ | ^~~ /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:11:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 11 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ | ^~~ /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:11:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>' 11 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ | ^~~ 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:11:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>' 11 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ | ^~~ 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:11:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>' 11 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ | ^~~ 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:11:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 11 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ | ^~~ /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:11:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 11 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ | ^~~ /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:11:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 11 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ | ^~~ /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:11:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 11 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ | ^~~ 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:11:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 11 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){
s008034426
p03852
C++
#include <iostream> #include <char> #include <string> #include <vector> #include <algorithm> 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; } return 0; }
a.cc:2:10: fatal error: char: No such file or directory 2 | #include <char> | ^~~~~~ compilation terminated.
s933824001
p03852
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> 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; } return 0; }
a.cc: In function 'int main()': a.cc:10:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 10 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ | ~ ^~ ~~~ | | | | | 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:10:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>' 10 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ | ^~~ 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:10:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>' 10 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ | ^~~ 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:10:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 10 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ | ^~~ /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:10:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 10 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ | ^~~ /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:10:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 10 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ | ^~~ /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:10:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 10 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ | ^~~ 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:10:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 10 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ | ^~~ 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:10:11: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 10 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ | ^~~ /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:10:11: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 10 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ | ^~~ /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:10:11: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'char' 10 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ | ^~~ /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:10:11: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'char' 10 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ | ^~~ /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:10:11: note: mismatched types 'const _CharT*' and 'char' 10 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ | ^~~ /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:10:11: note: mismatched types 'const _CharT*' and 'std::__cxx11::basic_string<char>' 10 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ | ^~~ 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:10:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::tuple<_UTypes ...>' 10 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ | ^~~ 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/include/c++/14/bits/streambuf_iterator.h:234:5: note: template argument deduction/substit
s542062628
p03852
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> 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:10:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 10 | if (c == "a" || c == "e" || c == "i" || c == "o" || c == "u"){ | ~~^~~~~~ a.cc:10:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 10 | if (c == "a" || c == "e" || c == "i" || c == "o" || c == "u"){ | ~~^~~~~~ a.cc:10:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 10 | if (c == "a" || c == "e" || c == "i" || c == "o" || c == "u"){ | ~~^~~~~~ a.cc:10:44: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 10 | if (c == "a" || c == "e" || c == "i" || c == "o" || c == "u"){ | ~~^~~~~~ a.cc:10:56: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 10 | if (c == "a" || c == "e" || c == "i" || c == "o" || c == "u"){ | ~~^~~~~~
s445754182
p03852
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> 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:10:11: error: 'a' was not declared in this scope 10 | if (c == a || c == e || c == i || c == o || c == u){ | ^ a.cc:10:21: error: 'e' was not declared in this scope 10 | if (c == a || c == e || c == i || c == o || c == u){ | ^ a.cc:10:31: error: 'i' was not declared in this scope 10 | if (c == a || c == e || c == i || c == o || c == u){ | ^ a.cc:10:41: error: 'o' was not declared in this scope 10 | if (c == a || c == e || c == i || c == o || c == u){ | ^ a.cc:10:51: error: 'u' was not declared in this scope 10 | if (c == a || c == e || c == i || c == o || c == u){ | ^
s406600189
p03852
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> 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; } return 0; }
a.cc: In function 'int main()': a.cc:10:11: error: 'a' was not declared in this scope 10 | if (c == a || c == e || c == i || c == o || c == u){ | ^ a.cc:10:21: error: 'e' was not declared in this scope 10 | if (c == a || c == e || c == i || c == o || c == u){ | ^ a.cc:10:31: error: 'i' was not declared in this scope 10 | if (c == a || c == e || c == i || c == o || c == u){ | ^ a.cc:10:41: error: 'o' was not declared in this scope 10 | if (c == a || c == e || c == i || c == o || c == u){ | ^ a.cc:10:51: error: 'u' was not declared in this scope 10 | if (c == a || c == e || c == i || c == o || c == u){ | ^
s988803850
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:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if (c=="a" || c=="i" || c=="u" || c=="e" || c=="o") | ~^~~~~ a.cc:7:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if (c=="a" || c=="i" || c=="u" || c=="e" || c=="o") | ~^~~~~ a.cc:7:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if (c=="a" || c=="i" || c=="u" || c=="e" || c=="o") | ~^~~~~ a.cc:7:40: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if (c=="a" || c=="i" || c=="u" || c=="e" || c=="o") | ~^~~~~ a.cc:7:50: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if (c=="a" || c=="i" || c=="u" || c=="e" || c=="o") | ~^~~~~
s935428019
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char alpha; cin >> alpha; if (alpha == "a" || alpha == "I" || alpha == "u" || alpha == "e" || alpha == "o"){ cout << "vowel" << endl; } else{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:7:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if (alpha == "a" || alpha == "I" || alpha == "u" || alpha == "e" || alpha == "o"){ | ~~~~~~^~~~~~ a.cc:7:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if (alpha == "a" || alpha == "I" || alpha == "u" || alpha == "e" || alpha == "o"){ | ~~~~~~^~~~~~ a.cc:7:45: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if (alpha == "a" || alpha == "I" || alpha == "u" || alpha == "e" || alpha == "o"){ | ~~~~~~^~~~~~ a.cc:7:61: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if (alpha == "a" || alpha == "I" || alpha == "u" || alpha == "e" || alpha == "o"){ | ~~~~~~^~~~~~ a.cc:7:77: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if (alpha == "a" || alpha == "I" || alpha == "u" || alpha == "e" || alpha == "o"){ | ~~~~~~^~~~~~
s970092379
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char alpha; cin >> alpha; if (alpha == a || alpha == i || alpha == u || alpha == e || alpha == o){ cout << "vowel" << endl; } else{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:7:16: error: 'a' was not declared in this scope 7 | if (alpha == a || alpha == i || alpha == u || alpha == e || alpha == o){ | ^ a.cc:7:30: error: 'i' was not declared in this scope 7 | if (alpha == a || alpha == i || alpha == u || alpha == e || alpha == o){ | ^ a.cc:7:44: error: 'u' was not declared in this scope 7 | if (alpha == a || alpha == i || alpha == u || alpha == e || alpha == o){ | ^ a.cc:7:58: error: 'e' was not declared in this scope 7 | if (alpha == a || alpha == i || alpha == u || alpha == e || alpha == o){ | ^ a.cc:7:72: error: 'o' was not declared in this scope 7 | if (alpha == a || alpha == i || alpha == u || alpha == e || alpha == o){ | ^
s520966576
p03852
C++
#include <iosteram> #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:1:10: fatal error: iosteram: No such file or directory 1 | #include <iosteram> | ^~~~~~~~~~ compilation terminated.
s533613227
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { int 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:7:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if (C == "a" || C == "e" || C == "i" || C == "o" || C == "u") { | ~~^~~~~~ a.cc:7:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if (C == "a" || C == "e" || C == "i" || C == "o" || C == "u") { | ~~^~~~~~ a.cc:7:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if (C == "a" || C == "e" || C == "i" || C == "o" || C == "u") { | ~~^~~~~~ a.cc:7:45: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if (C == "a" || C == "e" || C == "i" || C == "o" || C == "u") { | ~~^~~~~~ a.cc:7:57: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if (C == "a" || C == "e" || C == "i" || C == "o" || C == "u") { | ~~^~~~~~
s489239138
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: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(c == "a" || c == "i" || c == "u" || c == "e" || c == "o") | ~~^~~~~~ a.cc:7:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(c == "a" || c == "i" || c == "u" || c == "e" || c == "o") | ~~^~~~~~ a.cc:7:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(c == "a" || c == "i" || c == "u" || c == "e" || c == "o") | ~~^~~~~~ a.cc:7:44: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(c == "a" || c == "i" || c == "u" || c == "e" || c == "o") | ~~^~~~~~ a.cc:7:56: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(c == "a" || c == "i" || c == "u" || c == "e" || c == "o") | ~~^~~~~~
s623071665
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: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(c == "a" | c == "i" | c == "u" | c == "e" | c == "o") | ~~^~~~~~ a.cc:7:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(c == "a" | c == "i" | c == "u" | c == "e" | c == "o") | ~~^~~~~~ a.cc:7:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(c == "a" | c == "i" | c == "u" | c == "e" | c == "o") | ~~^~~~~~ a.cc:7:41: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(c == "a" | c == "i" | c == "u" | c == "e" | c == "o") | ~~^~~~~~ a.cc:7:52: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(c == "a" | c == "i" | c == "u" | c == "e" | c == "o") | ~~^~~~~~
s878205090
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:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if (c == "a" | c == "i" | c == "u" | c == "e" | c == "o") | ~~^~~~~~ a.cc:7:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if (c == "a" | c == "i" | c == "u" | c == "e" | c == "o") | ~~^~~~~~ a.cc:7:31: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if (c == "a" | c == "i" | c == "u" | c == "e" | c == "o") | ~~^~~~~~ a.cc:7:42: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if (c == "a" | c == "i" | c == "u" | c == "e" | c == "o") | ~~^~~~~~ a.cc:7:53: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if (c == "a" | c == "i" | c == "u" | c == "e" | c == "o") | ~~^~~~~~