submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3 values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s602044942 | 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:13: error: 'a' was not declared in this scope
7 | if ( c == a,e,i,o,u ) {
| ^
a.cc:7:15: error: 'e' was not declared in this scope
7 | if ( c == a,e,i,o,u ) {
| ^
a.cc:7:17: error: 'i' was not declared in this scope
7 | if ( c == a,e,i,o,u ) {
| ^
a.cc:7:19: error: 'o' was not declared in this scope
7 | if ( c == a,e,i,o,u ) {
| ^
a.cc:7:21: error: 'u' was not declared in this scope
7 | if ( c == a,e,i,o,u ) {
| ^
|
s738359931 | 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:13: error: 'a' was not declared in this scope
7 | if ( c == a || c == e || c == i || c == o || c == u ) {
| ^
a.cc:7:23: error: 'e' was not declared in this scope
7 | if ( c == a || c == e || c == i || c == o || c == u ) {
| ^
a.cc:7:33: error: 'i' was not declared in this scope
7 | if ( c == a || c == e || c == i || c == o || c == u ) {
| ^
a.cc:7:43: error: 'o' was not declared in this scope
7 | if ( c == a || c == e || c == i || c == o || c == u ) {
| ^
a.cc:7:53: error: 'u' was not declared in this scope
7 | if ( c == a || c == e || c == i || c == o || c == u ) {
| ^
a.cc:10:3: error: expected '}' before 'else'
10 | else {
| ^~~~
a.cc:7:57: note: to match this '{'
7 | if ( c == a || c == e || c == i || c == o || c == u ) {
| ^
|
s855978076 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if(c=='a' || c=='i' || c=='u' || c=='e' || c=='o')
cout << "voewl";
else
cout << "consonant"
cout << endl;
} | a.cc: In function 'int main()':
a.cc:11:36: error: expected ';' before 'cout'
11 | cout << "consonant"
| ^
| ;
12 | cout << endl;
| ~~~~
|
s540064811 | 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:25: error: expected primary-expression before '||' token
8 | if (c=='a'||c=='i'==||c=='u'||c=='e'||c=='o'){
| ^~
|
s677690064 | 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:25: error: expected primary-expression before '||' token
8 | if (c=='a'||c=='i'==||c=='u'||c=='e'||c=='o'){
| ^~
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;
| ^~~~~~~~~
|
s587734958 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int c;
cin >> c;
if (c=="a"){
cout << "vowel" << endl;
}
else if (c=="i"){
cout << "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:7:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if (c=="a"){
| ~^~~~~
a.cc:10:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
10 | else if (c=="i"){
| ~^~~~~
a.cc:13:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
13 | else if (c=="u"){
| ~^~~~~
a.cc:16:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
16 | else if (c=="e"){
| ~^~~~~
a.cc:19:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
19 | else if (c=="o"){
| ~^~~~~
|
s449824291 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int c;
cin >> c;
if (c=="a"){
cout << vowel << endl;
}
else if (c=="i"){
cout << 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:7:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if (c=="a"){
| ~^~~~~
a.cc:8:13: error: 'vowel' was not declared in this scope
8 | cout << vowel << endl;
| ^~~~~
a.cc:10:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
10 | else if (c=="i"){
| ~^~~~~
a.cc:11:13: error: 'vowel' was not declared in this scope
11 | cout << vowel << endl;
| ^~~~~
a.cc:13:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
13 | else if (c=="u"){
| ~^~~~~
a.cc:14:13: error: 'vowel' was not declared in this scope
14 | cout << vowel << endl;
| ^~~~~
a.cc:16:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
16 | else if (c=="e"){
| ~^~~~~
a.cc:17:13: error: 'vowel' was not declared in this scope
17 | cout << vowel << endl;
| ^~~~~
a.cc:19:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
19 | else if (c=="o"){
| ~^~~~~
a.cc:20:13: error: 'vowel' was not declared in this scope
20 | cout << vowel << endl;
| ^~~~~
a.cc:23:12: error: 'consonant' was not declared in this scope
23 | cout << consonant << endl;
| ^~~~~~~~~
|
s509702269 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
// ここにプログラムを追記
if(c == 'a' || c=='i' || c=='u' || c=='e' || c=='o')
cout << "vowel" <,endl;
else
cout << "consonant" << endl;
}
| a.cc: In function 'int main()':
a.cc:9:24: error: expected primary-expression before ',' token
9 | cout << "vowel" <,endl;
| ^
|
s822102658 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string str;
cin >> str;
if(str.at == 'a'){
cout << "vowel" << endl;
}
else if(str.at == 'i'){
cout << "vowel" << endl;
}
else if(str.at == 'u'){
cout << "vowel" << endl;
}
else if(str.at == 'e'){
cout << "vowel" << endl;
}
else if(str.at == 'o'){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:13: error: invalid operands of types '<unresolved overloaded function type>' and 'char' to binary 'operator=='
8 | if(str.at == 'a'){
| ~~~~~~ ^~ ~~~
| | |
| | char
| <unresolved overloaded function type>
a.cc:11:18: error: invalid operands of types '<unresolved overloaded function type>' and 'char' to binary 'operator=='
11 | else if(str.at == 'i'){
| ~~~~~~ ^~ ~~~
| | |
| | char
| <unresolved overloaded function type>
a.cc:14:18: error: invalid operands of types '<unresolved overloaded function type>' and 'char' to binary 'operator=='
14 | else if(str.at == 'u'){
| ~~~~~~ ^~ ~~~
| | |
| | char
| <unresolved overloaded function type>
a.cc:17:18: error: invalid operands of types '<unresolved overloaded function type>' and 'char' to binary 'operator=='
17 | else if(str.at == 'e'){
| ~~~~~~ ^~ ~~~
| | |
| | char
| <unresolved overloaded function type>
a.cc:20:18: error: invalid operands of types '<unresolved overloaded function type>' and 'char' to binary 'operator=='
20 | else if(str.at == 'o'){
| ~~~~~~ ^~ ~~~
| | |
| | char
| <unresolved overloaded function type>
|
s083159506 | 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:73: error: expected primary-expression before ')' token
8 | if ( c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u' ||)
| ^
|
s984172811 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cin>>s;
if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u'){
cout<<"vowel"<<endl;
}else{
cout<<"consonant"<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:5: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
7 | 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:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | 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:7:7: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | 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:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | 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:7:7: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | 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:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | 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:7:7: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | 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:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | 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:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
7 | 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:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
7 | 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:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
7 | 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:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
7 | 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:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
7 | 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:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
7 | 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:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
7 | 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:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
7 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u'){
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
629 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:629:5: note: template argument d |
s163460723 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cin>>s;
if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u'){
cout<<"vowel"<<endl;
}else{
cout<<"consonant"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:7:5: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
7 | 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:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | 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:7:7: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | 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:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | 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:7:7: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | 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:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | 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:7:7: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | 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:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | 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:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
7 | 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:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
7 | 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:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
7 | 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:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
7 | 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:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
7 | 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:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
7 | 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:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
7 | 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:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
7 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u'){
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
629 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:629:5: note: template argument d |
s522776654 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
if (c == a || c==e || c==i || c==u || c==o){
cout << "vowel" << endl;
}
else {
cout << "consonant" <<endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:12: error: 'a' was not declared in this scope
8 | if (c == a || c==e || c==i || c==u || c==o){
| ^
a.cc:8:20: error: 'e' was not declared in this scope
8 | if (c == a || c==e || c==i || c==u || c==o){
| ^
a.cc:8:28: error: 'i' was not declared in this scope
8 | if (c == a || c==e || c==i || c==u || c==o){
| ^
a.cc:8:36: error: 'u' was not declared in this scope
8 | if (c == a || c==e || c==i || c==u || c==o){
| ^
a.cc:8:44: error: 'o' was not declared in this scope
8 | if (c == a || c==e || c==i || c==u || c==o){
| ^
|
s920266197 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c >> endl;
if (c == a || c==e || c==i || c==u || c==o){
cout << "vowel" << endl;
}
else {
cout << "consonant" <<endl;
}
}
| a.cc: In function 'int main()':
a.cc:6:12: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>' and '<unresolved overloaded function type>')
6 | cin >> c >> endl;
| ~~~~~~~~~^~~~~~~
In file included from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127,
from a.cc:1:
/usr/include/c++/14/istream:170:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
170 | operator>>(bool& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:170:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'bool&'
170 | operator>>(bool& __n)
| ~~~~~~^~~
/usr/include/c++/14/istream:174:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]'
174 | operator>>(short& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:174:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short int&'
174 | operator>>(short& __n);
| ~~~~~~~^~~
/usr/include/c++/14/istream:177:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
177 | operator>>(unsigned short& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:177:34: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short unsigned int&'
177 | operator>>(unsigned short& __n)
| ~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:181:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]'
181 | operator>>(int& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:181:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int&'
181 | operator>>(int& __n);
| ~~~~~^~~
/usr/include/c++/14/istream:184:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
184 | operator>>(unsigned int& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:184:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'unsigned int&'
184 | operator>>(unsigned int& __n)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:188:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
188 | operator>>(long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:188:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int&'
188 | operator>>(long& __n)
| ~~~~~~^~~
/usr/include/c++/14/istream:192:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
192 | operator>>(unsigned long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:192:33: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int&'
192 | operator>>(unsigned long& __n)
| ~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:199:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
199 | operator>>(long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:199:29: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int&'
199 | operator>>(long long& __n)
| ~~~~~~~~~~~^~~
/usr/include/c++/14/istream:203:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
203 | operator>>(unsigned long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:203:38: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long unsigned int&'
203 | operator>>(unsigned long long& __n)
| ~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:219:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
219 | operator>>(float& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:219:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float&'
219 | operator>>(float& __f)
| ~~~~~~~^~~
/usr/include/c++/14/istream:223:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
223 | operator>>(double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:223:26: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'double&'
223 | operator>>(double& __f)
| ~~~~~~~~^~~
/usr/include/c++/14/istream:227:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
227 | operator>>(long double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:227:31: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long double&'
227 | operator>>(long double& __f)
| ~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:328:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
328 | operator>>(void*& __p)
| ^~~~~~~~
/usr/include/c++/14/istream:328:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'void*&'
328 | operator>>(void*& __p)
| ~~~~~~~^~~
/usr/include/c++/14/istream:122:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__istream_type& (*)(__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
122 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:122:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&)' {aka 'std::basic_istream<char>& (*)(std::basic_istream<char>&)'}
122 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:126:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; __ios_type = std::basic_ios<char>]'
126 | operator>>(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:126:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'}
126 | operator>>(__ios_type& (*__pf)(__ios_type&))
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:133:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
133 | operator>>(ios_base& (*__pf)(ios_base&))
| ^~~~~~~~
/usr/include/c++/14/istream:133:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::ios_base& (*)(std::ios_base&)'
133 | operator>>(ios_base& (*__pf)(ios_base&))
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:352:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; __streambuf_type = std::basic_streambuf<char>]'
352 | operator>>(__streambuf_type* __sb);
| ^~~~~~~~
/usr/include/c++/14/istream:352:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_istream<cha |
s024592079 | 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:15:1: error: expected declaration before '}' token
15 | }
| ^
|
s674742459 | 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:10:14: error: lvalue required as left operand of assignment
10 | if(c=='a'||c='i'||c=='u'||c=='e'||c=='o')
| ~~~~~~^~~
a.cc: At global scope:
a.cc:15:1: error: expected declaration before '}' token
15 | }
| ^
|
s932701225 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string str1;
cin >> str1;
if (str.at(1) == 'a' || str.at(1) == 'i' || str.at(1) == 'u' || str.at(1) == 'e' || str.at(1) == 'o') {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:6: error: 'str' was not declared in this scope; did you mean 'str1'?
8 | if (str.at(1) == 'a' || str.at(1) == 'i' || str.at(1) == 'u' || str.at(1) == 'e' || str.at(1) == 'o') {
| ^~~
| str1
|
s416493523 | 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:25:1: error: expected declaration before '}' token
25 | }
| ^
|
s578961727 | 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/i |
s538515886 | 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:46: error: 'C' was not declared in this scope
8 | if(c=='a' || c=='i' || c=='u' || c=='e' || C=='o') {
| ^
|
s291835167 | 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:1:10: fatal error: bits.stdc++.h: No such file or directory
1 | #include <bits.stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s953694593 | p03852 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string c;
cin >> c;
if(c.find == ("a" or "i" or "u" or "e" or "o")){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:13: error: invalid operands of types '<unresolved overloaded function type>' and 'bool' to binary 'operator=='
8 | if(c.find == ("a" or "i" or "u" or "e" or "o")){
| ~~~~~~ ^~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | bool
| <unresolved overloaded function type>
|
s900436951 | p03852 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string c;
cin >> c;
if(c == ("a" or "i" or "u" or "e" or "o")){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:8:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'bool')
8 | if(c == ("a" or "i" or "u" or "e" or "o")){
| ~ ^~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | bool
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/iosfwd:42,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:8:43: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
8 | if(c == ("a" or "i" or "u" or "e" or "o")){
| ^
In file included from /usr/include/c++/14/string:43,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:8:43: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
8 | if(c == ("a" or "i" or "u" or "e" or "o")){
| ^
In file included from /usr/include/c++/14/string:48:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:8:43: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | if(c == ("a" or "i" or "u" or "e" or "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:43: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | if(c == ("a" or "i" or "u" or "e" or "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:43: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | if(c == ("a" or "i" or "u" or "e" or "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:43: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | if(c == ("a" or "i" or "u" or "e" or "o")){
| ^
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/string:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:8:43: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
8 | if(c == ("a" or "i" or "u" or "e" or "o")){
| ^
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
629 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:629:5: note: template argument deduction/substitution failed:
a.cc:8:43: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
8 | if(c == ("a" or "i" or "u" or "e" or "o")){
| ^
/usr/include/c++/14/string_view:637:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
637 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:637:5: note: template argument deduction/substitution failed:
a.cc:8:43: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
8 | if(c == ("a" or "i" or "u" or "e" or "o")){
| ^
/usr/include/c++/14/string_view:644:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)'
644 | operator==(__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:644:5: note: template argument deduction/substitution failed:
a.cc:8:43: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'bool'
8 | if(c == ("a" or "i" or "u" or "e" or "o")){
| ^
/usr/include/c++/14/bits/basic_string.h:3755:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3755 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3755:5: note: template argument deduction/substitution failed:
a.cc:8:43: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'bool'
8 | if(c == ("a" or "i" or "u" or "e" or "o")){
| ^
/usr/include/c++/14/bits/basic_string.h:3772:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3772 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3772:5: note: template argument deduction/substitution failed:
a.cc:8:43: note: mismatched types 'const _CharT*' and 'bool'
8 | if(c == ("a" or "i" or "u" or "e" or "o")){
| ^
/usr/include/c++/14/bits/basic_string.h:3819:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3819 | operator==(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3819:5: note: template argument deduction/substitution failed:
a.cc:8:43: note: mismatched types 'const _CharT*' and 'std::__cxx11::basic_string<char>'
8 | if(c == ("a" or "i" or "u" or "e" or "o")){
| ^
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/tuple:2558:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator==(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)'
2558 | operator==(const tuple<_TElements...>& __t,
| ^~~~~~~~
/usr/include/c++/14/tuple:2558:5: note: template argument deduction/substitution failed:
a.cc:8:43: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::tuple<_UTypes ...>'
8 | if(c == ("a" or "i" or "u" or "e" or "o")){
| ^
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
from /usr/include/c++/14/bits/basic_ios.h:37,
from /usr/include/c++/14/ios:46:
/usr/include/c++/14/bits/streambuf_iterator.h:234:5: note: candidate: 'template<class _CharT, class _Traits> bool std::operator==(const istreambuf_iterator<_CharT, _Traits>&, const istreambuf_i |
s200160600 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char c; //入力
cin >> c;
String boin; //文字列変数
boin = "aiueo";
for(int i=0;i<boin.size();i++){
if(boin.at(i) == c){
cout << "vowel";
} else {
cout << "consonant";
}
}
} | a.cc: In function 'int main()':
a.cc:7:3: error: 'String' was not declared in this scope
7 | String boin; //文字列変数
| ^~~~~~
a.cc:8:3: error: 'boin' was not declared in this scope
8 | boin = "aiueo";
| ^~~~
|
s976894935 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char c; //入力
cin >> c;
string boin; //文字列変数
boin = "aiueo";
for(i=0;i<boin.size();i++){
if(boin.at(i) == c){
cout << "vowel";
} else {
cout << "consonant";
}
}
} | a.cc: In function 'int main()':
a.cc:10:7: error: 'i' was not declared in this scope
10 | for(i=0;i<boin.size();i++){
| ^
|
s646811853 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char c; //入力
cin >> c;
String boin; //文字列変数
boin = "aiueo";
for(i=0;i<boin.size();i++){
if(boin.at(i) == c){
cout << "vowel";
} else {
cout << "consonant";
}
}
} | a.cc: In function 'int main()':
a.cc:7:3: error: 'String' was not declared in this scope
7 | String boin; //文字列変数
| ^~~~~~
a.cc:8:3: error: 'boin' was not declared in this scope
8 | boin = "aiueo";
| ^~~~
a.cc:10:7: error: 'i' was not declared in this scope
10 | for(i=0;i<boin.size();i++){
| ^
|
s732433006 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
char c;
if(c == 'a'||c == 'e'||c == 'o'||c == 'u'||c == 'i'){
cout << "vowel" << endl;
} else {
cout << "consonant" <<endl;
}
| a.cc: In function 'int main()':
a.cc:11:2: error: expected '}' at end of input
11 | }
| ^
a.cc:5:1: note: to match this '{'
5 | {
| ^
|
s640868149 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
char c;
if(c == 'a'||c == 'e'||c == 'o'||c == 'u'||c == 'i'){
cout << "vowel" << endl;
} else {
cout << consonant <<endl;
} | a.cc: In function 'int main()':
a.cc:10:13: error: 'consonant' was not declared in this scope
10 | cout << consonant <<endl;
| ^~~~~~~~~
a.cc:11:2: error: expected '}' at end of input
11 | }
| ^
a.cc:5:1: note: to match this '{'
5 | {
| ^
|
s761550250 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char C;
cin>>c;
if(c=='a'|c=='i'|c=='u'|c=='e'|c=='o'){
cout<<"vowel"<<endl;
}else{
cout<<"consonant"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:5:10: error: 'c' was not declared in this scope
5 | cin>>c;
| ^
|
s507792565 | p03852 | C++ | #include <iostream>
using namespace std;
int main(){
char b;
string a;
cin >> a;
b = a;
if(b=='a' or b =='i' or b=='u' or b=='e' or b=='o'){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:7:5: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char' in assignment
7 | b = a;
| ^
| |
| std::string {aka std::__cxx11::basic_string<char>}
|
s132574408 | p03852 | C++ | #include<iostream>
#include<string>
using namespace std;
int main()
{
string c;
cin >> c;
if((c == 'a') || (c == 'i') || (c == 'y') || (c == 'u') || (c == 'o'))
cout << "vowel";
else cout << "consonant";
return 0;
} | 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 == 'y') || (c == 'u') || (c == 'o'))
| ~ ^~ ~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/iosfwd:42,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:8: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 == 'y') || (c == 'u') || (c == 'o'))
| ^~~
In file included from /usr/include/c++/14/string:43,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:8: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 == 'y') || (c == 'u') || (c == 'o'))
| ^~~
In file included from /usr/include/c++/14/string:48:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:8: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 == 'y') || (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 == 'y') || (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 == 'y') || (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 == 'y') || (c == 'u') || (c == 'o'))
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/string:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:8: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 == 'y') || (c == 'u') || (c == 'o'))
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
629 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:629:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
8 | if((c == 'a') || (c == 'i') || (c == 'y') || (c == 'u') || (c == 'o'))
| ^~~
/usr/include/c++/14/string_view:637:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
637 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:637:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
8 | if((c == 'a') || (c == 'i') || (c == 'y') || (c == 'u') || (c == 'o'))
| ^~~
/usr/include/c++/14/string_view:644:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)'
644 | operator==(__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:644:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'char'
8 | if((c == 'a') || (c == 'i') || (c == 'y') || (c == 'u') || (c == 'o'))
| ^~~
/usr/include/c++/14/bits/basic_string.h:3755:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3755 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3755:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'char'
8 | if((c == 'a') || (c == 'i') || (c == 'y') || (c == 'u') || (c == 'o'))
| ^~~
/usr/include/c++/14/bits/basic_string.h:3772:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3772 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3772:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: mismatched types 'const _CharT*' and 'char'
8 | if((c == 'a') || (c == 'i') || (c == 'y') || (c == 'u') || (c == 'o'))
| ^~~
/usr/include/c++/14/bits/basic_string.h:3819:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3819 | operator==(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3819:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: mismatched types 'const _CharT*' and 'std::__cxx11::basic_string<char>'
8 | if((c == 'a') || (c == 'i') || (c == 'y') || (c == 'u') || (c == 'o'))
| ^~~
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/tuple:2558:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator==(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)'
2558 | operator==(const tuple<_TElements...>& __t,
| ^~~~~~~~
/usr/include/c++/14/tuple:2558:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::tuple<_UTypes ...>'
8 | if((c == 'a') || (c == 'i') || (c == 'y') || (c == 'u') || (c == 'o'))
| ^~~
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
from /usr/include/c++/14/bits/basic_ios.h:37,
from /usr/include/c++/14/ios:46:
/usr/include/c++/14/bits/streambuf_iterator.h:234:5: note: candidate: 'template<class _CharT, class _Traits> bool std::operator==(const istreambuf_iterator<_CharT, _Traits>&, const istreambuf_iterator<_CharT, _Traits>&)'
234 | operator==(const istreambuf_iterator<_C |
s635293342 | p03852 | C++ | #include<iostream>
#include<string>
using namespace std;
int main()
{
string c;
cin >> c;
if(c == ('a' || 'i' || 'y' || 'u' || 'o'))
cout << "vowel";
else cout << "consonant";
return 0;
} | a.cc: In function 'int main()':
a.cc:8:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'bool')
8 | if(c == ('a' || 'i' || 'y' || 'u' || 'o'))
| ~ ^~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | bool
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/iosfwd:42,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:8:43: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
8 | if(c == ('a' || 'i' || 'y' || 'u' || 'o'))
| ^
In file included from /usr/include/c++/14/string:43,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:8:43: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
8 | if(c == ('a' || 'i' || 'y' || 'u' || 'o'))
| ^
In file included from /usr/include/c++/14/string:48:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:8:43: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | if(c == ('a' || 'i' || 'y' || '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:43: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | if(c == ('a' || 'i' || 'y' || '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:43: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | if(c == ('a' || 'i' || 'y' || '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:43: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | if(c == ('a' || 'i' || 'y' || 'u' || 'o'))
| ^
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/string:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:8:43: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
8 | if(c == ('a' || 'i' || 'y' || '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.cc:8:43: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
8 | if(c == ('a' || 'i' || 'y' || 'u' || 'o'))
| ^
/usr/include/c++/14/string_view:637:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
637 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:637:5: note: template argument deduction/substitution failed:
a.cc:8:43: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
8 | if(c == ('a' || 'i' || 'y' || 'u' || 'o'))
| ^
/usr/include/c++/14/string_view:644:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)'
644 | operator==(__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:644:5: note: template argument deduction/substitution failed:
a.cc:8:43: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'bool'
8 | if(c == ('a' || 'i' || 'y' || 'u' || 'o'))
| ^
/usr/include/c++/14/bits/basic_string.h:3755:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3755 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3755:5: note: template argument deduction/substitution failed:
a.cc:8:43: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'bool'
8 | if(c == ('a' || 'i' || 'y' || 'u' || 'o'))
| ^
/usr/include/c++/14/bits/basic_string.h:3772:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3772 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3772:5: note: template argument deduction/substitution failed:
a.cc:8:43: note: mismatched types 'const _CharT*' and 'bool'
8 | if(c == ('a' || 'i' || 'y' || 'u' || 'o'))
| ^
/usr/include/c++/14/bits/basic_string.h:3819:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3819 | operator==(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3819:5: note: template argument deduction/substitution failed:
a.cc:8:43: note: mismatched types 'const _CharT*' and 'std::__cxx11::basic_string<char>'
8 | if(c == ('a' || 'i' || 'y' || 'u' || 'o'))
| ^
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/tuple:2558:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator==(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)'
2558 | operator==(const tuple<_TElements...>& __t,
| ^~~~~~~~
/usr/include/c++/14/tuple:2558:5: note: template argument deduction/substitution failed:
a.cc:8:43: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::tuple<_UTypes ...>'
8 | if(c == ('a' || 'i' || 'y' || 'u' || 'o'))
| ^
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
from /usr/include/c++/14/bits/basic_ios.h:37,
from /usr/include/c++/14/ios:46:
/usr/include/c++/14/bits/streambuf_iterator.h:234:5: note: candidate: 'template<class _CharT, class _Traits> bool std::operator==(const istreambuf_iterator<_CharT, _Traits>&, const istreambuf_iterator<_CharT, |
s475652590 | 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:23: error: expression cannot be used as a function
8 | if (c =='a')(c=='e')(c=='i')(c=='o')(c=='u')
| ~~~~~~~~^~~~~~~~
|
s502467887 | 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:15: error: expected primary-expression before ',' token
8 | if (c =='a'),(c=='e'),(c=='i'),(c=='o'),(c=='u')
| ^
|
s724477454 | 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:15: error: expected primary-expression before '||' token
8 | if (c =='a')||(c=='e')||(c=='i')||(c=='o')||(c=='u')
| ^~
|
s191179227 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char l;
cin >> l;
if (l=='a' || l=='e' || l=='i' || l=='o' l=='u') {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:43: error: expected ')' before 'l'
8 | if (l=='a' || l=='e' || l=='i' || l=='o' l=='u') {
| ~ ^~
| )
|
s971923693 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char s;
bool judge=true;
cin >> s;
switch(s.at(i)){
case'a':;
case'i':;
case'u':;
case'e':;
case'o':;
default:judge=false;
}
if(judge ==true)
cout << "vowel" << endl;
else cout << "consonant" << endl;
}
| a.cc: In function 'int main()':
a.cc:8:14: error: request for member 'at' in 's', which is of non-class type 'char'
8 | switch(s.at(i)){
| ^~
a.cc:8:17: error: 'i' was not declared in this scope
8 | switch(s.at(i)){
| ^
|
s551850281 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char s;
bool judge=true;
cin << s;
switch(s.at(i)){
case'a':;
case'i':;
case'u':;
case'e':;
case'o':;
default:judge=false;
}
if(judge ==true)
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::istream' {aka 'std::basic_istream<char>'} and 'char')
7 | cin << s;
| ~~~ ^~ ~
| | |
| | char
| std::istream {aka std::basic_istream<char>}
a.cc:7:7: note: candidate: 'operator<<(int, int)' (built-in)
7 | cin << s;
| ~~~~^~~~
a.cc:7: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:7:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | cin << s;
| ^
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:7:3: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte'
7 | cin << s;
| ^~~
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:7:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | cin << s;
| ^
/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:7:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | cin << s;
| ^
/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:7:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | cin << s;
| ^
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:7:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | cin << s;
| ^
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:7:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | cin << s;
| ^
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:7:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | cin << s;
| ^
/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:7:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | cin << s;
| ^
/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:7:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
7 | cin << s;
| ^
/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:7:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
7 | cin << s;
| ^
/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:7:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
7 | cin << s;
| ^
/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:7:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | cin << s;
| ^
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:7:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | cin << s;
| ^
/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:7:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
7 | cin << s;
| ^
/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 |
s046588457 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
char ch;
cin>>ch;
if(ch==a || ch==e || ch==i || ch==o || ch==b)
cout<<"vowel"<<endl;
else
cout<<"consonant"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:12: error: 'a' was not declared in this scope
7 | if(ch==a || ch==e || ch==i || ch==o || ch==b)
| ^
a.cc:7:21: error: 'e' was not declared in this scope
7 | if(ch==a || ch==e || ch==i || ch==o || ch==b)
| ^
a.cc:7:30: error: 'i' was not declared in this scope
7 | if(ch==a || ch==e || ch==i || ch==o || ch==b)
| ^
a.cc:7:39: error: 'o' was not declared in this scope
7 | if(ch==a || ch==e || ch==i || ch==o || ch==b)
| ^
a.cc:7:48: error: 'b' was not declared in this scope
7 | if(ch==a || ch==e || ch==i || ch==o || ch==b)
| ^
|
s384917651 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
char a;
cin>>a;
if(ch==a || ch==e || ch==i || ch==o || ch==b)
cout<<"vowel"<<endl;
else
cout<<"consonant"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:6: error: 'ch' was not declared in this scope
7 | if(ch==a || ch==e || ch==i || ch==o || ch==b)
| ^~
a.cc:7:19: error: 'e' was not declared in this scope
7 | if(ch==a || ch==e || ch==i || ch==o || ch==b)
| ^
a.cc:7:28: error: 'i' was not declared in this scope
7 | if(ch==a || ch==e || ch==i || ch==o || ch==b)
| ^
a.cc:7:37: error: 'o' was not declared in this scope
7 | if(ch==a || ch==e || ch==i || ch==o || ch==b)
| ^
a.cc:7:46: error: 'b' was not declared in this scope
7 | if(ch==a || ch==e || ch==i || ch==o || ch==b)
| ^
|
s770250146 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c = 'a';
cin>> c;
if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){
cout << "vowel" <<endl;
}
else{
cout << "constant" <<
}
| a.cc: In function 'int main()':
a.cc:12:3: error: expected primary-expression before '}' token
12 | }
| ^
a.cc:12:4: error: expected '}' at end of input
12 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s068659633 | 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:11: error: 'vowel' was not declared in this scope
8 | cout<<vowel<<endl;
| ^~~~~
a.cc:10:11: error: 'consonant' was not declared in this scope
10 | cout<<consonant<<endl;
| ^~~~~~~~~
|
s392598965 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o')
cout >> "vowel" >> endl;
else
cout >>"consonant" >> endl;
} | a.cc: In function 'int main()':
a.cc:8:10: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [6]')
8 | cout >> "vowel" >> endl;
| ~~~~ ^~ ~~~~~~~
| | |
| | const char [6]
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41,
from a.cc:1:
/usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)'
131 | operator>>(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed:
a.cc:8:5: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte'
8 | cout >> "vowel" >> endl;
| ^~~~
In file included from /usr/include/c++/14/string:55,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
835 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
8 | cout >> "vowel" >> endl;
| ^~~~~~~
/usr/include/c++/14/bitset:1597:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, bitset<_Nb>&)'
1597 | operator>>(std::basic_istream<_CharT, _Traits>& __is, bitset<_Nb>& __x)
| ^~~~~~~~
/usr/include/c++/14/bitset:1597:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
8 | cout >> "vowel" >> endl;
| ^~~~~~~
In file included from /usr/include/c++/14/istream:1109,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)'
978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
| ^~~~~~~~
/usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
8 | cout >> "vowel" >> endl;
| ^~~~~~~
/usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)'
849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
8 | cout >> "vowel" >> endl;
| ^~~~~~~
/usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)'
854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
8 | cout >> "vowel" >> endl;
| ^~~~~~~
/usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)'
896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
8 | cout >> "vowel" >> endl;
| ^~~~~~~
/usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)'
939 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:939:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
8 | cout >> "vowel" >> endl;
| ^~~~~~~
/usr/include/c++/14/istream:945:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*)'
945 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:945:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
8 | cout >> "vowel" >> endl;
| ^~~~~~~
/usr/include/c++/14/istream:1099:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)'
1099 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
/usr/include/c++/14/istream:1099:5: note: template argument deduction/substitution failed:
/usr/include/c++/14/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = const char (&)[6]]':
a.cc:8:13: required from here
8 | cout >> "vowel" >> endl;
| ^~~~~~~
/usr/include/c++/14/istream:1099:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
1099 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
/usr/include/c++/14/complex:509:5: note: candidate: 'template<class _Tp, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, complex<_Tp>&)'
509 | operator>>(basic_istream<_CharT, _Traits>& __is, complex<_Tp>& __x)
| ^~~~~~~~
/usr/include/c++/14/complex:509:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
8 | cout >> "vowel" >> endl;
| ^~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:143:
/usr/include/c++/14/iomanip:76:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Resetiosflags)'
76 | operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:76:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
8 | cout >> "vowel" >> endl;
| ^~~~~~~
/usr/include/c++/14/iomanip:106:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setiosflags)'
106 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:106:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
8 | cout >> "vowel" >> endl;
| ^~~~~~~
/usr/include/c++/14/iomanip:137:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setbase)'
137 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:137:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
8 | cout >> "vowel" >> endl;
| ^~~~~~~
/usr/include/c++/14/iomanip:177:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setfill<_CharT>)'
177 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setfill<_CharT> __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:177:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
8 | cout >> "vowel" >> endl;
| ^~~~~~~
/usr/include/c++/14/iomanip:207:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setprecision)'
207 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setprecision __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:207:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not |
s312881295 | 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:6:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
6 | 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:6:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | 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:6:10: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
6 | 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:6:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | 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:6:10: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
6 | 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:6:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | 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:6:10: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
6 | 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:6:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | 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:6:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
6 | 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:6:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
6 | 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:6:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
6 | 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:6:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
6 | 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:6:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
6 | 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:6:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
6 | 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:6:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
6 | 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:6:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
6 | 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<_Char |
s777981973 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char c;
cin >> c;
bloo flag = false;
if(c == 'a'){
flag = true;
}
else if(c == 'i'){
flag = true;
}
else if(c == 'u'){
flag = true;
}
else if(c == 'e'){
flag = true;
}
else if(c == 'o'){
flag = true;
}
else{
flag = false;
}
if(flag == true){
cout << "vowel" <<endl;
}
else{
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:7:9: error: 'bloo' was not declared in this scope
7 | bloo flag = false;
| ^~~~
a.cc:10:17: error: 'flag' was not declared in this scope
10 | flag = true;
| ^~~~
a.cc:13:17: error: 'flag' was not declared in this scope
13 | flag = true;
| ^~~~
a.cc:16:17: error: 'flag' was not declared in this scope
16 | flag = true;
| ^~~~
a.cc:19:17: error: 'flag' was not declared in this scope
19 | flag = true;
| ^~~~
a.cc:22:17: error: 'flag' was not declared in this scope
22 | flag = true;
| ^~~~
a.cc:25:17: error: 'flag' was not declared in this scope
25 | flag = false;
| ^~~~
a.cc:28:12: error: 'flag' was not declared in this scope
28 | if(flag == true){
| ^~~~
|
s564238151 | p03852 | C++ | #include <bits/stdc++.h>
using namespace.std;
int main(){
char c;
cin >> c;
bloo flag = false;
if(c == 'a'){
flag = true;
}
else if(c == 'i'){
flag = true;
}
else if(c == 'u'){
flag = true;
}
else if(c == 'e'){
flag = true;
}
else if(c == 'o'){
flag = true;
}
else{
flag = false;
}
if(flag == true){
cout << "vowel" <<endl;
}
else{
cout << "consonant" << endl;
}
} | a.cc:2:16: error: expected identifier before '.' token
2 | using namespace.std;
| ^
a.cc:2:16: error: expected ';' before '.' token
2 | using namespace.std;
| ^
| ;
a.cc:2:16: error: expected unqualified-id before '.' token
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | cin >> c;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:7:9: error: 'bloo' was not declared in this scope
7 | bloo flag = false;
| ^~~~
a.cc:10:17: error: 'flag' was not declared in this scope
10 | flag = true;
| ^~~~
a.cc:13:17: error: 'flag' was not declared in this scope
13 | flag = true;
| ^~~~
a.cc:16:17: error: 'flag' was not declared in this scope
16 | flag = true;
| ^~~~
a.cc:19:17: error: 'flag' was not declared in this scope
19 | flag = true;
| ^~~~
a.cc:22:17: error: 'flag' was not declared in this scope
22 | flag = true;
| ^~~~
a.cc:25:17: error: 'flag' was not declared in this scope
25 | flag = false;
| ^~~~
a.cc:28:12: error: 'flag' was not declared in this scope
28 | if(flag == true){
| ^~~~
a.cc:29:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
29 | cout << "vowel" <<endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:29:35: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
29 | cout << "vowel" <<endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/istream:41,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:32:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
32 | cout << "consonant" << endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:32:40: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
32 | cout << "consonant" << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s895721280 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int c;
cin >> c;
if (c == a || e || u || i || o) {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:9:12: error: 'a' was not declared in this scope
9 | if (c == a || e || u || i || o) {
| ^
a.cc:9:17: error: 'e' was not declared in this scope
9 | if (c == a || e || u || i || o) {
| ^
a.cc:9:22: error: 'u' was not declared in this scope
9 | if (c == a || e || u || i || o) {
| ^
a.cc:9:27: error: 'i' was not declared in this scope
9 | if (c == a || e || u || i || o) {
| ^
a.cc:9:32: error: 'o' was not declared in this scope
9 | if (c == a || e || u || i || o) {
| ^
|
s736656615 | p03852 | C++ | #include <iostream>
using namespace std;
int main(){
char alpabet = "";
cin >> alpabet;
if(alpabet == 'a' || alpabet == 'i' ||
alpabet == 'u' || alpabet == 'e' || alpabet == 'o'){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:5:18: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
5 | char alpabet = "";
| ^~
| |
| const char*
|
s883725211 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char = s;
if ('s' == 'a'||'s'=='i'||'s'=='u'||'s'=='e'||'s'=='o') cout << "vowel" << endl;
else cout << "constant" << endl;
}
| a.cc: In function 'int main()':
a.cc:5:8: error: expected unqualified-id before '=' token
5 | char = s;
| ^
|
s513710549 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char = s;
if ('s' == 'a'||'s'=='i'||'s'=='u'||'s'=='e'||'s'=='o') cout << "vowel" << endl;
else cout << "constant" << endl;
} | a.cc: In function 'int main()':
a.cc:5:8: error: expected unqualified-id before '=' token
5 | char = s;
| ^
|
s978467942 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char = s;
if ('s' == 'a'||'s'=='i'||'s'=='u'||'s'=='e'||'s'=='o') cout << "vowel";
else cout << "constant";
} | a.cc: In function 'int main()':
a.cc:5:8: error: expected unqualified-id before '=' token
5 | char = s;
| ^
|
s871094371 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
star = s;
if ('s' == 'a'||'s'=='i'||'s'=='u'||'s'=='e'||'s'=='o') cout << "vowel"
else cout << "constant"
} | a.cc: In function 'int main()':
a.cc:5:3: error: 'star' was not declared in this scope
5 | star = s;
| ^~~~
a.cc:5:10: error: 's' was not declared in this scope
5 | star = s;
| ^
a.cc:6:74: error: expected ';' before 'else'
6 | if ('s' == 'a'||'s'=='i'||'s'=='u'||'s'=='e'||'s'=='o') cout << "vowel"
| ^
| ;
7 | else cout << "constant"
| ~~~~
|
s609800521 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char c;
cin c;
if(c=='a' || c=='e' || c=='i' || c=='u' || c=='o')
cout << "vowel" << endl;
else
cout << "consonant" << endl;
} | a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'c'
6 | cin c;
| ^~
| ;
|
s369816523 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
if (c=="a","i","u","e","o"){
cout << vowel << endl;
}
else{
cout << consonant << endl;
} | a.cc: In function 'int main()':
a.cc:8:8: warning: ignoring return value of 'bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
8 | if (c=="a","i","u","e","o"){
| ~^~~~~
In file included from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3772:5: note: declared here
3772 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
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;
| ^~~~~~~~~
a.cc:13:4: error: expected '}' at end of input
13 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s441347558 | p03852 | C++ | #include <bits/stdc++.h>
using name 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:2:7: error: expected nested-name-specifier before 'name'
2 | using name std;
| ^~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | cin >> c;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
8 | cout << "vowel" << endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:8:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
8 | cout << "vowel" << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/istream:41,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
11 | cout << "consonant" << endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:11:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
11 | cout << "consonant" << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s065082553 | p03852 | C++ | vowel = ['a','i','u','e','o']
print('vowel' if input() in vowel else 'consonant') | a.cc:2:7: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
2 | print('vowel' if input() in vowel else 'consonant')
| ^~~~~~~
a.cc:2:40: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
2 | print('vowel' if input() in vowel else 'consonant')
| ^~~~~~~~~~~
a.cc:1:1: error: 'vowel' does not name a type
1 | vowel = ['a','i','u','e','o']
| ^~~~~
|
s339448946 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string str = "S";
if (S == 'a' + 'i' + 'u' + 'e' + 'o';
cout << vowel << endl;
else;
cout << consonant << endl;
)
}
| a.cc: In function 'int main()':
a.cc:7:6: error: 'S' was not declared in this scope
7 | if (S == 'a' + 'i' + 'u' + 'e' + 'o';
| ^
a.cc:8:14: error: 'vowel' was not declared in this scope
8 | cout << vowel << endl;
| ^~~~~
a.cc:8:27: error: expected ')' before ';' token
8 | cout << vowel << endl;
| ^
| )
a.cc:7:5: note: to match this '('
7 | if (S == 'a' + 'i' + 'u' + 'e' + 'o';
| ^
a.cc:11:14: error: 'consonant' was not declared in this scope
11 | cout << consonant << endl;
| ^~~~~~~~~
a.cc:13:6: error: expected primary-expression before ')' token
13 | )
| ^
|
s590746341 | p03852 | C++ | #include <buts/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:1:10: fatal error: buts/stdc++.h: No such file or directory
1 | #include <buts/stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s708463182 | 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:20: error: expected ';' before 'endl'
8 | cout << "vowel" endl;
| ^~~~~
| ;
a.cc:11:24: error: expected ';' before 'endl'
11 | cout << "consonant" endl;
| ^~~~~
| ;
|
s303144201 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin c;
if ( c == 'a' || c== 'i' ||c == 'u' ||c == 'e' ||c == 'o' ) {
cout << "vowel" endl;
}
else {
cout << "consonant" endl;
}
} | a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'c'
6 | cin c;
| ^~
| ;
a.cc:8:20: error: expected ';' before 'endl'
8 | cout << "vowel" endl;
| ^~~~~
| ;
a.cc:11:24: error: expected ';' before 'endl'
11 | cout << "consonant" endl;
| ^~~~~
| ;
|
s599289620 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin c;
if ( c == "a" || c== "i" ||c == "u" ||c == "e" ||c == "o" ) {
cout << "vowel" endl;
}
else {
cout << "consonant" endl;
}
} | a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'c'
6 | cin c;
| ^~
| ;
a.cc:7:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if ( c == "a" || c== "i" ||c == "u" ||c == "e" ||c == "o" ) {
| ~~^~~~~~
a.cc:7:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if ( c == "a" || c== "i" ||c == "u" ||c == "e" ||c == "o" ) {
| ~^~~~~~
a.cc:7:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if ( c == "a" || c== "i" ||c == "u" ||c == "e" ||c == "o" ) {
| ~~^~~~~~
a.cc:7:43: 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:54: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if ( c == "a" || c== "i" ||c == "u" ||c == "e" ||c == "o" ) {
| ~~^~~~~~
a.cc:8:20: error: expected ';' before 'endl'
8 | cout << "vowel" endl;
| ^~~~~
| ;
a.cc:11:24: error: expected ';' before 'endl'
11 | cout << "consonant" endl;
| ^~~~~
| ;
|
s526220940 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin c;
if ( c == "a" || "i" || "u" || "e" || "o" ) {
cout << "vowel" endl;
}
else {
cout << "consonant" endl;
}
} | a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'c'
6 | cin c;
| ^~
| ;
a.cc:7:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if ( c == "a" || "i" || "u" || "e" || "o" ) {
| ~~^~~~~~
a.cc:8:20: error: expected ';' before 'endl'
8 | cout << "vowel" endl;
| ^~~~~
| ;
a.cc:11:24: error: expected ';' before 'endl'
11 | cout << "consonant" endl;
| ^~~~~
| ;
|
s632939731 | 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:6:6: error: expected ';' before 'c'
6 | cin c;
| ^~
| ;
a.cc:7:13: error: 'a' was not declared in this scope
7 | if ( c == a || i || u || e || o ) {
| ^
a.cc:7:18: error: 'i' was not declared in this scope
7 | if ( c == a || i || u || e || o ) {
| ^
a.cc:7:23: error: 'u' was not declared in this scope
7 | if ( c == a || i || u || e || o ) {
| ^
a.cc:7:28: error: 'e' was not declared in this scope
7 | if ( c == a || i || u || e || o ) {
| ^
a.cc:7:33: error: 'o' was not declared in this scope
7 | if ( c == a || i || u || e || o ) {
| ^
a.cc:8:13: error: 'vowel' was not declared in this scope
8 | cout << vowel ;
| ^~~~~
a.cc:11:13: error: 'consonant' was not declared in this scope
11 | cout << consonant ;
| ^~~~~~~~~
|
s971770969 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
if(c == "a" || C == "i" || c == "u" || c == "e" || c == "o") {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;}
}
| a.cc: In function 'int main()':
a.cc:7:24: error: 'C' was not declared in this scope
7 | if(c == "a" || C == "i" || c == "u" || c == "e" || c == "o") {
| ^
|
s911661126 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
if(c == 'a' || C == 'i' || c == 'u' || c == 'e' || c == 'o') {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;}
} | a.cc: In function 'int main()':
a.cc:7:14: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
7 | if(c == 'a' || C == 'i' || c == 'u' || c == 'e' || c == 'o') {
| ~ ^~ ~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if(c == 'a' || C == 'i' || c == 'u' || c == 'e' || c == 'o') {
| ^~~
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | if(c == 'a' || C == 'i' || c == 'u' || c == 'e' || c == 'o') {
| ^~~
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if(c == 'a' || C == 'i' || c == 'u' || c == 'e' || c == 'o') {
| ^~~
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | if(c == 'a' || C == 'i' || c == 'u' || c == 'e' || c == 'o') {
| ^~~
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if(c == 'a' || C == 'i' || c == 'u' || c == 'e' || c == 'o') {
| ^~~
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | if(c == 'a' || C == 'i' || c == 'u' || c == 'e' || c == 'o') {
| ^~~
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if(c == 'a' || C == 'i' || c == 'u' || c == 'e' || c == 'o') {
| ^~~
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
7 | if(c == 'a' || C == 'i' || c == 'u' || c == 'e' || c == 'o') {
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
7 | if(c == 'a' || C == 'i' || c == 'u' || c == 'e' || c == 'o') {
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
7 | if(c == 'a' || C == 'i' || c == 'u' || c == 'e' || c == 'o') {
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
7 | if(c == 'a' || C == 'i' || c == 'u' || c == 'e' || c == 'o') {
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
7 | if(c == 'a' || C == 'i' || c == 'u' || c == 'e' || c == 'o') {
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
7 | if(c == 'a' || C == 'i' || c == 'u' || c == 'e' || c == 'o') {
| ^~~
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
7 | if(c == 'a' || C == 'i' || c == 'u' || c == 'e' || c == 'o') {
| ^~~
In file included from /usr/include/c++/14/string:43:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::string' {aka 'std::__cxx11::basic_string<cha |
s214762301 | p03852 | C | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
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;
}
| main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
1 | #include <bits/stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s222411637 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
char ans;
int main(){
cin>>ans;
if((ans=='a')||(ans=='e')||(ans=='i')||(ans=='o')||(ans=='u')); cout<<"vowel"<<endl;
else cout<<"consonant"<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:9: error: 'else' without a previous 'if'
7 | else cout<<"consonant"<<endl;
| ^~~~
|
s577976472 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for( int i = 0; i < (int)(n); i++ )
int main( void )
{
char c;
cin >> c;
string x = "aiueo";
bool y = false;
rep(i,c.size())
{
if ( c == x.at(i) )
{
y = true;
}
}
if ( y )
cout << "vowel" << endl;
else
cout << "consonant" << endl;
} | a.cc: In function 'int main()':
a.cc:12:13: error: request for member 'size' in 'c', which is of non-class type 'char'
12 | rep(i,c.size())
| ^~~~
a.cc:3:44: note: in definition of macro 'rep'
3 | #define rep(i,n) for( int i = 0; i < (int)(n); i++ )
| ^
|
s676341351 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for( int = 0; i < (int)(n); i++ )
int main( void )
{
char c;
cin >> c;
string x = "aiueo";
bool y = false;
rep(i,c.size())
{
if ( c == x.at(i) )
{
y = true;
}
}
if ( y )
cout << "vowel" << endl;
else
cout << "consonant" << endl;
} | a.cc: In function 'int main()':
a.cc:3:27: error: expected unqualified-id before '=' token
3 | #define rep(i,n) for( int = 0; i < (int)(n); i++ )
| ^
a.cc:12:5: note: in expansion of macro 'rep'
12 | rep(i,c.size())
| ^~~
a.cc:3:27: error: expected ';' before '=' token
3 | #define rep(i,n) for( int = 0; i < (int)(n); i++ )
| ^
a.cc:12:5: note: in expansion of macro 'rep'
12 | rep(i,c.size())
| ^~~
a.cc:3:27: error: expected primary-expression before '=' token
3 | #define rep(i,n) for( int = 0; i < (int)(n); i++ )
| ^
a.cc:12:5: note: in expansion of macro 'rep'
12 | rep(i,c.size())
| ^~~
a.cc:12:9: error: 'i' was not declared in this scope
12 | rep(i,c.size())
| ^
a.cc:3:32: note: in definition of macro 'rep'
3 | #define rep(i,n) for( int = 0; i < (int)(n); i++ )
| ^
a.cc:12:13: error: request for member 'size' in 'c', which is of non-class type 'char'
12 | rep(i,c.size())
| ^~~~
a.cc:3:42: note: in definition of macro 'rep'
3 | #define rep(i,n) for( int = 0; i < (int)(n); i++ )
| ^
a.cc:3:44: error: expected ')' before ';' token
3 | #define rep(i,n) for( int = 0; i < (int)(n); i++ )
| ~ ^
a.cc:12:5: note: in expansion of macro 'rep'
12 | rep(i,c.size())
| ^~~
a.cc:12:9: error: 'i' was not declared in this scope
12 | rep(i,c.size())
| ^
a.cc:3:46: note: in definition of macro 'rep'
3 | #define rep(i,n) for( int = 0; i < (int)(n); i++ )
| ^
|
s708881425 | p03852 | C++ | #include <iostream>
using namespace std;
int main(){
string s;
cin >> s;
if(s==a||s==i||s==u||s==e||s==o){
cout<<"vowel"<<endl;
}
else{
cout<<"consonant"<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:6:12: error: 'a' was not declared in this scope
6 | if(s==a||s==i||s==u||s==e||s==o){
| ^
a.cc:6:18: error: 'i' was not declared in this scope
6 | if(s==a||s==i||s==u||s==e||s==o){
| ^
a.cc:6:24: error: 'u' was not declared in this scope
6 | if(s==a||s==i||s==u||s==e||s==o){
| ^
a.cc:6:30: error: 'e' was not declared in this scope
6 | if(s==a||s==i||s==u||s==e||s==o){
| ^
a.cc:6:36: error: 'o' was not declared in this scope
6 | if(s==a||s==i||s==u||s==e||s==o){
| ^
|
s711133503 | p03852 | C++ | #include <iostream>
using namespace std;
int main(){
string s;
cin>>s;
if(s==a||s==i||s==u||s==e||s==o){
cout<<"vowel"<<endl;
}
else{
cout<<"consonant"<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:6:12: error: 'a' was not declared in this scope
6 | if(s==a||s==i||s==u||s==e||s==o){
| ^
a.cc:6:18: error: 'i' was not declared in this scope
6 | if(s==a||s==i||s==u||s==e||s==o){
| ^
a.cc:6:24: error: 'u' was not declared in this scope
6 | if(s==a||s==i||s==u||s==e||s==o){
| ^
a.cc:6:30: error: 'e' was not declared in this scope
6 | if(s==a||s==i||s==u||s==e||s==o){
| ^
a.cc:6:36: error: 'o' was not declared in this scope
6 | if(s==a||s==i||s==u||s==e||s==o){
| ^
|
s891688498 | p03852 | C++ | #include <iostream>
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:5:10: error: expected ';' before 'if'
5 | cin>>s
| ^
| ;
6 | if(s==a||s==i||s==u||s==e||s==o){
| ~~
a.cc:9:6: error: 'else' without a previous 'if'
9 | else{
| ^~~~
|
s996305435 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){
cout << "vowel" << endl;}
else {
cout << "consonant" << endl;}
}
| a.cc: In function 'int main()':
a.cc:6:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){
| ~^~~~~
a.cc:6:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){
| ~^~~~~
a.cc:6:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){
| ~^~~~~
a.cc:6:31: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){
| ~^~~~~
a.cc:6:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){
| ~^~~~~
|
s160834567 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if (c == a || c == i || c == u || c == e || c == o){
cout << "vowel";
}
else {
cout << "consonant";
}
} | a.cc: In function 'int main()':
a.cc:7:12: error: 'a' was not declared in this scope
7 | if (c == a || c == i || c == u || c == e || c == o){
| ^
a.cc:7:22: error: 'i' was not declared in this scope
7 | if (c == a || c == i || c == u || c == e || c == o){
| ^
a.cc:7:32: error: 'u' was not declared in this scope
7 | if (c == a || c == i || c == u || c == e || c == o){
| ^
a.cc:7:42: error: 'e' was not declared in this scope
7 | if (c == a || c == i || c == u || c == e || c == o){
| ^
a.cc:7:52: error: 'o' was not declared in this scope
7 | if (c == a || c == i || c == u || c == e || c == o){
| ^
|
s283862180 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
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:3:1: error: 'main' does not name a type
3 | main{
| ^~~~
|
s076056664 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
int c.at(0);
cin >> c.at(0);
if (c.at(0) == a || e || i || o || U) {
cout << vowel << endl;
}
else {
cout << consonant << endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:8: error: expected initializer before '.' token
8 | int c.at(0);
| ^
a.cc:11:18: error: 'a' was not declared in this scope
11 | if (c.at(0) == a || e || i || o || U) {
| ^
a.cc:11:23: error: 'e' was not declared in this scope
11 | if (c.at(0) == a || e || i || o || U) {
| ^
a.cc:11:28: error: 'i' was not declared in this scope
11 | if (c.at(0) == a || e || i || o || U) {
| ^
a.cc:11:33: error: 'o' was not declared in this scope
11 | if (c.at(0) == a || e || i || o || U) {
| ^
a.cc:11:38: error: 'U' was not declared in this scope
11 | if (c.at(0) == a || e || i || o || U) {
| ^
a.cc:12:13: error: 'vowel' was not declared in this scope
12 | cout << vowel << endl;
| ^~~~~
a.cc:16:13: error: 'consonant' was not declared in this scope
16 | cout << consonant << endl;
| ^~~~~~~~~
|
s264174942 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
7 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ~ ^~ ~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:7:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:7:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:7:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
7 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
7 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
7 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
7 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
7 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
7 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
7 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
In file included from /usr/include/c++/14/string:43:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
7 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
|
s674510115 | 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 {
c = "consonant"
cout << c << endl;
}
}
| a.cc: In function 'int main()':
a.cc:9:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
9 | 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:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | 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:9:10: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
9 | 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:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | 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:9:10: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
9 | 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:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | 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:9:10: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
9 | 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:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | 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:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
9 | 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:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
9 | 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:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
9 | 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:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
9 | 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:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
9 | 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:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
9 | 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:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
9 | 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:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
9 | 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 |
s246321438 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char c;
cin >> c;
if((c==a)||(c==i)||(c==u)||(c==e)||(c==o))
cout << "vowel" << endl;
else
cout << "consonant" << endl;
} | a.cc: In function 'int main()':
a.cc:6:10: error: 'a' was not declared in this scope
6 | if((c==a)||(c==i)||(c==u)||(c==e)||(c==o))
| ^
a.cc:6:18: error: 'i' was not declared in this scope
6 | if((c==a)||(c==i)||(c==u)||(c==e)||(c==o))
| ^
a.cc:6:26: error: 'u' was not declared in this scope
6 | if((c==a)||(c==i)||(c==u)||(c==e)||(c==o))
| ^
a.cc:6:34: error: 'e' was not declared in this scope
6 | if((c==a)||(c==i)||(c==u)||(c==e)||(c==o))
| ^
a.cc:6:42: error: 'o' was not declared in this scope
6 | if((c==a)||(c==i)||(c==u)||(c==e)||(c==o))
| ^
|
s607087739 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define dunk(n) cout << n << endl
int main() {
char c;
cin >> c;
if(c = 'a'||c = 'i'||c = 'u'||c = 'e'||c = 'o')
dunk ("vowel");
else dunk ("consonant");
} | a.cc: In function 'int main()':
a.cc:8:40: error: lvalue required as left operand of assignment
8 | if(c = 'a'||c = 'i'||c = 'u'||c = 'e'||c = 'o')
| ~~~^~~
|
s826218902 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
string x;
cin >> c ;
if(c=='a' || c=='e' || c=='i' || c=='o' || c=='u'){
x = "vowel"}
else{x = "consonant"}
cout << x << endl;
}
| a.cc: In function 'int main()':
a.cc:9:18: error: expected ';' before '}' token
9 | x = "vowel"}
| ^
| ;
a.cc:10:23: error: expected ';' before '}' token
10 | else{x = "consonant"}
| ^
| ;
|
s334701956 | p03852 | C++ | #include <iostream>
using namespace std;
int main()
{
char charecter;
cin >> charecter;
if(charecter == 'a' || charecter == 'o' || charecter == 'u' || charecter == 'e' || character == 'i')
cout << "vowel";
else
cout << "consonant";
return 0;
}
| a.cc: In function 'int main()':
a.cc:10:88: error: 'character' was not declared in this scope; did you mean 'charecter'?
10 | if(charecter == 'a' || charecter == 'o' || charecter == 'u' || charecter == 'e' || character == 'i')
| ^~~~~~~~~
| charecter
|
s963607148 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c ;
if(c=='a') cout << "vowel" << endl;
else if(c=='i') cout << "vowel" << endl;
else if(c=='u') cout << "vowel" << endl;
else if(b=='e') cout << "vowel" << endl;
else if(b=='o') cout << "vowel" << endl;
else cout << "consonant" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:16:11: error: 'b' was not declared in this scope
16 | else if(b=='e') cout << "vowel" << endl;
| ^
|
s471008614 | p03852 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define rrep(i,n) for(int i = 1; i <= (n); ++i)
#define drep(i,n) for(int i = (n)-1; i >= 0; --i)
#define all(x) (x).begin(),(x).end()
#define SZ(x) ((int)(x).size())
#define bit(n) (1<<(n))
using namespace std;
typedef long long ll;
typedef long double ld
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<vi> vvi;
typedef vector<bool> vb;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
template < typename T > string tost( const T& n ) { ostringstream stm; stm << n; return stm.str();}
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1;} return 0;}
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1;} return 0;}
int const INF = 1001001001;
int main()
{
cin.tie(0);
ios::sync_with_stdio(false);
char c;
cin >> c;
set<char> st = {'a','i','u','e','o'};
st.insert(c);
if(SZ(st) == 5) puts("vowel");
else puts("consonant");
return 0;
} | a.cc:11:1: error: expected initializer before 'typedef'
11 | typedef vector<int> vi;
| ^~~~~~~
a.cc:13:16: error: 'vi' was not declared in this scope; did you mean 'vl'?
13 | typedef vector<vi> vvi;
| ^~
| vl
a.cc:13:18: error: template argument 1 is invalid
13 | typedef vector<vi> vvi;
| ^
a.cc:13:18: error: template argument 2 is invalid
|
s730316917 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
//main関数の中だけ書き込む
string x;
cin >> x;
if(x=="a" || x=="e" || x=="i" || x=="o" || x=="u"){
cout << vowel;
}else{
cout << consonant;
}
}
| a.cc: In function 'int main()':
a.cc:9:11: error: 'vowel' was not declared in this scope
9 | cout << vowel;
| ^~~~~
a.cc:11:11: error: 'consonant' was not declared in this scope
11 | cout << consonant;
| ^~~~~~~~~
|
s619057733 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
//main関数の中だけ書き込む
string x;
cin >> x;
if(x==a || x==e || x==i || x==o || x==u){
cout << vowel;
}else{
cout << consonant;
}
}
| a.cc: In function 'int main()':
a.cc:8:9: error: 'a' was not declared in this scope
8 | if(x==a || x==e || x==i || x==o || x==u){
| ^
a.cc:8:17: error: 'e' was not declared in this scope
8 | if(x==a || x==e || x==i || x==o || x==u){
| ^
a.cc:8:25: error: 'i' was not declared in this scope
8 | if(x==a || x==e || x==i || x==o || x==u){
| ^
a.cc:8:33: error: 'o' was not declared in this scope
8 | if(x==a || x==e || x==i || x==o || x==u){
| ^
a.cc:8:41: error: 'u' was not declared in this scope
8 | if(x==a || x==e || x==i || x==o || x==u){
| ^
a.cc:9:11: error: 'vowel' was not declared in this scope
9 | cout << vowel;
| ^~~~~
a.cc:11:11: error: 'consonant' was not declared in this scope
11 | cout << consonant;
| ^~~~~~~~~
|
s188953807 | 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:12: error: 'a' was not declared in this scope
7 | if (c == a||c == i||c == u||c == e||c == o) {
| ^
a.cc:7:20: error: 'i' was not declared in this scope
7 | if (c == a||c == i||c == u||c == e||c == o) {
| ^
a.cc:7:28: error: 'u' was not declared in this scope
7 | if (c == a||c == i||c == u||c == e||c == o) {
| ^
a.cc:7:36: error: 'e' was not declared in this scope
7 | if (c == a||c == i||c == u||c == e||c == o) {
| ^
a.cc:7:44: error: 'o' was not declared in this scope
7 | if (c == a||c == i||c == u||c == e||c == o) {
| ^
|
s036777078 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(void) {
char c;
cin >> c;
if (c == 'a'||c == 'e'||c == 'i'||c =='o'||c =='u') {
cout << "vowel" < endl;
} else {
cout << "consonant" << endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:21: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
9 | cout << "vowel" < endl;
| ~~~~~~~~~~~~~~~~^~~~~~
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:1143:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1143 | operator<(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1143:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | cout << "vowel" < endl;
| ^~~~
/usr/include/c++/14/bits/regex.h:1224: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>&)'
1224 | operator<(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1224:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
9 | cout << "vowel" < endl;
| ^~~~
/usr/include/c++/14/bits/regex.h:1317: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>&)'
1317 | operator<(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1317:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | cout << "vowel" < endl;
| ^~~~
/usr/include/c++/14/bits/regex.h:1391:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1391 | operator<(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1391:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: couldn't deduce template parameter '_Bi_iter'
9 | cout << "vowel" < endl;
| ^~~~
/usr/include/c++/14/bits/regex.h:1485:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1485 | operator<(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1485:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | cout << "vowel" < endl;
| ^~~~
/usr/include/c++/14/bits/regex.h:1560:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1560 | operator<(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1560:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: couldn't deduce template parameter '_Bi_iter'
9 | cout << "vowel" < endl;
| ^~~~
/usr/include/c++/14/bits/regex.h:1660:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1660 | operator<(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1660:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | 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:1045:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1045 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>'
9 | cout << "vowel" < endl;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
448 | operator<(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
9 | cout << "vowel" < endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:493:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
493 | operator<(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:493:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
9 | cout << "vowel" < endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1694:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1694 | operator<(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1694:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
9 | cout << "vowel" < endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1760:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1760 | operator<(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1760:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
9 | cout << "vowel" < 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:673:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
673 | operator< (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:673:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
9 | cout << "vowel" < endl;
| ^~~~
/usr/include/c++/14/string_view:680:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
680 | operator< (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:680:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
9 | cout << "vowel" < endl;
| ^~~~
/usr/include/c++/14/string_view:688:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)'
688 | operator< (__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:688:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: couldn't deduce template parameter '_CharT'
9 | cout << "vowel" < endl;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3874:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3874 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3874:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
9 | cout << "vowel" < endl;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3888:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3888 | operator<(const |
s388232357 | p03852 | C++ | #include <iostream>
using namespace std;
int main(void) {
char c;
cin >> c;
if (c == 'a'||c == 'e'||c == 'i'||c =='o'||c =='u') {
cout << "vowel" < endl;
} else {
cout << "consonant" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:9:21: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
9 | cout << "vowel" < endl;
| ~~~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/c++/14/string:48,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
448 | operator<(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
9 | cout << "vowel" < endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:493:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
493 | operator<(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:493:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
9 | cout << "vowel" < endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1694:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1694 | operator<(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1694:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
9 | cout << "vowel" < endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1760:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1760 | operator<(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1760:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
9 | cout << "vowel" < endl;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/string:51:
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1045 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>'
9 | 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:673:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
673 | operator< (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:673:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
9 | cout << "vowel" < endl;
| ^~~~
/usr/include/c++/14/string_view:680:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
680 | operator< (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:680:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
9 | cout << "vowel" < endl;
| ^~~~
/usr/include/c++/14/string_view:688:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)'
688 | operator< (__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:688:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: couldn't deduce template parameter '_CharT'
9 | cout << "vowel" < endl;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3874:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3874 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3874:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
9 | cout << "vowel" < endl;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3888:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3888 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3888:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
9 | cout << "vowel" < endl;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3901:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3901 | operator<(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3901:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: mismatched types 'const _CharT*' and 'std::basic_ostream<char>'
9 | cout << "vowel" < endl;
| ^~~~
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/tuple:2600:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator<(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)'
2600 | operator<(const tuple<_TElements...>& __t,
| ^~~~~~~~
/usr/include/c++/14/tuple:2600:5: note: template argument deduction/substitution failed:
a.cc:9:23: note: 'std::basic_ostream<char>' is not derived from 'const std::tuple<_UTypes ...>'
9 | cout << "vowel" < endl;
| ^~~~
In file included from /usr/include/c++/14/bits/ios_base.h:46:
/usr/include/c++/14/system_error:324:3: note: candidate: 'bool std::operator<(const error_code&, const error_code&)'
324 | operator<(const error_code& __lhs, const error_code& __rhs) noexcept
| ^~~~~~~~
/usr/include/c++/14/system_error:324:31: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'const std::error_code&'
324 | operator<(const error_code& __lhs, const error_code& __rhs) noexcept
| ~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/14/system_error:507:3: note: candidate: 'bool std::operator<(const error_condition&, const error_condition&)'
507 | operator<(const error_condition& __lhs,
| ^~~~~~~~
/usr/include/c++/14/system_error:507:36: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'const std::error_condition&'
507 | operator<(const error_condition& __lhs,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
|
s320561514 | p03852 | C++ | #include <iostream>
using namespace std;
int main(void) {
char c;
cin >> c;
if (c == 'a'||c == 'e'||c == 'i'||c =='o'||c =='u') {
cout << vowel < endl;
else
cout << consonant << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:9:13: error: 'vowel' was not declared in this scope
9 | cout << vowel < endl;
| ^~~~~
a.cc:10:3: error: expected '}' before 'else'
10 | else
| ^~~~
a.cc:8:55: note: to match this '{'
8 | if (c == 'a'||c == 'e'||c == 'i'||c =='o'||c =='u') {
| ^
a.cc:11:13: error: 'consonant' was not declared in this scope
11 | cout << consonant << endl;
| ^~~~~~~~~
a.cc: At global scope:
a.cc:13:3: error: expected unqualified-id before 'return'
13 | return 0;
| ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
14 | }
| ^
|
s724570055 | p03852 | C++ | #include <iostream>
using namespace std;
int main(void) {
char c;
cin >> c;
if (c == 'a'||c == 'e'||c == 'i'||c =='o'||c =='u')
cout << vowel < endl;
else
cout << consonant << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:13: error: 'vowel' was not declared in this scope
9 | cout << vowel < endl;
| ^~~~~
a.cc:11:13: error: 'consonant' was not declared in this scope
11 | cout << consonant << endl;
| ^~~~~~~~~
|
s390296578 | 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:11:28: error: expected ';' before '}' token
11 | cout << "consonant"
| ^
| ;
12 | }
| ~
|
s423385139 | 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:7:18: warning: missing terminating " character
7 | cout << vowel" << endl;
| ^
a.cc:7:18: error: missing terminating " character
7 | cout << vowel" << endl;
| ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:13: error: 'vowel' was not declared in this scope
7 | cout << vowel" << endl;
| ^~~~~
|
s257664013 | 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:9:20: error: 'a' was not declared in this scope
9 | if (c == a && c == e && c == i && c == o && c == u)
| ^
a.cc:9:30: error: 'e' was not declared in this scope
9 | if (c == a && c == e && c == i && c == o && c == u)
| ^
a.cc:9:40: error: 'i' was not declared in this scope
9 | if (c == a && c == e && c == i && c == o && c == u)
| ^
a.cc:9:50: error: 'o' was not declared in this scope
9 | if (c == a && c == e && c == i && c == o && c == u)
| ^
a.cc:9:60: error: 'u' was not declared in this scope
9 | if (c == a && c == e && c == i && c == o && c == u)
| ^
|
s260064835 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char c;
cin >> c;
if(c=a || i || u || e || o)
cout << "vowel" << endl;
else
cout << "consonant" << endl;
} | a.cc: In function 'int main()':
a.cc:8:8: error: 'a' was not declared in this scope
8 | if(c=a || i || u || e || o)
| ^
a.cc:8:13: error: 'i' was not declared in this scope
8 | if(c=a || i || u || e || o)
| ^
a.cc:8:18: error: 'u' was not declared in this scope
8 | if(c=a || i || u || e || o)
| ^
a.cc:8:23: error: 'e' was not declared in this scope
8 | if(c=a || i || u || e || o)
| ^
a.cc:8:28: error: 'o' was not declared in this scope
8 | if(c=a || i || u || e || o)
| ^
|
s295101154 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char c;
cin>>c;
cout<<("aiueo".find_first_of(c)!=string::npos?"vowel":"consonant")<<endl;
}
| a.cc: In function 'int main()':
a.cc:6:20: error: request for member 'find_first_of' in '"aiueo"', which is of non-class type 'const char [6]'
6 | cout<<("aiueo".find_first_of(c)!=string::npos?"vowel":"consonant")<<endl;
| ^~~~~~~~~~~~~
|
s655478308 | p03852 | C | #include <stdio.h>
int main()
{
char c;
scanf( "%c", &c );
if (c = 'a' || c = 'e' || c = 'i' || c = 'o' || c = 'u' )
printf( "vowel\n" );
else
printf( "consonant\n" );
return 0;
} | main.c: In function 'main':
main.c:9:55: error: lvalue required as left operand of assignment
9 | if (c = 'a' || c = 'e' || c = 'i' || c = 'o' || c = 'u' )
| ^
|
s202695198 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
char c;
int main()
{
cin>>c;
strig s="aeiou";
for (int i=0; i<5; i++) {
if (c==s.at(i)) {
cout<<"vowel";
return 0;
}
}
cout<<"consonant";
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:5: error: 'strig' was not declared in this scope
9 | strig s="aeiou";
| ^~~~~
a.cc:11:16: error: 's' was not declared in this scope
11 | if (c==s.at(i)) {
| ^
|
s583963715 | p03852 | C++ | #include <bits/stdc++.h>
#include <stdio.h>
using namespace std;
#define vsort(vec) sort(vec.begin(), vec.end())
#define vreverse(vec) reverse(vec.begin(), vec.end())
using ll =long long;
const ll INF =1001001001;
//最大公約数
ll gcd(ll a, ll b){
if (a%b==0){
return(b);
}else{
return(gcd(b,a%b));
}
}
//最小公倍数
ll lcm(ll a, ll b){
return a*b/gcd(a,b);
}
//素数判定
ll isprime(ll n){
bool prime=true;
for(int i=2;i<n;i++){
if(n%i==0){
prime=false; break;
}
}
if(prime){cout<<n<<" is prime"<<endl;
}else{cout<<n<<" is not prime"<<endl;}
}
//階乗 20くらいが限界
ll factorial(ll n){
ll a=1;ll b=n;
for(int i=0;i<n;i++){
a*=b;
b--;
}
return a;
}
//組み合わせ nCr
ll comb(ll a,ll b){
ll c;
c=factorial(a)/(factorial(a-b)*factorial(b));
return c;
}
/*10億7。 100000007
2*2行列 H*W
vector<vector<int>> vec(H,vector<int>(W));
for(int i=0;i<H;i++){
for(int j=0;j<W;j++){
cin>>vec[i][j];
}
}
文字列→数列
string S;int A=atoi(S.c_str());
数列→文字列
int A;string S=to_string(A);
数字判定 isdigit(a)
pair宣言 pair<int,int> p(5,7);
ソート sort(vec.begin(),vec.end());
*/
int main(){
cout<<fixed<<setprecision(10);
//cin.tie(0); ios::sync_with_stdio(false);
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 'll isprime(ll)':
a.cc:33:1: warning: no return statement in function returning non-void [-Wreturn-type]
33 | }
| ^
a.cc: In function 'int main()':
a.cc:77:20: error: lvalue required as left operand of assignment
77 | if(A=='a'||A=='i'||A='u'||A=='e'||A=='o'){
| ~~~~~~~~~~~~~~^~~
|
s362751374 | p03852 | C++ | using namespace std;
int main()
{
char c;
cin >> c;
if(c == 'a' && c == 'i' && c== 'u' && c == 'e' && c == 'o')
cout << "vowel";
else
cout << "consonant";
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
6 | cin >> c;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
+++ |+#include <iostream>
1 | using namespace std;
a.cc:8:1: error: 'cout' was not declared in this scope
8 | cout << "vowel";
| ^~~~
a.cc:8:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:1: error: 'cout' was not declared in this scope
10 | cout << "consonant";
| ^~~~
a.cc:10:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.