submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3 values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s714525871 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if(c==a||i||u||e||o)
cout << "vowel";
else
cout << "constant";
}
| a.cc: In function 'int main()':
a.cc:7:9: error: 'a' was not declared in this scope
7 | if(c==a||i||u||e||o)
| ^
a.cc:7:12: error: 'i' was not declared in this scope
7 | if(c==a||i||u||e||o)
| ^
a.cc:7:15: error: 'u' was not declared in this scope
7 | if(c==a||i||u||e||o)
| ^
a.cc:7:18: error: 'e' was not declared in this scope
7 | if(c==a||i||u||e||o)
| ^
a.cc:7:21: error: 'o' was not declared in this scope
7 | if(c==a||i||u||e||o)
| ^
|
s331181196 | p03852 | C | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if('c'== 'a'){
cout << "vowel" << endl;
}
if('c' == 'i'){
cout << "vowel" << endl;
}
if('c' == 'u'){
cout << "vowel" << endl;
}
if('c' == 'e'){
cout << "vowel" << endl;
}
if('c' == 'o'){
cout << "vowel" << endl;
}
if ('c' !='a' && 'c' != 'i' && 'c' != 'u' && 'c' != 'e' && 'c' != 'o'){
cout << "consonant" <<endl;
}
} | main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
1 | #include <bits/stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s338019821 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char s;
cin >> s;
if(s=='a' || S=='i' || S=='u' || S=='e' || S=='o'){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:7:16: error: 'S' was not declared in this scope
7 | if(s=='a' || S=='i' || S=='u' || S=='e' || S=='o'){
| ^
|
s909614486 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string c;
cin >> c;
if(c == 'a')
cout << "vowel" << endl;
if(c == 'i')
cout << "vowel" << endl;
if(c == 'u')
cout << "vowel" << endl;
if(c == 'e')
cout << "vowel" << endl;
if(c == 'o')
cout << "vowel" << endl;
else
cout << "consonant" << endl;
} | a.cc: In function 'int main()':
a.cc:8:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
8 | if(c == 'a')
| ~ ^~ ~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if(c == 'a')
| ^~~
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if(c == 'a')
| ^~~
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if(c == 'a')
| ^~~
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if(c == 'a')
| ^~~
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if(c == 'a')
| ^~~
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if(c == 'a')
| ^~~
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if(c == 'a')
| ^~~
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:8: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')
| ^~~
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')
| ^~~
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')
| ^~~
/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')
| ^~~
/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')
| ^~~
/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')
| ^~~
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')
| ^~~
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')
| ^~~
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:11: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
8 | if(c == 'a')
| ^~~
/usr/include/c++/14/string_view:637:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, basic_string_view<_Cha |
s398259123 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c; // 変数sで入力を一行受け取る
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:9: error: could not convert 'c.std::__cxx11::basic_string<char>::operator=(((const char*)"a"))' from 'std::__cxx11::basic_string<char>' to 'bool'
8 | if (c = "a") {
| ~~^~~~~
| |
| std::__cxx11::basic_string<char>
a.cc:11:14: error: could not convert 'c.std::__cxx11::basic_string<char>::operator=(((const char*)"e"))' from 'std::__cxx11::basic_string<char>' to 'bool'
11 | else if (c = "e") {
| ~~^~~~~
| |
| std::__cxx11::basic_string<char>
a.cc:14:14: error: could not convert 'c.std::__cxx11::basic_string<char>::operator=(((const char*)"i"))' from 'std::__cxx11::basic_string<char>' to 'bool'
14 | else if (c = "i") {
| ~~^~~~~
| |
| std::__cxx11::basic_string<char>
a.cc:17:14: error: could not convert 'c.std::__cxx11::basic_string<char>::operator=(((const char*)"o"))' from 'std::__cxx11::basic_string<char>' to 'bool'
17 | else if (c = "o") {
| ~~^~~~~
| |
| std::__cxx11::basic_string<char>
a.cc:20:14: error: could not convert 'c.std::__cxx11::basic_string<char>::operator=(((const char*)"u"))' from 'std::__cxx11::basic_string<char>' to 'bool'
20 | else if (c = "u") {
| ~~^~~~~
| |
| std::__cxx11::basic_string<char>
|
s604835231 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
getline(c); // 変数sで入力を一行受け取る
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:10: error: no matching function for call to 'getline(std::string&)'
6 | getline(c); // 変数sで入力を一行受け取る
| ~~~~~~~^~~
In file included from /usr/include/c++/14/string:55,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
from a.cc:1:
/usr/include/c++/14/bits/basic_string.tcc:907:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&, _CharT)'
907 | getline(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~
/usr/include/c++/14/bits/basic_string.tcc:907:5: note: candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/string:54:
/usr/include/c++/14/bits/basic_string.h:4117:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4117 | getline(basic_istream<_CharT, _Traits>& __is,
| ^~~~~~~
/usr/include/c++/14/bits/basic_string.h:4117:5: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/basic_string.h:4125:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&, _CharT)'
4125 | getline(basic_istream<_CharT, _Traits>&& __is,
| ^~~~~~~
/usr/include/c++/14/bits/basic_string.h:4125:5: note: candidate expects 3 arguments, 1 provided
/usr/include/c++/14/bits/basic_string.h:4132:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4132 | getline(basic_istream<_CharT, _Traits>&& __is,
| ^~~~~~~
/usr/include/c++/14/bits/basic_string.h:4132:5: note: candidate expects 2 arguments, 1 provided
In file included from /usr/include/c++/14/cstdio:42,
from /usr/include/c++/14/ext/string_conversions.h:45,
from /usr/include/c++/14/bits/basic_string.h:4154:
/usr/include/stdio.h:697:18: note: candidate: '__ssize_t getline(char**, size_t*, FILE*)'
697 | extern __ssize_t getline (char **__restrict __lineptr,
| ^~~~~~~
/usr/include/stdio.h:697:18: note: candidate expects 3 arguments, 1 provided
a.cc:8:9: error: could not convert 'c.std::__cxx11::basic_string<char>::operator=(((const char*)"a"))' from 'std::__cxx11::basic_string<char>' to 'bool'
8 | if (c = "a") {
| ~~^~~~~
| |
| std::__cxx11::basic_string<char>
a.cc:11:14: error: could not convert 'c.std::__cxx11::basic_string<char>::operator=(((const char*)"e"))' from 'std::__cxx11::basic_string<char>' to 'bool'
11 | else if (c = "e") {
| ~~^~~~~
| |
| std::__cxx11::basic_string<char>
a.cc:14:14: error: could not convert 'c.std::__cxx11::basic_string<char>::operator=(((const char*)"i"))' from 'std::__cxx11::basic_string<char>' to 'bool'
14 | else if (c = "i") {
| ~~^~~~~
| |
| std::__cxx11::basic_string<char>
a.cc:17:14: error: could not convert 'c.std::__cxx11::basic_string<char>::operator=(((const char*)"o"))' from 'std::__cxx11::basic_string<char>' to 'bool'
17 | else if (c = "o") {
| ~~^~~~~
| |
| std::__cxx11::basic_string<char>
a.cc:20:14: error: could not convert 'c.std::__cxx11::basic_string<char>::operator=(((const char*)"u"))' from 'std::__cxx11::basic_string<char>' to 'bool'
20 | else if (c = "u") {
| ~~^~~~~
| |
| std::__cxx11::basic_string<char>
|
s076552089 | 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:11: 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;
| ^~~~~~~~~
a.cc:12:2: error: expected '}' at end of input
12 | }
| ^
a.cc:4:11: note: to match this '{'
4 | int main(){
| ^
|
s346505560 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, srt, end) for (long long i = (srt); i < (long long)(end); i++)
#define VL vector<ll>
#define VS vector<string>
#define VB vector<bool>
#define VP vector<pair<ll,ll>>
#define VVL vector<vector<ll>>
#define VVP vector<vector<pair<ll,ll>>>
#define PL pair<ll,ll>
#define ALL(v) (v).begin(), (v).end()
int main(){
char c ;
cin >> c ;
const string vowel = " aeiou ";
cout << vowel.find(c) == string::npos ? "vowel" : "consonant" << endl ;
return 0;
} | a.cc: In function 'int main()':
a.cc:18:27: 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'})
18 | cout << vowel.find(c) == 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:18:27: note: candidate: 'operator==(int, std::__cxx11::basic_string<char>::size_type {aka long unsigned int})' (built-in)
18 | cout << vowel.find(c) == string::npos ? "vowel" : "consonant" << endl ;
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
a.cc:18:27: 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/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:18:38: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
18 | cout << vowel.find(c) == string::npos ? "vowel" : "consonant" << 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:18:38: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
18 | cout << vowel.find(c) == string::npos ? "vowel" : "consonant" << 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:18:38: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
18 | cout << vowel.find(c) == string::npos ? "vowel" : "consonant" << 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:18:38: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'}
18 | cout << vowel.find(c) == string::npos ? "vowel" : "consonant" << 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:18:38: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
18 | cout << vowel.find(c) == string::npos ? "vowel" : "consonant" << 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:18:38: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'}
18 | cout << vowel.find(c) == string::npos ? "vowel" : "consonant" << 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:18:38: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
18 | cout << vowel.find(c) == string::npos ? "vowel" : "consonant" << 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:18:38: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
18 | cout << vowel.find(c) == string::npos ? "vowel" : "consonant" << 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:18:38: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::pair<_T1, _T2>'
18 | cout << vowel.find(c) == string::npos ? "vowel" : "consonant" << 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:18:38: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
18 | cout << vowel.find(c) == 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:18:38: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
18 | cout << vowel.find(c) == 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:18:38: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
18 | cout << vowel.find(c) == 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:18:38: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from ' |
s362098972 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char a;
cin >> a;
if ( a=='a' || a=-'i' || a=='u' || a=='e' || a=='o' )
cout << "vowel" << endl;
else
cout << "consonant" << endl;
}
| a.cc: In function 'int main()':
a.cc:8:15: error: lvalue required as left operand of assignment
8 | if ( a=='a' || a=-'i' || a=='u' || a=='e' || a=='o' )
| ~~~~~~~^~~~
|
s779900514 | 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:11:3: error: expected '}' before 'else'
11 | else{
| ^~~~
a.cc:8:65: note: to match this '{'
8 | if( c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u' ){
| ^
a.cc:14:2: error: expected '}' at end of input
14 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s555264422 | 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:15: error: 'C' was not declared in this scope
7 | if (c=='a'||C=='e'||C=='i'||C=='o'||C=='u'){
| ^
|
s048096196 | 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:9:13: error: 'vowel' was not declared in this scope
9 | cout << vowel << endl;
| ^~~~~
a.cc:12:13: error: 'consonant' was not declared in this scope
12 | cout << consonant << endl;
| ^~~~~~~~~
|
s509252031 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char a;
cin >> a;
>> 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:5: error: expected primary-expression before '>>' token
7 | >> a;
| ^~
a.cc:10:13: error: 'vowel' was not declared in this scope
10 | cout << vowel << endl;
| ^~~~~
a.cc:13:13: error: 'consonant' was not declared in this scope
13 | cout << consonant << endl;
| ^~~~~~~~~
|
s046350795 | 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:6:3: error: expected initializer before 'cin'
6 | cin
| ^~~
a.cc:9:7: error: 'a' was not declared in this scope
9 | if (a == 'a' || a == 'i' || a == 'u' || a == 'e' || a == 'o') {
| ^
a.cc:10:13: error: 'vowel' was not declared in this scope
10 | cout << vowel << endl;
| ^~~~~
a.cc:13:13: error: 'consonant' was not declared in this scope
13 | cout << consonant << endl;
| ^~~~~~~~~
|
s761548088 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char c;
cin >> c;
if(c=='a' || c='i' || c=='u'||c=='e'||c=='o'){
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:13: error: lvalue required as left operand of assignment
8 | if(c=='a' || c='i' || c=='u'||c=='e'||c=='o'){
| ~~~~~~~^~~~
|
s126576441 | 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:13: error: no match for 'operator||' (operand types are 'bool' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
8 | if(c=="a" || c="i" || c=="u"||c=="e"||c=="o"){
| ~~~~~~ ^~ ~
| | |
| bool std::string {aka std::__cxx11::basic_string<char>}
a.cc:8:13: note: candidate: 'operator||(bool, bool)' (built-in)
8 | if(c=="a" || c="i" || c=="u"||c=="e"||c=="o"){
| ~~~~~~~^~~~
a.cc:8:13: note: no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
In file included from /usr/include/c++/14/valarray:605,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166,
from a.cc:1:
/usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const _Expr<_Dom2, typename _Dom2::value_type>&)'
416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed:
a.cc:8:16: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'bool'
8 | if(c=="a" || c="i" || c=="u"||c=="e"||c=="o"){
| ^
/usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)'
416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed:
a.cc:8:16: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'bool'
8 | if(c=="a" || c="i" || c=="u"||c=="e"||c=="o"){
| ^
/usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const typename _Dom::value_type&, const _Expr<_Dom1, typename _Dom1::value_type>&)'
416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed:
a.cc:8:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
8 | if(c=="a" || c="i" || c=="u"||c=="e"||c=="o"){
| ^
/usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_ValArray, _Dom, typename _Dom::value_type>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const valarray<typename _Dom::value_type>&)'
416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed:
a.cc:8:16: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'bool'
8 | if(c=="a" || c="i" || c=="u"||c=="e"||c=="o"){
| ^
/usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_ValArray, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const valarray<typename _Dom::value_type>&, const _Expr<_Dom1, typename _Dom1::value_type>&)'
416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed:
a.cc:8:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
8 | if(c=="a" || c="i" || c=="u"||c=="e"||c=="o"){
| ^
/usr/include/c++/14/valarray:1207:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_ValArray, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__logical_or, _Tp>::result_type> std::operator||(const valarray<_Tp>&, const valarray<_Tp>&)'
1207 | _DEFINE_BINARY_OPERATOR(||, __logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/valarray:1207:1: note: template argument deduction/substitution failed:
a.cc:8:16: note: mismatched types 'const std::valarray<_Tp>' and 'bool'
8 | if(c=="a" || c="i" || c=="u"||c=="e"||c=="o"){
| ^
/usr/include/c++/14/valarray:1207:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_ValArray, std::_Constant, _Tp, _Tp>, typename std::__fun<std::__logical_or, _Tp>::result_type> std::operator||(const valarray<_Tp>&, const typename valarray<_Tp>::value_type&)'
1207 | _DEFINE_BINARY_OPERATOR(||, __logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/valarray:1207:1: note: template argument deduction/substitution failed:
a.cc:8:16: note: mismatched types 'const std::valarray<_Tp>' and 'bool'
8 | if(c=="a" || c="i" || c=="u"||c=="e"||c=="o"){
| ^
/usr/include/c++/14/valarray:1207:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Constant, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__logical_or, _Tp>::result_type> std::operator||(const typename valarray<_Tp>::value_type&, const valarray<_Tp>&)'
1207 | _DEFINE_BINARY_OPERATOR(||, __logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/valarray:1207:1: note: template argument deduction/substitution failed:
a.cc:8:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::valarray<_Tp>'
8 | if(c=="a" || c="i" || c=="u"||c=="e"||c=="o"){
| ^
|
s488892328 | 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:16: error: 'C' was not declared in this scope
8 | if(c=="a" || C="i" || c=="u"||c=="e"||c=="o"){
| ^
|
s482753566 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if(S == a || i || u || e || o ){
cout << "vowel"<<endl;
}
else{
cout << "consonant" <<endl;
}
} | a.cc: In function 'int main()':
a.cc:7:13: error: 'a' was not declared in this scope
7 | if(S == a || i || u || e || o ){
| ^
a.cc:7:18: error: 'i' was not declared in this scope
7 | if(S == a || i || u || e || o ){
| ^
a.cc:7:23: error: 'u' was not declared in this scope
7 | if(S == a || i || u || e || o ){
| ^
a.cc:7:28: error: 'e' was not declared in this scope
7 | if(S == a || i || u || e || o ){
| ^
a.cc:7:33: error: 'o' was not declared in this scope
7 | if(S == a || i || u || e || o ){
| ^
|
s649556320 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if(S="a"||"i"||"u"||"e"||"o";){
cout << "vowel"<<endl;
}
else{
cout << "consonant" <<endl;
}
} | a.cc: In function 'int main()':
a.cc:7:34: error: expected primary-expression before ')' token
7 | if(S="a"||"i"||"u"||"e"||"o";){
| ^
|
s130601180 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if(S="a"||"i"||"u"||"e"||"o"){
cout << "vowel"<<endl;
}
else{
cout << "consonant" <<endl;
}
} | a.cc: In function 'int main()':
a.cc:7:9: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((int)((char)(((((((const char*)"a") != 0) || (((const char*)"i") != 0)) || (((const char*)"u") != 0)) || (((const char*)"e") != 0)) || (((const char*)"o") != 0)))))' from 'std::__cxx11::basic_string<char>' to 'bool'
7 | if(S="a"||"i"||"u"||"e"||"o"){
| ~^~~~~~~~~~~~~~~~~~~~~~~~
| |
| std::__cxx11::basic_string<char>
|
s839296759 | p03852 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string data="aiueo";
char d;
cin>>d;
if(data.find(d)!=nops){
cout<<"vowel";
}
else{
cout<<"consonant";
}
} | a.cc: In function 'int main()':
a.cc:11:20: error: 'nops' was not declared in this scope
11 | if(data.find(d)!=nops){
| ^~~~
|
s833542145 | p03852 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
vector<char> data;
data.push_back('a');
data.push_back('i');
data.push_back('u');
data.push_back('e');
data.push_back('o');
char c;
cin>>c;
if(data[find(data.begin(),data.end(),c)]==c){
cout<<"vowel";
}
else{
cout<<"consonant";
}
} | a.cc: In function 'int main()':
a.cc:16:10: error: no match for 'operator[]' (operand types are 'std::vector<char>' and '__gnu_cxx::__normal_iterator<char*, std::vector<char> >')
16 | if(data[find(data.begin(),data.end(),c)]==c){
| ^
In file included from /usr/include/c++/14/vector:66,
from a.cc:2:
/usr/include/c++/14/bits/stl_vector.h:1128:7: note: candidate: 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = char; _Alloc = std::allocator<char>; reference = char&; size_type = long unsigned int]'
1128 | operator[](size_type __n) _GLIBCXX_NOEXCEPT
| ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1128:28: note: no known conversion for argument 1 from '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' to 'std::vector<char>::size_type' {aka 'long unsigned int'}
1128 | operator[](size_type __n) _GLIBCXX_NOEXCEPT
| ~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:1147:7: note: candidate: 'std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator[](size_type) const [with _Tp = char; _Alloc = std::allocator<char>; const_reference = const char&; size_type = long unsigned int]'
1147 | operator[](size_type __n) const _GLIBCXX_NOEXCEPT
| ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1147:28: note: no known conversion for argument 1 from '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' to 'std::vector<char>::size_type' {aka 'long unsigned int'}
1147 | operator[](size_type __n) const _GLIBCXX_NOEXCEPT
| ~~~~~~~~~~^~~
|
s130007133 | p03852 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
vector<char> data;
data.push_back('a');
data.push_back('i');
data.push_back('u');
data.push_back('e');
data.push_back('o');
char c;
cin>>c;
auto s= find(data.begin(),data.end(),c);
if(type_info(s)==int){
cout<<"vowel";
}
else{
cout<<"consonant";
}
} | a.cc: In function 'int main()':
a.cc:17:17: error: no matching function for call to 'std::type_info::type_info(__gnu_cxx::__normal_iterator<char*, std::vector<char> >&)'
17 | if(type_info(s)==int){
| ^
In file included from /usr/include/c++/14/bits/exception_ptr.h:37,
from /usr/include/c++/14/exception:166,
from /usr/include/c++/14/ios:41,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/typeinfo:151:14: note: candidate: 'std::type_info::type_info(const char*)'
151 | explicit type_info(const char *__n): __name(__n) { }
| ^~~~~~~~~
/usr/include/c++/14/typeinfo:151:36: note: no known conversion for argument 1 from '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' to 'const char*'
151 | explicit type_info(const char *__n): __name(__n) { }
| ~~~~~~~~~~~~^~~
a.cc:17:20: error: expected primary-expression before 'int'
17 | if(type_info(s)==int){
| ^~~
a.cc:17:20: error: expected ')' before 'int'
17 | if(type_info(s)==int){
| ~ ^~~
| )
|
s346513578 | p03852 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
vector<char> data;
data.push_back('a');
data.push_back('i');
data.push_back('u');
data.push_back('e');
data.push_back('o');
char c;
cin>>c;
auto s= find(data.begin(),data.end(),c);
if(type_info(s)=="int"){
cout<<"vowel";
}
else{
cout<<"consonant";
}
} | a.cc: In function 'int main()':
a.cc:17:17: error: no matching function for call to 'std::type_info::type_info(__gnu_cxx::__normal_iterator<char*, std::vector<char> >&)'
17 | if(type_info(s)=="int"){
| ^
In file included from /usr/include/c++/14/bits/exception_ptr.h:37,
from /usr/include/c++/14/exception:166,
from /usr/include/c++/14/ios:41,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/typeinfo:151:14: note: candidate: 'std::type_info::type_info(const char*)'
151 | explicit type_info(const char *__n): __name(__n) { }
| ^~~~~~~~~
/usr/include/c++/14/typeinfo:151:36: note: no known conversion for argument 1 from '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' to 'const char*'
151 | explicit type_info(const char *__n): __name(__n) { }
| ~~~~~~~~~~~~^~~
|
s448738541 | p03852 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
vector<char> data;
data.push_back('a');
data.push_back('i');
data.push_back('u');
data.push_back('e');
data.push_back('o');
char c;
cin>>c;
auto s= find(data.begin(),data.end(),c);
if(s=="last"){
cout<<"consonant";
}
else{
cout<<"vowel";
}
} | a.cc: In function 'int main()':
a.cc:17:7: error: no match for 'operator==' (operand types are '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' and 'const char [5]')
17 | if(s=="last"){
| ~^~~~~~~~
| | |
| | const char [5]
| __gnu_cxx::__normal_iterator<char*, std::vector<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:17:9: note: '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' is not derived from 'const std::fpos<_StateT>'
17 | if(s=="last"){
| ^~~~~~
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:17:9: note: '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' is not derived from 'const std::allocator<_CharT>'
17 | if(s=="last"){
| ^~~~~~
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:17:9: note: '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' is not derived from 'const std::reverse_iterator<_Iterator>'
17 | if(s=="last"){
| ^~~~~~
/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:17:9: note: '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' is not derived from 'const std::reverse_iterator<_Iterator>'
17 | if(s=="last"){
| ^~~~~~
/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:17:9: note: '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' is not derived from 'const std::move_iterator<_IteratorL>'
17 | if(s=="last"){
| ^~~~~~
/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:17:9: note: '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' is not derived from 'const std::move_iterator<_IteratorL>'
17 | if(s=="last"){
| ^~~~~~
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:17:9: note: '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' is not derived from 'const std::pair<_T1, _T2>'
17 | if(s=="last"){
| ^~~~~~
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:17:9: note: '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' is not derived from 'std::basic_string_view<_CharT, _Traits>'
17 | if(s=="last"){
| ^~~~~~
/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:17:9: note: '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' is not derived from 'std::basic_string_view<_CharT, _Traits>'
17 | if(s=="last"){
| ^~~~~~
/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:17:9: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'const char*'
17 | if(s=="last"){
| ^~~~~~
/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:17:9: note: '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
17 | if(s=="last"){
| ^~~~~~
/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:17:9: note: '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
17 | if(s=="last"){
| ^~~~~~
/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:17:9: note: mismatched types 'const _CharT*' and '__gnu_cxx::__normal_iterator<char*, std::vector<char> >'
17 | if(s=="last"){
| ^~~~~~
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:17:9: note: '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' is not derived from 'const std::tuple<_UTypes ...>'
17 | if(s=="last"){
| ^~~~~~
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:17:9: note: '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' is not derived from 'const std::istreambuf_iterator<_CharT, _Traits>'
17 | if(s=="last"){
| ^~~~~~
In file included from /usr/include/c++/14/vector:66,
from a.cc:2:
/usr/include/c++/14/bits/stl_vector.h:2050:5: note: candidate: 'template<class _Tp, class _Alloc> bool std::operator==(const vector<_Tp, _Al |
s342130925 | p03852 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
vector<char> data;
data.push_back('a');
data.push_back('i');
data.push_back('u');
data.push_back('e');
data.push_back('o');
char c;
cin>>c;
if(find(data.begin(),data.end(),c)=="last"){
cout<<"consonant";
}
else{
cout<<"vowel";
}
} | a.cc: In function 'int main()':
a.cc:17:37: error: no match for 'operator==' (operand types are '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' and 'const char [5]')
17 | if(find(data.begin(),data.end(),c)=="last"){
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
| | |
| | const char [5]
| __gnu_cxx::__normal_iterator<char*, std::vector<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:17:39: note: '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' is not derived from 'const std::fpos<_StateT>'
17 | if(find(data.begin(),data.end(),c)=="last"){
| ^~~~~~
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:17:39: note: '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' is not derived from 'const std::allocator<_CharT>'
17 | if(find(data.begin(),data.end(),c)=="last"){
| ^~~~~~
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:17:39: note: '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' is not derived from 'const std::reverse_iterator<_Iterator>'
17 | if(find(data.begin(),data.end(),c)=="last"){
| ^~~~~~
/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:17:39: note: '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' is not derived from 'const std::reverse_iterator<_Iterator>'
17 | if(find(data.begin(),data.end(),c)=="last"){
| ^~~~~~
/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:17:39: note: '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' is not derived from 'const std::move_iterator<_IteratorL>'
17 | if(find(data.begin(),data.end(),c)=="last"){
| ^~~~~~
/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:17:39: note: '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' is not derived from 'const std::move_iterator<_IteratorL>'
17 | if(find(data.begin(),data.end(),c)=="last"){
| ^~~~~~
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:17:39: note: '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' is not derived from 'const std::pair<_T1, _T2>'
17 | if(find(data.begin(),data.end(),c)=="last"){
| ^~~~~~
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:17:39: note: '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' is not derived from 'std::basic_string_view<_CharT, _Traits>'
17 | if(find(data.begin(),data.end(),c)=="last"){
| ^~~~~~
/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:17:39: note: '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' is not derived from 'std::basic_string_view<_CharT, _Traits>'
17 | if(find(data.begin(),data.end(),c)=="last"){
| ^~~~~~
/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:17:39: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'const char*'
17 | if(find(data.begin(),data.end(),c)=="last"){
| ^~~~~~
/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:17:39: note: '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
17 | if(find(data.begin(),data.end(),c)=="last"){
| ^~~~~~
/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:17:39: note: '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
17 | if(find(data.begin(),data.end(),c)=="last"){
| ^~~~~~
/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:17:39: note: mismatched types 'const _CharT*' and '__gnu_cxx::__normal_iterator<char*, std::vector<char> >'
17 | if(find(data.begin(),data.end(),c)=="last"){
| ^~~~~~
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:17:39: note: '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' is not derived from 'const std::tuple<_UTypes ...>'
17 | if(find(data.begin(),data.end(),c)=="last"){
| ^~~~~~
In file included from /usr/include/c++/14/b |
s015381500 | p03852 | C++ | #include <iostream>
#include <map>
using namespace std;
int main(){
map<char,int> a;
a['a']=1;
a['b']=1;
a['c']=1;
a['d']=1;
a['e']=1;
char data;
cin>>data;
if(a.contains(data)){
cout<<"consonant";
}
else{
cout<<"vowel";
}
} | a.cc: In function 'int main()':
a.cc:15:8: error: 'class std::map<char, int>' has no member named 'contains'
15 | if(a.contains(data)){
| ^~~~~~~~
|
s804510695 | p03852 | C++ | #include <iostream>
#include <map>
using namespace std;
int main(){
map<char,int> a;
a['a']=1;
a['b']=1;
a['c']=1;
a['d']=1;
a['e']=1;
char data;
cin>>data;
if(a.contains(data)){
cout<<"consonant";
}
else{
cout<<"vowel";
}
} | a.cc: In function 'int main()':
a.cc:15:8: error: 'class std::map<char, int>' has no member named 'contains'
15 | if(a.contains(data)){
| ^~~~~~~~
|
s076383746 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if (c == 'a'){
cout << "vowel" << endl;
}
if (c == 'b'){
cout << "vowel" << endl;
}
if (c == 'c'){
cout << "vowel" << endl;
}
if (c == 'd'){
cout << "vowel" << endl;
}
if (c == 'e'){
cout << "vowel" << endl;
}
else cout << consonant << endl;
} | a.cc: In function 'int main()':
a.cc:22:16: error: 'consonant' was not declared in this scope
22 | else cout << consonant << endl;
| ^~~~~~~~~
|
s793295879 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
if (c = 'a' || c = 'i' || c = 'e' || c = 'u' || 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 'char' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
8 | if (c = 'a' || c = 'i' || c = 'e' || c = 'u' || c = 'o') {
| ~~~ ^~ ~
| | |
| char std::string {aka std::__cxx11::basic_string<char>}
a.cc:8:15: note: candidate: 'operator||(bool, bool)' (built-in)
8 | if (c = 'a' || c = 'i' || c = 'e' || c = 'u' || c = 'o') {
| ~~~~^~~~
a.cc:8:15: note: no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
In file included from /usr/include/c++/14/valarray:605,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166,
from a.cc:1:
/usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const _Expr<_Dom2, typename _Dom2::value_type>&)'
416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed:
a.cc:8:18: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'char'
8 | if (c = 'a' || c = 'i' || c = 'e' || c = 'u' || c = 'o') {
| ^
/usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)'
416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed:
a.cc:8:18: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'char'
8 | if (c = 'a' || c = 'i' || c = 'e' || c = 'u' || c = 'o') {
| ^
/usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const typename _Dom::value_type&, const _Expr<_Dom1, typename _Dom1::value_type>&)'
416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed:
a.cc:8:18: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
8 | if (c = 'a' || c = 'i' || c = 'e' || c = 'u' || c = 'o') {
| ^
/usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_ValArray, _Dom, typename _Dom::value_type>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const valarray<typename _Dom::value_type>&)'
416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed:
a.cc:8:18: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'char'
8 | if (c = 'a' || c = 'i' || c = 'e' || c = 'u' || c = 'o') {
| ^
/usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_ValArray, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const valarray<typename _Dom::value_type>&, const _Expr<_Dom1, typename _Dom1::value_type>&)'
416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed:
a.cc:8:18: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
8 | if (c = 'a' || c = 'i' || c = 'e' || c = 'u' || c = 'o') {
| ^
/usr/include/c++/14/valarray:1207:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_ValArray, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__logical_or, _Tp>::result_type> std::operator||(const valarray<_Tp>&, const valarray<_Tp>&)'
1207 | _DEFINE_BINARY_OPERATOR(||, __logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/valarray:1207:1: note: template argument deduction/substitution failed:
a.cc:8:18: note: mismatched types 'const std::valarray<_Tp>' and 'char'
8 | if (c = 'a' || c = 'i' || c = 'e' || c = 'u' || c = 'o') {
| ^
/usr/include/c++/14/valarray:1207:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_ValArray, std::_Constant, _Tp, _Tp>, typename std::__fun<std::__logical_or, _Tp>::result_type> std::operator||(const valarray<_Tp>&, const typename valarray<_Tp>::value_type&)'
1207 | _DEFINE_BINARY_OPERATOR(||, __logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/valarray:1207:1: note: template argument deduction/substitution failed:
a.cc:8:18: note: mismatched types 'const std::valarray<_Tp>' and 'char'
8 | if (c = 'a' || c = 'i' || c = 'e' || c = 'u' || c = 'o') {
| ^
/usr/include/c++/14/valarray:1207:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Constant, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__logical_or, _Tp>::result_type> std::operator||(const typename valarray<_Tp>::value_type&, const valarray<_Tp>&)'
1207 | _DEFINE_BINARY_OPERATOR(||, __logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/valarray:1207:1: note: template argument deduction/substitution failed:
a.cc:8:18: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::valarray<_Tp>'
8 | if (c = 'a' || c = 'i' || c = 'e' || c = 'u' || c = 'o') {
| ^
a.cc:8:26: error: no match for 'operator||' (operand types are 'char' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
8 | if (c = 'a' || c = 'i' || c = 'e' || c = 'u' || c = 'o') {
| ~~~ ^~ ~
| | |
| char std::string {aka std::__cxx11::basic_string<char>}
a.cc:8:26: note: candidate: 'operator||(bool, bool)' (built-in)
8 | if (c = 'a' || c = 'i' || c = 'e' || c = 'u' || c = 'o') {
| ~~~~^~~~
a.cc:8:26: note: no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
/usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const _Expr<_Dom2, typename _Dom2::value_type>&)'
416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed:
a.cc:8:29: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'char'
8 | if (c = 'a' || c = 'i' || c = 'e' || c = 'u' || c = 'o') {
| ^
/usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)'
416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed:
a.cc:8:29: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'char'
8 | if (c = 'a' || c = 'i' || c = 'e' || c = 'u' || c = 'o') {
| ^
/usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const typename _Dom::value_type&, const _Expr<_Dom1, typename _Dom1::value_type>&)'
416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed:
a.cc:8:29: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
8 | if (c = 'a' || c = 'i' || c = 'e' || c = 'u' || c = 'o') {
| ^
/usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_ValArray, |
s316927930 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
if (c == 'a' || c == 'i' || c == 'e' || c == 'u' || c == 'o') {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:9: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
8 | if (c == 'a' || c == 'i' || c == 'e' || c == 'u' || 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:12: 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 == 'e' || c == 'u' || 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:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if (c == 'a' || c == 'i' || c == 'e' || c == 'u' || 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:12: 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 == 'e' || c == 'u' || 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:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if (c == 'a' || c == 'i' || c == 'e' || c == 'u' || 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:12: 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 == 'e' || c == 'u' || 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:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if (c == 'a' || c == 'i' || c == 'e' || c == 'u' || 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:12: 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 == 'e' || c == 'u' || 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:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
8 | if (c == 'a' || c == 'i' || c == 'e' || c == 'u' || 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:12: 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 == 'e' || c == 'u' || 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:12: 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 == 'e' || c == 'u' || 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:12: 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 == 'e' || c == 'u' || 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:12: 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 == 'e' || c == 'u' || 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:12: 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 == 'e' || c == 'u' || 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:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
8 | if (c == 'a' || c == 'i' || c == 'e' || c == 'u' || 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:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
8 | if (c == 'a' || c == 'i' || c == 'e' || c == 'u' || c == 'o') {
| ^~~
In file included from /usr/i |
s418080186 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
string c ;
cin >> c;
if ( c = 'a','e','i','u','o'){
cout << vewel << endl;
}
if else {
cout << consonant << endl;
}
// ここにプログラムを追記
}
| a.cc: In function 'int main()':
a.cc:9:13: error: 'vewel' was not declared in this scope
9 | cout << vewel << endl;
| ^~~~~
a.cc:11:6: error: expected '(' before 'else'
11 | if else {
| ^~~~
| (
|
s621811893 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
string c ;
cin >> c;
if ( c == 'a','e','i','u','o'){
cout << vewel << endl;
}
if else {
cout << consonant << endl;
}
// ここにプログラムを追記
}
| a.cc: In function 'int main()':
a.cc:8:10: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
8 | if ( c == 'a','e','i','u','o'){
| ~ ^~ ~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if ( c == 'a','e','i','u','o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if ( c == 'a','e','i','u','o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if ( c == 'a','e','i','u','o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if ( c == 'a','e','i','u','o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if ( c == 'a','e','i','u','o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if ( c == 'a','e','i','u','o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if ( c == 'a','e','i','u','o'){
| ^~~
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
8 | if ( c == 'a','e','i','u','o'){
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
8 | if ( c == 'a','e','i','u','o'){
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | if ( c == 'a','e','i','u','o'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | if ( c == 'a','e','i','u','o'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | if ( c == 'a','e','i','u','o'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | if ( c == 'a','e','i','u','o'){
| ^~~
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
8 | if ( c == 'a','e','i','u','o'){
| ^~~
In file included from /usr/include/c++/14/string:43:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
8 | if ( c == 'a','e','i','u','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. |
s260408863 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
string c ;
cin << c;
if ( c == 'a','e','i','u','o'){
cout >> vewel >> endl;
}
if else {
cout >> consonant >> endl;
}
// ここにプログラムを追記
}
| a.cc: In function 'int main()':
a.cc:6:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
6 | cin << c;
| ~~~ ^~ ~
| | |
| | std::string {aka std::__cxx11::basic_string<char>}
| std::istream {aka std::basic_istream<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:1715:5: note: candidate: 'template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const sub_match<_Bi_iter>&)'
1715 | operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1715:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << c;
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41:
/usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
125 | operator<<(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed:
a.cc:6:3: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte'
6 | cin << c;
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)'
763 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << c;
| ^
/usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4077 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << c;
| ^
/usr/include/c++/14/bitset:1687:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const bitset<_Nb>&)'
1687 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bitset:1687:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << c;
| ^
In file included from /usr/include/c++/14/bits/ios_base.h:46,
from /usr/include/c++/14/streambuf:43,
from /usr/include/c++/14/bits/streambuf_iterator.h:35,
from /usr/include/c++/14/iterator:66,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54:
/usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)'
339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
| ^~~~~~~~
/usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << c;
| ^
In file included from /usr/include/c++/14/memory:80,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:56:
/usr/include/c++/14/bits/shared_ptr.h:70:5: note: candidate: 'template<class _Ch, class _Tr, class _Tp, __gnu_cxx::_Lock_policy _Lp> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __shared_ptr<_Tp, _Lp>&)'
70 | operator<<(std::basic_ostream<_Ch, _Tr>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/shared_ptr.h:70:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << c;
| ^
In file included from /usr/include/c++/14/istream:41,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)'
563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << c;
| ^
/usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)'
573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << c;
| ^
/usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)'
579 | operator<<(basic_ostream<char, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << c;
| ^
/usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)'
590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << c;
| ^
/usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)'
595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << c;
| ^
/usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)'
654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << c;
| ^
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)'
307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << c;
| ^
/usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)'
671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << c;
| ^
/usr/include/c++/14/ostream:684:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)'
684 | operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
| ^~~~~~~~
/usr/include/c++/14/ |
s036027103 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c ;
cin << c;
if ( c == a,e,i,u,o){
cout >> vewel >> endl;
}
if else {
cout >> consonant >> endl;
}
// ここにプログラムを追記
}
| a.cc: In function 'int main()':
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>}
a.cc:6:7: note: candidate: 'operator<<(int, int)' (built-in)
6 | cin << c;
| ~~~~^~~~
a.cc:6:7: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int'
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1715:5: note: candidate: 'template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const sub_match<_Bi_iter>&)'
1715 | operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1715:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << c;
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41:
/usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
125 | operator<<(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed:
a.cc:6:3: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte'
6 | cin << c;
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)'
763 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << c;
| ^
/usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4077 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << c;
| ^
/usr/include/c++/14/bitset:1687:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const bitset<_Nb>&)'
1687 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bitset:1687:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << c;
| ^
In file included from /usr/include/c++/14/bits/ios_base.h:46,
from /usr/include/c++/14/streambuf:43,
from /usr/include/c++/14/bits/streambuf_iterator.h:35,
from /usr/include/c++/14/iterator:66,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54:
/usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)'
339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
| ^~~~~~~~
/usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << c;
| ^
In file included from /usr/include/c++/14/memory:80,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:56:
/usr/include/c++/14/bits/shared_ptr.h:70:5: note: candidate: 'template<class _Ch, class _Tr, class _Tp, __gnu_cxx::_Lock_policy _Lp> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __shared_ptr<_Tp, _Lp>&)'
70 | operator<<(std::basic_ostream<_Ch, _Tr>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/shared_ptr.h:70:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << c;
| ^
In file included from /usr/include/c++/14/istream:41,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)'
563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << c;
| ^
/usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)'
573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << c;
| ^
/usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)'
579 | operator<<(basic_ostream<char, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << c;
| ^
/usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)'
590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << c;
| ^
/usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)'
595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << c;
| ^
/usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)'
654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << c;
| ^
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)'
307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << c;
| ^
/usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)'
671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << c;
| ^
/usr/include/c++/14/ostream:684:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)'
68 |
s294255780 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main {
string c ;
cin << c ;
if ( c.at(0) == 'a','i','u','e','o'){
cout >> vewel >> endl;
}
if else {
cout >> consonant >> endl;
}
// ここにプログラムを追記
}
| a.cc:4:5: error: cannot declare '::main' to be a global variable
4 | int main {
| ^~~~
a.cc:5:10: error: expected primary-expression before 'c'
5 | string c ;
| ^
a.cc:5:10: error: expected '}' before 'c'
a.cc:4:10: note: to match this '{'
4 | int main {
| ^
a.cc:6:3: error: 'cin' does not name a type
6 | cin << c ;
| ^~~
a.cc:8:3: error: expected unqualified-id before 'if'
8 | if ( c.at(0) == 'a','i','u','e','o'){
| ^~
a.cc:11:3: error: expected unqualified-id before 'if'
11 | if else {
| ^~
a.cc:16:1: error: expected declaration before '}' token
16 | }
| ^
|
s589508197 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main {
char c ;
cin << c;
if ( c == a,e,i,u,o){
cout >> vewel >> endl;
}
if else {
cout >> consonant >> endl;
}
// ここにプログラムを追記
} | a.cc:4:5: error: cannot declare '::main' to be a global variable
4 | int main {
| ^~~~
a.cc:5:3: error: expected primary-expression before 'char'
5 | char c ;
| ^~~~
a.cc:5:3: error: expected '}' before 'char'
a.cc:4:10: note: to match this '{'
4 | int main {
| ^
a.cc:6:3: error: 'cin' does not name a type
6 | cin << c;
| ^~~
a.cc:8:3: error: expected unqualified-id before 'if'
8 | if ( c == a,e,i,u,o){
| ^~
a.cc:11:3: error: expected unqualified-id before 'if'
11 | if else {
| ^~
a.cc:16:1: error: expected declaration before '}' token
16 | }
| ^
|
s619421936 | 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;
}
return 0;
} | 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:17: 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:27: 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:37: 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:47: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o"){
| ~^~~~~
|
s203371699 | 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;
}
return 0;
} | 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:17: 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:27: 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:37: 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:47: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o"){
| ~^~~~~
|
s499285387 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
const string vowel = " aeiou ";
cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
} | a.cc: In function 'int main()':
a.cc:8:28: 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'})
8 | cout << vowel . find ( c ) == 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:8:28: note: candidate: 'operator==(int, std::__cxx11::basic_string<char>::size_type {aka long unsigned int})' (built-in)
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
a.cc:8:28: 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/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:41: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << 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:41: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << 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:41: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << 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:41: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'}
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << 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:41: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << 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:41: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'}
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << 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:41: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << 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:41: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << 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:41: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::pair<_T1, _T2>'
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << 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:41: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | cout << vowel . find ( c ) == 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:8:41: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | cout << vowel . find ( c ) == 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:8:41: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | cout << vowel . find ( c ) == 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/substitutio |
s689745911 | p03852 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
int main() {
string s;
cin >> s;
if (s == 'a') cout << "vowel" << endl;
else if (s == 'i') cout << "vowel" << endl;
else if (s == 'u') cout << "vowel" << endl;
else if (s == 'e') cout << "vowel" << endl;
else if (s == 'o') cout << "vowel" << endl;
else cout << "consonant" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:10:9: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
10 | if (s == 'a') 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:10:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
10 | if (s == 'a') 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:10:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
10 | if (s == 'a') 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:10:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
10 | if (s == 'a') 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:10:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
10 | if (s == 'a') 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:10:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
10 | if (s == 'a') 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:10:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
10 | if (s == 'a') 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:10:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
10 | if (s == 'a') 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:10:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
10 | if (s == 'a') 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:10:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
10 | if (s == 'a') 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:10:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
10 | if (s == 'a') 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:10:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
10 | if (s == 'a') 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:10:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
10 | if (s == 'a') 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:10:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
10 | if (s == 'a') 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:10:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
10 | if (s == 'a') 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 _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:10:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
10 | if (s == 'a') cout << "vowel" << endl;
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
629 | operator==(basic_string_view<_CharT, _Traits> __x,
| |
s772389424 | p03852 | C++ | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
using ll = long long;
int main() {
char N,K;// N人とK種類
cin >> N ;
if(N = 'a' ||N = 'i' ||N = 'u' ||N = 'e' ||N = 'o' ){
cout << "vowel" << endl;
}else{
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:10:43: error: lvalue required as left operand of assignment
10 | if(N = 'a' ||N = 'i' ||N = 'u' ||N = 'e' ||N = 'o' ){
| ~~~~^~~
|
s334313184 | 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;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:13: error: 'vowel' was not declared in this scope
8 | cout << vowel << endl;
| ^~~~~
a.cc:11:13: error: 'consonant' was not declared in this scope
11 | cout << consonant << endl;
| ^~~~~~~~~
|
s665712492 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if (S == 'a' or S == 'i' or S == 'u' or S == 'e' or S == 'o' ){
cout << "vowel"<<endl;
}else{
cout << "constant" <<endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:9: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
7 | if (S == 'a' or S == 'i' or S == 'u' or S == 'e' or S == 'o' ){
| ~ ^~ ~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if (S == 'a' or S == 'i' or S == 'u' or S == 'e' or S == 'o' ){
| ^~~
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:7:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | if (S == 'a' or S == 'i' or S == 'u' or S == 'e' or S == 'o' ){
| ^~~
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if (S == 'a' or S == 'i' or S == 'u' or S == 'e' or S == 'o' ){
| ^~~
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:7:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | if (S == 'a' or S == 'i' or S == 'u' or S == 'e' or S == 'o' ){
| ^~~
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if (S == 'a' or S == 'i' or S == 'u' or S == 'e' or S == 'o' ){
| ^~~
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:7:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | if (S == 'a' or S == 'i' or S == 'u' or S == 'e' or S == 'o' ){
| ^~~
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if (S == 'a' or S == 'i' or S == 'u' or S == 'e' or S == 'o' ){
| ^~~
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
7 | if (S == 'a' or S == 'i' or S == 'u' or S == 'e' or S == 'o' ){
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
7 | if (S == 'a' or S == 'i' or S == 'u' or S == 'e' or S == 'o' ){
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
7 | if (S == 'a' or S == 'i' or S == 'u' or S == 'e' or S == 'o' ){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
7 | if (S == 'a' or S == 'i' or S == 'u' or S == 'e' or S == 'o' ){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
7 | if (S == 'a' or S == 'i' or S == 'u' or S == 'e' or S == 'o' ){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
7 | if (S == 'a' or S == 'i' or S == 'u' or S == 'e' or S == 'o' ){
| ^~~
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
7 | if (S == 'a' or S == 'i' or S == 'u' or S == 'e' or S == 'o' ){
| ^~~
In file included from /usr/include/c++/14/string:43:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
7 | if (S == 'a' or S == 'i' or S == 'u' or S == 'e' or S == 'o' ){
| ^~~
In file included from /usr/i |
s750035656 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c=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:7:16: error: expected unqualified-id before 'i'
7 | if(c='a','e'.'i','o','u'){
| ^~~
a.cc:7:16: error: expected ')' before 'i'
7 | if(c='a','e'.'i','o','u'){
| ~ ^~~
| )
a.cc:9:3: error: expected '}' before 'else'
9 | else{
| ^~~~
a.cc:7:28: note: to match this '{'
7 | if(c='a','e'.'i','o','u'){
| ^
|
s907222462 | p03852 | C++ | #Include <bits/stdc++.h>
using namespace std;
int main(){
char a;
cin >> a;
if(a=='a'||a=='e'||a=='i'||a=='o'||a=='u'){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
}
| a.cc:1:2: error: invalid preprocessing directive #Include; did you mean #include?
1 | #Include <bits/stdc++.h>
| ^~~~~~~
| include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
6 | cin >> a;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
+++ |+#include <iostream>
1 | #Include <bits/stdc++.h>
a.cc:9:5: error: 'cout' was not declared in this scope
9 | cout << "vowel" << endl;
| ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:24: error: 'endl' was not declared in this scope
9 | 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 | #Include <bits/stdc++.h>
a.cc:12:5: error: 'cout' was not declared in this scope
12 | cout << "consonant" << endl;
| ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:28: error: 'endl' was not declared in this scope
12 | cout << "consonant" << endl;
| ^~~~
a.cc:12:28: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
|
s418593058 | 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:47: error: lvalue required as left operand of assignment
7 | if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o') cout << "vowel" << endl;
| ~~~~^~~~
|
s438700786 | p03852 | C++ | #inlcude <iostream>
#include <string>
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;
}
return 0;
}
| a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
1 | #inlcude <iostream>
| ^~~~~~~
| include
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
7 | cin >> c;
| ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
2 | #include <string>
+++ |+#include <iostream>
3 | using namespace std;
a.cc:9:5: error: 'cout' was not declared in this scope
9 | cout << "vowel" << endl;
| ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:24: error: 'endl' was not declared in this scope
9 | cout << "vowel" << endl;
| ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
2 | #include <string>
+++ |+#include <ostream>
3 | using namespace std;
a.cc:11:5: error: 'cout' was not declared in this scope
11 | cout << "consonant" << endl;
| ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:28: error: 'endl' was not declared in this scope
11 | cout << "consonant" << endl;
| ^~~~
a.cc:11:28: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
|
s415856815 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
char c ;
cin >> c ;
const string vowel = " aeiou ";
cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
} | a.cc: In function 'int main()':
a.cc:7:28: 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 ( c ) == 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:28: note: candidate: 'operator==(int, std::__cxx11::basic_string<char>::size_type {aka long unsigned int})' (built-in)
7 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
a.cc:7:28: 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/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:7:41: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << 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:7:41: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
7 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << 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:7:41: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << 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:7:41: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'}
7 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << 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:7:41: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << 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:7:41: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'}
7 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << 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:7:41: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << 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:7:41: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
7 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << 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:7:41: 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 ( c ) == string :: npos ? " vowel " : " consonant " << 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:7:41: 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 ( c ) == 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:41: 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 ( c ) == 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:41: 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 ( c ) == 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/substitutio |
s060570613 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define PI 3.14159265358979323846
constexpr int INF = numeric_limits<int>::max() / 2;
constexpr long long INFL = numeric_limits<long long>::max() / 2;
constexpr int MOD = 1000000007;
using Graph = vector<vector<int>>;
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
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:18:38: error: lvalue required as left operand of assignment
18 | if(c=='a'||c=='i'||c=='u'||c=='e'||c='o'){
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
|
s162717941 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
char c;
cin >> c;
const string vowel = "aeiou";
cout << vowel.find(c) == string :: npos ? "vowel" : "consonant" << endl;
} | a.cc: In function 'int main()':
a.cc:7:23: 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(c) == 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:23: note: candidate: 'operator==(int, std::__cxx11::basic_string<char>::size_type {aka long unsigned int})' (built-in)
7 | cout << vowel.find(c) == string :: npos ? "vowel" : "consonant" << endl;
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
a.cc:7:23: 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/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:7:36: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | cout << vowel.find(c) == string :: npos ? "vowel" : "consonant" << 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:7:36: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
7 | cout << vowel.find(c) == string :: npos ? "vowel" : "consonant" << 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:7:36: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | cout << vowel.find(c) == string :: npos ? "vowel" : "consonant" << 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:7:36: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'}
7 | cout << vowel.find(c) == string :: npos ? "vowel" : "consonant" << 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:7:36: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | cout << vowel.find(c) == string :: npos ? "vowel" : "consonant" << 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:7:36: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'}
7 | cout << vowel.find(c) == string :: npos ? "vowel" : "consonant" << 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:7:36: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | cout << vowel.find(c) == string :: npos ? "vowel" : "consonant" << 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:7:36: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
7 | cout << vowel.find(c) == string :: npos ? "vowel" : "consonant" << 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:7:36: 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(c) == string :: npos ? "vowel" : "consonant" << 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:7:36: 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(c) == 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:36: 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(c) == 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:36: 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(c) == 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:36: 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(c) == string :: npos ? "vowel |
s112336197 | p03852 | C++ | char c;
cin >> c;
const string vowel = "aeiou";
cout << vowel.find(c) == string :: npos ? "vowel" : "consonant" << endl;
| a.cc:2:1: error: 'cin' does not name a type
2 | cin >> c;
| ^~~
a.cc:3:7: error: 'string' does not name a type
3 | const string vowel = "aeiou";
| ^~~~~~
a.cc:4:1: error: 'cout' does not name a type
4 | cout << vowel.find(c) == string :: npos ? "vowel" : "consonant" << endl;
| ^~~~
|
s856803842 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
String anser;
if(c == 'a'){
anser = "vowel";
}
else if(c == 'i'){
anser = "vowel";
}
else if(c == 'u'){
anser = "vowel";
}
else if(c == 'e'){
anser = "vowel";
}
else if(c == 'o'){
anser = "vowel";
}else {
anser = "consonant";
}
cout << anser << endl;
} | a.cc: In function 'int main()':
a.cc:7:3: error: 'String' was not declared in this scope
7 | String anser;
| ^~~~~~
a.cc:10:5: error: 'anser' was not declared in this scope; did you mean 'assert'?
10 | anser = "vowel";
| ^~~~~
| assert
a.cc:13:5: error: 'anser' was not declared in this scope; did you mean 'assert'?
13 | anser = "vowel";
| ^~~~~
| assert
a.cc:16:9: error: 'anser' was not declared in this scope; did you mean 'assert'?
16 | anser = "vowel";
| ^~~~~
| assert
a.cc:19:9: error: 'anser' was not declared in this scope; did you mean 'assert'?
19 | anser = "vowel";
| ^~~~~
| assert
a.cc:22:9: error: 'anser' was not declared in this scope; did you mean 'assert'?
22 | anser = "vowel";
| ^~~~~
| assert
a.cc:24:4: error: 'anser' was not declared in this scope; did you mean 'assert'?
24 | anser = "consonant";
| ^~~~~
| assert
a.cc:27:11: error: 'anser' was not declared in this scope; did you mean 'assert'?
27 | cout << anser << endl;
| ^~~~~
| assert
|
s535608832 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
string anser;
if(c == "a"){
anser = vowel;
}
else if(c == "i"){
anser = vowel;
}
else if(c == "u"){
anser = vowel;
}
else if(c == "e"){
anser = vowel;
}
else if(c == "o"){
anser = vowel;
}else {
anser = consonant;
}
cout << anser << endl;
} | a.cc: In function 'int main()':
a.cc:11:13: error: 'vowel' was not declared in this scope
11 | anser = vowel;
| ^~~~~
a.cc:14:13: error: 'vowel' was not declared in this scope
14 | anser = vowel;
| ^~~~~
a.cc:17:17: error: 'vowel' was not declared in this scope
17 | anser = vowel;
| ^~~~~
a.cc:20:17: error: 'vowel' was not declared in this scope
20 | anser = vowel;
| ^~~~~
a.cc:23:17: error: 'vowel' was not declared in this scope
23 | anser = vowel;
| ^~~~~
a.cc:25:12: error: 'consonant' was not declared in this scope
25 | anser = consonant;
| ^~~~~~~~~
|
s616569099 | 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:50: error: expected ')' before 'c'
8 | if ( c =='a' || c == 'i' || c == 'u' || c== 'e'
| ~ ^
| )
9 | c == || 'o' ){
| ~
|
s498830248 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin>>c;
if(c=='a'){
cout<<"vowel"
}
else if(c=='i'){
cout<<"vowel"
}
else if(c=='u'){
cout<<"vowel"
}
elseif(c=='e'){
cout<<"vowel"
}
else if(c=='o'){
cout<<"vowel"
}
else{
cout<<"consonant"
}
}
| a.cc: In function 'int main()':
a.cc:9:16: error: expected ';' before '}' token
9 | cout<<"vowel"
| ^
| ;
10 | }
| ~
a.cc:12:16: error: expected ';' before '}' token
12 | cout<<"vowel"
| ^
| ;
13 | }
| ~
a.cc:15:16: error: expected ';' before '}' token
15 | cout<<"vowel"
| ^
| ;
16 | }
| ~
a.cc:17:3: error: 'elseif' was not declared in this scope
17 | elseif(c=='e'){
| ^~~~~~
a.cc:20:3: error: 'else' without a previous 'if'
20 | else if(c=='o'){
| ^~~~
a.cc:21:16: error: expected ';' before '}' token
21 | cout<<"vowel"
| ^
| ;
22 | }
| ~
a.cc:25:20: error: expected ';' before '}' token
25 | cout<<"consonant"
| ^
| ;
26 | }
| ~
|
s498542957 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin>>c;
if(c==(a|i|u|e|o)){
cout<<"vowel"
}
else{
cout<<"consonant"
}
}
| a.cc: In function 'int main()':
a.cc:8:10: error: 'a' was not declared in this scope
8 | if(c==(a|i|u|e|o)){
| ^
a.cc:8:12: error: 'i' was not declared in this scope
8 | if(c==(a|i|u|e|o)){
| ^
a.cc:8:14: error: 'u' was not declared in this scope
8 | if(c==(a|i|u|e|o)){
| ^
a.cc:8:16: error: 'e' was not declared in this scope
8 | if(c==(a|i|u|e|o)){
| ^
a.cc:8:18: error: 'o' was not declared in this scope
8 | if(c==(a|i|u|e|o)){
| ^
a.cc:9:16: error: expected ';' before '}' token
9 | cout<<"vowel"
| ^
| ;
10 | }
| ~
a.cc:13:20: error: expected ';' before '}' token
13 | cout<<"consonant"
| ^
| ;
14 | }
| ~
|
s412563126 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int c;
cin>>c;
if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){
cout<<"vowel"<<endl;
}
else{
cout<<"consonant"<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:7: 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:15: 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:23: 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:31: 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:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){
| ~^~~~~
|
s185359544 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string c;
cin>>c;
if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u'){
cout<<"vowel"<<endl;
}
else{
cout<<"consonant"<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:7: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
7 | 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:7:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | 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:7:9: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | 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:7:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | 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:7:9: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | 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:7:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | 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:7:9: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | 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:7:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | 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:7:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
7 | if(c=='a'||c=='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:7:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
7 | 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:7:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
7 | 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:7:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
7 | 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:7:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
7 | 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:7:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
7 | 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:7:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
7 | 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:7:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
7 | if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u'){
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
629 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~ |
s024257943 | 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:15:1: error: expected declaration before '}' token
15 | }
| ^
|
s984715573 | p03852 | Java | c.charAt(0)=='a'|| | Main.java:1: error: class, interface, enum, or record expected
c.charAt(0)=='a'||
^
1 error
|
s673099120 | 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:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (c=="a" || c=="e" || c=="i" || c=="o" || c=="u") {
| ~^~~~~
a.cc:8:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (c=="a" || c=="e" || c=="i" || c=="o" || c=="u") {
| ~^~~~~
a.cc:8:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (c=="a" || c=="e" || c=="i" || c=="o" || c=="u") {
| ~^~~~~
a.cc:8:38: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (c=="a" || c=="e" || c=="i" || c=="o" || c=="u") {
| ~^~~~~
a.cc:8:48: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (c=="a" || c=="e" || c=="i" || c=="o" || c=="u") {
| ~^~~~~
|
s383442498 | 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:12: error: 'a' was not declared in this scope
8 | if (c == a || c==e || c==i || c==o || c==u) {
| ^
a.cc:8:20: error: 'e' was not declared in this scope
8 | if (c == a || c==e || c==i || c==o || c==u) {
| ^
a.cc:8:28: error: 'i' was not declared in this scope
8 | if (c == a || c==e || c==i || c==o || c==u) {
| ^
a.cc:8:36: error: 'o' was not declared in this scope
8 | if (c == a || c==e || c==i || c==o || c==u) {
| ^
a.cc:8:44: error: 'u' was not declared in this scope
8 | if (c == a || c==e || c==i || c==o || c==u) {
| ^
|
s798625094 | 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:13: error: 'a' was not declared in this scope
8 | if ( c == a, e, i, o, u){
| ^
a.cc:8:16: error: 'e' was not declared in this scope
8 | if ( c == a, e, i, o, u){
| ^
a.cc:8:19: error: 'i' was not declared in this scope
8 | if ( c == a, e, i, o, u){
| ^
a.cc:8:22: error: 'o' was not declared in this scope
8 | if ( c == a, e, i, o, u){
| ^
a.cc:8:25: error: 'u' was not declared in this scope
8 | if ( c == a, e, i, o, u){
| ^
|
s713105017 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char S;
cin >> S;
// ここにプログラムを追記
if(S == a || S == i || S == u || S == e || S == o) {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:9:11: error: 'a' was not declared in this scope
9 | if(S == a || S == i || S == u || S == e || S == o) {
| ^
a.cc:9:21: error: 'i' was not declared in this scope
9 | if(S == a || S == i || S == u || S == e || S == o) {
| ^
a.cc:9:31: error: 'u' was not declared in this scope
9 | if(S == a || S == i || S == u || S == e || S == o) {
| ^
a.cc:9:41: error: 'e' was not declared in this scope
9 | if(S == a || S == i || S == u || S == e || S == o) {
| ^
a.cc:9:51: error: 'o' was not declared in this scope
9 | if(S == a || S == i || S == u || S == e || S == o) {
| ^
|
s657342807 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char S;
cin >> S;
// ここにプログラムを追記
if(S = a || S = i || S = u || S = e || S = o) {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:9:10: error: 'a' was not declared in this scope
9 | if(S = a || S = i || S = u || S = e || S = o) {
| ^
a.cc:9:19: error: 'i' was not declared in this scope
9 | if(S = a || S = i || S = u || S = e || S = o) {
| ^
a.cc:9:28: error: 'u' was not declared in this scope
9 | if(S = a || S = i || S = u || S = e || S = o) {
| ^
a.cc:9:37: error: 'e' was not declared in this scope
9 | if(S = a || S = i || S = u || S = e || S = o) {
| ^
a.cc:9:46: error: 'o' was not declared in this scope
9 | if(S = a || S = i || S = u || S = e || S = o) {
| ^
|
s973549754 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if (c == a || c == e) {
cout << "vowel" << endl;
}
else if (c == i && 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:12: error: 'a' was not declared in this scope
8 | if (c == a || c == e) {
| ^
a.cc:8:22: error: 'e' was not declared in this scope
8 | if (c == a || c == e) {
| ^
a.cc:12:17: error: 'i' was not declared in this scope
12 | else if (c == i && c == o) {
| ^
a.cc:12:27: error: 'o' was not declared in this scope
12 | else if (c == i && c == o) {
| ^
a.cc:16:17: error: 'u' was not declared in this scope
16 | else if (c == u ) {
| ^
|
s978205133 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < n; i++)
#define rep1(i, n) for(int i = 1; i < n+1; i++)
#define sort(A) sort(A.begin(),A.end())
#define reverse(A) reverse(A.begin(),A.end())
#define vecmin(A) *min_element(A.begin(),A.end())
#define vecmax(A) *max_element(A.begin(),A.end())
typedef long long ll;
int main(){
char c;
cin >> c;
bool sub1 = c == 'a';
bool sub2 = c == 'b';
bool sub3 = c == 'c';
bool sub4 = c == 'd';
bool sub5 = c == 'e';
if(sub1 || sub2 || sub3 || sub4 || sub5) cout << "vowel" << endl;
else cout << consonant << endl;
} | a.cc: In function 'int main()':
a.cc:21:16: error: 'consonant' was not declared in this scope
21 | else cout << consonant << endl;
| ^~~~~~~~~
|
s390955427 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if (c == a || c == e) {
cout << "vowel" << endl;
}
else if (c == i && 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:12: error: 'a' was not declared in this scope
8 | if (c == a || c == e) {
| ^
a.cc:8:22: error: 'e' was not declared in this scope
8 | if (c == a || c == e) {
| ^
a.cc:12:17: error: 'i' was not declared in this scope
12 | else if (c == i && c == o) {
| ^
a.cc:12:27: error: 'o' was not declared in this scope
12 | else if (c == i && c == o) {
| ^
a.cc:16:17: error: 'u' was not declared in this scope
16 | else if (c == u ) {
| ^
|
s661517584 | p03852 | C++ | #include<iostream>
using namespace std;
int main(){
char c;
cin >> c;
if(c=='a'||c=='e'||c=='i'||c=='o'||a=='u'){
cout << "vowel" <<endl;
}else{
cout << "consonant"
}
} | a.cc: In function 'int main()':
a.cc:7:38: error: 'a' was not declared in this scope
7 | if(c=='a'||c=='e'||c=='i'||c=='o'||a=='u'){
| ^
a.cc:10:24: error: expected ';' before '}' token
10 | cout << "consonant"
| ^
| ;
11 | }
| ~
|
s763444060 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
//定義一覧
char C;
if(C == 'a' or C == 'e' or C == 'i' or C == 'o' or C == 'u' C == 'A' or C == 'E' or C == 'I' or C == 'O' or C == 'U'){
cout << "vowel" << endl;
}else{
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:62: error: expected ')' before 'C'
8 | if(C == 'a' or C == 'e' or C == 'i' or C == 'o' or C == 'u' C == 'A' or C == 'E' or C == 'I' or C == 'O' or C == 'U'){
| ~ ^~
| )
|
s472239177 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int 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:12:15: error: 'vowel' was not declared in this scope
12 | cout << vowel << endl ;
| ^~~~~
a.cc:16:18: error: 'consonant' was not declared in this scope
16 | else { cout << consonant << endl ;}
| ^~~~~~~~~
a.cc:16:38: error: expected '}' at end of input
16 | else { cout << consonant << endl ;}
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s655518849 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c ;
cin >> c ;
string vowel = " aeiou ";
cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
} | a.cc: In function 'int main()':
a.cc:8:28: 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'})
8 | cout << vowel . find ( c ) == 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:8:28: note: candidate: 'operator==(int, std::__cxx11::basic_string<char>::size_type {aka long unsigned int})' (built-in)
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
a.cc:8:28: 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/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:41: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << 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:41: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << 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:41: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << 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:41: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'}
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << 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:41: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << 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:41: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'}
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << 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:41: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << 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:41: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << 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:41: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::pair<_T1, _T2>'
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << 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:41: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | cout << vowel . find ( c ) == 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:8:41: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | cout << vowel . find ( c ) == 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:8:41: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | cout << vowel . find ( c ) == 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/substitutio |
s731093705 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char s;
cin >> s;
if ( s == "a" || s == "i" || s == "u" || s == "e" || s == "o") {
cout << "vowel" << endl;
} else {
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if ( s == "a" || s == "i" || s == "u" || s == "e" || s == "o") {
| ~~^~~~~~
a.cc:8:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if ( s == "a" || s == "i" || s == "u" || s == "e" || s == "o") {
| ~~^~~~~~
a.cc:8:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if ( s == "a" || s == "i" || s == "u" || s == "e" || s == "o") {
| ~~^~~~~~
a.cc:8:46: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if ( s == "a" || s == "i" || s == "u" || s == "e" || s == "o") {
| ~~^~~~~~~
a.cc:8:59: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if ( s == "a" || s == "i" || s == "u" || s == "e" || s == "o") {
| ~~^~~~~~
|
s296486396 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
const string vowel = "aeiou";
string result;
for (int i = 0; i < vowel.size(); i++) {
if (c == vowel.at(i)) {
result = "vowel";
break;
}
else {
result = "consonant"
}
}
cout << result << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:16:27: error: expected ';' before '}' token
16 | result = "consonant"
| ^
| ;
17 | }
| ~
|
s917561142 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int c;
cin >> c;
if (c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){
| ~^~~~~
a.cc:8:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){
| ~^~~~~
a.cc:8:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){
| ~^~~~~
a.cc:8:38: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){
| ~^~~~~
a.cc:8:46: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){
| ~^~~~~
|
s768022781 | 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 << "voewl" << endl;
}
else {
cout << consonant << endl;
}
}
| a.cc: In function 'int main()':
a.cc:11:13: error: 'consonant' was not declared in this scope
11 | cout << consonant << endl;
| ^~~~~~~~~
|
s247307825 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c ;
if (c==a || C==i || c==u || c==e || C==o ) {
cout << "vowel" << ;endl;
}
else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:10: error: 'a' was not declared in this scope
8 | if (c==a || C==i || c==u || c==e || C==o ) {
| ^
a.cc:8:15: error: 'C' was not declared in this scope
8 | if (c==a || C==i || c==u || c==e || C==o ) {
| ^
a.cc:8:18: error: 'i' was not declared in this scope
8 | if (c==a || C==i || c==u || c==e || C==o ) {
| ^
a.cc:8:26: error: 'u' was not declared in this scope
8 | if (c==a || C==i || c==u || c==e || C==o ) {
| ^
a.cc:8:34: error: 'e' was not declared in this scope
8 | if (c==a || C==i || c==u || c==e || C==o ) {
| ^
a.cc:8:42: error: 'o' was not declared in this scope
8 | if (c==a || C==i || c==u || c==e || C==o ) {
| ^
a.cc:9:24: error: expected primary-expression before ';' token
9 | cout << "vowel" << ;endl;
| ^
a.cc:9:29: error: statement cannot resolve address of overloaded function
9 | cout << "vowel" << ;endl;
| ^
|
s282272683 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string 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:9: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
6 | if (c == 'a') {
| ~ ^~ ~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:6:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | if (c == 'a') {
| ^~~
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:6:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
6 | if (c == 'a') {
| ^~~
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:6:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | if (c == 'a') {
| ^~~
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:6:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
6 | if (c == 'a') {
| ^~~
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:6:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | if (c == 'a') {
| ^~~
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:6:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
6 | if (c == 'a') {
| ^~~
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:6:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | if (c == 'a') {
| ^~~
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:6:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
6 | if (c == 'a') {
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:6:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
6 | if (c == 'a') {
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:6:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
6 | if (c == 'a') {
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:6:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
6 | if (c == 'a') {
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:6:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
6 | if (c == 'a') {
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:6:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
6 | if (c == 'a') {
| ^~~
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:6:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
6 | if (c == 'a') {
| ^~~
In file included from /usr/include/c++/14/string:43:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:6:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
6 | if (c == 'a') {
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
629 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:629:5: note: template argument deduction/substitution failed:
a.cc:6:12: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
6 | if (c == 'a') {
| ^~~
/usr/include/c++/14/string_view:637:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std |
s330960997 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string 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:12: error: 'a' was not declared in this scope
6 | if (c == a) {
| ^
a.cc:7:13: error: 'vowel' was not declared in this scope
7 | cout << vowel << endl;
| ^~~~~
a.cc:8:16: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
8 | }else if (c == 'i') {
| ~ ^~ ~~~
| | |
| | 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:19: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | }else if (c == 'i') {
| ^~~
/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:19: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | }else if (c == 'i') {
| ^~~
/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:19: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | }else if (c == 'i') {
| ^~~
/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:19: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | }else if (c == 'i') {
| ^~~
/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:19: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | }else if (c == 'i') {
| ^~~
/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:19: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | }else if (c == 'i') {
| ^~~
/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:19: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | }else if (c == 'i') {
| ^~~
/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:19: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
8 | }else if (c == 'i') {
| ^~~
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:19: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
8 | }else if (c == 'i') {
| ^~~
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:19: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | }else if (c == 'i') {
| ^~~
/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:19: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | }else if (c == 'i') {
| ^~~
/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:19: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | }else if (c == 'i') {
| ^~~
/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:19: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | }else if (c == 'i') {
| ^~~
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:19: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
8 | }else if (c == 'i') {
| ^~~
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:19: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
8 | }else if (c == 'i') {
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view: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> |
s344282365 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string 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:12: error: 'a' was not declared in this scope
6 | if (c == a) {
| ^
a.cc:7:13: error: 'vowel' was not declared in this scope
7 | cout << vowel << endl;
| ^~~~~
a.cc:8:19: error: 'i' was not declared in this scope
8 | }else if (c == i) {
| ^
a.cc:9:13: error: 'vowel' was not declared in this scope
9 | cout << vowel << endl;
| ^~~~~
a.cc:10:18: error: 'u' was not declared in this scope
10 | }else if (c == u) {
| ^
a.cc:11:13: error: 'vowel' was not declared in this scope
11 | cout << vowel << endl;
| ^~~~~
a.cc:12:19: error: 'e' was not declared in this scope
12 | }else if (c == e) {
| ^
a.cc:13:13: error: 'vowel' was not declared in this scope
13 | cout << vowel << endl;
| ^~~~~
a.cc:14:19: error: 'o' was not declared in this scope
14 | }else if (c == o) {
| ^
a.cc:15:13: error: 'vowel' was not declared in this scope
15 | cout << vowel << endl;
| ^~~~~
a.cc:17:13: error: 'consonant' was not declared in this scope
17 | cout << consonant << endl;
| ^~~~~~~~~
a.cc:17:31: error: expected '}' at end of input
17 | cout << consonant << endl;
| ^
a.cc:16:10: note: to match this '{'
16 | }else {
| ^
a.cc:17:31: error: expected '}' at end of input
17 | cout << consonant << endl;
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s282119783 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
string a, e, i, o, u;
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:11:13: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
11 | cout << 'vowel' << endl;
| ^~~~~~~
a.cc:15:13: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
15 | cout << 'vowel' << endl;
| ^~~~~~~
a.cc:19:13: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
19 | cout << 'vowel' << endl;
| ^~~~~~~
a.cc:23:13: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
23 | cout << 'vowel' << endl;
| ^~~~~~~
a.cc:27:13: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
27 | cout << 'vowel' << endl;
| ^~~~~~~
a.cc:31:13: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
31 | cout << 'consonant' << endl;
| ^~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:9: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
10 | if (c == 'a') {
| ~ ^~ ~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:10:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
10 | if (c == 'a') {
| ^~~
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:10:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
10 | if (c == 'a') {
| ^~~
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:10:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
10 | if (c == 'a') {
| ^~~
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:10:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
10 | if (c == 'a') {
| ^~~
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:10:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
10 | if (c == 'a') {
| ^~~
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:10:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
10 | if (c == 'a') {
| ^~~
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:10:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
10 | if (c == 'a') {
| ^~~
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:10:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
10 | if (c == 'a') {
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:10:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
10 | if (c == 'a') {
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:10:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
10 | if (c == 'a') {
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:10:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
10 | if (c == 'a') {
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:10:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
10 | if (c == 'a') {
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:10:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
10 | if (c == 'a') {
| ^~~
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:10:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
10 | if (c == 'a') {
| ^~~
In file included from /usr/include/c++/14/string:43:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed: |
s506681971 | p03852 | C++ | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include<set>
#include<map>
using namespace std;
int main() {
char a;
cin >> a;
if(a == "a" || a == "e" || a == "o" || a == "i" || a == "u"){
cout << "wovel";
}
else
{
cout << "consonant";
}
cout << endl;
}
| a.cc: In function 'int main()':
a.cc:14:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
14 | if(a == "a" || a == "e" || a == "o" || a == "i" || a == "u"){
| ~~^~~~~~
a.cc:14:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
14 | if(a == "a" || a == "e" || a == "o" || a == "i" || a == "u"){
| ~~^~~~~~
a.cc:14:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
14 | if(a == "a" || a == "e" || a == "o" || a == "i" || a == "u"){
| ~~^~~~~~
a.cc:14:46: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
14 | if(a == "a" || a == "e" || a == "o" || a == "i" || a == "u"){
| ~~^~~~~~
a.cc:14:58: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
14 | if(a == "a" || a == "e" || a == "o" || a == "i" || a == "u"){
| ~~^~~~~~
|
s950496538 | p03852 | C++ | consonant | a.cc:1:1: error: 'consonant' does not name a type
1 | consonant
| ^~~~~~~~~
|
s859331260 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string c;
cin >> c ;
if (c == 'a' || c == 'e' || c == 'i' || c== 'o' || c == 'u'){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:7:9: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
7 | 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:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | 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:7:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | 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:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | 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:7:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | 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:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | 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:7:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | 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:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | 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:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
7 | if (c == 'a' || c == '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:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
7 | 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:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
7 | 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:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
7 | 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:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
7 | 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:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
7 | 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:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
7 | 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:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
7 | if (c == 'a' || c == 'e' || c == 'i' || c== 'o' || c == 'u'){
| ^~~
In file included from /usr/include/c++/14/bits/basic_string. |
s700275046 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string 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:7:9: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
7 | if (c == 'a' || 'e' || 'i' || 'o' || '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:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if (c == 'a' || 'e' || 'i' || 'o' || '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:7:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | if (c == 'a' || 'e' || 'i' || 'o' || '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:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if (c == 'a' || 'e' || 'i' || 'o' || '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:7:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | if (c == 'a' || 'e' || 'i' || 'o' || '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:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if (c == 'a' || 'e' || 'i' || 'o' || '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:7:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | if (c == 'a' || 'e' || 'i' || 'o' || '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:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if (c == 'a' || 'e' || 'i' || 'o' || '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:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
7 | if (c == 'a' || 'e' || 'i' || 'o' || '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:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
7 | if (c == 'a' || 'e' || 'i' || 'o' || '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:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
7 | if (c == 'a' || 'e' || 'i' || 'o' || '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:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
7 | if (c == 'a' || 'e' || 'i' || 'o' || '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:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
7 | if (c == 'a' || 'e' || 'i' || 'o' || '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:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
7 | if (c == 'a' || 'e' || 'i' || 'o' || '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:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
7 | if (c == 'a' || 'e' || 'i' || 'o' || '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:7:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
7 | if (c == 'a' || 'e' || 'i' || 'o' || 'u'){
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
629 | operator==(bas |
s071689523 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char S;
cin >> S;
if(S = 'a' || S = 'i' || S = 'u' || S = 'e' || S = 'o'){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:47: error: lvalue required as left operand of assignment
8 | if(S = 'a' || S = 'i' || S = 'u' || S = 'e' || S = 'o'){
| ~~~~^~~~
|
s154500617 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string S;
cin >> S;
if(S = 'a' || S = 'i' || S = 'u' || S = 'e' || S = 'o'){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:14: error: no match for 'operator||' (operand types are 'char' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
8 | if(S = 'a' || S = 'i' || S = 'u' || S = 'e' || S = 'o'){
| ~~~ ^~ ~
| | |
| char std::string {aka std::__cxx11::basic_string<char>}
a.cc:8:14: note: candidate: 'operator||(bool, bool)' (built-in)
8 | if(S = 'a' || S = 'i' || S = 'u' || S = 'e' || S = 'o'){
| ~~~~^~~~
a.cc:8:14: note: no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
In file included from /usr/include/c++/14/valarray:605,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166,
from a.cc:1:
/usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const _Expr<_Dom2, typename _Dom2::value_type>&)'
416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed:
a.cc:8:17: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'char'
8 | if(S = 'a' || S = 'i' || S = 'u' || S = 'e' || S = 'o'){
| ^
/usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)'
416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed:
a.cc:8:17: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'char'
8 | if(S = 'a' || S = 'i' || S = 'u' || S = 'e' || S = 'o'){
| ^
/usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const typename _Dom::value_type&, const _Expr<_Dom1, typename _Dom1::value_type>&)'
416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed:
a.cc:8:17: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
8 | if(S = 'a' || S = 'i' || S = 'u' || S = 'e' || S = 'o'){
| ^
/usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_ValArray, _Dom, typename _Dom::value_type>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const valarray<typename _Dom::value_type>&)'
416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed:
a.cc:8:17: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'char'
8 | if(S = 'a' || S = 'i' || S = 'u' || S = 'e' || S = 'o'){
| ^
/usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_ValArray, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const valarray<typename _Dom::value_type>&, const _Expr<_Dom1, typename _Dom1::value_type>&)'
416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed:
a.cc:8:17: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
8 | if(S = 'a' || S = 'i' || S = 'u' || S = 'e' || S = 'o'){
| ^
/usr/include/c++/14/valarray:1207:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_ValArray, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__logical_or, _Tp>::result_type> std::operator||(const valarray<_Tp>&, const valarray<_Tp>&)'
1207 | _DEFINE_BINARY_OPERATOR(||, __logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/valarray:1207:1: note: template argument deduction/substitution failed:
a.cc:8:17: note: mismatched types 'const std::valarray<_Tp>' and 'char'
8 | if(S = 'a' || S = 'i' || S = 'u' || S = 'e' || S = 'o'){
| ^
/usr/include/c++/14/valarray:1207:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_ValArray, std::_Constant, _Tp, _Tp>, typename std::__fun<std::__logical_or, _Tp>::result_type> std::operator||(const valarray<_Tp>&, const typename valarray<_Tp>::value_type&)'
1207 | _DEFINE_BINARY_OPERATOR(||, __logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/valarray:1207:1: note: template argument deduction/substitution failed:
a.cc:8:17: note: mismatched types 'const std::valarray<_Tp>' and 'char'
8 | if(S = 'a' || S = 'i' || S = 'u' || S = 'e' || S = 'o'){
| ^
/usr/include/c++/14/valarray:1207:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Constant, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__logical_or, _Tp>::result_type> std::operator||(const typename valarray<_Tp>::value_type&, const valarray<_Tp>&)'
1207 | _DEFINE_BINARY_OPERATOR(||, __logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/valarray:1207:1: note: template argument deduction/substitution failed:
a.cc:8:17: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::valarray<_Tp>'
8 | if(S = 'a' || S = 'i' || S = 'u' || S = 'e' || S = 'o'){
| ^
a.cc:8:25: error: no match for 'operator||' (operand types are 'char' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
8 | if(S = 'a' || S = 'i' || S = 'u' || S = 'e' || S = 'o'){
| ~~~ ^~ ~
| | |
| char std::string {aka std::__cxx11::basic_string<char>}
a.cc:8:25: note: candidate: 'operator||(bool, bool)' (built-in)
8 | if(S = 'a' || S = 'i' || S = 'u' || S = 'e' || S = 'o'){
| ~~~~^~~~
a.cc:8:25: note: no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
/usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const _Expr<_Dom2, typename _Dom2::value_type>&)'
416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed:
a.cc:8:28: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'char'
8 | if(S = 'a' || S = 'i' || S = 'u' || S = 'e' || S = 'o'){
| ^
/usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)'
416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed:
a.cc:8:28: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'char'
8 | if(S = 'a' || S = 'i' || S = 'u' || S = 'e' || S = 'o'){
| ^
/usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const typename _Dom::value_type&, const _Expr<_Dom1, typename _Dom1::value_type>&)'
416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed:
a.cc:8:28: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
8 | if(S = 'a' || S = 'i' || S = 'u' || S = 'e' || S = 'o'){
| ^
/usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_ValArray, _Dom, typename _Dom::value_type>, typename std:: |
s959768856 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin>>c;
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') cout<<"vowel"<<endl;
else cout<<"consonant"<<endl;
} | a.cc: In function 'int main()':
a.cc:7:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
7 | if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') 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:7:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') 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:7:10: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') 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:7:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') 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:7:10: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') 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:7:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') 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:7:10: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') 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:7:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') 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:7:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
7 | if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') 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:7:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
7 | if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') 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:7:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
7 | if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') cout<<"vowel"<<endl;
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:7:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
7 | if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') cout<<"vowel"<<endl;
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:7:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
7 | if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') cout<<"vowel"<<endl;
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:7:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
7 | if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') 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:7:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
7 | if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') 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 _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:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
7 | if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') cout<<"vowel"<<endl;
| ^~~
In file included from /usr/include/c++/14/bits/b |
s290591680 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int A;
cin >> A;
if (A == "a"||A == "i"||A == "u"||A == "e"||A == "o")
{
cout << "a" << endl;
}
else
{
cout<<"consonant"<<endl;
}
}
#include <bits/stdc++.h>
using namespace std;
int main() {
int c;
cin >> c;
if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'
{
cout << "a" << endl;
}
else
{
cout<<"consonant"<<endl;
}
}
提出情報 | a.cc: In function 'int main()':
a.cc:8:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (A == "a"||A == "i"||A == "u"||A == "e"||A == "o")
| ~~^~~~~~
a.cc:8:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (A == "a"||A == "i"||A == "u"||A == "e"||A == "o")
| ~~^~~~~~
a.cc:8:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (A == "a"||A == "i"||A == "u"||A == "e"||A == "o")
| ~~^~~~~~
a.cc:8:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (A == "a"||A == "i"||A == "u"||A == "e"||A == "o")
| ~~^~~~~~
a.cc:8:49: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (A == "a"||A == "i"||A == "u"||A == "e"||A == "o")
| ~~^~~~~~
a.cc: At global scope:
a.cc:23:5: error: redefinition of 'int main()'
23 | int main() {
| ^~~~
a.cc:4:5: note: 'int main()' previously defined here
4 | int main() {
| ^~~~
a.cc: In function 'int main()':
a.cc:27:63: error: expected ')' before '{' token
27 | if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'
| ~ ^
| )
28 | {
| ~
a.cc:38:1: error: expected primary-expression before '}' token
38 | }
| ^
a.cc: At global scope:
a.cc:39:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' does not name a type
39 | 提出情報
| ^~~~~~~~
|
s156090180 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int A;
cin >> A;
if (A == "a"||A == "i"||A == "u"||A == "e"||A == "o")
{
cout << "a" << endl;
}
else
{
cout<<"consonant"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:8:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (A == "a"||A == "i"||A == "u"||A == "e"||A == "o")
| ~~^~~~~~
a.cc:8:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (A == "a"||A == "i"||A == "u"||A == "e"||A == "o")
| ~~^~~~~~
a.cc:8:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (A == "a"||A == "i"||A == "u"||A == "e"||A == "o")
| ~~^~~~~~
a.cc:8:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (A == "a"||A == "i"||A == "u"||A == "e"||A == "o")
| ~~^~~~~~
a.cc:8:49: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (A == "a"||A == "i"||A == "u"||A == "e"||A == "o")
| ~~^~~~~~
|
s960869252 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int A;
cin >> A;
if (A== "a"||A== "i"||A== "u"||A== "e"||A== "o")
{
cout << "a" << endl;
}
else
{
cout<<"consonant"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:8:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (A== "a"||A== "i"||A== "u"||A== "e"||A== "o")
| ~^~~~~~
a.cc:8:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (A== "a"||A== "i"||A== "u"||A== "e"||A== "o")
| ~^~~~~~
a.cc:8:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (A== "a"||A== "i"||A== "u"||A== "e"||A== "o")
| ~^~~~~~
a.cc:8:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (A== "a"||A== "i"||A== "u"||A== "e"||A== "o")
| ~^~~~~~
a.cc:8:44: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (A== "a"||A== "i"||A== "u"||A== "e"||A== "o")
| ~^~~~~~
|
s098656599 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int A;
cin >> A;
if (A=="a"||A=="i"||A=="u"||A=="e"||A=="o")
{
cout << "a" << endl;
}
else
{
cout<<"consonant"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:8:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (A=="a"||A=="i"||A=="u"||A=="e"||A=="o")
| ~^~~~~
a.cc:8:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (A=="a"||A=="i"||A=="u"||A=="e"||A=="o")
| ~^~~~~
a.cc:8:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (A=="a"||A=="i"||A=="u"||A=="e"||A=="o")
| ~^~~~~
a.cc:8:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (A=="a"||A=="i"||A=="u"||A=="e"||A=="o")
| ~^~~~~
a.cc:8:40: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (A=="a"||A=="i"||A=="u"||A=="e"||A=="o")
| ~^~~~~
|
s989323597 | p03852 | C++ | using namespace std;
int main() {
int A;
cin >> A;
if (A=="a"||A=="i"||A=="u"||A=="e"||A=="o")
{
cout << "a" << endl;
}
else
{
cout<<"consonant"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
5 | cin >> A;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
+++ |+#include <iostream>
1 | using namespace std;
a.cc:7:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if (A=="a"||A=="i"||A=="u"||A=="e"||A=="o")
| ~^~~~~
a.cc:7:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if (A=="a"||A=="i"||A=="u"||A=="e"||A=="o")
| ~^~~~~
a.cc:7:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if (A=="a"||A=="i"||A=="u"||A=="e"||A=="o")
| ~^~~~~
a.cc:7:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if (A=="a"||A=="i"||A=="u"||A=="e"||A=="o")
| ~^~~~~
a.cc:7:40: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if (A=="a"||A=="i"||A=="u"||A=="e"||A=="o")
| ~^~~~~
a.cc:9:5: error: 'cout' was not declared in this scope
9 | cout << "a" << endl;
| ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:20: error: 'endl' was not declared in this scope
9 | cout << "a" << endl;
| ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
+++ |+#include <ostream>
1 | using namespace std;
a.cc:13:5: error: 'cout' was not declared in this scope
13 | cout<<"consonant"<<endl;
| ^~~~
a.cc:13:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:24: error: 'endl' was not declared in this scope
13 | cout<<"consonant"<<endl;
| ^~~~
a.cc:13:24: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
|
s153083223 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char 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:24:4: error: expected '}' at end of input
24 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s794695996 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char 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:2: error: expected '}' at end of input
24 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s788915200 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char 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:4: error: expected '}' at end of input
24 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s155638089 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){char t;cin<<t;if(t=='a'||t=='i'||t=='u'||t=='e'||t=='o')cout<<"vowel"<<endl;else cout<<"consonant"<<endl;} | a.cc: In function 'int main()':
a.cc:3:22: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'char')
3 | int main(){char t;cin<<t;if(t=='a'||t=='i'||t=='u'||t=='e'||t=='o')cout<<"vowel"<<endl;else cout<<"consonant"<<endl;}
| ~~~^~~
| | |
| | char
| std::istream {aka std::basic_istream<char>}
a.cc:3:22: note: candidate: 'operator<<(int, int)' (built-in)
3 | int main(){char t;cin<<t;if(t=='a'||t=='i'||t=='u'||t=='e'||t=='o')cout<<"vowel"<<endl;else cout<<"consonant"<<endl;}
| ~~~^~~
a.cc:3:22: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int'
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1715:5: note: candidate: 'template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const sub_match<_Bi_iter>&)'
1715 | operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1715:5: note: template argument deduction/substitution failed:
a.cc:3:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
3 | int main(){char t;cin<<t;if(t=='a'||t=='i'||t=='u'||t=='e'||t=='o')cout<<"vowel"<<endl;else cout<<"consonant"<<endl;}
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41:
/usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
125 | operator<<(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed:
a.cc:3:19: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte'
3 | int main(){char t;cin<<t;if(t=='a'||t=='i'||t=='u'||t=='e'||t=='o')cout<<"vowel"<<endl;else cout<<"consonant"<<endl;}
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)'
763 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed:
a.cc:3:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
3 | int main(){char t;cin<<t;if(t=='a'||t=='i'||t=='u'||t=='e'||t=='o')cout<<"vowel"<<endl;else cout<<"consonant"<<endl;}
| ^
/usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4077 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed:
a.cc:3:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
3 | int main(){char t;cin<<t;if(t=='a'||t=='i'||t=='u'||t=='e'||t=='o')cout<<"vowel"<<endl;else cout<<"consonant"<<endl;}
| ^
/usr/include/c++/14/bitset:1687:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const bitset<_Nb>&)'
1687 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bitset:1687:5: note: template argument deduction/substitution failed:
a.cc:3:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
3 | int main(){char t;cin<<t;if(t=='a'||t=='i'||t=='u'||t=='e'||t=='o')cout<<"vowel"<<endl;else cout<<"consonant"<<endl;}
| ^
In file included from /usr/include/c++/14/bits/ios_base.h:46,
from /usr/include/c++/14/streambuf:43,
from /usr/include/c++/14/bits/streambuf_iterator.h:35,
from /usr/include/c++/14/iterator:66,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54:
/usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)'
339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
| ^~~~~~~~
/usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed:
a.cc:3:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
3 | int main(){char t;cin<<t;if(t=='a'||t=='i'||t=='u'||t=='e'||t=='o')cout<<"vowel"<<endl;else cout<<"consonant"<<endl;}
| ^
In file included from /usr/include/c++/14/memory:80,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:56:
/usr/include/c++/14/bits/shared_ptr.h:70:5: note: candidate: 'template<class _Ch, class _Tr, class _Tp, __gnu_cxx::_Lock_policy _Lp> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __shared_ptr<_Tp, _Lp>&)'
70 | operator<<(std::basic_ostream<_Ch, _Tr>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/shared_ptr.h:70:5: note: template argument deduction/substitution failed:
a.cc:3:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
3 | int main(){char t;cin<<t;if(t=='a'||t=='i'||t=='u'||t=='e'||t=='o')cout<<"vowel"<<endl;else cout<<"consonant"<<endl;}
| ^
In file included from /usr/include/c++/14/istream:41,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)'
563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed:
a.cc:3:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
3 | int main(){char t;cin<<t;if(t=='a'||t=='i'||t=='u'||t=='e'||t=='o')cout<<"vowel"<<endl;else cout<<"consonant"<<endl;}
| ^
/usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)'
573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed:
a.cc:3:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
3 | int main(){char t;cin<<t;if(t=='a'||t=='i'||t=='u'||t=='e'||t=='o')cout<<"vowel"<<endl;else cout<<"consonant"<<endl;}
| ^
/usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)'
579 | operator<<(basic_ostream<char, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed:
a.cc:3:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
3 | int main(){char t;cin<<t;if(t=='a'||t=='i'||t=='u'||t=='e'||t=='o')cout<<"vowel"<<endl;else cout<<"consonant"<<endl;}
| ^
/usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)'
590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed:
a.cc:3:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
3 | int main(){char t;cin<<t;if(t=='a'||t=='i'||t=='u'||t=='e'||t=='o')cout<<"vowel"<<endl;else cout<<"consonant"<<endl;}
| ^
/usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)'
595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed:
a.cc:3:24: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
3 | int main(){char t;cin<<t;if(t=='a'||t=='i'||t=='u'||t=='e'||t=='o')cout<<"vowel"<<endl;else cout<<"consonant"<<endl;}
| ^
/usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_o |
s346971513 | 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: In function 'int main()':
a.cc:9:22: error: expected ';' before '}' token
9 | cout<<"consonant"
| ^
| ;
10 | }
| ~
|
s694224407 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef vector<long long> vll;
int main()
{
ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
string s;
cin>>s;
if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u')
{
cout<<"vowel"<<endl;
}
else
{
cout<<"consonant"<<endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:12:7: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
12 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u')
| ~^~~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:12:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
12 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u')
| ^~~
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:12:9: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
12 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u')
| ^~~
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:12:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
12 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u')
| ^~~
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:12:9: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
12 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u')
| ^~~
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:12:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
12 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u')
| ^~~
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:12:9: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
12 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u')
| ^~~
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:12:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
12 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u')
| ^~~
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:12:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
12 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u')
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:12:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
12 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u')
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:12:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
12 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u')
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:12:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
12 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u')
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:12:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
12 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u')
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:12:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
12 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u')
| ^~~
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:12:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
12 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u')
| ^~~
In file included from /usr/include/c++/14/string:43:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:12:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
12 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u')
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
629 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~ |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.