submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s116089441
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char x; cin >> x; if (x = 'a' || x = 'e' || x = 'i' || x = 'o' || x = 'u') { cout << "vowel" << endl; } else { cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:9:48: error: lvalue required as left operand of assignment 9 | if (x = 'a' || x = 'e' || x = 'i' || x = 'o' || x = 'u') { | ~~~~^~~~
s521206509
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ cher 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: 'cher' was not declared in this scope; did you mean 'char'? 7 | cher c; | ^~~~ | char a.cc:9:16: error: 'c' was not declared in this scope 9 | cin >> c ; | ^
s819697880
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char x ; cin >> x ; if (x == 'a' || x == 'e' || x == 'i' || x == 'o' || x == 'u' ){ 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::ostream' {aka 'std::basic_ostream<char>'} and 'const char [6]') 8 | cout >> "vowel" >> endl; | ~~~~ ^~ ~~~~~~~ | | | | | const char [6] | std::ostream {aka std::basic_ostream<char>} In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41, from a.cc:1: /usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)' 131 | operator>>(byte __b, _IntegerType __shift) noexcept | ^~~~~~~~ /usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed: a.cc:8:5: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte' 8 | cout >> "vowel" >> endl; | ^~~~ In file included from /usr/include/c++/14/string:55, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 835 | operator>>(basic_istream<_CharT, _Traits>& __in, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/bitset:1597:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, bitset<_Nb>&)' 1597 | operator>>(std::basic_istream<_CharT, _Traits>& __is, bitset<_Nb>& __x) | ^~~~~~~~ /usr/include/c++/14/bitset:1597:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ In file included from /usr/include/c++/14/istream:1109, from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/complex:45, from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127: /usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)' 978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) | ^~~~~~~~ /usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)' 849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c) | ^~~~~~~~ /usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)' 854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c) | ^~~~~~~~ /usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)' 896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) | ^~~~~~~~ /usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)' 939 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s) | ^~~~~~~~ /usr/include/c++/14/istream:939:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/istream:945:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*)' 945 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s) | ^~~~~~~~ /usr/include/c++/14/istream:945:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/istream:1099:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)' 1099 | operator>>(_Istream&& __is, _Tp&& __x) | ^~~~~~~~ /usr/include/c++/14/istream:1099:5: note: template argument deduction/substitution failed: /usr/include/c++/14/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = const char (&)[6]]': a.cc:8:13: required from here 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/istream:1099:5: error: no type named 'type' in 'struct std::enable_if<false, void>' 1099 | operator>>(_Istream&& __is, _Tp&& __x) | ^~~~~~~~ /usr/include/c++/14/complex:509:5: note: candidate: 'template<class _Tp, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, complex<_Tp>&)' 509 | operator>>(basic_istream<_CharT, _Traits>& __is, complex<_Tp>& __x) | ^~~~~~~~ /usr/include/c++/14/complex:509:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:143: /usr/include/c++/14/iomanip:76:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Resetiosflags)' 76 | operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:76:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/iomanip:106:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setiosflags)' 106 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:106:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/iomanip:137:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setbase)' 137 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:137:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/iomanip:177:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setfill<_CharT>)' 177 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setfill<_CharT> __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:177:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/iomanip:207:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setprecision)' 207 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setprecision __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:207:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not
s465907515
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char x ; cin >> x ; if (x == 'a' || x == 'e' || x == 'i' || x == 'o' || x == 'u' ){ 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::ostream' {aka 'std::basic_ostream<char>'} and 'const char [6]') 8 | cout >> "vowel" >> endl; | ~~~~ ^~ ~~~~~~~ | | | | | const char [6] | std::ostream {aka std::basic_ostream<char>} In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41, from a.cc:1: /usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)' 131 | operator>>(byte __b, _IntegerType __shift) noexcept | ^~~~~~~~ /usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed: a.cc:8:5: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte' 8 | cout >> "vowel" >> endl; | ^~~~ In file included from /usr/include/c++/14/string:55, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 835 | operator>>(basic_istream<_CharT, _Traits>& __in, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/bitset:1597:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, bitset<_Nb>&)' 1597 | operator>>(std::basic_istream<_CharT, _Traits>& __is, bitset<_Nb>& __x) | ^~~~~~~~ /usr/include/c++/14/bitset:1597:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ In file included from /usr/include/c++/14/istream:1109, from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/complex:45, from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127: /usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)' 978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) | ^~~~~~~~ /usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)' 849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c) | ^~~~~~~~ /usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)' 854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c) | ^~~~~~~~ /usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)' 896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) | ^~~~~~~~ /usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)' 939 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s) | ^~~~~~~~ /usr/include/c++/14/istream:939:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/istream:945:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*)' 945 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s) | ^~~~~~~~ /usr/include/c++/14/istream:945:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/istream:1099:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)' 1099 | operator>>(_Istream&& __is, _Tp&& __x) | ^~~~~~~~ /usr/include/c++/14/istream:1099:5: note: template argument deduction/substitution failed: /usr/include/c++/14/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = const char (&)[6]]': a.cc:8:13: required from here 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/istream:1099:5: error: no type named 'type' in 'struct std::enable_if<false, void>' 1099 | operator>>(_Istream&& __is, _Tp&& __x) | ^~~~~~~~ /usr/include/c++/14/complex:509:5: note: candidate: 'template<class _Tp, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, complex<_Tp>&)' 509 | operator>>(basic_istream<_CharT, _Traits>& __is, complex<_Tp>& __x) | ^~~~~~~~ /usr/include/c++/14/complex:509:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:143: /usr/include/c++/14/iomanip:76:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Resetiosflags)' 76 | operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:76:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/iomanip:106:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setiosflags)' 106 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:106:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/iomanip:137:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setbase)' 137 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:137:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/iomanip:177:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setfill<_CharT>)' 177 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setfill<_CharT> __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:177:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/iomanip:207:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setprecision)' 207 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setprecision __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:207:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not
s270566323
p03852
C++
//#include <tourist> #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> p; const int INF = 1e9; const ll LINF = ll(1e18); const int MOD = 1000000007; const int dx[4] = {0, 1, 0, -1}, dy[4] = {-1, 0, 1, 0}; const int Dx[8] = {0, 1, 1, 1, 0, -1, -1, -1}, Dy[8] = {-1, -1, 0, 1, 1, 1, 0, -1}; #define yes cout << "Yes" << endl #define YES cout << "YES" << endl #define no cout << "No" << endl #define NO cout << "NO" << endl #define rep(i, n) for (int i = 0; i < n; i++) #define ALL(v) v.begin(), v.end() #define debug(v) \ cout << #v << ":"; \ for (auto x : v) \ { \ cout << x << ' '; \ } \ cout << endl; template <class T> bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; } template <class T> bool chmin(T &a, const T &b) { if (b < a) { a = b; return 1; } return 0; } //cout<<fixed<<setprecision(15);有効数字15桁 //-std=c++14 //-std=gnu++17 ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; } ll lcm(ll a, ll b) { return a / gcd(a, b) * b; } int main() { cin.tie(0); ios::sync_with_stdio(false); char s; string ans="aiueo"; cin>>s; rep(i,5){ if(s==ans[i]){ cout<<"vowel"<<"\n"; return 0; } } cout<<"consonant<<"\n"; }
a.cc:63:24: error: stray '\' in program 63 | cout<<"consonant<<"\n"; | ^ a.cc:63:26: warning: missing terminating " character 63 | cout<<"consonant<<"\n"; | ^ a.cc:63:26: error: missing terminating " character 63 | cout<<"consonant<<"\n"; | ^~ a.cc: In function 'int main()': a.cc:63:24: error: expected ';' before 'n' 63 | cout<<"consonant<<"\n"; | ^~ | ;
s354298352
p03852
C++
define PI 3.14159265359 typedef long long ll; // int main(){ char c; cin>>c; if(c=='a'||'i'||'u'||'e'||'o'){ cout<<"vowel"<<endl;}else{ cout<<"consonant"<<endl; } }
a.cc:1:1: error: 'define' does not name a type 1 | define PI 3.14159265359 | ^~~~~~ a.cc: In function 'int main()': a.cc:7:5: error: 'cin' was not declared in this scope 7 | cin>>c; | ^~~ a.cc:10:5: error: 'cout' was not declared in this scope 10 | cout<<"vowel"<<endl;}else{ | ^~~~ a.cc:10:20: error: 'endl' was not declared in this scope 10 | cout<<"vowel"<<endl;}else{ | ^~~~ a.cc:11:4: error: 'cout' was not declared in this scope 11 | cout<<"consonant"<<endl; } | ^~~~ a.cc:11:23: error: 'endl' was not declared in this scope 11 | cout<<"consonant"<<endl; } | ^~~~
s190693804
p03852
C++
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0; i<(n); i++) #define FOR(i,a,b) for(int i=a; i<=b; i++) #define all(v) v.begin(), v.end() #define F first #define S second #define INF 1000000000000 #define MOD 10000007 #define PI 3.14159265359 typedef long long ll; // int main(){ char c; cin>>c; if(c=='a'||'i'||'u'||'e'||'o'){ cout<<vowel<<endl;}else{ cout<<consonant<<endl; } }
a.cc: In function 'int main()': a.cc:19:11: error: 'vowel' was not declared in this scope 19 | cout<<vowel<<endl;}else{ | ^~~~~ a.cc:20:10: error: 'consonant' was not declared in this scope 20 | cout<<consonant<<endl; } | ^~~~~~~~~
s380877246
p03852
C++
#pinclude <bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0; i<(n); i++) #define FOR(i,a,b) for(int i=a; i<=b; i++) #define all(v) v.begin(), v.end() #define F first #define S second #define INF 1000000000000 #define MOD 10000007 #define PI 3.14159265359 typedef long long ll; // int main(){ char c; cin>>c; if(c=='a'||'i'||'u'||'e'||'o'){ cout<<vowel<<endl;}else{ cout<<consonant<<endl; } }
a.cc:1:2: error: invalid preprocessing directive #pinclude; did you mean #include? 1 | #pinclude <bits/stdc++.h> | ^~~~~~~~ | include a.cc: In function 'int main()': a.cc:16:5: error: 'cin' was not declared in this scope 16 | cin>>c; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | #pinclude <bits/stdc++.h> a.cc:19:5: error: 'cout' was not declared in this scope 19 | cout<<vowel<<endl;}else{ | ^~~~ a.cc:19:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:19:11: error: 'vowel' was not declared in this scope 19 | cout<<vowel<<endl;}else{ | ^~~~~ a.cc:19:18: error: 'endl' was not declared in this scope 19 | cout<<vowel<<endl;}else{ | ^~~~ a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>' +++ |+#include <ostream> 1 | #pinclude <bits/stdc++.h> a.cc:20:4: error: 'cout' was not declared in this scope 20 | cout<<consonant<<endl; } | ^~~~ a.cc:20:4: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:20:10: error: 'consonant' was not declared in this scope 20 | cout<<consonant<<endl; } | ^~~~~~~~~ a.cc:20:21: error: 'endl' was not declared in this scope 20 | cout<<consonant<<endl; } | ^~~~ a.cc:20:21: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
s950152160
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:13: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes 8 | cout << 'vowel' << endl; | ^~~~~~~ a.cc:11:13: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes 11 | 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() { | ^
s859878858
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:13: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes 8 | cout >> 'vowel' >> endl; | ^~~~~~~ a.cc:11:13: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes 11 | cout >> 'consonant' >> endl ; | ^~~~~~~~~~~ a.cc: In function 'int main()': a.cc:8:10: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'int') 8 | cout >> 'vowel' >> endl; | ~~~~ ^~ ~~~~~~~ | | | | | int | std::ostream {aka std::basic_ostream<char>} a.cc:8:10: note: candidate: 'operator>>(int, int)' (built-in) 8 | cout >> 'vowel' >> endl; | ~~~~~^~~~~~~~~~ a.cc:8:10: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'int' In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41, from a.cc:1: /usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)' 131 | operator>>(byte __b, _IntegerType __shift) noexcept | ^~~~~~~~ /usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed: a.cc:8:5: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte' 8 | cout >> 'vowel' >> endl; | ^~~~ In file included from /usr/include/c++/14/string:55, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 835 | operator>>(basic_istream<_CharT, _Traits>& __in, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> 'vowel' >> endl; | ^~~~~~~ /usr/include/c++/14/bitset:1597:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, bitset<_Nb>&)' 1597 | operator>>(std::basic_istream<_CharT, _Traits>& __is, bitset<_Nb>& __x) | ^~~~~~~~ /usr/include/c++/14/bitset:1597:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> 'vowel' >> endl; | ^~~~~~~ In file included from /usr/include/c++/14/istream:1109, from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/complex:45, from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127: /usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)' 978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) | ^~~~~~~~ /usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> 'vowel' >> endl; | ^~~~~~~ /usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)' 849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c) | ^~~~~~~~ /usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> 'vowel' >> endl; | ^~~~~~~ /usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)' 854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c) | ^~~~~~~~ /usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> 'vowel' >> endl; | ^~~~~~~ /usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)' 896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) | ^~~~~~~~ /usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> 'vowel' >> endl; | ^~~~~~~ /usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)' 939 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s) | ^~~~~~~~ /usr/include/c++/14/istream:939:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> 'vowel' >> endl; | ^~~~~~~ /usr/include/c++/14/istream:945:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*)' 945 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s) | ^~~~~~~~ /usr/include/c++/14/istream:945:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> 'vowel' >> endl; | ^~~~~~~ /usr/include/c++/14/istream:1099:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)' 1099 | operator>>(_Istream&& __is, _Tp&& __x) | ^~~~~~~~ /usr/include/c++/14/istream:1099:5: note: template argument deduction/substitution failed: /usr/include/c++/14/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = int]': a.cc:8:13: required from here 8 | cout >> 'vowel' >> endl; | ^~~~~~~ /usr/include/c++/14/istream:1099:5: error: no type named 'type' in 'struct std::enable_if<false, void>' 1099 | operator>>(_Istream&& __is, _Tp&& __x) | ^~~~~~~~ /usr/include/c++/14/complex:509:5: note: candidate: 'template<class _Tp, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, complex<_Tp>&)' 509 | operator>>(basic_istream<_CharT, _Traits>& __is, complex<_Tp>& __x) | ^~~~~~~~ /usr/include/c++/14/complex:509:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> 'vowel' >> endl; | ^~~~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:143: /usr/include/c++/14/iomanip:76:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Resetiosflags)' 76 | operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:76:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> 'vowel' >> endl; | ^~~~~~~ /usr/include/c++/14/iomanip:106:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setiosflags)' 106 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:106:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> 'vowel' >> endl; | ^~~~~~~ /usr/include/c++/14/iomanip:137:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setbase)' 137 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:137:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> 'vowel' >> endl; | ^~~~~~~ /usr/include/c++/14/iomanip:177:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setfill<_CharT>)' 177 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setfill<_CharT> __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:177:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Tr
s747451207
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: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"){ | ~~^~~~~~ a.cc:8:10: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [6]') 8 | cout >> "vowel" >> endl; | ~~~~ ^~ ~~~~~~~ | | | | | const char [6] | std::ostream {aka std::basic_ostream<char>} In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41, from a.cc:1: /usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)' 131 | operator>>(byte __b, _IntegerType __shift) noexcept | ^~~~~~~~ /usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed: a.cc:8:5: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte' 8 | cout >> "vowel" >> endl; | ^~~~ In file included from /usr/include/c++/14/string:55, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 835 | operator>>(basic_istream<_CharT, _Traits>& __in, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/bitset:1597:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, bitset<_Nb>&)' 1597 | operator>>(std::basic_istream<_CharT, _Traits>& __is, bitset<_Nb>& __x) | ^~~~~~~~ /usr/include/c++/14/bitset:1597:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ In file included from /usr/include/c++/14/istream:1109, from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/complex:45, from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127: /usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)' 978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) | ^~~~~~~~ /usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)' 849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c) | ^~~~~~~~ /usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)' 854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c) | ^~~~~~~~ /usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)' 896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) | ^~~~~~~~ /usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)' 939 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s) | ^~~~~~~~ /usr/include/c++/14/istream:939:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/istream:945:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*)' 945 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s) | ^~~~~~~~ /usr/include/c++/14/istream:945:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/istream:1099:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)' 1099 | operator>>(_Istream&& __is, _Tp&& __x) | ^~~~~~~~ /usr/include/c++/14/istream:1099:5: note: template argument deduction/substitution failed: /usr/include/c++/14/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = const char (&)[6]]': a.cc:8:13: required from here 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/istream:1099:5: error: no type named 'type' in 'struct std::enable_if<false, void>' 1099 | operator>>(_Istream&& __is, _Tp&& __x) | ^~~~~~~~ /usr/include/c++/14/complex:509:5: note: candidate: 'template<class _Tp, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, complex<_Tp>&)' 509 | operator>>(basic_istream<_CharT, _Traits>& __is, complex<_Tp>& __x) | ^~~~~~~~ /usr/include/c++/14/complex:509:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:143: /usr/include/c++/14/iomanip:76:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Resetiosflags)' 76 | operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:76:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/iomanip:106:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setiosflags)' 106 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:106:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/iomanip:137:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setbase)' 137 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:137:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /u
s755407428
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: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"){ | ~~^~~~~~ a.cc:8:10: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [6]') 8 | cout >> "vowel" >> endl;} | ~~~~ ^~ ~~~~~~~ | | | | | const char [6] | std::ostream {aka std::basic_ostream<char>} In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41, from a.cc:1: /usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)' 131 | operator>>(byte __b, _IntegerType __shift) noexcept | ^~~~~~~~ /usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed: a.cc:8:5: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte' 8 | cout >> "vowel" >> endl;} | ^~~~ In file included from /usr/include/c++/14/string:55, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 835 | operator>>(basic_istream<_CharT, _Traits>& __in, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl;} | ^~~~~~~ /usr/include/c++/14/bitset:1597:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, bitset<_Nb>&)' 1597 | operator>>(std::basic_istream<_CharT, _Traits>& __is, bitset<_Nb>& __x) | ^~~~~~~~ /usr/include/c++/14/bitset:1597:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl;} | ^~~~~~~ In file included from /usr/include/c++/14/istream:1109, from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/complex:45, from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127: /usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)' 978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) | ^~~~~~~~ /usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl;} | ^~~~~~~ /usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)' 849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c) | ^~~~~~~~ /usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl;} | ^~~~~~~ /usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)' 854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c) | ^~~~~~~~ /usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl;} | ^~~~~~~ /usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)' 896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) | ^~~~~~~~ /usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl;} | ^~~~~~~ /usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)' 939 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s) | ^~~~~~~~ /usr/include/c++/14/istream:939:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl;} | ^~~~~~~ /usr/include/c++/14/istream:945:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*)' 945 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s) | ^~~~~~~~ /usr/include/c++/14/istream:945:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl;} | ^~~~~~~ /usr/include/c++/14/istream:1099:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)' 1099 | operator>>(_Istream&& __is, _Tp&& __x) | ^~~~~~~~ /usr/include/c++/14/istream:1099:5: note: template argument deduction/substitution failed: /usr/include/c++/14/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = const char (&)[6]]': a.cc:8:13: required from here 8 | cout >> "vowel" >> endl;} | ^~~~~~~ /usr/include/c++/14/istream:1099:5: error: no type named 'type' in 'struct std::enable_if<false, void>' 1099 | operator>>(_Istream&& __is, _Tp&& __x) | ^~~~~~~~ /usr/include/c++/14/complex:509:5: note: candidate: 'template<class _Tp, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, complex<_Tp>&)' 509 | operator>>(basic_istream<_CharT, _Traits>& __is, complex<_Tp>& __x) | ^~~~~~~~ /usr/include/c++/14/complex:509:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl;} | ^~~~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:143: /usr/include/c++/14/iomanip:76:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Resetiosflags)' 76 | operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:76:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl;} | ^~~~~~~ /usr/include/c++/14/iomanip:106:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setiosflags)' 106 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:106:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl;} | ^~~~~~~ /usr/include/c++/14/iomanip:137:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setbase)' 137 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:137:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl;} |
s797432672
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: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") | ~~^~~~~~ a.cc:8:10: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [6]') 8 | cout >> "vowel" >> endl; | ~~~~ ^~ ~~~~~~~ | | | | | const char [6] | std::ostream {aka std::basic_ostream<char>} In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41, from a.cc:1: /usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)' 131 | operator>>(byte __b, _IntegerType __shift) noexcept | ^~~~~~~~ /usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed: a.cc:8:5: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte' 8 | cout >> "vowel" >> endl; | ^~~~ In file included from /usr/include/c++/14/string:55, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 835 | operator>>(basic_istream<_CharT, _Traits>& __in, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/bitset:1597:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, bitset<_Nb>&)' 1597 | operator>>(std::basic_istream<_CharT, _Traits>& __is, bitset<_Nb>& __x) | ^~~~~~~~ /usr/include/c++/14/bitset:1597:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ In file included from /usr/include/c++/14/istream:1109, from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/complex:45, from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127: /usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)' 978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) | ^~~~~~~~ /usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)' 849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c) | ^~~~~~~~ /usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)' 854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c) | ^~~~~~~~ /usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)' 896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) | ^~~~~~~~ /usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)' 939 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s) | ^~~~~~~~ /usr/include/c++/14/istream:939:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/istream:945:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*)' 945 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s) | ^~~~~~~~ /usr/include/c++/14/istream:945:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/istream:1099:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)' 1099 | operator>>(_Istream&& __is, _Tp&& __x) | ^~~~~~~~ /usr/include/c++/14/istream:1099:5: note: template argument deduction/substitution failed: /usr/include/c++/14/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = const char (&)[6]]': a.cc:8:13: required from here 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/istream:1099:5: error: no type named 'type' in 'struct std::enable_if<false, void>' 1099 | operator>>(_Istream&& __is, _Tp&& __x) | ^~~~~~~~ /usr/include/c++/14/complex:509:5: note: candidate: 'template<class _Tp, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, complex<_Tp>&)' 509 | operator>>(basic_istream<_CharT, _Traits>& __is, complex<_Tp>& __x) | ^~~~~~~~ /usr/include/c++/14/complex:509:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:143: /usr/include/c++/14/iomanip:76:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Resetiosflags)' 76 | operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:76:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/iomanip:106:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setiosflags)' 106 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:106:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/include/c++/14/iomanip:137:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setbase)' 137 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:137:5: note: template argument deduction/substitution failed: a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 8 | cout >> "vowel" >> endl; | ^~~~~~~ /usr/in
s573145939
p03852
C++
#include<iostream> using namespace std; #include<string> 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:7: 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/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:8:9: 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, 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:8:9: 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 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:8:9: 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:9: 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:9: 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:9: 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/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:8:9: 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/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:9: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 8 | if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){ | ^~~ /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:8:9: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 8 | if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){ | ^~~ /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:8:9: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'char' 8 | if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){ | ^~~ /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:8:9: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'char' 8 | if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){ | ^~~ /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:8:9: note: mismatched types 'const _CharT*' and 'char' 8 | if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){ | ^~~ /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:8:9: note: mismatched types 'const _CharT*' and 'std::__cxx11::basic_string<char>' 8 | if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){ | ^~~ 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:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::tuple<_UTypes ...>' 8 | if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){ | ^~~ 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/substitution failed: a.cc:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::istreambuf_iterator<_CharT, _Traits>' 8 | if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){ | ^~~ In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/c++allocator.h:33, fr
s915403669
p03852
C++
#include<iostream> using namespace std; #include<string> int main(){ string c; cin>>c; if(c=='a'||'i'||'u'||'e'||'o'){ cout<<"vowel"<<endl;} else cout<<"consonant"<<endl; }
a.cc: In function 'int main()': a.cc:8:7: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 8 | if(c=='a'||'i'||'u'||'e'||'o'){ | ~^~~~~ | | | | | 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:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>' 8 | if(c=='a'||'i'||'u'||'e'||'o'){ | ^~~ 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:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>' 8 | if(c=='a'||'i'||'u'||'e'||'o'){ | ^~~ 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:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 8 | if(c=='a'||'i'||'u'||'e'||'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:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 8 | if(c=='a'||'i'||'u'||'e'||'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:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 8 | if(c=='a'||'i'||'u'||'e'||'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:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 8 | if(c=='a'||'i'||'u'||'e'||'o'){ | ^~~ 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:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 8 | if(c=='a'||'i'||'u'||'e'||'o'){ | ^~~ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54: /usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)' 629 | operator==(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:629:5: note: template argument deduction/substitution failed: a.cc:8:9: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 8 | if(c=='a'||'i'||'u'||'e'||'o'){ | ^~~ /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:8:9: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 8 | if(c=='a'||'i'||'u'||'e'||'o'){ | ^~~ /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:8:9: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'char' 8 | if(c=='a'||'i'||'u'||'e'||'o'){ | ^~~ /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:8:9: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'char' 8 | if(c=='a'||'i'||'u'||'e'||'o'){ | ^~~ /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:8:9: note: mismatched types 'const _CharT*' and 'char' 8 | if(c=='a'||'i'||'u'||'e'||'o'){ | ^~~ /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:8:9: note: mismatched types 'const _CharT*' and 'std::__cxx11::basic_string<char>' 8 | if(c=='a'||'i'||'u'||'e'||'o'){ | ^~~ 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:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::tuple<_UTypes ...>' 8 | if(c=='a'||'i'||'u'||'e'||'o'){ | ^~~ 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/substitution failed: a.cc:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::istreambuf_iterator<_CharT, _Traits>' 8 | if(c=='a'||'i'||'u'||'e'||'o'){ | ^~~ In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/c++allocator.h:33, from /usr/include/c++/14/bits/allocator.h:46: /usr/include/c++/14/bits/new_allocator.h:215:9: note: candidate: 'template<class _Up> bool std::operator==(const __new_allocator<char>&, const __new
s851348204
p03852
C++
#include<iostream> using namespace std; #include<string> int main(){ string c; cin>>c; if(c=='a','i','u','e','o'){ cout<<"vowel"<<endl;} else cout<<"consonant"<<endl; }
a.cc: In function 'int main()': a.cc:8:7: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 8 | if(c=='a','i','u','e','o'){ | ~^~~~~ | | | | | 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:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>' 8 | if(c=='a','i','u','e','o'){ | ^~~ 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:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>' 8 | if(c=='a','i','u','e','o'){ | ^~~ 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:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 8 | if(c=='a','i','u','e','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:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 8 | if(c=='a','i','u','e','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:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 8 | if(c=='a','i','u','e','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:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 8 | if(c=='a','i','u','e','o'){ | ^~~ 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:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 8 | if(c=='a','i','u','e','o'){ | ^~~ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54: /usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)' 629 | operator==(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:629:5: note: template argument deduction/substitution failed: a.cc:8:9: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 8 | if(c=='a','i','u','e','o'){ | ^~~ /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:8:9: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 8 | if(c=='a','i','u','e','o'){ | ^~~ /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:8:9: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'char' 8 | if(c=='a','i','u','e','o'){ | ^~~ /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:8:9: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'char' 8 | if(c=='a','i','u','e','o'){ | ^~~ /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:8:9: note: mismatched types 'const _CharT*' and 'char' 8 | if(c=='a','i','u','e','o'){ | ^~~ /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:8:9: note: mismatched types 'const _CharT*' and 'std::__cxx11::basic_string<char>' 8 | if(c=='a','i','u','e','o'){ | ^~~ 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:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::tuple<_UTypes ...>' 8 | if(c=='a','i','u','e','o'){ | ^~~ 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/substitution failed: a.cc:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::istreambuf_iterator<_CharT, _Traits>' 8 | if(c=='a','i','u','e','o'){ | ^~~ In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/c++allocator.h:33, from /usr/include/c++/14/bits/allocator.h:46: /usr/include/c++/14/bits/new_allocator.h:215:9: note: candidate: 'template<class _Up> bool std::operator==(const __new_allocator<char>&, const __new_allocator<_Tp>&)' 215 | operator==(const __new_alloca
s729972624
p03852
C++
#include<iostream> using namespace std; #include<string> int main(){ string c; cin>>c; if(c==a,i,u,e,o){ cout<<"vowel"<<endl;} else cout<<"consonant"<<endl; }
a.cc: In function 'int main()': a.cc:8:9: error: 'a' was not declared in this scope 8 | if(c==a,i,u,e,o){ | ^ a.cc:8:11: error: 'i' was not declared in this scope 8 | if(c==a,i,u,e,o){ | ^ a.cc:8:13: error: 'u' was not declared in this scope 8 | if(c==a,i,u,e,o){ | ^ a.cc:8:15: error: 'e' was not declared in this scope 8 | if(c==a,i,u,e,o){ | ^ a.cc:8:17: error: 'o' was not declared in this scope 8 | if(c==a,i,u,e,o){ | ^
s221455439
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string c; cin >> c; if ( c == "a"){ cout << "vowel" << endl; } if else ( c == "e"){ cout << "vowel" << endl; } if else( c == "i"){ cout << "vowel" << endl; } if else( c == "o"){ cout << "vowel" << endl; } if else( c == "u"){ cout << "vowel" << endl; } else{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:13:6: error: expected '(' before 'else' 13 | if else ( c == "e"){ | ^~~~ | ( a.cc:17:6: error: expected '(' before 'else' 17 | if else( c == "i"){ | ^~~~ | ( a.cc:21:6: error: expected '(' before 'else' 21 | if else( c == "o"){ | ^~~~ | ( a.cc:25:6: error: expected '(' before 'else' 25 | if else( c == "u"){ | ^~~~ | ( a.cc:29:3: error: 'else' without a previous 'if' 29 | else{ | ^~~~
s066913455
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { //入力と出力用の宣言 string A; char s; //初期条件 s='E' A="error" //入力部 cin >> s; //判定部 if(s=='a'||'i'||'u'||'e'||'o'){ A="vowel"; } else{ A="consonant"; } //出力部 cout << s << endl; }
a.cc: In function 'int main()': a.cc:10:8: error: expected ';' before 'A' 10 | s='E' | ^ | ; 11 | A="error" | ~
s273940757
p03852
C++
q
a.cc:1:1: error: 'q' does not name a type 1 | q | ^
s856541139
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 << voewl << endl; }
a.cc: In function 'int main()': a.cc:7:12: error: 'a' was not declared in this scope 7 | if (c == a || c == i || c == u || c == e || c == o) { | ^ a.cc:7:22: error: 'i' was not declared in this scope 7 | if (c == a || c == i || c == u || c == e || c == o) { | ^ a.cc:7:32: error: 'u' was not declared in this scope 7 | if (c == a || c == i || c == u || c == e || c == o) { | ^ a.cc:7:42: error: 'e' was not declared in this scope 7 | if (c == a || c == i || c == u || c == e || c == o) { | ^ a.cc:7:52: error: 'o' was not declared in this scope 7 | if (c == a || c == i || c == u || c == e || c == o) { | ^ a.cc:8:13: error: 'voewl' was not declared in this scope 8 | cout << voewl << endl; | ^~~~~ a.cc:9:4: error: expected '}' at end of input 9 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s160464529
p03852
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String name = sc.next(); System.out.println(name.match("[aiueo]")?"vowel":"consonant"); } }
Main.java:7: error: cannot find symbol System.out.println(name.match("[aiueo]")?"vowel":"consonant"); ^ symbol: method match(String) location: variable name of type String 1 error
s912911853
p03852
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String name = sc.next(); System.out.println(name.match("[aiueo]")?:"vowel":"consonant"); } }
Main.java:7: error: illegal start of expression System.out.println(name.match("[aiueo]")?:"vowel":"consonant"); ^ Main.java:7: error: ')' or ',' expected System.out.println(name.match("[aiueo]")?:"vowel":"consonant"); ^ 2 errors
s925516746
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; string str = "aiueo"; string ans = "consonant"; cin >> c; for(int i = 0; i < str.size(); i++){ if(c == str.at(i)){ ans = "vowel" break; } } cout << ans << endl; }
a.cc: In function 'int main()': a.cc:13:20: error: expected ';' before 'break' 13 | ans = "vowel" | ^ | ; 14 | break; | ~~~~~
s901860705
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; int a; a = 0 cin >> c; if(c=='a'){ cout << "vowel" <<endl; a++; } if(c=='i'){ cout << "vowel" <<endl; a++; } if(c=='u'){ cout << "vowel" <<endl; a++; } if(c=='e'){ cout << "vowel" <<endl; a++; } if(c=='o'){ cout << "vowel" <<endl; a++; } if(a==0){ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:7:8: error: expected ';' before 'cin' 7 | a = 0 | ^ | ; 8 | cin >> c; | ~~~
s098210676
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; int a; a = 0 cin >> c; if(c=='a'){ cout << vowel <<endl; a++; } if(c=='i'){ cout << vowel <<endl; a++; } if(c=='u'){ cout << vowel <<endl; a++; } if(c=='e'){ cout << vowel <<endl; a++; } if(c=='o'){ cout << vowel <<endl; a++; } if(a==0){ cout << consonant << endl; } }
a.cc: In function 'int main()': a.cc:7:8: error: expected ';' before 'cin' 7 | a = 0 | ^ | ; 8 | cin >> c; | ~~~ a.cc:10:13: error: 'vowel' was not declared in this scope 10 | cout << vowel <<endl; | ^~~~~ a.cc:14:13: error: 'vowel' was not declared in this scope 14 | cout << vowel <<endl; | ^~~~~ a.cc:18:13: error: 'vowel' was not declared in this scope 18 | cout << vowel <<endl; | ^~~~~ a.cc:22:13: error: 'vowel' was not declared in this scope 22 | cout << vowel <<endl; | ^~~~~ a.cc:26:13: error: 'vowel' was not declared in this scope 26 | cout << vowel <<endl; | ^~~~~ a.cc:30:13: error: 'consonant' was not declared in this scope 30 | cout << consonant << endl; | ^~~~~~~~~
s822309759
p03852
C++
#include <bits/stdc++.h> using namespace std; int main () { char c; cin >> c; if (c==a || e || i || o || u) { cout << "vowel" << endl; } else { cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:8:12: error: 'a' was not declared in this scope 8 | if (c==a || e || i || o || u) { | ^ a.cc:8:17: error: 'e' was not declared in this scope 8 | if (c==a || e || i || o || u) { | ^ a.cc:8:22: error: 'i' was not declared in this scope 8 | if (c==a || e || i || o || u) { | ^ a.cc:8:27: error: 'o' was not declared in this scope 8 | if (c==a || e || i || o || u) { | ^ a.cc:8:32: error: 'u' was not declared in this scope 8 | if (c==a || e || i || o || u) { | ^
s326150851
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:10:16: error: 'consonant' was not declared in this scope 10 | else cout << consonant << endl; | ^~~~~~~~~
s726402215
p03852
Java
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); String a = sc.next(); String judbe = "consonant"; if(a == "a" || a == "i" || a == "u" || a == "e" || a == "o"){ judge = "vowel"; } System.out.println(judge); } }
Main.java:11: error: cannot find symbol judge = "vowel"; ^ symbol: variable judge location: class Main Main.java:13: error: cannot find symbol System.out.println(judge); ^ symbol: variable judge location: class Main 2 errors
s978959373
p03852
Java
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); char a = (char) sc.next(); String judbe = "consonant"; if(a == 'a' || a == 'i' || a == 'u' || a == 'e' || a == 'o'){ judge = "vowel"; } System.out.println(judge); } }
Main.java:8: error: incompatible types: String cannot be converted to char char a = (char) sc.next(); ^ Main.java:11: error: cannot find symbol judge = "vowel"; ^ symbol: variable judge location: class Main Main.java:13: error: cannot find symbol System.out.println(judge); ^ symbol: variable judge location: class Main 3 errors
s601386648
p03852
Java
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); char a = sc.next(); String judbe = "consonant"; if(a == 'a' || a == 'i' || a == 'u' || a == 'e' || a == 'o'){ judge = "vowel"; } System.out.println(judge); } }
Main.java:8: error: incompatible types: String cannot be converted to char char a = sc.next(); ^ Main.java:11: error: cannot find symbol judge = "vowel"; ^ symbol: variable judge location: class Main Main.java:13: error: cannot find symbol System.out.println(judge); ^ symbol: variable judge location: class Main 3 errors
s987500701
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin>>c; while (int i==0){ 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; } i++; } }
a.cc: In function 'int main()': a.cc:7:15: error: expected initializer before '==' token 7 | while (int i==0){ | ^~ a.cc:7:15: error: expected ')' before '==' token 7 | while (int i==0){ | ~ ^~ | ) a.cc:7:15: error: expected primary-expression before '==' token 7 | while (int i==0){ | ^~
s284398788
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if (c=='a'or c=='e'or c=='u'or c=='e'or c=='o'){ cout << "vowel" << endl; } else{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:8:16: error: unable to find character literal operator 'operator""or' with 'char' argument 8 | if (c=='a'or c=='e'or c=='u'or c=='e'or c=='o'){ | ^~~~~ a.cc:8:21: error: expected ')' before 'c' 8 | if (c=='a'or c=='e'or c=='u'or c=='e'or c=='o'){ | ~ ^~ | )
s859216669
p03852
C++
#include <iostream> #include <cmath> #include <algorithm> using namespace std; int main() { string c; cin>>c; if(c=="a"|| c=="e "||c=="i"||c=="o"||c=="u") { cout<<"vowel"; else { cout<<"consonant"; } return 0; }
a.cc: In function 'int main()': a.cc:13:1: error: expected '}' before 'else' 13 | else | ^~~~ a.cc:11:1: note: to match this '{' 11 | { | ^
s846369085
p03852
C++
#define <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:1:9: error: macro names must be identifiers 1 | #define <bits/stdc++.h> | ^ a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope 6 | cin >> c; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | #define <bits/stdc++.h> a.cc:8:5: error: 'cout' was not declared in this scope 8 | cout << "vowel" << endl; | ^~~~ a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:8:24: error: 'endl' was not declared in this scope 8 | cout << "vowel" << endl; | ^~~~ a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>' +++ |+#include <ostream> 1 | #define <bits/stdc++.h> a.cc:10:5: error: 'cout' was not declared in this scope 10 | cout << "consonant" << endl; | ^~~~ a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:10:28: error: 'endl' was not declared in this scope 10 | cout << "consonant" << endl; | ^~~~ a.cc:10:28: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
s048523596
p03852
C++
#include<bits/stdc++.h> using namespace std; int main(){ char c; cin >> c; if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o')cout << "vowel" << endl; else cout << "consonant" << endl;
a.cc: In function 'int main()': a.cc:8:36: error: expected '}' at end of input 8 | else cout << "consonant" << endl; | ^ a.cc:4:11: note: to match this '{' 4 | int main(){ | ^
s042709480
p03852
C++
#include <bits/stdc++.h> #include <vector> #include <algorithm> #include <iostream> 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:10:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 10 | if (c=="a"||c=="i"||c=="u"||c=="e"||c=="o") { | ~^~~~~ a.cc:10:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 10 | if (c=="a"||c=="i"||c=="u"||c=="e"||c=="o") { | ~^~~~~ a.cc:10:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 10 | if (c=="a"||c=="i"||c=="u"||c=="e"||c=="o") { | ~^~~~~ a.cc:10:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 10 | if (c=="a"||c=="i"||c=="u"||c=="e"||c=="o") { | ~^~~~~ a.cc:10:40: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 10 | if (c=="a"||c=="i"||c=="u"||c=="e"||c=="o") { | ~^~~~~
s713959241
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char m; cin >> m; if(m=="a"||"i"||"u"||"e"||"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(m=="a"||"i"||"u"||"e"||"o"){ | ~^~~~~
s848381898
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string m; cin >> m; string i=m.at(i); if(m(i)=="a"||"i"||"u"||"e"||"o"){ cout << "vowel" << endl; } else{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:8:18: error: no matching function for call to 'std::__cxx11::basic_string<char>::at(std::string&)' 8 | string i=m.at(i); | ~~~~^~~ In file included from /usr/include/c++/14/string:54, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52, from a.cc:1: /usr/include/c++/14/bits/basic_string.h:1287:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::at(size_type) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; const_reference = const char&; size_type = long unsigned int]' 1287 | at(size_type __n) const | ^~ /usr/include/c++/14/bits/basic_string.h:1287:20: note: no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} 1287 | at(size_type __n) const | ~~~~~~~~~~^~~ /usr/include/c++/14/bits/basic_string.h:1309:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::at(size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; reference = char&; size_type = long unsigned int]' 1309 | at(size_type __n) | ^~ /usr/include/c++/14/bits/basic_string.h:1309:20: note: no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} 1309 | at(size_type __n) | ~~~~~~~~~~^~~ a.cc:9:9: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (std::string&)' 9 | if(m(i)=="a"||"i"||"u"||"e"||"o"){ | ~^~~
s844104554
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string m; cin >> m; int i=m.at(i); if(m(i)=="a"||"i"||"u"||"e"||"o"){ cout << "vowel" << endl; } else if(){ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:9:9: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int&)' 9 | if(m(i)=="a"||"i"||"u"||"e"||"o"){ | ~^~~ a.cc:13:13: error: expected primary-expression before ')' token 13 | else if(){ | ^
s856472486
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string m; cin >> m; if(m(i)=="a"||"i"||"u"||"e"||"o"){ cout << "vowel" << endl; } else if{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:8:10: error: 'i' was not declared in this scope 8 | if(m(i)=="a"||"i"||"u"||"e"||"o"){ | ^ a.cc:12:12: error: expected '(' before '{' token 12 | else if{ | ^ | (
s185942650
p03852
C
#include<stdio.h> #include<string.h> int main(){ //char S[]; //scanf("%s",S); fgets(S); int length = strlen(S); int i,frag = 0; for(i = 0; i < length; i++){ if(S[i] == 'd' && S[i + 1] == 'r' && S[i + 2] == 'e' && S[i + 3] == 'a' && S[i + 4] == 'm'){ if(S[i + 5] == 'e' && S[i + 6] == 'r'){ i += 6; } else { i += 4; } } else if(S[i] == 'e' && S[i + 1] == 'r' && S[i + 2] == 'a' && S[i + 3] == 's' && S[i + 4] == 'e'){ if(S[i + 5] == 'r'){ i += 5; } else { i += 4; } } else { frag++; break; } } if(frag == 0){ printf("YES"); } else { printf("NO"); } return 0; }
main.c: In function 'main': main.c:7:15: error: 'S' undeclared (first use in this function) 7 | fgets(S); | ^ main.c:7:15: note: each undeclared identifier is reported only once for each function it appears in main.c:7:9: error: too few arguments to function 'fgets' 7 | fgets(S); | ^~~~~ In file included from main.c:1: /usr/include/stdio.h:654:14: note: declared here 654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) | ^~~~~
s379717162
p03852
Java
import java.util.Scanner; //import java.util.Arrays; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); Srting c = scan.next(); String str = "consonant"; switch(c){ case "a": case "i": case "u": case "e": case "o": str = "vowel"; } System.out.println(str); } }
Main.java:6: error: cannot find symbol Srting c = scan.next(); ^ symbol: class Srting location: class Main 1 error
s726654414
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char s; cin >> s; if (s=='a'||s=='i'||s=='u'||s=='e'||s=='o'){ cout << "vowel" << endl; }else if{ cout << "consonant" << endl; }
a.cc: In function 'int main()': a.cc:10:11: error: expected '(' before '{' token 10 | }else if{ | ^ | ( a.cc:12:2: error: expected '}' at end of input 12 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s107470688
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string c ; cin >> c; if (c[0] = 'a' || c[0] = 'i' || c[0] = 'u' || c[0] = 'e' || c[0] = 'o') { cout << "vowel" << endl; } else { cout << "consonant" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:7:60: error: lvalue required as left operand of assignment 7 | if (c[0] = 'a' || c[0] = 'i' || c[0] = 'u' || c[0] = 'e' || c[0] = 'o') {
s669126694
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string c ; cin >> c; if (c[0] = 'a' || c[0] = 'i' || c[0] = 'u' || c[0] = 'e' || c[0] = 'o') { cout << "vowel" << endl; } else { cout << "consonant" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:7:60: error: lvalue required as left operand of assignment 7 | if (c[0] = 'a' || c[0] = 'i' || c[0] = 'u' || c[0] = 'e' || c[0] = 'o') {
s094750500
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string c; cin >> c; if (c.at(0) == 'a'||c.at(0) == 'i'||c.at(0)=='u'||c.at(0)=='e'||c.at(0)=='o'){ cout << "vowel"<< endl;} else{ cout << "consonant" << endl;} } }
a.cc:13:1: error: expected declaration before '}' token 13 | } | ^
s668198484
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if(c || "a" || "i" || "u" || "e" || "o" ||){ cout << "vowel" << endl; } else{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:8:45: error: expected primary-expression before ')' token 8 | if(c || "a" || "i" || "u" || "e" || "o" ||){ | ^
s259399691
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:11: 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:14: 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:14: 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:14: 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:14: 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:14: 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:14: 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:14: 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:14: 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:14: 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:14: 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:14: 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:14: 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:14: 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:14: 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:14: 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 == '
s687470253
p03852
C++
/** * author: moririn_cocoa **/ #include <iostream> #include <cstdio> #include <cstdlib> #include <algorithm> #include <cmath> #include <vector> #include <set> #include <map> #include <unordered_set> #include <unordered_map> #include <queue> #include <ctime> #include <cassert> #include <complex> #include <string> #include <cstring> #include <chrono> #include <random> #include <bitset> using namespace std; int main(void) { string hy9r; cin >> hy9r; if ( hy9r == a || hy9r == i || hy9r == u || hy9r == e || hy9r == o ) { cout << "vowel" << endl; } else { cout << "consonant" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:32:16: error: 'a' was not declared in this scope 32 | if ( hy9r == a || hy9r == i || hy9r == u || hy9r == e || hy9r == o ) { | ^ a.cc:32:29: error: 'i' was not declared in this scope 32 | if ( hy9r == a || hy9r == i || hy9r == u || hy9r == e || hy9r == o ) { | ^ a.cc:32:42: error: 'u' was not declared in this scope 32 | if ( hy9r == a || hy9r == i || hy9r == u || hy9r == e || hy9r == o ) { | ^ a.cc:32:55: error: 'e' was not declared in this scope 32 | if ( hy9r == a || hy9r == i || hy9r == u || hy9r == e || hy9r == o ) { | ^ a.cc:32:68: error: 'o' was not declared in this scope 32 | if ( hy9r == a || hy9r == i || hy9r == u || hy9r == e || hy9r == o ) { | ^
s021333402
p03852
Java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class main { public static void main(String[] args) throws IOException { try (BufferedReader br = new BufferedReader( new InputStreamReader(System.in))) { String in = br.readLine(); System.out.println(in.equals("a")? "vowel" :in.equals("e")? "vowel" :in.equals("i")? "vowel" :in.equals("o")? "vowel" :in.equals("u")? "vowel" :"consonant"); } } }
Main.java:5: error: class main is public, should be declared in a file named main.java public class main { ^ 1 error
s001852835
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if (c='a'||c='e'||c='u'||c='i'||c='o'){ cout << "vowel" << endl; }else{ cout << "costant" << endl; } }
a.cc: In function 'int main()': a.cc:7:33: error: lvalue required as left operand of assignment 7 | if (c='a'||c='e'||c='u'||c='i'||c='o'){ | ~~~^~~
s375414298
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string c; cin>>c; if( c=="a"){ cout<<"vowel"<<endl; } else if( c=="i"){ cout<<"vowel"<<endl; } else if( c=="u"){ cout<<"vowel"<<endl; } else if( c=="e"){ cout<<"vowel"<<endl; } else if( c=="o"){ cout<<"vowel"<<endl; } else{ cout<<consonant<<endl; } }
a.cc: In function 'int main()': a.cc:24:11: error: 'consonant' was not declared in this scope 24 | cout<<consonant<<endl; | ^~~~~~~~~
s431297615
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:7: 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:15: 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:23: 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:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(c=="a"&&c=="i"&&c=="u"&&c=="e"&&c=="o"){ | ~^~~~~
s700656689
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: 'a' was not declared in this scope 7 | if(c==a&&c==i&&c==u&&c==e&&c==o){ | ^ a.cc:7:15: error: 'i' was not declared in this scope 7 | if(c==a&&c==i&&c==u&&c==e&&c==o){ | ^ a.cc:7:21: error: 'u' was not declared in this scope 7 | if(c==a&&c==i&&c==u&&c==e&&c==o){ | ^ a.cc:7:27: error: 'e' was not declared in this scope 7 | if(c==a&&c==i&&c==u&&c==e&&c==o){ | ^ a.cc:7:33: error: 'o' was not declared in this scope 7 | if(c==a&&c==i&&c==u&&c==e&&c==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 <<endl; | ^~~~~~~~~
s571747741
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ string c; cin >> c; //母音だけ判別 if (c = "a","i","u","e","o"){ cout << vowel << endl; }else { cout << consonant << endl; } }
a.cc: In function 'int main()': a.cc:10:13: error: 'vowel' was not declared in this scope 10 | cout << vowel << endl; | ^~~~~ a.cc:12:13: error: 'consonant' was not declared in this scope 12 | cout << consonant << endl; | ^~~~~~~~~
s292040690
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:11: error: expected primary-expression before ')' token 12 | else () { | ^
s851069048
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 if () { cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:12:14: error: expected primary-expression before ')' token 12 | else if () { | ^
s385015207
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 if () { cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:12:14: error: expected primary-expression before ')' token 12 | else if () { | ^
s346258117
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; string a = "a"; string e = "e"; string i = "i"; string o = "o"; string u = "u"; cin>>s; if(s.at(0) == a || e || o || i || u){ cout<<"vowel"; }else{ cout<<"consonant"; } }
a.cc: In function 'int main()': a.cc:12:14: error: no match for 'operator==' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 12 | if(s.at(0) == a || e || o || i || u){ | ~~~~~~~ ^~ ~ | | | | | std::string {aka std::__cxx11::basic_string<char>} | __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka 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:12:17: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} 12 | if(s.at(0) == a || e || o || i || 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:12:17: note: mismatched types 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} 12 | if(s.at(0) == a || e || o || i || 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:12:17: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} 12 | if(s.at(0) == a || e || o || i || 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:12:17: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 12 | if(s.at(0) == a || e || o || i || 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:12:17: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} 12 | if(s.at(0) == a || e || o || i || 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:12:17: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 12 | if(s.at(0) == a || e || o || i || 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:12:17: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} 12 | if(s.at(0) == a || e || o || i || 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:12:17: note: mismatched types 'const std::__cxx11::match_results<_BiIter, _Alloc>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} 12 | if(s.at(0) == a || e || o || i || 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:12:17: note: mismatched types 'const std::pair<_T1, _T2>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} 12 | if(s.at(0) == a || e || o || i || 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:12:17: note: mismatched types 'const std::reverse_iterator<_Iterator>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} 12 | if(s.at(0) == a || e || o || i || 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:12:17: note: mismatched types 'const std::reverse_iterator<_Iterator>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} 12 | if(s.at(0) == a || e || o || i || 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:12:17: note: mismatched types 'const std::move_iterator<_IteratorL>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} 12 | if(s.at(0) == a || e || o || i || 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:12:17: note: mismatched types 'const std::move_iterator<_IteratorL>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} 12 | if(s.at(0) == a || e || o || i || 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:12:17: note: mismatched types 'const std::fpos<_StateT>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} 12 | if(s.at(0) == a || e || o || i || 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/allo
s423910257
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; cin>>s; if(s.at(0)== "a" || "e" || "i" || "o" || "u"){ cout<<"vowel"; }else{ cout<<"consonant"; } }
a.cc: In function 'int main()': a.cc:7:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(s.at(0)== "a" || "e" || "i" || "o" || "u"){ | ~~~~~~~^~~~~~
s332825510
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:22: error: 'C' was not declared in this scope 7 | if(c=='a'||c=='i'||C=='u'||c=='e'||c=='o') cout << "vowel" << endl; | ^
s591067719
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { int C; cin >> C; if (C=="a"){ cout << "vowel" <<endl; } else if (C=="i"){ cout << "vowal" <<endl; } else if (C=="u"){ cout << "vowal" <<endl; } else if (C=="e"){ cout << "vowal" <<endl; } else if (C=="o"){ cout << "vowal" <<endl; } else{ cout << "consonant" <<endl; } }
a.cc: In function 'int main()': a.cc:7:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if (C=="a"){ | ~^~~~~ a.cc:10:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 10 | else if (C=="i"){ | ~^~~~~ a.cc:13:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 13 | else if (C=="u"){ | ~^~~~~ a.cc:16:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 16 | else if (C=="e"){ | ~^~~~~ a.cc:19:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 19 | else if (C=="o"){ | ~^~~~~
s153758025
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { cher C; cin >> C; if (C=='a'){ cout << "vowel" <<endl; } else if (C=='i'){ cout << "vowal" <<endl; } else if (C=='u'){ cout << "vowal" <<endl; } else if (C=='e'){ cout << "vowal" <<endl; } else if (C=='o'){ cout << "vowal" <<endl; } else{ cout << "consonant" <<endl; } }
a.cc: In function 'int main()': a.cc:5:3: error: 'cher' was not declared in this scope; did you mean 'char'? 5 | cher C; | ^~~~ | char a.cc:6:10: error: 'C' was not declared in this scope 6 | cin >> C; | ^
s832975548
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { cher C; cin >> C; if (C==a){ cout << "vowel" <<endl; } else if (C==i){ cout << "vowal" <<endl; } else if (C==u){ cout << "vowal" <<endl; } else if (C==e){ cout << "vowal" <<endl; } else if (C==o){ cout << "vowal" <<endl; } else{ cout << "consonant" <<endl; } }
a.cc: In function 'int main()': a.cc:5:3: error: 'cher' was not declared in this scope; did you mean 'char'? 5 | cher C; | ^~~~ | char a.cc:6:10: error: 'C' was not declared in this scope 6 | cin >> C; | ^ a.cc:7:10: error: 'a' was not declared in this scope 7 | if (C==a){ | ^ a.cc:10:15: error: 'i' was not declared in this scope 10 | else if (C==i){ | ^ a.cc:13:15: error: 'u' was not declared in this scope 13 | else if (C==u){ | ^ a.cc:16:15: error: 'e' was not declared in this scope 16 | else if (C==e){ | ^ a.cc:19:15: error: 'o' was not declared in this scope 19 | else if (C==o){ | ^
s435984165
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o' ) cout << "vowel" << endl; else () cout << "consonant" << endl; }
a.cc: In function 'int main()': a.cc:9:9: error: expected primary-expression before ')' token 9 | else () | ^
s046110759
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char a; cin >>a; if(a=='a' || a=='i' || a=='u' ||a =='e' ||a='o'){cout <<"vowel"<<endl;} else{cout<<"consonant"<<endl;} }
a.cc: In function 'int main()': a.cc:7:41: error: lvalue required as left operand of assignment 7 | if(a=='a' || a=='i' || a=='u' ||a =='e' ||a='o'){cout <<"vowel"<<endl;} | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
s215544768
p03852
C
#include <stdio.h> int main() { char ch; scanf("%c", &ch); if (ch == 'a' || ch ==a 'e' || ch == 'i' || ch == 'o' || ch == 'u') { printf("vowel\n"); } else { printf("consonant\n"); } return 0; }
main.c: In function 'main': main.c:9:27: error: 'a' undeclared (first use in this function) 9 | if (ch == 'a' || ch ==a 'e' || ch == 'i' || ch == 'o' || ch == 'u') | ^ main.c:9:27: note: each undeclared identifier is reported only once for each function it appears in main.c:9:28: error: expected ')' before 'e' 9 | if (ch == 'a' || ch ==a 'e' || ch == 'i' || ch == 'o' || ch == 'u') | ~ ^~~~ | )
s077193402
p03852
C++
#include <stdc++.h> using namespace std; int main(){ string s; cin>>s; if (s=="a" || s=="i" || s=="e" || s=="u" || s=="o"){ cout<<"vowel"<<endl; } else{ cout<<"consonant"<<endl; } }
a.cc:1:10: fatal error: stdc++.h: No such file or directory 1 | #include <stdc++.h> | ^~~~~~~~~~ compilation terminated.
s400440480
p03852
C++
#include<bits\stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(); char aj; cin>>aj; if(aj=='a'||aj=='e'||aj=='i'||aj=='o'||aj=='u') cout<<"Since"<<" "<< aj<<" " <<"is a vowel, print vowel."<<endl; else cout<<"consonant"<<endl; return 0; }
a.cc:1:9: fatal error: bits\stdc++.h: No such file or directory 1 | #include<bits\stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s931709807
p03852
C++
#include<bits\stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(); char aj; cin>>aj; if(aj=='a'||aj=='e'||aj=='i'||aj=='o'||aj=='u') cout<<"Since"<<" "<< aj<<" " <<"is a vowel, print vowel."<<endl; else cout<<"consonant"<<endl; return 0; }
a.cc:1:9: fatal error: bits\stdc++.h: No such file or directory 1 | #include<bits\stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s644418640
p03852
C++
#include<bits\stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(); char aj; cin>>aj; if(aj=='a'||aj=='e'||aj=='i'||aj=='o'||aj=='u') cout<<"Since"<<" "<< aj<<" " <<"is a vowel, print vowel."<<endl; else cout<<"consonant"<<endl; return 0; }
a.cc:1:9: fatal error: bits\stdc++.h: No such file or directory 1 | #include<bits\stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s173509376
p03852
C++
#include<bits\stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(); char aj; cin>>aj; if(aj=='a'||aj=='e'||aj=='i'||aj=='o'||aj=='u') cout<<"Since"<<" "<< aj<<" " <<"is a vowel, print vowel."<<endl; else cout<<"consonant"<<endl; }
a.cc:1:9: fatal error: bits\stdc++.h: No such file or directory 1 | #include<bits\stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s938919243
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { int c; cin >> c; if(c == a){ cout << "vowel" << endl; } else if(c == e){ cout << "vowel" << endl; } else if(c == i){ cout << "vowel" << endl; } else if(c == o){ cout << "vowel" << endl; } else if(c == u){ cout << "vowel" << endl; } else{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:8:11: error: 'a' was not declared in this scope 8 | if(c == a){ | ^ a.cc:11:16: error: 'e' was not declared in this scope 11 | else if(c == e){ | ^ a.cc:14:16: error: 'i' was not declared in this scope 14 | else if(c == i){ | ^ a.cc:17:16: error: 'o' was not declared in this scope 17 | else if(c == o){ | ^ a.cc:20:16: error: 'u' was not declared in this scope 20 | else if(c == u){ | ^
s207011757
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { int c; cin >> c >> endl; if(c == a){ cout << "vowel" << endl; } else if(c == e){ cout << "vowel" << endl; } else if(c == i){ cout << "vowel" << endl; } else if(c == o){ cout << "vowel" << endl; } else if(c == u){ cout << "vowel" << endl; } else{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:6:12: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and '<unresolved overloaded function type>') 6 | 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 over
s295348761
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') | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
s181076075
p03852
C++
#include<iostream> using namespace std; int main(){ char c; cin>>c; if(c=="a") cout<<"vowel"<<endl; else if(c=="i") cout<<"vowel"<<endl; else if(c=="u") cout<<"vowel"<<endl; else if(c=="e") cout<<"vowel"<<endl; else if(c=="o") cout<<"vowel"<<endl; else cout<<"consonant"<<endl; }
a.cc: In function 'int main()': a.cc:6:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 6 | if(c=="a") | ~^~~~~ a.cc:8:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | else if(c=="i") | ~^~~~~ a.cc:10:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 10 | else if(c=="u") | ~^~~~~ a.cc:12:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 12 | else if(c=="e") | ~^~~~~ a.cc:14:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 14 | else if(c=="o") | ~^~~~~
s679098252
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; sin >> c; if(c == 'a'||c=='i'||c=='u'||c=='e'||c=='o'){ cout << "vowel"<<endl; }else{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:6:6: error: invalid operands of types '<unresolved overloaded function type>' and 'char' to binary 'operator>>' 6 | sin >> c; | ~~~~^~~~
s538286368
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char A; cin >> A; if(A == "a" || "i" || "u" || "e" || "o" ){ cout << "vowel" << endl; } else{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:9:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 9 | if(A == "a" || "i" || "u" || "e" || "o" ){ | ~~^~~~~~
s932763760
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ string A; cin >> A; if( A == "a" || "i" || "u" || "e" || "o" ){ cout << "vowel" << endl; } else if{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:15:10: error: expected '(' before '{' token 15 | else if{ | ^ | (
s423400588
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char A; cin >> A; if(A == a || b || c || d || e ){ cout << "vowel" << endl; } else{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:9:11: error: 'a' was not declared in this scope 9 | if(A == a || b || c || d || e ){ | ^ a.cc:9:16: error: 'b' was not declared in this scope 9 | if(A == a || b || c || d || e ){ | ^ a.cc:9:21: error: 'c' was not declared in this scope 9 | if(A == a || b || c || d || e ){ | ^ a.cc:9:26: error: 'd' was not declared in this scope 9 | if(A == a || b || c || d || e ){ | ^ a.cc:9:31: error: 'e' was not declared in this scope 9 | if(A == a || b || c || d || e ){ | ^
s430146630
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char A; cin >> A; if(A == "a" || "b" || "c" || "d" || "e" ){ cout << "vowel" << endl; } else{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:9:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 9 | if(A == "a" || "b" || "c" || "d" || "e" ){ | ~~^~~~~~
s307712399
p03852
C++
#include<iostream> using namespace std; int main(){ char s; cin>>s; const string vowel="aeiou"; cout<<vowel.find(s)==string::npos ? "vowel":"consonant"<<endl; }
a.cc: In function 'int main()': a.cc:7:22: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'}) 7 | cout<<vowel.find(s)==string::npos ? "vowel":"consonant"<<endl; | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ | | | | | const std::__cxx11::basic_string<char>::size_type {aka const long unsigned int} | std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>} a.cc:7:22: note: candidate: 'operator==(int, std::__cxx11::basic_string<char>::size_type {aka long unsigned int})' (built-in) 7 | cout<<vowel.find(s)==string::npos ? "vowel":"consonant"<<endl; | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ a.cc:7:22: note: no known conversion for argument 1 from 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} to 'int' 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:7:32: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::fpos<_StateT>' 7 | cout<<vowel.find(s)==string::npos ? "vowel":"consonant"<<endl; | ^~~~ In file included from /usr/include/c++/14/string:43, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/include/c++/14/bits/ios_base.h:41, from /usr/include/c++/14/ios:44: /usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)' 235 | operator==(const allocator<_T1>&, const allocator<_T2>&) | ^~~~~~~~ /usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed: a.cc:7:32: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::allocator<_CharT>' 7 | cout<<vowel.find(s)==string::npos ? "vowel":"consonant"<<endl; | ^~~~ In file included from /usr/include/c++/14/string:48: /usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 441 | operator==(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed: a.cc:7:32: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 7 | cout<<vowel.find(s)==string::npos ? "vowel":"consonant"<<endl; | ^~~~ /usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 486 | operator==(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed: a.cc:7:32: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 7 | cout<<vowel.find(s)==string::npos ? "vowel":"consonant"<<endl; | ^~~~ /usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1667 | operator==(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed: a.cc:7:32: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 7 | cout<<vowel.find(s)==string::npos ? "vowel":"consonant"<<endl; | ^~~~ /usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1737 | operator==(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed: a.cc:7:32: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 7 | cout<<vowel.find(s)==string::npos ? "vowel":"consonant"<<endl; | ^~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/string:51: /usr/include/c++/14/bits/stl_pair.h: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:32: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::pair<_T1, _T2>' 7 | cout<<vowel.find(s)==string::npos ? "vowel":"consonant"<<endl; | ^~~~ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54: /usr/include/c++/14/string_view: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:7:32: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 7 | cout<<vowel.find(s)==string::npos ? "vowel":"consonant"<<endl; | ^~~~ /usr/include/c++/14/string_view:637:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 637 | operator==(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:637:5: note: template argument deduction/substitution failed: a.cc:7:32: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 7 | cout<<vowel.find(s)==string::npos ? "vowel":"consonant"<<endl; | ^~~~ /usr/include/c++/14/string_view:644:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)' 644 | operator==(__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:644:5: note: template argument deduction/substitution failed: a.cc:7:32: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'long unsigned int' 7 | cout<<vowel.find(s)==string::npos ? "vowel":"consonant"<<endl; | ^~~~ /usr/include/c++/14/bits/basic_string.h:3755:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3755 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3755:5: note: template argument deduction/substitution failed: a.cc:7:32: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 7 | cout<<vowel.find(s)==string::npos ? "vowel":"consonant"<<endl; | ^~~~ /usr/include/c++/14/bits/basic_string.h:3772:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)' 3772 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3772:5: note: template argument deduction/substitution failed: a.cc:7:32: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 7 | cout<<vowel.find(s)==string::npos ? "vowel":"consonant"<<endl; | ^~~~ /usr/include/c++/14/bits/basic_string.h:3819:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3819 | operator==(const _CharT* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3819:5: note: template argument deduction/substitution failed: a.cc:7:32: note: mismatched types 'const _CharT*' and 'std::basic_ostream<char>' 7 | cout<<vowel.find(s)==string::npos ? "vowel":"consonant"<<endl; | ^~~~ In file included from /usr/include/c++/14
s089961597
p03852
C++
#include<iostream> using namespace std; int main(){ char s; cin>>s; const string vowel="aeiou"; cout<<vowel.find(c)==string::npos ? "vowel":"consonant"<<endl; }
a.cc: In function 'int main()': a.cc:7:20: error: 'c' was not declared in this scope 7 | cout<<vowel.find(c)==string::npos ? "vowel":"consonant"<<endl; | ^ a.cc:7:58: error: invalid operands of types 'const char [10]' and '<unresolved overloaded function type>' to binary 'operator<<' 7 | cout<<vowel.find(c)==string::npos ? "vowel":"consonant"<<endl; | ~~~~~~~~~~~^~~~~~
s085142567
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u'){ cout << vowel << endl; }else{ cout << consonant << endl; } }
a.cc: In function 'int main()': a.cc:8:13: error: 'vowel' was not declared in this scope 8 | cout << vowel << endl; | ^~~~~ a.cc:10:13: error: 'consonant' was not declared in this scope 10 | cout << consonant << endl; | ^~~~~~~~~
s710678558
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; bool vowel = false; for (int i = 0; i < 5; i++) { if "aiueo"s.at(i) == c { cout << "vowel" << endl; vowel = true; } } if (vowel == false) { cout << "constant" << endl; } }
a.cc: In function 'int main()': a.cc:13:7: error: expected '(' before user-defined string literal 13 | "aiueo"s.at(i) == c { | ^~~~~~~~ | (
s972829428
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string c; if(c=="a")||(c=="i")||(c=="u")||(c=="e")||(c=="o") cout << "vowel" << endl; } else { cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:6:13: error: expected primary-expression before '||' token 6 | if(c=="a")||(c=="i")||(c=="u")||(c=="e")||(c=="o") | ^~ a.cc: At global scope: a.cc:9:1: error: expected unqualified-id before 'else' 9 | else { | ^~~~ a.cc:12:1: error: expected declaration before '}' token 12 | } | ^
s360361613
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string c; cin >> c; if(c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') cout << "vowel" << endl; else cout << "consonant" << endl; return 0; }
a.cc: In function 'int main()': a.cc:8:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 8 | if(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:1: /usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed: a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 8 | if(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:8:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 8 | 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:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 8 | 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:8:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 8 | 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:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 8 | 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:8:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 8 | 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:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 8 | 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:8:11: 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 == '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/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51: /usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed: a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 8 | if(c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == '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:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 8 | 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:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 8 | 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:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 8 | 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:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 8 | if(c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == '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:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>' 8 | if(c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == '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:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>' 8 | 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/in
s750869001
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' else { cout << 'consonant' } }
a.cc:9:13: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes 9 | cout << 'vowel' | ^~~~~~~ a.cc:12:13: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes 12 | cout << 'consonant' | ^~~~~~~~~~~ a.cc: In function 'int main()': a.cc:9:20: error: expected ';' before 'else' 9 | cout << 'vowel' | ^ | ; 10 | else | ~~~~
s839063322
p03852
C++
#include <iostream> using namespace std;, char ans[5]={'a','b','c','d','e'}; int main(){ string c; cin>>c; for(int i=0;i<5;i++){ if(c[0]==ans[i]){ cout<<"vowel"<<endl; return 0; } } cout<<"consonant"<<endl; return 0; }
a.cc:3:21: error: expected unqualified-id before ',' token 3 | using namespace std;, | ^ a.cc:5:1: error: expected unqualified-id before 'char' 5 | char ans[5]={'a','b','c','d','e'}; | ^~~~ a.cc: In function 'int main()': a.cc:11:14: error: 'ans' was not declared in this scope; did you mean 'abs'? 11 | if(c[0]==ans[i]){ | ^~~ | abs
s602391154
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin>>c; if(c == "a"||"i"||"u"||"e"||"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"||"i"||"u"||"e"||"o"){ | ~~^~~~~~
s492774733
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin>>c; if(c=="a"||"i"||"u"||"e"||"o"){ cout<<"vowel"<<endl; } else{ cout<<"consonant"<<endl; } }
a.cc: In function 'int main()': a.cc:7:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(c=="a"||"i"||"u"||"e"||"o"){ | ~^~~~~
s836968264
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:5:8: error: expected unqualified-id before '=' token 5 | char = c; | ^ a.cc:6:10: error: 'c' was not declared in this scope 6 | cin >> c; | ^
s861191518
p03852
C++
#include <bits/stdc++.h> #include <iostream> 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:15: 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')cout << "vowel" << endl; | ~ ^~ ~~~ | | | | | 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:18: 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')cout << "vowel" << endl; | ^~~ /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:18: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 8 | if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o')cout << "vowel" << endl; | ^~~ /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:18: 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')cout << "vowel" << endl; | ^~~ /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:18: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 8 | if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o')cout << "vowel" << endl; | ^~~ /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:18: 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')cout << "vowel" << endl; | ^~~ /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:18: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 8 | if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o')cout << "vowel" << endl; | ^~~ /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:18: 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')cout << "vowel" << endl; | ^~~ /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:18: 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')cout << "vowel" << endl; | ^~~ 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:18: 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')cout << "vowel" << endl; | ^~~ 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:18: 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')cout << "vowel" << endl; | ^~~ /usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 486 | operator==(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed: a.cc:8:18: 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')cout << "vowel" << endl; | ^~~ /usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1667 | operator==(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed: a.cc:8:18: 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')cout << "vowel" << endl; | ^~~ /usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1737 | operator==(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed: a.cc:8:18: 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')cout << "vowel" << endl; | ^~~ 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:18: 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')cout << "vowel" << endl; | ^~~ In file included from /usr/include/c++/14/string:43: /usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class
s990781701
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"){ | ~~^~~~~~
s802805729
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:29: 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:39: 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:49: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(c == "a" || c=="i" || c=="u" || c=="e" || c=="o"){ | ~^~~~~
s704182612
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if (c == 'a', 'i', 'u', 'e', 'o') { cout << "vowel" << endl; else cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:10:3: error: expected '}' before 'else' 10 | else cout << "consonant" << endl; | ^~~~ a.cc:8:37: note: to match this '{' 8 | if (c == 'a', 'i', 'u', 'e', 'o') { | ^ a.cc: At global scope: a.cc:12:1: error: expected declaration before '}' token 12 | } | ^
s843842386
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if (c.at(0) == 'a', 'i', 'u', 'e', 'o') { cout << "vowel" << endl; } else cout << "consonant" << endl; }
a.cc: In function 'int main()': a.cc:8:9: error: request for member 'at' in 'c', which is of non-class type 'char' 8 | if (c.at(0) == 'a', 'i', 'u', 'e', 'o') { | ^~
s503307905
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if (c.at(0) == a, i, u, e, o) { cout << "vowel" << endl; } else cout << "consonant" << endl; }
a.cc: In function 'int main()': a.cc:8:9: error: request for member 'at' in 'c', which is of non-class type 'char' 8 | if (c.at(0) == a, i, u, e, o) { | ^~ a.cc:8:18: error: 'a' was not declared in this scope 8 | if (c.at(0) == a, i, u, e, o) { | ^ a.cc:8:21: error: 'i' was not declared in this scope 8 | if (c.at(0) == a, i, u, e, o) { | ^ a.cc:8:24: error: 'u' was not declared in this scope 8 | if (c.at(0) == a, i, u, e, o) { | ^ a.cc:8:27: error: 'e' was not declared in this scope 8 | if (c.at(0) == a, i, u, e, o) { | ^ a.cc:8:30: error: 'o' was not declared in this scope 8 | if (c.at(0) == a, i, u, e, o) { | ^
s414090990
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char 'c'; cin >> 'c'; if ('c'.at(0) == a, i, u, e, o) { cout << "vowel" << endl; } else cout << "consonant" << endl; }
a.cc: In function 'int main()': a.cc:5:8: error: expected unqualified-id before 'c' 5 | char 'c'; | ^~~ a.cc:6:7: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'char') 6 | cin >> 'c'; | ~~~ ^~ ~~~ | | | | | char | std::istream {aka std::basic_istream<char>} 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>]' (near match) 170 | operator>>(bool& __n) | ^~~~~~~~ /usr/include/c++/14/istream:170:7: note: conversion of argument 1 would be ill-formed: a.cc:6:10: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'char' 6 | cin >> 'c'; | ^~~ /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>]' (near match) 174 | operator>>(short& __n); | ^~~~~~~~ /usr/include/c++/14/istream:174:7: note: conversion of argument 1 would be ill-formed: a.cc:6:10: error: cannot bind non-const lvalue reference of type 'short int&' to a value of type 'char' 6 | cin >> 'c'; | ^~~ /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>]' (near match) 177 | operator>>(unsigned short& __n) | ^~~~~~~~ /usr/include/c++/14/istream:177:7: note: conversion of argument 1 would be ill-formed: a.cc:6:10: error: cannot bind non-const lvalue reference of type 'short unsigned int&' to a value of type 'char' 6 | cin >> 'c'; | ^~~ /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>]' (near match) 181 | operator>>(int& __n); | ^~~~~~~~ /usr/include/c++/14/istream:181:7: note: conversion of argument 1 would be ill-formed: a.cc:6:10: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'char' 6 | cin >> 'c'; | ^~~ /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>]' (near match) 184 | operator>>(unsigned int& __n) | ^~~~~~~~ /usr/include/c++/14/istream:184:7: note: conversion of argument 1 would be ill-formed: a.cc:6:10: error: cannot bind non-const lvalue reference of type 'unsigned int&' to a value of type 'char' 6 | cin >> 'c'; | ^~~ /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>]' (near match) 188 | operator>>(long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:188:7: note: conversion of argument 1 would be ill-formed: a.cc:6:10: error: cannot bind non-const lvalue reference of type 'long int&' to a value of type 'char' 6 | cin >> 'c'; | ^~~ /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>]' (near match) 192 | operator>>(unsigned long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:192:7: note: conversion of argument 1 would be ill-formed: a.cc:6:10: error: cannot bind non-const lvalue reference of type 'long unsigned int&' to a value of type 'char' 6 | cin >> 'c'; | ^~~ /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>]' (near match) 199 | operator>>(long long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:199:7: note: conversion of argument 1 would be ill-formed: a.cc:6:10: error: cannot bind non-const lvalue reference of type 'long long int&' to a value of type 'char' 6 | cin >> 'c'; | ^~~ /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>]' (near match) 203 | operator>>(unsigned long long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:203:7: note: conversion of argument 1 would be ill-formed: a.cc:6:10: error: cannot bind non-const lvalue reference of type 'long long unsigned int&' to a value of type 'char' 6 | cin >> 'c'; | ^~~ /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>]' (near match) 219 | operator>>(float& __f) | ^~~~~~~~ /usr/include/c++/14/istream:219:7: note: conversion of argument 1 would be ill-formed: a.cc:6:10: error: cannot bind non-const lvalue reference of type 'float&' to a value of type 'char' 6 | cin >> 'c'; | ^~~ /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>]' (near match) 223 | operator>>(double& __f) | ^~~~~~~~ /usr/include/c++/14/istream:223:7: note: conversion of argument 1 would be ill-formed: a.cc:6:10: error: cannot bind non-const lvalue reference of type 'double&' to a value of type 'char' 6 | cin >> 'c'; | ^~~ /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>]' (near match) 227 | operator>>(long double& __f) | ^~~~~~~~ /usr/include/c++/14/istream:227:7: note: conversion of argument 1 would be ill-formed: a.cc:6:10: error: cannot bind non-const lvalue reference of type 'long double&' to a value of type 'char' 6 | cin >> 'c'; | ^~~ /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>]' (near match) 328 | operator>>(void*& __p) | ^~~~~~~~ /usr/include/c++/14/istream:328:7: note: conversion of argument 1 would be ill-formed: a.cc:6:10: error: invalid conversion from 'char' to 'void*' [-fpermissive] 6 | cin >> 'c'; | ^~~ | | | char a.cc:6:10: error: cannot bind rvalue '(void*)99' to 'void*&' /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>]' (near match) 122 | operator>>(__istream_type& (*__pf)(__istream_type&)) | ^~~~~~~~ /usr/include/c++/14/istream:122:7: note: conversion of argument 1 would be ill-formed: a.cc:6:10: error: invalid conversion from 'char' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&)' {aka 'std::basic_istream<char>& (*)(std::basic_istream<char>&)'} [-fpermissive] 6 | cin >> 'c'; | ^~~ | | | char /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>]' (near match) 126 | operator>>(__ios_type& (*__pf)(__ios_type&)) | ^~~~~~~~ /usr/include/c++/14/istream:126:7: note: conversion of argument 1 would be ill-formed: a.cc:6:10: error: invalid conversion from 'char' to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'} [-fpermissive] 6 | cin >> 'c'; | ^~~ | | | char /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>]' (near match) 133 | operator>>(ios_base& (*__pf)(ios_base&)) | ^~~~~~~~ /usr/include/c++/14/istream:133:7: note: conversion of argument 1 would be ill-formed: a.cc:6:10: error: invalid conversion