submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3 values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s165893952 | p03852 | C++ | #include<iostream>
#include<string>
#include<algorithm>
#include <stdio.h>
#include<iostream>
using namespace std;
int main(){
string s;
cin >>s;
if(a<= s && s<=0)
cout <<"vowel"<<endl;
else cout<<"consonant"<<endl;
}
| a.cc: In function 'int main()':
a.cc:11:4: error: 'a' was not declared in this scope
11 | if(a<= s && s<=0)
| ^
a.cc:11:14: error: no match for 'operator<=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
11 | if(a<= s && s<=0)
| ~^~~
| | |
| | int
| std::string {aka std::__cxx11::basic_string<char>}
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:469:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<=(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
469 | operator<=(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:469:5: note: template argument deduction/substitution failed:
a.cc:11:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
11 | if(a<= s && s<=0)
| ^
/usr/include/c++/14/bits/stl_iterator.h:513:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<=(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
513 | operator<=(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:513:5: note: template argument deduction/substitution failed:
a.cc:11:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
11 | if(a<= s && s<=0)
| ^
/usr/include/c++/14/bits/stl_iterator.h:1704:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<=(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1704 | operator<=(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1704:5: note: template argument deduction/substitution failed:
a.cc:11:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
11 | if(a<= s && s<=0)
| ^
/usr/include/c++/14/bits/stl_iterator.h:1767:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<=(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1767 | operator<=(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1767:5: note: template argument deduction/substitution failed:
a.cc:11:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
11 | if(a<= s && s<=0)
| ^
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:1064:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<=(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1064 | operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1064:5: note: template argument deduction/substitution failed:
a.cc:11:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
11 | if(a<= s && s<=0)
| ^
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:717:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<=(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
717 | operator<=(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:717:5: note: template argument deduction/substitution failed:
a.cc:11:16: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
11 | if(a<= s && s<=0)
| ^
/usr/include/c++/14/string_view:724: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> >)'
724 | operator<=(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:724:5: note: template argument deduction/substitution failed:
a.cc:11:16: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
11 | if(a<= s && s<=0)
| ^
/usr/include/c++/14/string_view:732: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>)'
732 | operator<=(__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:732:5: note: template argument deduction/substitution failed:
a.cc:11:16: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int'
11 | if(a<= s && s<=0)
| ^
/usr/include/c++/14/bits/basic_string.h:3956: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>&)'
3956 | operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3956:5: note: template argument deduction/substitution failed:
a.cc:11:16: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'int'
11 | if(a<= s && s<=0)
| ^
/usr/include/c++/14/bits/basic_string.h:3970:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<=(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3970 | operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3970:5: note: template argument deduction/substitution failed:
a.cc:11:16: note: mismatched types 'const _CharT*' and 'int'
11 | if(a<= s && s<=0)
| ^
/usr/include/c++/14/bits/basic_string.h:3983:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<=(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3983 | operator<=(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3983:5: note: template argument deduction/substitution failed:
a.cc:11:16: note: mismatched types 'const _CharT*' and 'std::__cxx11::basic_string<char>'
11 | if(a<= s && s<=0)
| ^
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:2625:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator<=(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)'
2625 | operator<=(const tuple<_TElements...>& __t,
| ^~~~~~~~
/usr/include/c++/14/tuple:2625:5: note: template argument deduction/substitution failed:
a.cc:11:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::tuple<_UTypes ...>'
11 | if(a<= s && s<=0)
| ^
|
s693327480 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char a;
cin >> a;
if (a == "a"||a == "i"||a == "u"||a == "e"||a == "o") {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (a == "a"||a == "i"||a == "u"||a == "e"||a == "o") {
| ~~^~~~~~
a.cc:8:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (a == "a"||a == "i"||a == "u"||a == "e"||a == "o") {
| ~~^~~~~~
a.cc:8:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (a == "a"||a == "i"||a == "u"||a == "e"||a == "o") {
| ~~^~~~~~
a.cc:8:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (a == "a"||a == "i"||a == "u"||a == "e"||a == "o") {
| ~~^~~~~~
a.cc:8:49: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (a == "a"||a == "i"||a == "u"||a == "e"||a == "o") {
| ~~^~~~~~
|
s893986801 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char a;
cin >> a;
if (a == "a"||a == "i"||a == "u"||a == "e"||a == "o") {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (a == "a"||a == "i"||a == "u"||a == "e"||a == "o") {
| ~~^~~~~~
a.cc:8:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (a == "a"||a == "i"||a == "u"||a == "e"||a == "o") {
| ~~^~~~~~
a.cc:8:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (a == "a"||a == "i"||a == "u"||a == "e"||a == "o") {
| ~~^~~~~~
a.cc:8:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (a == "a"||a == "i"||a == "u"||a == "e"||a == "o") {
| ~~^~~~~~
a.cc:8:49: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (a == "a"||a == "i"||a == "u"||a == "e"||a == "o") {
| ~~^~~~~~
|
s734625566 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char a;
cin >> a;
if (a == "a"||a == "i"||a == "u"||a == "e"||a == "o") {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (a == "a"||a == "i"||a == "u"||a == "e"||a == "o") {
| ~~^~~~~~
a.cc:8:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (a == "a"||a == "i"||a == "u"||a == "e"||a == "o") {
| ~~^~~~~~
a.cc:8:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (a == "a"||a == "i"||a == "u"||a == "e"||a == "o") {
| ~~^~~~~~
a.cc:8:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (a == "a"||a == "i"||a == "u"||a == "e"||a == "o") {
| ~~^~~~~~
a.cc:8:49: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (a == "a"||a == "i"||a == "u"||a == "e"||a == "o") {
| ~~^~~~~~
|
s220749035 | p03852 | C++ | #include<iostream>
using namespace std;
int main()
{
char c;
cin >> c;
if (c == a || c == i || c == u || c == e || c == o )
{
cout << "vowel" << endl;
}
else
{
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:9:12: error: 'a' was not declared in this scope
9 | if (c == a || c == i || c == u || c == e || c == o )
| ^
a.cc:9:22: error: 'i' was not declared in this scope
9 | if (c == a || c == i || c == u || c == e || c == o )
| ^
a.cc:9:32: error: 'u' was not declared in this scope
9 | if (c == a || c == i || c == u || c == e || c == o )
| ^
a.cc:9:42: error: 'e' was not declared in this scope
9 | if (c == a || c == i || c == u || c == e || c == o )
| ^
a.cc:9:52: error: 'o' was not declared in this scope
9 | if (c == a || c == i || c == u || c == e || c == o )
| ^
|
s207874195 | p03852 | C++ | #include<iostream>
using namespace std;
int main( )
{
int c;
cin >> c;
if (c == a || c == i || c == u || c == e || c == o)
{
cout << "vowel" << endl;
}
else
{
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:9:12: error: 'a' was not declared in this scope
9 | if (c == a || c == i || c == u || c == e || c == o)
| ^
a.cc:9:22: error: 'i' was not declared in this scope
9 | if (c == a || c == i || c == u || c == e || c == o)
| ^
a.cc:9:32: error: 'u' was not declared in this scope
9 | if (c == a || c == i || c == u || c == e || c == o)
| ^
a.cc:9:42: error: 'e' was not declared in this scope
9 | if (c == a || c == i || c == u || c == e || c == o)
| ^
a.cc:9:52: error: 'o' was not declared in this scope
9 | if (c == a || c == i || c == u || c == e || c == o)
| ^
|
s065417426 | p03852 | Java | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class HelloWorld {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String input = br.readLine();
if (input.equals("a") ||input.equals("e")|| input.equals("i") || input.equals("o") || input.equals("u")) {
System.out.println("vowel");
}else{
System.out.println("consonant");
}
}
} | Main.java:4: error: class HelloWorld is public, should be declared in a file named HelloWorld.java
public class HelloWorld {
^
1 error
|
s059949631 | p03852 | Java | package intro;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class HelloWorld {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String input = br.readLine();
if (input.equals("a") || input.equals("e" || input.equals("i") || input.equals("o") || input.equals("u")) ){
System.out.println(vowel);
}else{
System.out.println(consonant);
}
}
} | Main.java:9: error: illegal character: '\u3000'
if (input.equals("a") ||?input.equals("e" || input.equals("i") || input.equals("o") || input.equals("u")) ){
^
Main.java:9: error: ';' expected
if (input.equals("a") ||?input.equals("e" || input.equals("i") || input.equals("o") || input.equals("u")) ){
^
Main.java:12: error: 'else' without 'if'
}else{
^
3 errors
|
s125189268 | p03852 | C++ | #include<iostream>
using namespace std;
int main(void)
{
char n;
cin >> n;
switch(n)
{
case a:
case i:
case u:
case e:
case o:
cout << "vowel" << endl;
break;
default:
cout << "consonant" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:10:10: error: 'a' was not declared in this scope
10 | case a:
| ^
a.cc:11:10: error: 'i' was not declared in this scope
11 | case i:
| ^
a.cc:12:10: error: 'u' was not declared in this scope
12 | case u:
| ^
a.cc:13:10: error: 'e' was not declared in this scope
13 | case e:
| ^
a.cc:14:10: error: 'o' was not declared in this scope
14 | case o:
| ^
|
s798661909 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char s;
cin >> s;
if(s==‘a’ || s==‘i’ || s==‘u’ || s==‘e’ || s==‘o’){
cout << “vowel” << endl;
}
else{
cout << “consonant”<<endl;
}
}
| a.cc:8:9: error: extended character ‘ is not valid in an identifier
8 | if(s==‘a’ || s==‘i’ || s==‘u’ || s==‘e’ || s==‘o’){
| ^
a.cc:8:9: error: extended character ’ is not valid in an identifier
a.cc:8:19: error: extended character ‘ is not valid in an identifier
8 | if(s==‘a’ || s==‘i’ || s==‘u’ || s==‘e’ || s==‘o’){
| ^
a.cc:8:19: error: extended character ’ is not valid in an identifier
a.cc:8:29: error: extended character ‘ is not valid in an identifier
8 | if(s==‘a’ || s==‘i’ || s==‘u’ || s==‘e’ || s==‘o’){
| ^
a.cc:8:29: error: extended character ’ is not valid in an identifier
a.cc:8:39: error: extended character ‘ is not valid in an identifier
8 | if(s==‘a’ || s==‘i’ || s==‘u’ || s==‘e’ || s==‘o’){
| ^
a.cc:8:39: error: extended character ’ is not valid in an identifier
a.cc:8:49: error: extended character ‘ is not valid in an identifier
8 | if(s==‘a’ || s==‘i’ || s==‘u’ || s==‘e’ || s==‘o’){
| ^
a.cc:8:49: error: extended character ’ is not valid in an identifier
a.cc:9:13: error: extended character “ is not valid in an identifier
9 | cout << “vowel” << endl;
| ^
a.cc:9:13: error: extended character ” is not valid in an identifier
a.cc:12:13: error: extended character “ is not valid in an identifier
12 | cout << “consonant”<<endl;
| ^
a.cc:12:13: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:8:9: error: '\U00002018a\U00002019' was not declared in this scope
8 | if(s==‘a’ || s==‘i’ || s==‘u’ || s==‘e’ || s==‘o’){
| ^~~
a.cc:8:19: error: '\U00002018i\U00002019' was not declared in this scope
8 | if(s==‘a’ || s==‘i’ || s==‘u’ || s==‘e’ || s==‘o’){
| ^~~
a.cc:8:29: error: '\U00002018u\U00002019' was not declared in this scope
8 | if(s==‘a’ || s==‘i’ || s==‘u’ || s==‘e’ || s==‘o’){
| ^~~
a.cc:8:39: error: '\U00002018e\U00002019' was not declared in this scope
8 | if(s==‘a’ || s==‘i’ || s==‘u’ || s==‘e’ || s==‘o’){
| ^~~
a.cc:8:49: error: '\U00002018o\U00002019' was not declared in this scope
8 | if(s==‘a’ || s==‘i’ || s==‘u’ || s==‘e’ || s==‘o’){
| ^~~
a.cc:9:13: error: '\U0000201cvowel\U0000201d' was not declared in this scope
9 | cout << “vowel” << endl;
| ^~~~~~~
a.cc:12:13: error: '\U0000201cconsonant\U0000201d' was not declared in this scope
12 | cout << “consonant”<<endl;
| ^~~~~~~~~~~
|
s471157899 | p03852 | C++ | #include<iostream>
#include<string>
#include<vector>
#include<iomanip>
#include<algorithm>
#include<queue>
#include<stack>
#include<map>
using namespace std;
#define ll long long
int main(){
char c;
cin >> c;
if(c=='a'|c=='i'|c=='u'|c=='e'|c=='o'|)cout<<"consonant";else cout <<"vowel";
return 0;
}
| a.cc: In function 'int main()':
a.cc:14:43: error: expected primary-expression before ')' token
14 | if(c=='a'|c=='i'|c=='u'|c=='e'|c=='o'|)cout<<"consonant";else cout <<"vowel";
| ^
|
s403788091 | p03852 | C++ | #include<iostream>
#include<string>
#include<vector>
#include<iomanip>
#include<algorithm>
#include<queue>
#include<stack>
#include<map>
using namespace std;
#define ll long long
int main(){
char c;
cin >> c;
if(c=='a'|c=='i'|c=='u'|c=='e'|c=='o'|)cout<<"consonant
";else cout <<"vowel";
return 0;
}
| a.cc:14:50: warning: missing terminating " character
14 | if(c=='a'|c=='i'|c=='u'|c=='e'|c=='o'|)cout<<"consonant
| ^
a.cc:14:50: error: missing terminating " character
14 | if(c=='a'|c=='i'|c=='u'|c=='e'|c=='o'|)cout<<"consonant
| ^~~~~~~~~~
a.cc:15:21: warning: missing terminating " character
15 | ";else cout <<"vowel";
| ^
a.cc:15:21: error: missing terminating " character
15 | ";else cout <<"vowel";
| ^~
a.cc: In function 'int main()':
a.cc:14:43: error: expected primary-expression before ')' token
14 | if(c=='a'|c=='i'|c=='u'|c=='e'|c=='o'|)cout<<"consonant
| ^
a.cc:15:1: error: unable to find string literal operator 'operator""vowel' with 'const char [14]', 'long unsigned int' arguments
15 | ";else cout <<"vowel";
| ^~~~~~~~~~~~~~~~~~~~
|
s520855165 | p03852 | C++ | #include <iostream>
#include <cmath>
#include <string>
#include <typeinfo>
#include <climits>
#include <algorithm>
#include <cctype>
#include <cstring>
#include <stdio.h>
#include <cstdlib>
using namespace std;
int main(){
char a;
cin >> a;
if(a=='a'||a==||'i'||a=='u'||a=='e'||a=='o'){
cout << "vowel";
}else{
cout <<"consonant";
}
}
| a.cc: In function 'int main()':
a.cc:16:19: error: expected primary-expression before '||' token
16 | if(a=='a'||a==||'i'||a=='u'||a=='e'||a=='o'){
| ^~
|
s802392419 | p03852 | C | #include <stdio.h>
int main(void){
char v = "aiueo", c;
scanf("%c", &c);
int i = 0;
while(v[i]){
if(v[i++] == c){
printf("vowel\n");
return 0;
}
}
printf("consonant\n");
return 0;
}
| main.c: In function 'main':
main.c:4:18: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
4 | char v = "aiueo", c;
| ^~~~~~~
main.c:7:16: error: subscripted value is neither array nor pointer nor vector
7 | while(v[i]){
| ^
main.c:8:21: error: subscripted value is neither array nor pointer nor vector
8 | if(v[i++] == c){
| ^
|
s252033148 | p03852 | C |
#include <stdio.h>
int main()
{ char s[2];
scanf("%c",s);
if(s[0]=='a'||s[0]=='i'||s[0]=='u's[0]=='e'||s[0]=='o'){
printf("vowel");
}else printf("consonant");
return 0;
}
| main.c: In function 'main':
main.c:7:39: error: expected ')' before 's'
7 | if(s[0]=='a'||s[0]=='i'||s[0]=='u's[0]=='e'||s[0]=='o'){
| ~ ^
| )
|
s260164407 | p03852 | C |
#include <stdio.h>
int main()
{ char c[2];
scanf("%c",s);
if(s[0]=='a'||s[0]=='i'||s[0]=='u's[0]=='e'||s[0]=='o'){
printf("vowel");
}else printf("consonant");
return 0;
}
| main.c: In function 'main':
main.c:6:16: error: 's' undeclared (first use in this function)
6 | scanf("%c",s);
| ^
main.c:6:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:39: error: expected ')' before 's'
7 | if(s[0]=='a'||s[0]=='i'||s[0]=='u's[0]=='e'||s[0]=='o'){
| ~ ^
| )
|
s327249500 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
str 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:5:3: error: 'str' was not declared in this scope; did you mean 'std'?
5 | str c;
| ^~~
| std
a.cc:6:10: error: 'c' was not declared in this scope
6 | cin >> c;
| ^
|
s919420155 | p03852 | C++ | #include<iostream>
#include<vector>
#include<algorithm>
#include<string.h>
#include<complex>
using namespace std;
typedef long long int llint
int main(){
char c;
cin >> c;
if (c == 'a' ||
c == 'i' ||
c == 'u' ||
c == 'e' ||
c == 'o'){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
return 0;
}
| a.cc:8:1: error: expected initializer before 'int'
8 | int main(){
| ^~~
|
s139499028 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
string c;
cin >> c;
if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o')
{
cout << "vowel" << endl;
}
else
{
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
8 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o')
| ~ ^~ ~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o')
| ^~~
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o')
| ^~~
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o')
| ^~~
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o')
| ^~~
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o')
| ^~~
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o')
| ^~~
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o')
| ^~~
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
8 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o')
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
8 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o')
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o')
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o')
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o')
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o')
| ^~~
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
8 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o')
| ^~~
In file included from /usr/include/c++/14/string:43:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
8 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o')
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/in |
s692793251 | p03852 | C | #include <stdio.h>
int main()
{
char c;
scanf("%c", &c);
if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o') {
printf("vowel\n");
} else {
printf("consonant\n");
}
return 0;
}
| main.c: In function 'main':
main.c:7:17: error: stray '\343' in program
7 | if (c ==<U+3000>'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o') {
| ^~~~~~~~
|
s675783907 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char str = c;
if (str = a, o, u, i, e) {
cout << "vowel" << endl;
} else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:5:14: error: 'c' was not declared in this scope
5 | char str = c;
| ^
a.cc:6:14: error: 'a' was not declared in this scope
6 | if (str = a, o, u, i, e) {
| ^
a.cc:6:17: error: 'o' was not declared in this scope
6 | if (str = a, o, u, i, e) {
| ^
a.cc:6:20: error: 'u' was not declared in this scope
6 | if (str = a, o, u, i, e) {
| ^
a.cc:6:23: error: 'i' was not declared in this scope
6 | if (str = a, o, u, i, e) {
| ^
a.cc:6:26: error: 'e' was not declared in this scope
6 | if (str = a, o, u, i, e) {
| ^
|
s860010899 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char str = "c";
if (str = a, o, u, i, e) {
cout << "vowel" << endl;
} else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:5:14: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
5 | char str = "c";
| ^~~
| |
| const char*
a.cc:6:14: error: 'a' was not declared in this scope
6 | if (str = a, o, u, i, e) {
| ^
a.cc:6:17: error: 'o' was not declared in this scope
6 | if (str = a, o, u, i, e) {
| ^
a.cc:6:20: error: 'u' was not declared in this scope
6 | if (str = a, o, u, i, e) {
| ^
a.cc:6:23: error: 'i' was not declared in this scope
6 | if (str = a, o, u, i, e) {
| ^
a.cc:6:26: error: 'e' was not declared in this scope
6 | if (str = a, o, u, i, e) {
| ^
|
s115894643 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string str = "c";
if (str = a, o, u, i, e) {
cout << "vowel" << endl;
} else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:6:14: error: 'a' was not declared in this scope
6 | if (str = a, o, u, i, e) {
| ^
a.cc:6:17: error: 'o' was not declared in this scope
6 | if (str = a, o, u, i, e) {
| ^
a.cc:6:20: error: 'u' was not declared in this scope
6 | if (str = a, o, u, i, e) {
| ^
a.cc:6:23: error: 'i' was not declared in this scope
6 | if (str = a, o, u, i, e) {
| ^
a.cc:6:26: error: 'e' was not declared in this scope
6 | if (str = a, o, u, i, e) {
| ^
|
s517547243 | p03852 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(void){
string c;
cin >> c;
if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u")cout << "vowel" << endl;
else cout << "consonant" << endl;
return 0;
}a | a.cc:15:2: error: 'a' does not name a type
15 | }a
| ^
|
s461011222 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string C;
cin >> C;
if (C == "a") {
cout << vowel << endl;
}
else if (C == "e") {
cout << vowel << endl;
}
else if (C == "i") {
cout << vowel << endl;
}
else if (C == "u") {
cout << vowel << endl;
}
else if (C == "o") {
cout << vowel << endl;
}
else if {
cout << consonant << endl;
}
}
| a.cc: In function 'int main()':
a.cc:10:13: error: 'vowel' was not declared in this scope
10 | cout << vowel << endl;
| ^~~~~
a.cc:13:13: error: 'vowel' was not declared in this scope
13 | cout << vowel << endl;
| ^~~~~
a.cc:16:13: error: 'vowel' was not declared in this scope
16 | cout << vowel << endl;
| ^~~~~
a.cc:19:13: error: 'vowel' was not declared in this scope
19 | cout << vowel << endl;
| ^~~~~
a.cc:22:13: error: 'vowel' was not declared in this scope
22 | cout << vowel << endl;
| ^~~~~
a.cc:25:11: error: expected '(' before '{' token
25 | else if {
| ^
| (
|
s518279779 | p03852 | C | #include<stdio.h>
char c;
int main(){
c=getchar();
if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'||){
printf("vowel\n");
}else{
printf("consonant\n");
}
}
| main.c: In function 'main':
main.c:5:46: error: expected expression before ')' token
5 | if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'||){
| ^
|
s934990422 | p03852 | C++ | #include <bits/stdc++.h>
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:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | 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:6:55: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
6 | if (c=='a' || c=='i' || c=='u' || c=='e' || c=='o') cout << "vowel" << endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:6:74: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
6 | if (c=='a' || c=='i' || c=='u' || c=='e' || c=='o') 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:7:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
7 | else 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:7:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
7 | else cout << "consonant" << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s112406070 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
string ans = "consonant";
if (c == "a" or c == "e" or c == "i" or c == "o" or c == "u"){
ans ="vowel";
}
cout << ans << endl;
| a.cc: In function 'int main()':
a.cc:11:23: error: expected '}' at end of input
11 | cout << ans << endl;
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s695267346 | p03852 | C++ | #include<iostream>
using namespeace std;
int main(){
char str;
cin >> a;
if (str==a,i,u,e,o)
cout << "vowel" << endl;
else
cout << "consonant" << endl;
return 0;
} | a.cc:2:7: error: expected nested-name-specifier before 'namespeace'
2 | using namespeace std;
| ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin >> a;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:5:8: error: 'a' was not declared in this scope
5 | cin >> a;
| ^
a.cc:6:12: error: 'i' was not declared in this scope
6 | if (str==a,i,u,e,o)
| ^
a.cc:6:14: error: 'u' was not declared in this scope
6 | if (str==a,i,u,e,o)
| ^
a.cc:6:16: error: 'e' was not declared in this scope
6 | if (str==a,i,u,e,o)
| ^
a.cc:6:18: error: 'o' was not declared in this scope
6 | if (str==a,i,u,e,o)
| ^
a.cc:7:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
7 | 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:7:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
7 | cout << "vowel" << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:9:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
9 | 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:9:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
9 | cout << "consonant" << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s110916673 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
cout << “vowel” <<endl;
}
else{
cout << “consonant ” << endl;
}
}
| a.cc:8:9: error: extended character ‘ is not valid in an identifier
8 | if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
| ^
a.cc:8:9: error: extended character ’ is not valid in an identifier
a.cc:8:17: error: extended character ‘ is not valid in an identifier
8 | if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
| ^
a.cc:8:17: error: extended character ’ is not valid in an identifier
a.cc:8:25: error: extended character ‘ is not valid in an identifier
8 | if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
| ^
a.cc:8:25: error: extended character ’ is not valid in an identifier
a.cc:8:33: error: extended character ‘ is not valid in an identifier
8 | if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
| ^
a.cc:8:33: error: extended character ’ is not valid in an identifier
a.cc:8:41: error: extended character ‘ is not valid in an identifier
8 | if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
| ^
a.cc:8:41: error: extended character ’ is not valid in an identifier
a.cc:9:12: error: extended character “ is not valid in an identifier
9 | cout << “vowel” <<endl;
| ^
a.cc:9:12: error: extended character ” is not valid in an identifier
a.cc:12:10: error: extended character “ is not valid in an identifier
12 | cout << “consonant ” << endl;
| ^
a.cc:12:21: error: extended character ” is not valid in an identifier
12 | cout << “consonant ” << endl;
| ^
a.cc: In function 'int main()':
a.cc:8:9: error: '\U00002018a\U00002019' was not declared in this scope
8 | if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
| ^~~
a.cc:8:17: error: '\U00002018i\U00002019' was not declared in this scope
8 | if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
| ^~~
a.cc:8:25: error: '\U00002018u\U00002019' was not declared in this scope
8 | if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
| ^~~
a.cc:8:33: error: '\U00002018e\U00002019' was not declared in this scope
8 | if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
| ^~~
a.cc:8:41: error: '\U00002018o\U00002019' was not declared in this scope
8 | if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
| ^~~
a.cc:9:12: error: '\U0000201cvowel\U0000201d' was not declared in this scope
9 | cout << “vowel” <<endl;
| ^~~~~~~
a.cc:12:10: error: '\U0000201cconsonant' was not declared in this scope
12 | cout << “consonant ” << endl;
| ^~~~~~~~~~
|
s669845711 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
cout << “vowel” <<endl;
}
else{
cout << “consonant ” << endl;
}
}
| a.cc:8:9: error: extended character ‘ is not valid in an identifier
8 | if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
| ^
a.cc:8:9: error: extended character ’ is not valid in an identifier
a.cc:8:17: error: extended character ‘ is not valid in an identifier
8 | if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
| ^
a.cc:8:17: error: extended character ’ is not valid in an identifier
a.cc:8:25: error: extended character ‘ is not valid in an identifier
8 | if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
| ^
a.cc:8:25: error: extended character ’ is not valid in an identifier
a.cc:8:33: error: extended character ‘ is not valid in an identifier
8 | if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
| ^
a.cc:8:33: error: extended character ’ is not valid in an identifier
a.cc:8:41: error: extended character ‘ is not valid in an identifier
8 | if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
| ^
a.cc:8:41: error: extended character ’ is not valid in an identifier
a.cc:9:12: error: extended character “ is not valid in an identifier
9 | cout << “vowel” <<endl;
| ^
a.cc:9:12: error: extended character ” is not valid in an identifier
a.cc:12:10: error: extended character “ is not valid in an identifier
12 | cout << “consonant ” << endl;
| ^
a.cc:12:21: error: extended character ” is not valid in an identifier
12 | cout << “consonant ” << endl;
| ^
a.cc: In function 'int main()':
a.cc:8:9: error: '\U00002018a\U00002019' was not declared in this scope
8 | if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
| ^~~
a.cc:8:17: error: '\U00002018i\U00002019' was not declared in this scope
8 | if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
| ^~~
a.cc:8:25: error: '\U00002018u\U00002019' was not declared in this scope
8 | if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
| ^~~
a.cc:8:33: error: '\U00002018e\U00002019' was not declared in this scope
8 | if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
| ^~~
a.cc:8:41: error: '\U00002018o\U00002019' was not declared in this scope
8 | if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
| ^~~
a.cc:9:12: error: '\U0000201cvowel\U0000201d' was not declared in this scope
9 | cout << “vowel” <<endl;
| ^~~~~~~
a.cc:12:10: error: '\U0000201cconsonant' was not declared in this scope
12 | cout << “consonant ” << endl;
| ^~~~~~~~~~
|
s317598311 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin << c;
string v = "aeiou";
int f=0;
for (int i=0; i<5; i++) {
if (c == v.at(i)) {
f=1;
break;
}
}
if (f==1)
cout << "vowel" << endl;
else
cout << "consonant" << endl;
}
| a.cc: In function 'int main()':
a.cc:6:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'char')
6 | cin << c;
| ~~~ ^~ ~
| | |
| | char
| std::istream {aka std::basic_istream<char>}
a.cc:6:7: note: candidate: 'operator<<(int, int)' (built-in)
6 | cin << c;
| ~~~~^~~~
a.cc:6:7: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int'
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1715:5: note: candidate: 'template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const sub_match<_Bi_iter>&)'
1715 | operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1715:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << c;
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41:
/usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
125 | operator<<(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed:
a.cc:6:3: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte'
6 | cin << c;
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)'
763 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << c;
| ^
/usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4077 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << c;
| ^
/usr/include/c++/14/bitset:1687:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const bitset<_Nb>&)'
1687 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bitset:1687:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << c;
| ^
In file included from /usr/include/c++/14/bits/ios_base.h:46,
from /usr/include/c++/14/streambuf:43,
from /usr/include/c++/14/bits/streambuf_iterator.h:35,
from /usr/include/c++/14/iterator:66,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54:
/usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)'
339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
| ^~~~~~~~
/usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << c;
| ^
In file included from /usr/include/c++/14/memory:80,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:56:
/usr/include/c++/14/bits/shared_ptr.h:70:5: note: candidate: 'template<class _Ch, class _Tr, class _Tp, __gnu_cxx::_Lock_policy _Lp> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __shared_ptr<_Tp, _Lp>&)'
70 | operator<<(std::basic_ostream<_Ch, _Tr>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/shared_ptr.h:70:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << c;
| ^
In file included from /usr/include/c++/14/istream:41,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)'
563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << c;
| ^
/usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)'
573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << c;
| ^
/usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)'
579 | operator<<(basic_ostream<char, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << c;
| ^
/usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)'
590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << c;
| ^
/usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)'
595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << c;
| ^
/usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)'
654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << c;
| ^
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)'
307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << c;
| ^
/usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)'
671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << c;
| ^
/usr/include/c++/14/ostream:684:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)'
68 |
s247444323 | p03852 | C++ | c = input().rstrip()
print('vowel' if c in 'aeiou' else 'consonant')
| a.cc:2:7: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
2 | print('vowel' if c in 'aeiou' else 'consonant')
| ^~~~~~~
a.cc:2:23: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
2 | print('vowel' if c in 'aeiou' else 'consonant')
| ^~~~~~~
a.cc:2:36: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
2 | print('vowel' if c in 'aeiou' else 'consonant')
| ^~~~~~~~~~~
a.cc:1:1: error: 'c' does not name a type
1 | c = input().rstrip()
| ^
|
s930092807 | p03852 | C++ | #Include <iostream>
using namespace std;
int main(){
char s;
cin >> s;
if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o' ) cout << "vowel" << endl;
else cout << "consonant" << endl;
} | a.cc:1:2: error: invalid preprocessing directive #Include; did you mean #include?
1 | #Include <iostream>
| ^~~~~~~
| include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
6 | cin >> s;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
+++ |+#include <iostream>
1 | #Include <iostream>
a.cc:7:65: error: 'cout' was not declared in this scope
7 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o' ) cout << "vowel" << endl;
| ^~~~
a.cc:7:65: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:84: error: 'endl' was not declared in this scope
7 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o' ) cout << "vowel" << endl;
| ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
+++ |+#include <ostream>
1 | #Include <iostream>
a.cc:8:8: error: 'cout' was not declared in this scope
8 | else cout << "consonant" << endl;
| ^~~~
a.cc:8:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:31: error: 'endl' was not declared in this scope
8 | else cout << "consonant" << endl;
| ^~~~
a.cc:8:31: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
|
s273153494 | p03852 | C++ | #include <iostream>
#include <string>
using namespace std;
int main() {
char c;
cin >> c;
const string vowel = "aeiou";
vowel.find(c) == string::npos ? (cout << "vowel") : (cout << "consonant")
return 0;
} | a.cc: In function 'int main()':
a.cc:9:77: error: expected ';' before 'return'
9 | vowel.find(c) == string::npos ? (cout << "vowel") : (cout << "consonant")
| ^
| ;
10 | return 0;
| ~~~~~~
|
s678740084 | p03852 | C++ | #include <iostream>
#include <string>
using namespace std;
int main() {
char c;
cin >> c;
const string vowel = "aeiou";
vowel.find(c) == string::npos ? (cout << "vowel";) : (cout << "consonant";)
return 0;
} | a.cc: In function 'int main()':
a.cc:9:52: error: expected ')' before ';' token
9 | vowel.find(c) == string::npos ? (cout << "vowel";) : (cout << "consonant";)
| ~ ^
| )
a.cc:9:52: error: expected ':' before ';' token
9 | vowel.find(c) == string::npos ? (cout << "vowel";) : (cout << "consonant";)
| ^
| :
a.cc:9:52: error: expected primary-expression before ';' token
a.cc:9:53: error: expected primary-expression before ')' token
9 | vowel.find(c) == string::npos ? (cout << "vowel";) : (cout << "consonant";)
| ^
a.cc:9:78: error: expected primary-expression before ')' token
9 | vowel.find(c) == string::npos ? (cout << "vowel";) : (cout << "consonant";)
| ^
|
s982115616 | p03852 | C++ | #include <iostream>
#include <string>
using namespace std;
int main() {
char c;
cin >> c;
const string vowel = "aeiou";
cout << vowel.find(c) == string::npos ? "vowel" : "consonant" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:25: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'})
9 | cout << vowel.find(c) == string::npos ? "vowel" : "consonant" << endl;
| ~~~~~~~~~~~~~~~~~~~~~ ^~ ~~~~~~~~~~~~
| | |
| | const std::__cxx11::basic_string<char>::size_type {aka const long unsigned int}
| std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}
a.cc:9:25: note: candidate: 'operator==(int, std::__cxx11::basic_string<char>::size_type {aka long unsigned int})' (built-in)
9 | cout << vowel.find(c) == string::npos ? "vowel" : "consonant" << endl;
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
a.cc:9:25: note: no known conversion for argument 1 from 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} to 'int'
In file included from /usr/include/c++/14/iosfwd:42,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:9:36: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::fpos<_StateT>'
9 | cout << vowel.find(c) == string::npos ? "vowel" : "consonant" << endl;
| ^~~~
In file included from /usr/include/c++/14/string:43,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:9:36: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::allocator<_CharT>'
9 | cout << vowel.find(c) == string::npos ? "vowel" : "consonant" << endl;
| ^~~~
In file included from /usr/include/c++/14/string:48:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:9:36: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
9 | cout << vowel.find(c) == string::npos ? "vowel" : "consonant" << endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:9:36: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
9 | cout << vowel.find(c) == string::npos ? "vowel" : "consonant" << endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:9:36: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
9 | cout << vowel.find(c) == string::npos ? "vowel" : "consonant" << endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:9:36: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
9 | cout << vowel.find(c) == string::npos ? "vowel" : "consonant" << endl;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/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:9:36: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::pair<_T1, _T2>'
9 | cout << vowel.find(c) == string::npos ? "vowel" : "consonant" << endl;
| ^~~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
629 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:629:5: note: template argument deduction/substitution failed:
a.cc:9:36: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
9 | cout << vowel.find(c) == string::npos ? "vowel" : "consonant" << endl;
| ^~~~
/usr/include/c++/14/string_view:637:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
637 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:637:5: note: template argument deduction/substitution failed:
a.cc:9:36: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
9 | cout << vowel.find(c) == string::npos ? "vowel" : "consonant" << endl;
| ^~~~
/usr/include/c++/14/string_view:644:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)'
644 | operator==(__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:644:5: note: template argument deduction/substitution failed:
a.cc:9:36: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'long unsigned int'
9 | cout << vowel.find(c) == string::npos ? "vowel" : "consonant" << endl;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3755:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3755 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3755:5: note: template argument deduction/substitution failed:
a.cc:9:36: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
9 | cout << vowel.find(c) == string::npos ? "vowel" : "consonant" << endl;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3772:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3772 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3772:5: note: template argument deduction/substitution failed:
a.cc:9:36: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
9 | cout << vowel.find(c) == string::npos ? "vowel" : "consonant" << endl;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3819:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3819 | operator==(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3819:5: note: template argument deduction/substitution failed:
a.cc:9:36: note: mismatched types 'const _CharT*' and 'std::ba |
s726054328 | p03852 | C++ | #include <iostream>
#include <string>
using namespace std;
int main() {
char c ;
cin >> c ;
const string vowel = " aeiou ";
cout << vowel.find(c) == string :: npos ? " vowel " : " consonant " << endl ;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:25: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'})
9 | cout << vowel.find(c) == string :: npos ? " vowel " : " consonant " << endl ;
| ~~~~~~~~~~~~~~~~~~~~~ ^~ ~~~~~~~~~~~~~~
| | |
| | const std::__cxx11::basic_string<char>::size_type {aka const long unsigned int}
| std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}
a.cc:9:25: note: candidate: 'operator==(int, std::__cxx11::basic_string<char>::size_type {aka long unsigned int})' (built-in)
9 | cout << vowel.find(c) == string :: npos ? " vowel " : " consonant " << endl ;
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
a.cc:9:25: note: no known conversion for argument 1 from 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} to 'int'
In file included from /usr/include/c++/14/iosfwd:42,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:9:38: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::fpos<_StateT>'
9 | cout << vowel.find(c) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
In file included from /usr/include/c++/14/string:43,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:9:38: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::allocator<_CharT>'
9 | cout << vowel.find(c) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
In file included from /usr/include/c++/14/string:48:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:9:38: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
9 | cout << vowel.find(c) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:9:38: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
9 | cout << vowel.find(c) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:9:38: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
9 | cout << vowel.find(c) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:9:38: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
9 | cout << vowel.find(c) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/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:9:38: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::pair<_T1, _T2>'
9 | cout << vowel.find(c) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
629 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:629:5: note: template argument deduction/substitution failed:
a.cc:9:38: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
9 | cout << vowel.find(c) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/string_view:637:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
637 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:637:5: note: template argument deduction/substitution failed:
a.cc:9:38: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
9 | cout << vowel.find(c) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/string_view:644:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)'
644 | operator==(__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:644:5: note: template argument deduction/substitution failed:
a.cc:9:38: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'long unsigned int'
9 | cout << vowel.find(c) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3755:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3755 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3755:5: note: template argument deduction/substitution failed:
a.cc:9:38: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
9 | cout << vowel.find(c) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3772:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3772 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3772:5: note: template argument deduction/substitution failed:
a.cc:9:38: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
9 | cout << vowel.find(c) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3819:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3819 | operator==(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h |
s422340777 | p03852 | C++ | #include <iostream>
#include <string>
using namespace std;
int main() {
char c ;
cin >> c ;
const string vowel = " aeiou ";
cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:30: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'})
9 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ ~~~~~~~~~~~~~~
| | |
| | const std::__cxx11::basic_string<char>::size_type {aka const long unsigned int}
| std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}
a.cc:9:30: note: candidate: 'operator==(int, std::__cxx11::basic_string<char>::size_type {aka long unsigned int})' (built-in)
9 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
a.cc:9:30: note: no known conversion for argument 1 from 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} to 'int'
In file included from /usr/include/c++/14/iosfwd:42,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:9:43: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::fpos<_StateT>'
9 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
In file included from /usr/include/c++/14/string:43,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:9:43: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::allocator<_CharT>'
9 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
In file included from /usr/include/c++/14/string:48:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:9:43: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
9 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:9:43: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
9 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:9:43: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
9 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:9:43: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
9 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/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:9:43: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::pair<_T1, _T2>'
9 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
629 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:629:5: note: template argument deduction/substitution failed:
a.cc:9:43: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
9 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/string_view:637:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
637 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:637:5: note: template argument deduction/substitution failed:
a.cc:9:43: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
9 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/string_view:644:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)'
644 | operator==(__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:644:5: note: template argument deduction/substitution failed:
a.cc:9:43: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'long unsigned int'
9 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3755:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3755 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3755:5: note: template argument deduction/substitution failed:
a.cc:9:43: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
9 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3772:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3772 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3772:5: note: template argument deduction/substitution failed:
a.cc:9:43: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
9 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3819:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const _CharT*, const __cxx11: |
s105436168 | 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:46: error: lvalue required as left operand of assignment
7 | if (c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o')
| ~~~~^~~~
|
s305402269 | p03852 | C | #include <stdio.h>
int main(void)
{
char c;
scanf("%c", &c);
if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
printf("vowel\n\");
}else{
printf("consonant\n");
}
return 0;
} | main.c: In function 'main':
main.c:8:12: warning: missing terminating " character
8 | printf("vowel\n\");
| ^
main.c:8:12: error: missing terminating " character
8 | printf("vowel\n\");
| ^~~~~~~~~~~~
main.c:9:12: error: expected expression before '}' token
9 | }else{
| ^
main.c:8:12: error: expected ';' before '}' token
8 | printf("vowel\n\");
| ^
| ;
9 | }else{
| ~
|
s967120602 | p03852 | C | #include<stdio.h>
intmain(){
char c[2];
scanf("%s", c);
if(c[0] == 'a' || c[0] == 'i' || c[0] == 'u' || c[0] == 'e' || c[0] == 'o'){
printf("vowel\n");
} else {
printf("consonant\n");
}
return 0;
} | main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
3 | intmain(){
| ^~~~~~~
|
s487667339 | p03852 | C++ | #include<bits/stdc++.h>
#include<string>
#include<algorithm>
#include<vector>
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:10:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
10 | if(c == 'a' || c == '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:10:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
10 | 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:10:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
10 | 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:10:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
10 | 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:10:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
10 | 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:10:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
10 | 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:10:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
10 | 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:10:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
10 | 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:10:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
10 | 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:10:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
10 | if(c == 'a' || c == '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:10:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
10 | if(c == 'a' || c == '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:10:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
10 | if(c == 'a' || c == '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:10:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
10 | if(c == 'a' || c == '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:10:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
10 | if(c == 'a' || c == '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:10:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
10 | 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:10:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
10 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:4 |
s472807620 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c ;
cin >> c ;
const string vowel = " aeiou ";
cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
// ここにプログラムを追記
}
| a.cc: In function 'int main()':
a.cc:8:32: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'})
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ ~~~~~~~~~~~~~~
| | |
| | const std::__cxx11::basic_string<char>::size_type {aka const long unsigned int}
| std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}
a.cc:8:32: note: candidate: 'operator==(int, std::__cxx11::basic_string<char>::size_type {aka long unsigned int})' (built-in)
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
a.cc:8:32: note: no known conversion for argument 1 from 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} to 'int'
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:8:45: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:8:45: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:8:45: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:8:45: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'}
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:8:45: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:8:45: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'}
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:8:45: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:8:45: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:8:45: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::pair<_T1, _T2>'
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:8:45: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:8:45: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:8:45: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator |
s144186045 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char s;
cin >> s;
if(s== 'a'||s=='i'||s=='u'||s=='e'||s=='o')cout<<"vowel"<<endl;
else {cout <<"consonant"<<endl;
// ここにプログラムを追記
}
| a.cc: In function 'int main()':
a.cc:12:2: error: expected '}' at end of input
12 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s670563515 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char s;
cin >> s;
if(s== 'a'||s=='i'||s=='u'||s=='e'||s=='o'){cout<<"vowel"<<<endl;}
else { cout <<"consonant"<<endl;}
// ここにプログラムを追記
}
| a.cc: In function 'int main()':
a.cc:7:66: error: expected primary-expression before '<' token
7 | if(s== 'a'||s=='i'||s=='u'||s=='e'||s=='o'){cout<<"vowel"<<<endl;}
| ^
|
s169514918 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char s;
cin >> s;
if(s== 'a'||s=='i'||s=='u'||s=='e'||s=='o')cout<<"vowel"<<<endl;
else if {
cout <<"consonant"<<endl;
}
// ここにプログラムを追記
}
| a.cc: In function 'int main()':
a.cc:7:65: error: expected primary-expression before '<' token
7 | if(s== 'a'||s=='i'||s=='u'||s=='e'||s=='o')cout<<"vowel"<<<endl;
| ^
a.cc:8:15: error: expected '(' before '{' token
8 | else if {
| ^
| (
|
s798431154 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char s;
cin >> s;
if(s== 'a'||s=='i'||s=='u'||s=='e'||s=='o')cout<<"vowel"<<<endl;
else if cout <<'consonant'<<endl;
// ここにプログラムを追記
}
| a.cc:8:16: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
8 | else if cout <<'consonant'<<endl;
| ^~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:60: error: expected primary-expression before '<' token
7 | if(s== 'a'||s=='i'||s=='u'||s=='e'||s=='o')cout<<"vowel"<<<endl;
| ^
a.cc:8:9: error: expected '(' before 'cout'
8 | else if cout <<'consonant'<<endl;
| ^~~~
| (
|
s216999842 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string A;
cin >> A;
if (A=='a'||A=='e'||A=='i'||A=='o'||A=='u'){
cout << "vowel" << endl;}
else {
cout << "consonant" << endl;}
}
| a.cc: In function 'int main()':
a.cc:7:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
7 | if (A=='a'||A=='e'||A=='i'||A=='o'||A=='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:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if (A=='a'||A=='e'||A=='i'||A=='o'||A=='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:10: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | if (A=='a'||A=='e'||A=='i'||A=='o'||A=='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:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if (A=='a'||A=='e'||A=='i'||A=='o'||A=='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:10: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | if (A=='a'||A=='e'||A=='i'||A=='o'||A=='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:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if (A=='a'||A=='e'||A=='i'||A=='o'||A=='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:10: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | if (A=='a'||A=='e'||A=='i'||A=='o'||A=='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:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if (A=='a'||A=='e'||A=='i'||A=='o'||A=='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:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
7 | if (A=='a'||A=='e'||A=='i'||A=='o'||A=='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:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
7 | if (A=='a'||A=='e'||A=='i'||A=='o'||A=='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:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
7 | if (A=='a'||A=='e'||A=='i'||A=='o'||A=='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:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
7 | if (A=='a'||A=='e'||A=='i'||A=='o'||A=='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:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
7 | if (A=='a'||A=='e'||A=='i'||A=='o'||A=='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:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
7 | if (A=='a'||A=='e'||A=='i'||A=='o'||A=='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:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
7 | if (A=='a'||A=='e'||A=='i'||A=='o'||A=='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:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
7 | if (A=='a'||A=='e'||A=='i'||A=='o'||A=='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_s |
s975471985 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string A;
cin >> A;
if (A==a||A==e||A==i||A==o||A==u){
cout << "vowel" << endl;}
else {
cout << "consonant" << endl;}
}
| a.cc: In function 'int main()':
a.cc:7:10: error: 'a' was not declared in this scope
7 | if (A==a||A==e||A==i||A==o||A==u){
| ^
a.cc:7:16: error: 'e' was not declared in this scope
7 | if (A==a||A==e||A==i||A==o||A==u){
| ^
a.cc:7:22: error: 'i' was not declared in this scope
7 | if (A==a||A==e||A==i||A==o||A==u){
| ^
a.cc:7:28: error: 'o' was not declared in this scope
7 | if (A==a||A==e||A==i||A==o||A==u){
| ^
a.cc:7:34: error: 'u' was not declared in this scope
7 | if (A==a||A==e||A==i||A==o||A==u){
| ^
|
s192317584 | p03852 | C++ | include<iostream>
int main(){
char c;
std::cin>>c;
std::cout<<(c^97&&c^101&&c^105&&c^111&&c^117?"consonant":"vowel");
} | a.cc:1:1: error: 'include' does not name a type
1 | include<iostream>
| ^~~~~~~
|
s692169398 | p03852 | C++ | #include<bits/stdc++.h>
using namespace sdt;
int main() {
char a;
cin >> a;
if (a == 'a') {
cout << "vowel" << endl;
}
else if (a == 'i') {
cout << "vowel" << endl;
}
else if (a == 'u') {
cout << "vowel" << endl;
}
else if (a == 'e') {
cout << "vowel" << endl;
}
else if (a == 'o') {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
return 0;
} | a.cc:2:17: error: 'sdt' is not a namespace-name
2 | using namespace sdt;
| ^~~
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin >> a;
| ^~~
| 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:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
7 | 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:7:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
7 | 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:10:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
10 | 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:10:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
10 | cout << "vowel" << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:13:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
13 | 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:13:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
13 | cout << "vowel" << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:16:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
16 | 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:16:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
16 | cout << "vowel" << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:19:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
19 | 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:19:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
19 | cout << "vowel" << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:22:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
22 | 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:22:40: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
22 | cout << "consonant" << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s855760309 | p03852 | C++ | #include<iostream>
#include<string>
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 << "consonaut" << endl;
}
} | a.cc: In function 'int main()':
a.cc:7:16: error: no match for 'operator||' (operand types are 'char' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
7 | if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
| ~~~ ^~ ~
| | |
| char std::string {aka std::__cxx11::basic_string<char>}
a.cc:7:16: note: candidate: 'operator||(bool, bool)' (built-in)
7 | if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
| ~~~~^~~~
a.cc:7:16: note: no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
a.cc:7:27: error: no match for 'operator||' (operand types are 'char' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
7 | if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
| ~~~ ^~ ~
| | |
| char std::string {aka std::__cxx11::basic_string<char>}
a.cc:7:27: note: candidate: 'operator||(bool, bool)' (built-in)
7 | if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
| ~~~~^~~~
a.cc:7:27: note: no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
a.cc:7:38: error: no match for 'operator||' (operand types are 'char' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
7 | if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
| ~~~ ^~ ~
| | |
| char std::string {aka std::__cxx11::basic_string<char>}
a.cc:7:38: note: candidate: 'operator||(bool, bool)' (built-in)
7 | if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
| ~~~~^~~~
a.cc:7:38: note: no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
a.cc:7:49: error: no match for 'operator||' (operand types are 'char' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
7 | if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
| ~~~ ^~ ~
| | |
| char std::string {aka std::__cxx11::basic_string<char>}
a.cc:7:49: note: candidate: 'operator||(bool, bool)' (built-in)
7 | if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
| ~~~~^~~~
a.cc:7:49: note: no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
|
s492038112 | p03852 | C++ | #include<iostream>
#include<string>
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 << "consonaut" << endl;
}
} | a.cc: In function 'int main()':
a.cc:7:10: 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/iosfwd:42,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:7:13: 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,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:7:13: 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/string:48:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:7:13: 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:13: 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:13: 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:13: 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/stl_algobase.h:64,
from /usr/include/c++/14/string:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:7:13: 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/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
629 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:629:5: note: template argument deduction/substitution failed:
a.cc:7:13: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
7 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
/usr/include/c++/14/string_view:637:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
637 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:637:5: note: template argument deduction/substitution failed:
a.cc:7:13: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
7 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
/usr/include/c++/14/string_view:644:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)'
644 | operator==(__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:644:5: note: template argument deduction/substitution failed:
a.cc:7:13: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'char'
7 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
/usr/include/c++/14/bits/basic_string.h:3755:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3755 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3755:5: note: template argument deduction/substitution failed:
a.cc:7:13: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'char'
7 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
/usr/include/c++/14/bits/basic_string.h:3772:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3772 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3772:5: note: template argument deduction/substitution failed:
a.cc:7:13: note: mismatched types 'const _CharT*' and 'char'
7 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
/usr/include/c++/14/bits/basic_string.h:3819:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3819 | operator==(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3819:5: note: template argument deduction/substitution failed:
a.cc:7:13: note: mismatched types 'const _CharT*' and 'std::__cxx11::basic_string<char>'
7 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/tuple:2558:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator==(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)'
2558 | operator==(const tuple<_TElements...>& __t,
| ^~~~~~~~
/usr/include/c++/14/tuple:2558:5: note: template argument deduction/substitution failed:
a.cc:7:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::tuple<_UTypes ...>'
7 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
from /usr/include/c++/14/bits/basic_ios.h:37,
from /usr/include/c++/14/ios:46:
/usr/include/c++/14/bits/streambuf_iterator.h:234:5: note: candidate: 'template<class _CharT, class _Traits> bool std::operator==(const istreambuf_iterator<_CharT, _Traits>&, const istreambuf_iterator<_CharT, _Traits>&)'
234 | operator==(const istreambuf_iterator<_CharT, _Traits>& __a,
| ^~~~~~~~
/usr/include/c++/14/bits/streambuf_iterator. |
s679856039 | p03852 | C++ | #include<iostream>
using namespace std;
int main(){
string c;
cin >> c;
if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
cout << "vowel" << endl;
} else {
cout << "consonaut" << endl;
}
} | a.cc: In function 'int main()':
a.cc:6:10: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
6 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ~ ^~ ~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/iosfwd:42,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:6:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
6 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
In file included from /usr/include/c++/14/string:43,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:6:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
6 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
In file included from /usr/include/c++/14/string:48:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:6:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
6 | 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:6:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
6 | 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:6:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
6 | 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:6:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
6 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/string:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:6:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
6 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
629 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:629:5: note: template argument deduction/substitution failed:
a.cc:6:13: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
6 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
/usr/include/c++/14/string_view:637:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
637 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:637:5: note: template argument deduction/substitution failed:
a.cc:6:13: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
6 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
/usr/include/c++/14/string_view:644:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)'
644 | operator==(__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:644:5: note: template argument deduction/substitution failed:
a.cc:6:13: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'char'
6 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
/usr/include/c++/14/bits/basic_string.h:3755:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3755 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3755:5: note: template argument deduction/substitution failed:
a.cc:6:13: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'char'
6 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
/usr/include/c++/14/bits/basic_string.h:3772:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3772 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3772:5: note: template argument deduction/substitution failed:
a.cc:6:13: note: mismatched types 'const _CharT*' and 'char'
6 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
/usr/include/c++/14/bits/basic_string.h:3819:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3819 | operator==(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3819:5: note: template argument deduction/substitution failed:
a.cc:6:13: note: mismatched types 'const _CharT*' and 'std::__cxx11::basic_string<char>'
6 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/tuple:2558:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator==(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)'
2558 | operator==(const tuple<_TElements...>& __t,
| ^~~~~~~~
/usr/include/c++/14/tuple:2558:5: note: template argument deduction/substitution failed:
a.cc:6:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::tuple<_UTypes ...>'
6 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
from /usr/include/c++/14/bits/basic_ios.h:37,
from /usr/include/c++/14/ios:46:
/usr/include/c++/14/bits/streambuf_iterator.h:234:5: note: candidate: 'template<class _CharT, class _Traits> bool std::operator==(const istreambuf_iterator<_CharT, _Traits>&, const istreambuf_iterator<_CharT, _Traits>&)'
234 | operator==(const istreambuf_iterator<_CharT, _Traits>& __a,
| ^~~~~~~~
/usr/include/c++/14/bits/streambuf_iterator. |
s553774708 | p03852 | C++ | #include<iostream>
using namespace std;
int main(){
string c;
cin >> c;
if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
cout << "vowel" << endl;
} else {
cout << "consonaut" << endl;
}
} | a.cc: In function 'int main()':
a.cc:6:16: error: no match for 'operator||' (operand types are 'char' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
6 | if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
| ~~~ ^~ ~
| | |
| char std::string {aka std::__cxx11::basic_string<char>}
a.cc:6:16: note: candidate: 'operator||(bool, bool)' (built-in)
6 | if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
| ~~~~^~~~
a.cc:6:16: note: no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
a.cc:6:27: error: no match for 'operator||' (operand types are 'char' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
6 | if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
| ~~~ ^~ ~
| | |
| char std::string {aka std::__cxx11::basic_string<char>}
a.cc:6:27: note: candidate: 'operator||(bool, bool)' (built-in)
6 | if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
| ~~~~^~~~
a.cc:6:27: note: no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
a.cc:6:38: error: no match for 'operator||' (operand types are 'char' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
6 | if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
| ~~~ ^~ ~
| | |
| char std::string {aka std::__cxx11::basic_string<char>}
a.cc:6:38: note: candidate: 'operator||(bool, bool)' (built-in)
6 | if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
| ~~~~^~~~
a.cc:6:38: note: no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
a.cc:6:49: error: no match for 'operator||' (operand types are 'char' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
6 | if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
| ~~~ ^~ ~
| | |
| char std::string {aka std::__cxx11::basic_string<char>}
a.cc:6:49: note: candidate: 'operator||(bool, bool)' (built-in)
6 | if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
| ~~~~^~~~
a.cc:6:49: note: no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
|
s747584628 | p03852 | C++ | #include<iostream>
using namespace std;
int main(){
string c;
cin >> c;
if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
cout << "vowel" << endl;
} else {
cout << "consonaut" << endl;
}
} | a.cc: In function 'int main()':
a.cc:6:10: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
6 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ~ ^~ ~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/iosfwd:42,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:6:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
6 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
In file included from /usr/include/c++/14/string:43,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:6:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
6 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
In file included from /usr/include/c++/14/string:48:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:6:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
6 | 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:6:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
6 | 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:6:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
6 | 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:6:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
6 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/string:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:6:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
6 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
629 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:629:5: note: template argument deduction/substitution failed:
a.cc:6:13: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
6 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
/usr/include/c++/14/string_view:637:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
637 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:637:5: note: template argument deduction/substitution failed:
a.cc:6:13: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
6 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
/usr/include/c++/14/string_view:644:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)'
644 | operator==(__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:644:5: note: template argument deduction/substitution failed:
a.cc:6:13: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'char'
6 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
/usr/include/c++/14/bits/basic_string.h:3755:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3755 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3755:5: note: template argument deduction/substitution failed:
a.cc:6:13: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'char'
6 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
/usr/include/c++/14/bits/basic_string.h:3772:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3772 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3772:5: note: template argument deduction/substitution failed:
a.cc:6:13: note: mismatched types 'const _CharT*' and 'char'
6 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
/usr/include/c++/14/bits/basic_string.h:3819:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3819 | operator==(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3819:5: note: template argument deduction/substitution failed:
a.cc:6:13: note: mismatched types 'const _CharT*' and 'std::__cxx11::basic_string<char>'
6 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/tuple:2558:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator==(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)'
2558 | operator==(const tuple<_TElements...>& __t,
| ^~~~~~~~
/usr/include/c++/14/tuple:2558:5: note: template argument deduction/substitution failed:
a.cc:6:13: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::tuple<_UTypes ...>'
6 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ^~~
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
from /usr/include/c++/14/bits/basic_ios.h:37,
from /usr/include/c++/14/ios:46:
/usr/include/c++/14/bits/streambuf_iterator.h:234:5: note: candidate: 'template<class _CharT, class _Traits> bool std::operator==(const istreambuf_iterator<_CharT, _Traits>&, const istreambuf_iterator<_CharT, _Traits>&)'
234 | operator==(const istreambuf_iterator<_CharT, _Traits>& __a,
| ^~~~~~~~
/usr/include/c++/14/bits/streambuf_iterator. |
s216341918 | 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:12: error: 'a' was not declared in this scope
8 | if (c == a,i,u,e,o) {
| ^
a.cc:8:14: error: 'i' was not declared in this scope
8 | if (c == a,i,u,e,o) {
| ^
a.cc:8:16: error: 'u' was not declared in this scope
8 | if (c == a,i,u,e,o) {
| ^
a.cc:8:18: error: 'e' was not declared in this scope
8 | if (c == a,i,u,e,o) {
| ^
a.cc:8:20: error: 'o' was not declared in this scope
8 | if (c == a,i,u,e,o) {
| ^
|
s291480349 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s;
cin >> s;
if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') cout << "vowel" << endl;
else cout << "consonant" << endl;
return 0;
} | 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(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') cout << "vowel" << endl;
| ~ ^~ ~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') cout << "vowel" << endl;
| ^~~
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:7:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') cout << "vowel" << endl;
| ^~~
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') cout << "vowel" << endl;
| ^~~
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:7:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') cout << "vowel" << endl;
| ^~~
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') cout << "vowel" << endl;
| ^~~
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:7:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') cout << "vowel" << endl;
| ^~~
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') cout << "vowel" << endl;
| ^~~
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:7:11: 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 == 'i' || s == 'u' || s == 'e' || s == 'o') cout << "vowel" << endl;
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
7 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') cout << "vowel" << endl;
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
7 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') cout << "vowel" << endl;
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
7 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') cout << "vowel" << endl;
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
7 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') cout << "vowel" << endl;
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
7 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') cout << "vowel" << endl;
| ^~~
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:7:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
7 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') cout << "vowel" << endl;
| ^~~
In file included from /usr/include/c++/14/string:43:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _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:23 |
s973731934 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string 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:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
5 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') {
| ~ ^~ ~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:5:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
5 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') {
| ^~~
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:5:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
5 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') {
| ^~~
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:5:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
5 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') {
| ^~~
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:5:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
5 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') {
| ^~~
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:5:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
5 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') {
| ^~~
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:5:11: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
5 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') {
| ^~~
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:5:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
5 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') {
| ^~~
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:5:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
5 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') {
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:5:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
5 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') {
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:5:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
5 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') {
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:5:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
5 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') {
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:5:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
5 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') {
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:5:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
5 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') {
| ^~~
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:5:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
5 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') {
| ^~~
In file included from /usr/include/c++/14/string:43:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:5:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
5 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') {
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:4 |
s332117674 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
strin 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:4:3: error: 'strin' was not declared in this scope; did you mean 'stdin'?
4 | strin s;
| ^~~~~
| stdin
a.cc:5:6: error: 's' was not declared in this scope
5 | if(s == "a" || s == "i" || s == "u" || s == "e" || s == "o") {
| ^
|
s311807587 | 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:10: error: 'a' was not declared in this scope
8 | if (c==a,i,u,e,o) {
| ^
a.cc:8:12: error: 'i' was not declared in this scope
8 | if (c==a,i,u,e,o) {
| ^
a.cc:8:14: error: 'u' was not declared in this scope
8 | if (c==a,i,u,e,o) {
| ^
a.cc:8:16: error: 'e' was not declared in this scope
8 | if (c==a,i,u,e,o) {
| ^
a.cc:8:18: error: 'o' was not declared in this scope
8 | if (c==a,i,u,e,o) {
| ^
|
s940050719 | 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:10: error: 'a' was not declared in this scope
8 | if (c==a,i,u,e,o) {
| ^
a.cc:8:12: error: 'i' was not declared in this scope
8 | if (c==a,i,u,e,o) {
| ^
a.cc:8:14: error: 'u' was not declared in this scope
8 | if (c==a,i,u,e,o) {
| ^
a.cc:8:16: error: 'e' was not declared in this scope
8 | if (c==a,i,u,e,o) {
| ^
a.cc:8:18: error: 'o' was not declared in this scope
8 | if (c==a,i,u,e,o) {
| ^
a.cc:9:12: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [6]')
9 | 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:9:7: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte'
9 | 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:9:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | 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:9:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | 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:9:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | 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:9:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
9 | 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:9:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
9 | 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:9:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | 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:9:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
9 | 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:9:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
9 | 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:9:15: required from here
9 | 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:9:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | 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:9:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | 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:9:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | 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:9:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | 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:9:15: note: 'std::ostream' {aka 'std::basic_os |
s460315370 | p03852 | C++ | #include <cstdio>
int main()
{
char C;
scanf("%c",&C);
if(C=='a'||C=='i'||C=='u'||C=='e'||C=='o'&&'a'<=&&'z'>=C){
printf("vowel");}
else{
printf("consonat");}
return 0;} | a.cc: In function 'int main()':
a.cc:8:59: error: expected identifier before 'z'
8 | if(C=='a'||C=='i'||C=='u'||C=='e'||C=='o'&&'a'<=&&'z'>=C){
| ^~~
a.cc:8:59: error: expected ')' before 'z'
8 | if(C=='a'||C=='i'||C=='u'||C=='e'||C=='o'&&'a'<=&&'z'>=C){
| ~ ^~~
| )
|
s092748947 | p03852 | C++ | #include <cstdio>
int main()
{
char X;
scanf("%c",&X);
if(X=='a'||X=='i'||X=='u'||X=='e'||X=='o'){
printf("vowel");}
else{
printf("consonat");}
r | a.cc: In function 'int main()':
a.cc:12:9: error: 'r' was not declared in this scope
12 | r
| ^
a.cc:12:10: error: expected '}' at end of input
12 | r
| ^
a.cc:4:1: note: to match this '{'
4 | {
| ^
|
s044375997 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef unsigned long long ull;
int main(){
char c;
cin>>c;
if(c=='a'||c=='e'||c=='i'||c=='o'||c='u'){
cout<<"vowel";
}
else cout<<"consonant";
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:42: error: lvalue required as left operand of assignment
9 | if(c=='a'||c=='e'||c=='i'||c=='o'||c='u'){
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
|
s069589715 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef unsigned long long ull;
int main(){
char c;
cin>>c;
if(c=='a'||c=='e'||c=='i'||c=='o'||c='u'){
cout<<"vowel";
}
else cout<<"consonant";
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:42: error: lvalue required as left operand of assignment
9 | if(c=='a'||c=='e'||c=='i'||c=='o'||c='u'){
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
|
s597461146 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s;
cin>>s;
switch(s){
case "a":
case "i":
case "u":
case "e":
case "o":
cout<<"vowel"<<endl;
break;
default:
cout<<"consonant"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:8:16: error: switch quantity not an integer
8 | switch(s){
| ^
|
s559031737 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char a;
int >>a;
if(a == 'a'|| a == 'e'|| a == 'i'|| a == 'u'|| a == 'o') cout << "vowel" << endl;
else cout << "consonant" << endl;
} | a.cc: In function 'int main()':
a.cc:6:7: error: expected unqualified-id before '>>' token
6 | int >>a;
| ^~
|
s340377634 | p03852 | C++ | #include<stdio.h>
#include<stdlib.h>
int main(){
int c,a,e,i,o,u;
scanf("%c",&c);
if(c=getchar()=a,e,i,o,u){
printf("vowel");
}else{
printf("consonant");
}
system("pause");
} | a.cc: In function 'int main()':
a.cc:6:21: error: lvalue required as left operand of assignment
6 | if(c=getchar()=a,e,i,o,u){
| ~~~~~~~^~
|
s429566744 | p03852 | C | #include <stdio.h>
int main() {
char c;
scanf ("%c",&c);
if (c==a) {
printf("vowel\n");
} else if (c==e) {
printf ("vowel\n");
} else if (c==i) {
printf ("vowel\n") ;
} else if (c==o) {
printf("vowel\n"); }
else if (c==u) {
printf("vowel\n");
} else {
printf ("consonant\n");
}
return 0;
}
| main.c: In function 'main':
main.c:6:16: error: 'a' undeclared (first use in this function)
6 | if (c==a) {
| ^
main.c:6:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:23: error: 'e' undeclared (first use in this function)
8 | } else if (c==e) {
| ^
main.c:10:23: error: 'i' undeclared (first use in this function)
10 | } else if (c==i) {
| ^
main.c:12:23: error: 'o' undeclared (first use in this function)
12 | } else if (c==o) {
| ^
main.c:14:29: error: 'u' undeclared (first use in this function)
14 | else if (c==u) {
| ^
|
s821991073 | p03852 | C | #include <stdio.h>
int main() {
char c;
scanf ("%c",&c);
if (c=='a') {
printf("vowel\n");
} else if (c=='e') {
printf ("vowel\n");
} else if (c=='i') {
printf ("vowel\n") ;
} else if (c=='o') {
printf("vowel\n"); }
else if (c=='u') {
printf("vowel\n");
} else {
printf ("consonant\n");
}
return 0;
}
| main.c: In function 'main':
main.c:12:19: error: expected '(' before '\U0000ff08c'
12 | } else if (c=='o') {
| ^~~
| (
main.c:12:19: error: '\U0000ff08c' undeclared (first use in this function)
12 | } else if (c=='o') {
| ^~~
main.c:12:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:27: error: expected statement before ')' token
12 | } else if (c=='o') {
| ^
main.c:14:17: error: 'else' without a previous 'if'
14 | else if (c=='u') {
| ^~~~
|
s121039222 | p03852 | Java | import java.util.*;
public class Vowel {
public static void main(String[] args) {
// TODO 自动生成的方法存根
Scanner sc=new Scanner(System.in);
String c=sc.nextLine();
switch(c) {
case "a":
System.out.println("vowel");
break;
case "e":
System.out.println("vowel");
break;
case "i":
System.out.println("vowel");
break;
case "o":
System.out.println("vowel");
break;
case "u":
System.out.println("vowel");
break;
default:
System.out.println("consonant");
}
}
}
| Main.java:2: error: class Vowel is public, should be declared in a file named Vowel.java
public class Vowel {
^
1 error
|
s639102139 | p03852 | Java | import java.util.*;
public class Vowel {
public static void main(String[] args) {
// TODO 自动生成的方法存根
Scanner sc=new Scanner(System.in);
String c=sc.nextLine();
switch(c) {
case "a":
System.out.println("vowel");
break;
case "e":
System.out.println("vowel");
break;
case "i":
System.out.println("vowel");
break;
case "o":
System.out.println("vowel");
break;
case "u":
System.out.println("vowel");
break;
default:
System.out.println("consonant");
}
}
}
| Main.java:2: error: class Vowel is public, should be declared in a file named Vowel.java
public class Vowel {
^
1 error
|
s774166435 | p03852 | C++ | #include<bits/stdc++.h>using namespace std;int main(){ char a;cin>>a; if(a=='a'||a=='e'||a=='i'||a=='o'||a=='u')cout<<"vowel";else cout<<"consonant";return 0;} | a.cc:1:30: warning: extra tokens at end of #include directive
1 | #include<bits/stdc++.h>using namespace std;int main(){ char a;cin>>a; if(a=='a'||a=='e'||a=='i'||a=='o'||a=='u')cout<<"vowel";else cout<<"consonant";return 0;}
| ^~~~~~~~~
a.cc:1:9: fatal error: bits/stdc++.h>usin: No such file or directory
1 | #include<bits/stdc++.h>using namespace std;int main(){ char a;cin>>a; if(a=='a'||a=='e'||a=='i'||a=='o'||a=='u')cout<<"vowel";else cout<<"consonant";return 0;}
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
|
s595240973 | p03852 | C++ | #include<iostream>
using namespace std;
int main()
{
char n;
cin>>n;
if(n==a||a==e||a==i||a==o||a==u)
{
cout<<"vowel";
}
else.
{
cout<<"consonant";
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:11: error: 'a' was not declared in this scope
7 | if(n==a||a==e||a==i||a==o||a==u)
| ^
a.cc:7:17: error: 'e' was not declared in this scope
7 | if(n==a||a==e||a==i||a==o||a==u)
| ^
a.cc:7:23: error: 'i' was not declared in this scope
7 | if(n==a||a==e||a==i||a==o||a==u)
| ^
a.cc:7:29: error: 'o' was not declared in this scope
7 | if(n==a||a==e||a==i||a==o||a==u)
| ^
a.cc:7:35: error: 'u' was not declared in this scope
7 | if(n==a||a==e||a==i||a==o||a==u)
| ^
a.cc:11:9: error: expected primary-expression before '.' token
11 | else.
| ^
a.cc:12:5: error: expected unqualified-id before '{' token
12 | {
| ^
|
s578011262 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
char a[5]={'a','e','i','o','u'};
int main(){
char c;
c=putchar();
for(int i=0;i<5;i++){
if(c==a[i]){
cout<<"vowel"<<endl;
return 0;
}
}
cout<<"consonant"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:14: error: too few arguments to function 'int putchar(int)'
6 | c=putchar();
| ~~~~~~~^~
In file included from /usr/include/c++/14/cstdio:42,
from /usr/include/c++/14/ext/string_conversions.h:45,
from /usr/include/c++/14/bits/basic_string.h:4154,
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/stdio.h:618:12: note: declared here
618 | extern int putchar (int __c);
| ^~~~~~~
|
s763197178 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
char a[5]={'a','e','i','o','u');
int main(){
char c;
c=putchar();
for(int i=0;i<5;i++){
if(c==a[i]){
cout<<"vowel"<<endl;
return 0;
}
}
cout<<"consonant"<<endl;
return 0;
} | a.cc:3:31: error: expected '}' before ')' token
3 | char a[5]={'a','e','i','o','u');
| ~ ^
a.cc:3:31: error: expected ',' or ';' before ')' token
a.cc: In function 'int main()':
a.cc:6:14: error: too few arguments to function 'int putchar(int)'
6 | c=putchar();
| ~~~~~~~^~
In file included from /usr/include/c++/14/cstdio:42,
from /usr/include/c++/14/ext/string_conversions.h:45,
from /usr/include/c++/14/bits/basic_string.h:4154,
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/stdio.h:618:12: note: declared here
618 | extern int putchar (int __c);
| ^~~~~~~
|
s740625683 | p03852 | C++ | #include<iostream>
using namespace std;
int main()
{
char a;
cin>>a;
if(a=='a'||a=='o'||a=='i'||a='u'||a='e')
cout<<"vowel";
else
cout<<"consonant";
} | a.cc: In function 'int main()':
a.cc:7:37: error: lvalue required as left operand of assignment
7 | if(a=='a'||a=='o'||a=='i'||a='u'||a='e')
| ~~~^~~
|
s735224690 | p03852 | C++ | #include<iostream>
using namespace std;
int main(){
int A;
cin>>A;
if(A==a||A==b||A==c||A==d||A==e){
cout<<"vowel"<<endl;
}
else{
cout<<"consonant"<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:6:9: error: 'a' was not declared in this scope
6 | if(A==a||A==b||A==c||A==d||A==e){
| ^
a.cc:6:15: error: 'b' was not declared in this scope
6 | if(A==a||A==b||A==c||A==d||A==e){
| ^
a.cc:6:21: error: 'c' was not declared in this scope
6 | if(A==a||A==b||A==c||A==d||A==e){
| ^
a.cc:6:27: error: 'd' was not declared in this scope
6 | if(A==a||A==b||A==c||A==d||A==e){
| ^
a.cc:6:33: error: 'e' was not declared in this scope
6 | if(A==a||A==b||A==c||A==d||A==e){
| ^
|
s139256717 | 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:7:7: error: extended character ‘ is not valid in an identifier
7 | if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
| ^
a.cc:7:7: error: extended character ’ is not valid in an identifier
a.cc:7:15: error: extended character ‘ is not valid in an identifier
7 | if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
| ^
a.cc:7:15: error: extended character ’ is not valid in an identifier
a.cc:7:23: error: extended character ‘ is not valid in an identifier
7 | if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
| ^
a.cc:7:23: error: extended character ’ is not valid in an identifier
a.cc:7:31: error: extended character ‘ is not valid in an identifier
7 | if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
| ^
a.cc:7:31: error: extended character ’ is not valid in an identifier
a.cc:7:39: error: extended character ‘ is not valid in an identifier
7 | if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
| ^
a.cc:7:39: error: extended character ’ is not valid in an identifier
a.cc:8:9: error: extended character “ is not valid in an identifier
8 | cout >> “vowel”>>endl;
| ^
a.cc:8:9: error: extended character ” is not valid in an identifier
a.cc:10:10: error: extended character “ is not valid in an identifier
10 | cout >> “consonant”>>endl;
| ^
a.cc:10:10: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:6:7: error: no match for 'operator>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'char')
6 | cin > c;
| ~~~ ^ ~
| | |
| | char
| std::istream {aka std::basic_istream<char>}
a.cc:6:7: note: candidate: 'operator>(int, int)' (built-in)
6 | cin > c;
| ~~~~^~~
a.cc:6:7: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int'
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1176:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator>(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1176 | operator>(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1176:5: note: template argument deduction/substitution failed:
a.cc:6:9: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | cin > c;
| ^
/usr/include/c++/14/bits/regex.h:1236: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>&)'
1236 | operator>(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1236:5: note: template argument deduction/substitution failed:
a.cc:6:9: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
6 | cin > c;
| ^
/usr/include/c++/14/bits/regex.h:1329: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>&)'
1329 | operator>(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1329:5: note: template argument deduction/substitution failed:
a.cc:6:9: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | cin > c;
| ^
/usr/include/c++/14/bits/regex.h:1403:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1403 | operator>(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1403:5: note: template argument deduction/substitution failed:
a.cc:6:9: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
6 | cin > c;
| ^
/usr/include/c++/14/bits/regex.h:1497:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1497 | operator>(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1497:5: note: template argument deduction/substitution failed:
a.cc:6:9: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | cin > c;
| ^
/usr/include/c++/14/bits/regex.h:1573:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1573 | operator>(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1573:5: note: template argument deduction/substitution failed:
a.cc:6:9: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
6 | cin > c;
| ^
/usr/include/c++/14/bits/regex.h:1673:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1673 | operator>(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1673:5: note: template argument deduction/substitution failed:
a.cc:6:9: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | cin > c;
| ^
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:1058:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator>(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1058 | operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1058:5: note: template argument deduction/substitution failed:
a.cc:6:9: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::pair<_T1, _T2>'
6 | cin > c;
| ^
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:462:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
462 | operator>(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:462:5: note: template argument deduction/substitution failed:
a.cc:6:9: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
6 | cin > c;
| ^
/usr/include/c++/14/bits/stl_iterator.h:507:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
507 | operator>(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:507:5: note: template argument deduction/substitution failed:
a.cc:6:9: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
6 | cin > c;
| ^
/usr/include/c++/14/bits/stl_iterator.h:1714:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1714 | operator>(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1714:5: note: template argument deduction/substitution failed:
a.cc:6:9: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
6 | cin > c;
| ^
/usr/include/c++/14/bits/stl_iterator.h:1774:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1774 | operator>(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1774:5: note: template argument deduction/substitution failed:
a.cc:6:9: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
6 | cin > c;
| ^
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/string_view:695:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
695 | operator> (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:695:5: note: template argument deduction/substitution failed:
a.cc:6:9: note: 'std::basic_istream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
6 | cin > c;
| ^
/usr/include/c++/14/string_view:702: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> >)'
702 | operator> (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:702:5: no |
s348820909 | p03852 | C | #include<stdio.h>
int main(){
char c;
scanf("%c",&c);
if(c=='a'||c=='i'||c=='u'||c=='e'||c=='a'||c=='o')puts("vowel");
else put("consonant");
return 0;
} | main.c: In function 'main':
main.c:7:6: error: implicit declaration of function 'put'; did you mean 'puts'? [-Wimplicit-function-declaration]
7 | else put("consonant");
| ^~~
| puts
|
s665560948 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >>s;
switch(s) {
case 'a':
case 'i':
case 'u':
case 'e':
case 'o':
cout << "vowel" << endl;
break;
default:
cout << "consonant" << endl;
}
}
| a.cc:15:10: error: extended character is not valid in an identifier
15 | cout << "consonant" << endl;
| ^
a.cc: In function 'int main()':
a.cc:6:10: error: switch quantity not an integer
6 | switch(s) {
| ^
a.cc:15:10: error: '\U00003000' was not declared in this scope
15 | cout << "consonant" << endl;
| ^~
|
s468252236 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >>s;
switch(s) {
case 'a':
case 'i':
case 'u':
case 'e':
case 'o':
cout << 'vowel' << endl;
break;
default:
cout << 'consonant' << endl;
}
} | a.cc:12:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
12 | cout << 'vowel' << endl;
| ^~~~~~~
a.cc:15:10: error: extended character is not valid in an identifier
15 | cout << 'consonant' << endl;
| ^
a.cc:15:12: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
15 | cout << 'consonant' << endl;
| ^~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:10: error: switch quantity not an integer
6 | switch(s) {
| ^
a.cc:15:10: error: '\U00003000' was not declared in this scope
15 | cout << 'consonant' << endl;
| ^~
|
s170158356 | p03852 | C++ | #include <iostream>
#include <string>
using namespace std;
string divide[4] = {"dream", "dreamer", "erase", "eraser"};
bool dp[100010];
int main() {
string S;
cin >> S;
dp[0] = 1;
for(int i = 0; i < S.size(); ++i){
for(string s : divide){
if(S.substr(i, s.size()) == s){ // うまく切れたら先に進む
dp[i + s.size()] = d[i];
}
}
}
cout << (dp[S.size()] ? "YES" : "NO") << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:16:36: error: 'd' was not declared in this scope
16 | dp[i + s.size()] = d[i];
| ^
|
s927196433 | 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') {
} | a.cc: In function 'int main()':
a.cc:13:2: error: expected '}' at end of input
13 | }
| ^
a.cc:5:1: note: to match this '{'
5 | {
| ^
|
s798985265 | p03852 | Java | import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
char c = sc.next().charAt(0);
char vowels = new char[]{'a','i','u','e','o'};
for(char v:vowels) if(c==v){
System.out.println("vowel");
return;
}
System.out.println("consonant");
}
} | Main.java:8: error: incompatible types: char[] cannot be converted to char
char vowels = new char[]{'a','i','u','e','o'};
^
Main.java:9: error: for-each not applicable to expression type
for(char v:vowels) if(c==v){
^
required: array or java.lang.Iterable
found: char
2 errors
|
s644951429 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
char A;
cin>>A;
if (A=='a'||A=='e'||A=='i'||A='i'||A=='o'||A=='u'){
cout<<"vowel"<<endl;
}
else{
cout<<"consonant"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:7:29: error: lvalue required as left operand of assignment
7 | if (A=='a'||A=='e'||A=='i'||A='i'||A=='o'||A=='u'){
| ~~~~~~~~~~~~~~~~~~~~~~^~~
|
s063502319 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
chat A;
cin>>A;
if (A=='a'||A=='e'||A=='i'||A='i'||A=='o'||A=='u'){
cout<<"vowel"<<endl;
}
else{
cout<<"consonant"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:5:1: error: 'chat' was not declared in this scope; did you mean 'char'?
5 | chat A;
| ^~~~
| char
a.cc:6:6: error: 'A' was not declared in this scope
6 | cin>>A;
| ^
|
s892363958 | p03852 | C++ | #include <iostream>
using namespace std;
int main(){
char c;
cin>>c;
if(c=='a' || 'i' || 'u' || 'e' || 'o'){
cout<<"vowel"<<endl;
else
cout<<"consonant"<<endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:3: error: expected '}' before 'else'
8 | else
| ^~~~
a.cc:6:41: note: to match this '{'
6 | if(c=='a' || 'i' || 'u' || 'e' || 'o'){
| ^
a.cc: At global scope:
a.cc:11:3: error: expected unqualified-id before 'return'
11 | return 0;
| ^~~~~~
a.cc:12:1: error: expected declaration before '}' token
12 | }
| ^
|
s033304357 | p03852 | C++ | #include <iostream>
using namespace std;
int main(){
char c;
cin>>c;
if(c=='a' || 'i' || 'u' || 'e' || 'o')
cout<<"vowel"<<endl;
else
cout<<"consonant"<<endl;
}
return 0;
}
| a.cc:11:3: error: expected unqualified-id before 'return'
11 | return 0;
| ^~~~~~
a.cc:12:1: error: expected declaration before '}' token
12 | }
| ^
|
s090765685 | p03852 | C++ | #include <iostream>
using namespace std;
int main(){
char c;
cin>>c;
if(c=='a' || 'i' || 'u' || 'e' || 'o')
cout<<vowel<<endl;
else
cout<<consonant<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:11: error: 'vowel' was not declared in this scope
7 | cout<<vowel<<endl;
| ^~~~~
a.cc:9:11: error: 'consonant' was not declared in this scope
9 | cout<<consonant<<endl;
| ^~~~~~~~~
a.cc: At global scope:
a.cc:11:3: error: expected unqualified-id before 'return'
11 | return 0;
| ^~~~~~
a.cc:12:1: error: expected declaration before '}' token
12 | }
| ^
|
s720303613 | p03852 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String s=sc.next();
if(s.contains(a)||s.contains(i)||s.contains(u)||s.contains(e)||s.contains(o)){
System.out.println("vowel");
}else{System.out.println("consonant");}
}} | Main.java:6: error: cannot find symbol
if(s.contains(a)||s.contains(i)||s.contains(u)||s.contains(e)||s.contains(o)){
^
symbol: variable a
location: class Main
Main.java:6: error: cannot find symbol
if(s.contains(a)||s.contains(i)||s.contains(u)||s.contains(e)||s.contains(o)){
^
symbol: variable i
location: class Main
Main.java:6: error: cannot find symbol
if(s.contains(a)||s.contains(i)||s.contains(u)||s.contains(e)||s.contains(o)){
^
symbol: variable u
location: class Main
Main.java:6: error: cannot find symbol
if(s.contains(a)||s.contains(i)||s.contains(u)||s.contains(e)||s.contains(o)){
^
symbol: variable e
location: class Main
Main.java:6: error: cannot find symbol
if(s.contains(a)||s.contains(i)||s.contains(u)||s.contains(e)||s.contains(o)){
^
symbol: variable o
location: class Main
5 errors
|
s692282414 | p03852 | C++ | #include <iostream>
using namespace std;
int main()
{
char c;
cin >> c;
if(c == 'a' || c == 'i' || c == 'e' || c == 'u' || c == 'o'){
cout << "vowel" << endl;
}else{
cout << "consonant" << endl;
}
cout << ans << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:13:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
13 | cout << ans << endl;
| ^~~
| abs
|
s078538534 | p03852 | C++ | #include<iostream>
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<<"cousonant"<<endl;}
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:6: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){cout<<"vowel"<<endl;}
| ~^~~~~
a.cc:6:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){cout<<"vowel"<<endl;}
| ~^~~~~
a.cc:6:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){cout<<"vowel"<<endl;}
| ~^~~~~
a.cc:6:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){cout<<"vowel"<<endl;}
| ~^~~~~
a.cc:6:38: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){cout<<"vowel"<<endl;}
| ~^~~~~
|
s307091258 | p03852 | C++ | #include<iostream>
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<<"cousonant"<<endl;}
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:8: error: 'a' was not declared in this scope
6 | if(c==a||c==e||c==i||c==o||c==u){cout<<"vowel"<<endl;}
| ^
a.cc:6:14: error: 'e' was not declared in this scope
6 | if(c==a||c==e||c==i||c==o||c==u){cout<<"vowel"<<endl;}
| ^
a.cc:6:20: error: 'i' was not declared in this scope
6 | if(c==a||c==e||c==i||c==o||c==u){cout<<"vowel"<<endl;}
| ^
a.cc:6:26: error: 'o' was not declared in this scope
6 | if(c==a||c==e||c==i||c==o||c==u){cout<<"vowel"<<endl;}
| ^
a.cc:6:32: error: 'u' was not declared in this scope
6 | if(c==a||c==e||c==i||c==o||c==u){cout<<"vowel"<<endl;}
| ^
|
s425603324 | p03852 | C++ | #include<iostream>
#include<string>
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<<"cousonant"<<endl;}
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:8: error: 'a' was not declared in this scope
7 | if(c==a||c==e||c==i||c==o||c==u){cout<<"vowel"<<endl;}
| ^
a.cc:7:14: error: 'e' was not declared in this scope
7 | if(c==a||c==e||c==i||c==o||c==u){cout<<"vowel"<<endl;}
| ^
a.cc:7:20: error: 'i' was not declared in this scope
7 | if(c==a||c==e||c==i||c==o||c==u){cout<<"vowel"<<endl;}
| ^
a.cc:7:26: error: 'o' was not declared in this scope
7 | if(c==a||c==e||c==i||c==o||c==u){cout<<"vowel"<<endl;}
| ^
a.cc:7:32: error: 'u' was not declared in this scope
7 | if(c==a||c==e||c==i||c==o||c==u){cout<<"vowel"<<endl;}
| ^
|
s057357983 | p03852 | C++ | // Example program
#include <iostream>
#include <string>
using namespace std;
int main(){
char c;
cin>>c;
if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){cout<<"vowel"<<endl;}
else{cout<<"consonant"<<endl;}
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){cout<<"vowel"<<endl;}
| ~^~~~~
a.cc:8:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){cout<<"vowel"<<endl;}
| ~^~~~~
a.cc:8:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){cout<<"vowel"<<endl;}
| ~^~~~~
a.cc:8:31: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){cout<<"vowel"<<endl;}
| ~^~~~~
a.cc:8:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){cout<<"vowel"<<endl;}
| ~^~~~~
|
s101219984 | p03852 | C++ | // Example program
#include <iostream>
#include <string>
using namespace std;
int main(){
int c;
cin>>c;
if(c="a"||c="e"||c="i"||c="o"||c="u"){cout<<"vowel"<<endl;}
else{cout<<"consonant"<<endl;}
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:32: error: lvalue required as left operand of assignment
8 | if(c="a"||c="e"||c="i"||c="o"||c="u"){cout<<"vowel"<<endl;}
| ~~~^~~
|
s859935927 | p03852 | C++ | // Example program
#include <iostream>
#include <string>
using namespace std;
int main(){
int c;
cin>>c;
if(c="a"||c="e"||c="i"||c="o"||c="u"){cout<<"vowel"<<endl;}
else{cout<<"consonant"<<endl;}
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:32: error: lvalue required as left operand of assignment
8 | if(c="a"||c="e"||c="i"||c="o"||c="u"){cout<<"vowel"<<endl;}
| ~~~^~~
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.