submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3 values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s932016128 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin << c;
if (c == a || c == i || c == u || c == e || c == o) {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:6: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 |
s639846112 | p03852 | C++ | #include <iostream>
using namespace std;
int main()
{
char c; cin >> c;
char arr[] = {'a', 'e', 'i', 'o', 'u'};
for(int i = 0; i < 5; ++i) {
if(c == arr[i]) {
cout << "vowel";
return 0;
}
cout << "consonant";
return 0;
} | a.cc: In function 'int main()':
a.cc:15:2: error: expected '}' at end of input
15 | }
| ^
a.cc:5:1: note: to match this '{'
5 | {
| ^
|
s422999499 | p03852 | C++ | #include <iostream>
using namespace std;
int main()
{
char c; cin >> c;
char arr[] = {'a', 'e', 'i', 'o', 'u'};
for(int i == 0; i < 5; ++i) {
if(c == arr[i]) {
cout << "vowel";
return 0;
}
cout << "consonant";
return 0;
} | a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before '==' token
8 | for(int i == 0; i < 5; ++i) {
| ^~~
| ;
a.cc:8:13: error: expected primary-expression before '==' token
8 | for(int i == 0; i < 5; ++i) {
| ^~
a.cc:8:24: error: expected ')' before ';' token
8 | for(int i == 0; i < 5; ++i) {
| ~ ^
| )
a.cc:8:28: error: 'i' was not declared in this scope
8 | for(int i == 0; i < 5; ++i) {
| ^
a.cc:15:2: error: expected '}' at end of input
15 | }
| ^
a.cc:5:1: note: to match this '{'
5 | {
| ^
|
s028681359 | p03852 | C++ | #include <iostream>
using namespace std;
int main()
{
char c; cin >> c;
char arr = {'a', 'e', 'i', 'o', 'u'};
for(int i == 0; i < 5; ++i) {
if(c == arr[i]) {
cout << "vowel";
return 0;
}
cout << "consonant";
return 0;
} | a.cc: In function 'int main()':
a.cc:7:8: error: scalar object 'arr' requires one element in initializer
7 | char arr = {'a', 'e', 'i', 'o', 'u'};
| ^~~
a.cc:8:12: error: expected ';' before '==' token
8 | for(int i == 0; i < 5; ++i) {
| ^~~
| ;
a.cc:8:13: error: expected primary-expression before '==' token
8 | for(int i == 0; i < 5; ++i) {
| ^~
a.cc:8:24: error: expected ')' before ';' token
8 | for(int i == 0; i < 5; ++i) {
| ~ ^
| )
a.cc:8:28: error: 'i' was not declared in this scope
8 | for(int i == 0; i < 5; ++i) {
| ^
a.cc:15:2: error: expected '}' at end of input
15 | }
| ^
a.cc:5:1: note: to match this '{'
5 | {
| ^
|
s062848118 | 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 << consonate << endl;
} | a.cc: In function 'int main()':
a.cc:9:13: error: 'vowel' was not declared in this scope
9 | cout << vowel << endl;
| ^~~~~
a.cc:11:13: error: 'consonate' was not declared in this scope
11 | cout << consonate << endl;
| ^~~~~~~~~
|
s478949194 | p03852 | C++ | #include <iostream>
#include <stdio.h>
#include <string.h>
#include <algorithm>
#include <allocators>
#include <array>
#include <cfloat>
using namespace std;
int main (){
char c;
cin >> c;
if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u')
cout << "vowel";
}else
{
cout << "consonant";
}
} | a.cc:5:10: fatal error: allocators: No such file or directory
5 | #include <allocators>
| ^~~~~~~~~~~~
compilation terminated.
|
s943976857 | p03852 | C++ | #include <iostream>
#include <stdio.h>
#include <string.h>
#include <algorithm>
#include <allocators>
#include <array>
#include <cfloat>
using namespace std;
int main (){
char c;
cin >> c;
if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u')
cout << "vowel";
}else
{
cout << "consonant";
} | a.cc:5:10: fatal error: allocators: No such file or directory
5 | #include <allocators>
| ^~~~~~~~~~~~
compilation terminated.
|
s809931920 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if( s==a || s==b || s==c || s==d || s==e){
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( s==a || s==b || s==c || s==d || s==e){
| ^
a.cc:8:20: error: 'b' was not declared in this scope
8 | if( s==a || s==b || s==c || s==d || s==e){
| ^
a.cc:8:28: error: 'c' was not declared in this scope
8 | if( s==a || s==b || s==c || s==d || s==e){
| ^
a.cc:8:36: error: 'd' was not declared in this scope
8 | if( s==a || s==b || s==c || s==d || s==e){
| ^
a.cc:8:44: error: 'e' was not declared in this scope
8 | if( s==a || s==b || s==c || s==d || s==e){
| ^
a.cc:10:13: error: 'vowel' was not declared in this scope
10 | cout << vowel << endl;
| ^~~~~
a.cc:14:17: error: 'consonant' was not declared in this scope
14 | cout << consonant << endl;
| ^~~~~~~~~
a.cc: At global scope:
a.cc:22:1: error: expected declaration before '}' token
22 | }
| ^
|
s292730156 | p03852 | C++ | #include <cstdio>
using namespace std;
int main() {
char ch;
cin >> ch;
if(ch == 'a' || ch == 'i' || ch == 'u' || ch == 'e' || ch == 'o') {
cout << "vowel" << endl;
} else {
cout << "consonant" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
6 | cin >> ch;
| ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
1 | #include <cstdio>
+++ |+#include <iostream>
2 | using namespace std;
a.cc:8:5: error: 'cout' was not declared in this scope
8 | cout << "vowel" << endl;
| ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:24: error: 'endl' was not declared in this scope
8 | cout << "vowel" << endl;
| ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
1 | #include <cstdio>
+++ |+#include <ostream>
2 | using namespace std;
a.cc:10:5: error: 'cout' was not declared in this scope
10 | cout << "consonant" << endl;
| ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:28: error: 'endl' was not declared in this scope
10 | cout << "consonant" << endl;
| ^~~~
a.cc:10:28: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
|
s478420172 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char c;
cin >> c;
switch(c){
case 'a':
case 'e':
case 'i':
case 'o':
case 'u':
cout << "vowel" << endl;
break;
default;
cout << "consonant" << endl;
break;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:15:12: error: expected ':' before ';' token
15 | default;
| ^
| :
|
s436687167 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char c;
cin >> c;
switch(c){
case 'a':
case 'e':
case 'i':
case 'o':
case 'u':
cout << "vowel" << endl;
break;
default;
cout << "consonant" << endl;
break;
}
return 0
}
| a.cc: In function 'int main()':
a.cc:15:12: error: expected ':' before ';' token
15 | default;
| ^
| :
a.cc:19:11: error: expected ';' before '}' token
19 | return 0
| ^
| ;
20 | }
| ~
|
s526485458 | p03852 | C | #include<stdio.h>
int main()
{
char c;
scanf_s("%c", &c);
if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o')
printf("vome1");
else
printf("consonant");
return 0;
} | main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
5 | scanf_s("%c", &c);
| ^~~~~~~
| scanf
|
s205071447 | p03852 | C | #include<stdio.h>
int main()
{
char c;
scanf_s("%c", &c);
if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o')
printf("vome1");
else
printf("consonant");
return 0;
} | main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
5 | scanf_s("%c", &c);
| ^~~~~~~
| scanf
|
s364589916 | p03852 | C | #include<stdio.h>
int main()
{
char c;
scanf_s("%c", &c);
if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o')
printf("vome1");
else
printf("consonant");
return 0;
} | main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
5 | scanf_s("%c", &c);
| ^~~~~~~
| scanf
|
s147981401 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
string c;
cin >> c;
if (c = "a" || c = "e" || c = "i" || c = "o" || c = "u"){
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:15: error: no match for 'operator||' (operand types are 'const char [2]' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
8 | if (c = "a" || c = "e" || c = "i" || c = "o" || c = "u"){
| ~~~ ^~ ~
| | |
| | std::string {aka std::__cxx11::basic_string<char>}
| const char [2]
a.cc:8:15: note: candidate: 'operator||(bool, bool)' (built-in)
8 | if (c = "a" || c = "e" || c = "i" || c = "o" || c = "u"){
| ~~~~^~~~
a.cc:8:15: note: no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
In file included from /usr/include/c++/14/valarray:605,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166,
from a.cc:1:
/usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const _Expr<_Dom2, typename _Dom2::value_type>&)'
416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed:
a.cc:8:18: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'const char [2]'
8 | if (c = "a" || c = "e" || c = "i" || c = "o" || c = "u"){
| ^
/usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)'
416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed:
a.cc:8:18: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'const char [2]'
8 | if (c = "a" || c = "e" || c = "i" || c = "o" || c = "u"){
| ^
/usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const typename _Dom::value_type&, const _Expr<_Dom1, typename _Dom1::value_type>&)'
416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed:
a.cc:8:18: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
8 | if (c = "a" || c = "e" || c = "i" || c = "o" || c = "u"){
| ^
/usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_ValArray, _Dom, typename _Dom::value_type>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const valarray<typename _Dom::value_type>&)'
416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed:
a.cc:8:18: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'const char [2]'
8 | if (c = "a" || c = "e" || c = "i" || c = "o" || c = "u"){
| ^
/usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_ValArray, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const valarray<typename _Dom::value_type>&, const _Expr<_Dom1, typename _Dom1::value_type>&)'
416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed:
a.cc:8:18: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
8 | if (c = "a" || c = "e" || c = "i" || c = "o" || c = "u"){
| ^
/usr/include/c++/14/valarray:1207:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_ValArray, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__logical_or, _Tp>::result_type> std::operator||(const valarray<_Tp>&, const valarray<_Tp>&)'
1207 | _DEFINE_BINARY_OPERATOR(||, __logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/valarray:1207:1: note: template argument deduction/substitution failed:
a.cc:8:18: note: mismatched types 'const std::valarray<_Tp>' and 'const char [2]'
8 | if (c = "a" || c = "e" || c = "i" || c = "o" || c = "u"){
| ^
/usr/include/c++/14/valarray:1207:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_ValArray, std::_Constant, _Tp, _Tp>, typename std::__fun<std::__logical_or, _Tp>::result_type> std::operator||(const valarray<_Tp>&, const typename valarray<_Tp>::value_type&)'
1207 | _DEFINE_BINARY_OPERATOR(||, __logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/valarray:1207:1: note: template argument deduction/substitution failed:
a.cc:8:18: note: mismatched types 'const std::valarray<_Tp>' and 'const char [2]'
8 | if (c = "a" || c = "e" || c = "i" || c = "o" || c = "u"){
| ^
/usr/include/c++/14/valarray:1207:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Constant, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__logical_or, _Tp>::result_type> std::operator||(const typename valarray<_Tp>::value_type&, const valarray<_Tp>&)'
1207 | _DEFINE_BINARY_OPERATOR(||, __logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/valarray:1207:1: note: template argument deduction/substitution failed:
a.cc:8:18: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::valarray<_Tp>'
8 | if (c = "a" || c = "e" || c = "i" || c = "o" || c = "u"){
| ^
a.cc:8:26: error: no match for 'operator||' (operand types are 'const char [2]' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
8 | if (c = "a" || c = "e" || c = "i" || c = "o" || c = "u"){
| ~~~ ^~ ~
| | |
| | std::string {aka std::__cxx11::basic_string<char>}
| const char [2]
a.cc:8:26: note: candidate: 'operator||(bool, bool)' (built-in)
8 | if (c = "a" || c = "e" || c = "i" || c = "o" || c = "u"){
| ~~~~^~~~
a.cc:8:26: note: no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
/usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const _Expr<_Dom2, typename _Dom2::value_type>&)'
416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed:
a.cc:8:29: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'const char [2]'
8 | if (c = "a" || c = "e" || c = "i" || c = "o" || c = "u"){
| ^
/usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const _Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)'
416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed:
a.cc:8:29: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'const char [2]'
8 | if (c = "a" || c = "e" || c = "i" || c = "o" || c = "u"){
| ^
/usr/include/c++/14/bits/valarray_after.h:416:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__logical_or, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__logical_or, typename _Dom1::value_type>::result_type> std::operator||(const typename _Dom::value_type&, const _Expr<_Dom1, typename _Dom1::value_type>&)'
416 | _DEFINE_EXPR_BINARY_OPERATOR(||, struct std::__logical_or)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:416:5: note: template argument deduction/substitution failed:
a.cc:8:29: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
8 | if (c = "a" || c = "e" || c = "i" || c = "o" || c = "u"){
| ^
/usr/include/c++/ |
s939626927 | 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:14:5: error: expected '}' before 'else'
14 | else{
| ^~~~
a.cc:13:1: note: to match this '{'
13 | {
| ^
a.cc:14:5: error: expected '}' before 'else'
14 | else{
| ^~~~
a.cc:11:47: note: to match this '{'
11 | if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){
| ^
|
s517539466 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string x;
cin >> x;
string v = a, i, u, e, o;
if ( x=v) {
cout << "vowel" << endl;
}
else {
cout << “consonant” << endl;
}
} | a.cc:12:9: error: extended character “ is not valid in an identifier
12 | cout << “consonant” << endl;
| ^
a.cc:12:9: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:7:14: error: 'a' was not declared in this scope
7 | string v = a, i, u, e, o;
| ^
a.cc:8:9: error: could not convert 'x.std::__cxx11::basic_string<char>::operator=(v)' from 'std::__cxx11::basic_string<char>' to 'bool'
8 | if ( x=v) {
| ~^~
| |
| std::__cxx11::basic_string<char>
a.cc:12:9: error: '\U0000201cconsonant\U0000201d' was not declared in this scope
12 | cout << “consonant” << endl;
| ^~~~~~~~~~~
|
s099539712 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if( c == 'a' ){
cout << "vowel";}
else{
cout << "consonant";}
}
if( c == 'i' ){
cout << "vowel";}
else{
cout << "consonant";}
}
if( c == 'u' ){
cout << "vowel";}
else{
cout << "consonant";}
}
if( c == 'e' ){
cout << "vowel";}
else{
cout << "consonant";}
}
if( c == 'o' ){
cout << "vowel";}
else{
cout << "consonant";}
} | a.cc:12:1: error: expected unqualified-id before 'if'
12 | if( c == 'i' ){
| ^~
a.cc:14:1: error: expected unqualified-id before 'else'
14 | else{
| ^~~~
a.cc:16:1: error: expected declaration before '}' token
16 | }
| ^
a.cc:17:1: error: expected unqualified-id before 'if'
17 | if( c == 'u' ){
| ^~
a.cc:19:1: error: expected unqualified-id before 'else'
19 | else{
| ^~~~
a.cc:21:1: error: expected declaration before '}' token
21 | }
| ^
a.cc:22:1: error: expected unqualified-id before 'if'
22 | if( c == 'e' ){
| ^~
a.cc:24:1: error: expected unqualified-id before 'else'
24 | else{
| ^~~~
a.cc:26:1: error: expected declaration before '}' token
26 | }
| ^
a.cc:27:1: error: expected unqualified-id before 'if'
27 | if( c == 'o' ){
| ^~
a.cc:29:1: error: expected unqualified-id before 'else'
29 | else{
| ^~~~
a.cc:31:1: error: expected declaration before '}' token
31 | }
| ^
|
s778765458 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char 'a' < c < 'z';
cin >> c;
if( c == 'a' ){
cout << "vowel";}
if( c == 'i' ){
cout << "vowel";}
if( c == 'u' ){
cout << "vowel";}
if( c == 'e' ){
cout << "vowel";}
if( c == 'o' ){
cout << "vowel";}
else{
cout << "consonant";}
} | a.cc: In function 'int main()':
a.cc:5:6: error: expected unqualified-id before 'a'
5 | char 'a' < c < 'z';
| ^~~
a.cc:6:8: error: 'c' was not declared in this scope
6 | cin >> c;
| ^
|
s505636447 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string x;
cin >> x;
string y = a, i, u, e, o;
if (x == y){
cout << "vowel” << endl;
}
else{
cout << “consonant” << endl;
}
}
| a.cc:10:9: warning: missing terminating " character
10 | cout << "vowel” << endl;
| ^
a.cc:10:9: error: missing terminating " character
10 | cout << "vowel” << endl;
| ^~~~~~~~~~~~~~~~
a.cc:13:13: error: extended character “ is not valid in an identifier
13 | cout << “consonant” << endl;
| ^
a.cc:13:13: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:7:13: error: 'a' was not declared in this scope
7 | string y = a, i, u, e, o;
| ^
a.cc:11:3: error: expected primary-expression before '}' token
11 | }
| ^
a.cc:13:13: error: '\U0000201cconsonant\U0000201d' was not declared in this scope
13 | cout << “consonant” << endl;
| ^~~~~~~~~~~
|
s342813080 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string x;
cin >> x;
if (x == “a”){
cout << "vowel” << endl;
}
if (x==”i”){
cout << "vowel” << endl;
}
if (x==”u”){
cout << "vowel” << endl;
}
if (x==”e”){
cout << "vowel” << endl;
}
if (x== “o”) {
cout << "vowel” << endl;
}
else{
cout << “consonant” << endl;
}
}
| a.cc:8:12: error: extended character “ is not valid in an identifier
8 | if (x == “a”){
| ^
a.cc:8:12: error: extended character ” is not valid in an identifier
a.cc:9:9: warning: missing terminating " character
9 | cout << "vowel” << endl;
| ^
a.cc:9:9: error: missing terminating " character
9 | cout << "vowel” << endl;
| ^~~~~~~~~~~~~~~~
a.cc:11:8: error: extended character ” is not valid in an identifier
11 | if (x==”i”){
| ^
a.cc:11:8: error: extended character ” is not valid in an identifier
a.cc:12:9: warning: missing terminating " character
12 | cout << "vowel” << endl;
| ^
a.cc:12:9: error: missing terminating " character
12 | cout << "vowel” << endl;
| ^~~~~~~~~~~~~~~~
a.cc:14:8: error: extended character ” is not valid in an identifier
14 | if (x==”u”){
| ^
a.cc:14:8: error: extended character ” is not valid in an identifier
a.cc:15:9: warning: missing terminating " character
15 | cout << "vowel” << endl;
| ^
a.cc:15:9: error: missing terminating " character
15 | cout << "vowel” << endl;
| ^~~~~~~~~~~~~~~~
a.cc:17:8: error: extended character ” is not valid in an identifier
17 | if (x==”e”){
| ^
a.cc:17:8: error: extended character ” is not valid in an identifier
a.cc:18:9: warning: missing terminating " character
18 | cout << "vowel” << endl;
| ^
a.cc:18:9: error: missing terminating " character
18 | cout << "vowel” << endl;
| ^~~~~~~~~~~~~~~~
a.cc:20:9: error: extended character “ is not valid in an identifier
20 | if (x== “o”) {
| ^
a.cc:20:9: error: extended character ” is not valid in an identifier
a.cc:21:13: warning: missing terminating " character
21 | cout << "vowel” << endl;
| ^
a.cc:21:13: error: missing terminating " character
21 | cout << "vowel” << endl;
| ^~~~~~~~~~~~~~~~
a.cc:24:13: error: extended character “ is not valid in an identifier
24 | cout << “consonant” << endl;
| ^
a.cc:24:13: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:8:12: error: '\U0000201ca\U0000201d' was not declared in this scope
8 | if (x == “a”){
| ^~~
a.cc:10:3: error: expected primary-expression before '}' token
10 | }
| ^
a.cc:11:8: error: '\U0000201di\U0000201d' was not declared in this scope
11 | if (x==”i”){
| ^~~
a.cc:13:3: error: expected primary-expression before '}' token
13 | }
| ^
a.cc:14:8: error: '\U0000201du\U0000201d' was not declared in this scope
14 | if (x==”u”){
| ^~~
a.cc:16:3: error: expected primary-expression before '}' token
16 | }
| ^
a.cc:17:8: error: '\U0000201de\U0000201d' was not declared in this scope
17 | if (x==”e”){
| ^~~
a.cc:19:3: error: expected primary-expression before '}' token
19 | }
| ^
a.cc:20:9: error: '\U0000201co\U0000201d' was not declared in this scope
20 | if (x== “o”) {
| ^~~
a.cc:22:3: error: expected primary-expression before '}' token
22 | }
| ^
a.cc:24:13: error: '\U0000201cconsonant\U0000201d' was not declared in this scope
24 | cout << “consonant” << endl;
| ^~~~~~~~~~~
|
s993539629 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
char c;
cin >> c;
if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == u)
{
cout << "vowel" << endl;
}
else
{
cout << "cosonant" << endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:62: error: 'u' was not declared in this scope
8 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == u)
| ^
|
s246129431 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string x;
cin >> x;
if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
cout << "vowel” << endl;
}
else{
count << “consonant” << endl;
}
}
| a.cc:8:12: error: extended character “ is not valid in an identifier
8 | if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
| ^
a.cc:8:12: error: extended character ” is not valid in an identifier
a.cc:8:22: error: extended character ” is not valid in an identifier
8 | if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
| ^
a.cc:8:22: error: extended character ” is not valid in an identifier
a.cc:8:32: error: extended character ” is not valid in an identifier
8 | if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
| ^
a.cc:8:32: error: extended character ” is not valid in an identifier
a.cc:8:42: error: extended character ” is not valid in an identifier
8 | if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
| ^
a.cc:8:42: error: extended character ” is not valid in an identifier
a.cc:8:52: error: extended character “ is not valid in an identifier
8 | if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
| ^
a.cc:8:52: error: extended character ” is not valid in an identifier
a.cc:9:13: warning: missing terminating " character
9 | cout << "vowel” << endl;
| ^
a.cc:9:13: error: missing terminating " character
9 | cout << "vowel” << endl;
| ^~~~~~~~~~~~~~~~
a.cc:12:14: error: extended character “ is not valid in an identifier
12 | count << “consonant” << endl;
| ^
a.cc:12:14: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:8:12: error: '\U0000201ca\U0000201d' was not declared in this scope
8 | if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
| ^~~
a.cc:8:22: error: '\U0000201di\U0000201d' was not declared in this scope
8 | if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
| ^~~
a.cc:8:32: error: '\U0000201du\U0000201d' was not declared in this scope
8 | if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
| ^~~
a.cc:8:42: error: '\U0000201de\U0000201d' was not declared in this scope
8 | if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
| ^~~
a.cc:8:52: error: '\U0000201co\U0000201d' was not declared in this scope
8 | if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
| ^~~
a.cc:10:3: error: expected primary-expression before '}' token
10 | }
| ^
a.cc:12:14: error: '\U0000201cconsonant\U0000201d' was not declared in this scope
12 | count << “consonant” << endl;
| ^~~~~~~~~~~
|
s944371079 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
cout << "vowel” << endl;
}
else{
count << “consonant” << endl;
}
}
| a.cc:8:12: error: extended character “ is not valid in an identifier
8 | if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
| ^
a.cc:8:12: error: extended character ” is not valid in an identifier
a.cc:8:22: error: extended character ” is not valid in an identifier
8 | if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
| ^
a.cc:8:22: error: extended character ” is not valid in an identifier
a.cc:8:32: error: extended character ” is not valid in an identifier
8 | if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
| ^
a.cc:8:32: error: extended character ” is not valid in an identifier
a.cc:8:42: error: extended character ” is not valid in an identifier
8 | if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
| ^
a.cc:8:42: error: extended character ” is not valid in an identifier
a.cc:8:52: error: extended character “ is not valid in an identifier
8 | if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
| ^
a.cc:8:52: error: extended character ” is not valid in an identifier
a.cc:9:13: warning: missing terminating " character
9 | cout << "vowel” << endl;
| ^
a.cc:9:13: error: missing terminating " character
9 | cout << "vowel” << endl;
| ^~~~~~~~~~~~~~~~
a.cc:12:14: error: extended character “ is not valid in an identifier
12 | count << “consonant” << endl;
| ^
a.cc:12:14: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:8:12: error: '\U0000201ca\U0000201d' was not declared in this scope
8 | if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
| ^~~
a.cc:8:22: error: '\U0000201di\U0000201d' was not declared in this scope
8 | if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
| ^~~
a.cc:8:32: error: '\U0000201du\U0000201d' was not declared in this scope
8 | if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
| ^~~
a.cc:8:42: error: '\U0000201de\U0000201d' was not declared in this scope
8 | if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
| ^~~
a.cc:8:52: error: '\U0000201co\U0000201d' was not declared in this scope
8 | if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
| ^~~
a.cc:10:3: error: expected primary-expression before '}' token
10 | }
| ^
a.cc:12:14: error: '\U0000201cconsonant\U0000201d' was not declared in this scope
12 | count << “consonant” << endl;
| ^~~~~~~~~~~
|
s484026627 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
if (x == “a” || ”i” || ”u” || ”e” || “o”) {
cout << "vowel” << endl;
}
else{
count << “consonant” << endl;
}
}
| a.cc:8:12: error: extended character “ is not valid in an identifier
8 | if (x == “a” || ”i” || ”u” || ”e” || “o”) {
| ^
a.cc:8:12: error: extended character ” is not valid in an identifier
a.cc:8:19: error: extended character ” is not valid in an identifier
8 | if (x == “a” || ”i” || ”u” || ”e” || “o”) {
| ^
a.cc:8:19: error: extended character ” is not valid in an identifier
a.cc:8:26: error: extended character ” is not valid in an identifier
8 | if (x == “a” || ”i” || ”u” || ”e” || “o”) {
| ^
a.cc:8:26: error: extended character ” is not valid in an identifier
a.cc:8:33: error: extended character ” is not valid in an identifier
8 | if (x == “a” || ”i” || ”u” || ”e” || “o”) {
| ^
a.cc:8:33: error: extended character ” is not valid in an identifier
a.cc:8:40: error: extended character “ is not valid in an identifier
8 | if (x == “a” || ”i” || ”u” || ”e” || “o”) {
| ^
a.cc:8:40: error: extended character ” is not valid in an identifier
a.cc:9:13: warning: missing terminating " character
9 | cout << "vowel” << endl;
| ^
a.cc:9:13: error: missing terminating " character
9 | cout << "vowel” << endl;
| ^~~~~~~~~~~~~~~~
a.cc:12:14: error: extended character “ is not valid in an identifier
12 | count << “consonant” << endl;
| ^
a.cc:12:14: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:8:12: error: '\U0000201ca\U0000201d' was not declared in this scope
8 | if (x == “a” || ”i” || ”u” || ”e” || “o”) {
| ^~~
a.cc:8:19: error: '\U0000201di\U0000201d' was not declared in this scope
8 | if (x == “a” || ”i” || ”u” || ”e” || “o”) {
| ^~~
a.cc:8:26: error: '\U0000201du\U0000201d' was not declared in this scope
8 | if (x == “a” || ”i” || ”u” || ”e” || “o”) {
| ^~~
a.cc:8:33: error: '\U0000201de\U0000201d' was not declared in this scope
8 | if (x == “a” || ”i” || ”u” || ”e” || “o”) {
| ^~~
a.cc:8:40: error: '\U0000201co\U0000201d' was not declared in this scope
8 | if (x == “a” || ”i” || ”u” || ”e” || “o”) {
| ^~~
a.cc:10:3: error: expected primary-expression before '}' token
10 | }
| ^
a.cc:12:14: error: '\U0000201cconsonant\U0000201d' was not declared in this scope
12 | count << “consonant” << endl;
| ^~~~~~~~~~~
|
s903703280 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string a,b;
cin << a << b;
cout << "A" << b.at(0) << "C" << endl;
} | a.cc: In function 'int main()':
a.cc:6:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
6 | cin << a << b;
| ~~~ ^~ ~
| | |
| | std::string {aka std::__cxx11::basic_string<char>}
| std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1715:5: note: candidate: 'template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const sub_match<_Bi_iter>&)'
1715 | operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1715:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << a << b;
| ^
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 << a << b;
| ^~~
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 << a << b;
| ^
/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 << a << b;
| ^
/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 << a << b;
| ^
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 << a << b;
| ^
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 << a << b;
| ^
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 << a << b;
| ^
/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 << a << b;
| ^
/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 << a << b;
| ^
/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 << a << b;
| ^
/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 << a << b;
| ^
/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 << a << b;
| ^
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 << a << b;
| ^
/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 << a << b;
| ^
/usr/include/c++/14/ostream:684:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)'
684 | operator<<(basic_ostream<char, _T |
s800795710 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
char c;
cin >> c;
if(c == "a"||c == "i"||c == "u"||c == "e"||c == "o"){
cout << "vowel" << endl;
}
else cout << "consonant" << endl;
} | a.cc: In function 'int main()':
a.cc:7:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c == "a"||c == "i"||c == "u"||c == "e"||c == "o"){
| ~~^~~~~~
a.cc:7:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c == "a"||c == "i"||c == "u"||c == "e"||c == "o"){
| ~~^~~~~~
a.cc:7:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c == "a"||c == "i"||c == "u"||c == "e"||c == "o"){
| ~~^~~~~~
a.cc:7:38: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c == "a"||c == "i"||c == "u"||c == "e"||c == "o"){
| ~~^~~~~~
a.cc:7:48: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c == "a"||c == "i"||c == "u"||c == "e"||c == "o"){
| ~~^~~~~~
|
s416781799 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char a;
cin >> a;
if (a == 'a' || a == 'e' || a == 'i' || a == 'o' || a == 'u') {
cout << "vowel" << endl;
else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:9:3: error: expected '}' before 'else'
9 | else {
| ^~~~
a.cc:7:65: note: to match this '{'
7 | if (a == 'a' || a == 'e' || a == 'i' || a == 'o' || a == 'u') {
| ^
|
s803666456 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char a;
cin >> a;
if (a == 'a' || a == 'e' || a == 'i' || a == 'o' || a == 'u') {
cout << "vowel" << endl;
eise {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:9:3: error: 'eise' was not declared in this scope
9 | eise {
| ^~~~
a.cc:12:2: error: expected '}' at end of input
12 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s147963856 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
void main() {
char a;
cin >> a;
if (a == 'a' || a == 'e' || a == 'i' || a == 'o' || a == 'u') {
cout << "vowel" << endl;
eise {
cout << "consonant" << endl;
}
}
| a.cc:4:1: error: '::main' must return 'int'
4 | void main() {
| ^~~~
a.cc: In function 'int main()':
a.cc:9:3: error: 'eise' was not declared in this scope
9 | eise {
| ^~~~
a.cc:12:2: error: expected '}' at end of input
12 | }
| ^
a.cc:4:13: note: to match this '{'
4 | void main() {
| ^
|
s783255135 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int c ;
cin >> c;
if(c =='a'){
cout<<"vowel"<<endl;
}else if(c == 'e'){
cout<<"vowel"<<endl;
}else if(c == 'i'){
cout<<"vowel"<<endl;
}else if(c == 'o'){
cout<<"vowel"<<endl;
}else if(c == 'u')[
cout<<"vowel"<<endl;
}else{
cout<<"consonant"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:17:1: warning: capture of variable 'std::cout' with non-automatic storage duration
17 | cout<<"vowel"<<endl;
| ^~~~
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:63:18: note: 'std::ostream std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:17:5: error: expected ',' before '<<' token
17 | cout<<"vowel"<<endl;
| ^~
| ,
a.cc:17:5: error: expected identifier before '<<' token
17 | cout<<"vowel"<<endl;
| ^~
a.cc:17:20: error: expected ']' before ';' token
17 | cout<<"vowel"<<endl;
| ^
| ]
a.cc: In lambda function:
a.cc:17:20: error: expected '{' before ';' token
a.cc: At global scope:
a.cc:18:2: error: expected unqualified-id before 'else'
18 | }else{
| ^~~~
a.cc:21:1: error: expected declaration before '}' token
21 | }
| ^
|
s620945702 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int c ;
cin >> c;
if(c =='a'){
cout<<"vowel"<<endl;
}else if(c == 'e'){
cout<<"vowel"<<endl;
}else if(c == 'i'){
cout<<"vowel"<<endl;
}else if(c== 'o'){
cout"vowel"<<endl;
}else if(c=='u')[
cout<<"vowel"<<endl;
}else{
cout<<"consonant"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:15:5: error: expected ';' before string constant
15 | cout"vowel"<<endl;
| ^~~~~~~
| ;
a.cc:17:1: warning: capture of variable 'std::cout' with non-automatic storage duration
17 | cout<<"vowel"<<endl;
| ^~~~
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:63:18: note: 'std::ostream std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:17:5: error: expected ',' before '<<' token
17 | cout<<"vowel"<<endl;
| ^~
| ,
a.cc:17:5: error: expected identifier before '<<' token
17 | cout<<"vowel"<<endl;
| ^~
a.cc:17:20: error: expected ']' before ';' token
17 | cout<<"vowel"<<endl;
| ^
| ]
a.cc: In lambda function:
a.cc:17:20: error: expected '{' before ';' token
a.cc: At global scope:
a.cc:18:2: error: expected unqualified-id before 'else'
18 | }else{
| ^~~~
a.cc:21:1: error: expected declaration before '}' token
21 | }
| ^
|
s993528895 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int c ;
cin >> c;
if(c =='a'){
cout<<"vowel"<<endl;
}else if(c == 'e'){
cout<<"vowel<<endl;
}else if(c == 'i'){
cout<<"vowel"<<endl;
}else if(c== 'o'){
cout"vowel"<<endl;
}else if(c=='u')[
cout<<vowel<<endl;
}else{
cout<<"consonant"<<endl;
}
} | a.cc:11:7: warning: missing terminating " character
11 | cout<<"vowel<<endl;
| ^
a.cc:11:7: error: missing terminating " character
11 | cout<<"vowel<<endl;
| ^~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:12:1: error: expected primary-expression before '}' token
12 | }else if(c == 'i'){
| ^
a.cc:15:5: error: expected ';' before string constant
15 | cout"vowel"<<endl;
| ^~~~~~~
| ;
a.cc:17:1: warning: capture of variable 'std::cout' with non-automatic storage duration
17 | cout<<vowel<<endl;
| ^~~~
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:63:18: note: 'std::ostream std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:17:5: error: expected ',' before '<<' token
17 | cout<<vowel<<endl;
| ^~
| ,
a.cc:17:5: error: expected identifier before '<<' token
17 | cout<<vowel<<endl;
| ^~
a.cc:17:18: error: expected ']' before ';' token
17 | cout<<vowel<<endl;
| ^
| ]
a.cc: In lambda function:
a.cc:17:18: error: expected '{' before ';' token
a.cc: At global scope:
a.cc:18:2: error: expected unqualified-id before 'else'
18 | }else{
| ^~~~
a.cc:21:1: error: expected declaration before '}' token
21 | }
| ^
|
s646476608 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int 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:9:7: error: 'vowel' was not declared in this scope
9 | cout<<vowel<<endl;
| ^~~~~
a.cc:11:7: error: 'consonant' was not declared in this scope
11 | cout<<consonant<<endl;
| ^~~~~~~~~
|
s603962810 | p03852 | C++ | #include<stdio.h>
int main(void)
{
char c;
scanf("%c",&c);
if (c== 'a') {
printf("vowel\n");
}
else if(c== 'i') {
printf("vowel\n");
}
else if(c== 'u') {
printf("vowel\n");
}
else if(c== 'e') {
printf("vowel\n");
}
else if(c== 'o') {
printf("vowel\n");
}
else {
printf("consonant\n");
}
return 0;
} | a.cc:8:23: error: extended character is not valid in an identifier
8 | if (c== 'a') {
| ^
a.cc: In function 'int main()':
a.cc:8:23: error: '\U00003000' was not declared in this scope
8 | if (c== 'a') {
| ^~
|
s237762428 | p03852 | C++ | #include<stdio.h>
int main(void)
{
char c;
scanf("%c",&c);
if(c==a) {
printf("vowel\n");
}
else if(c==i) {
printf("vowel\n");
}
else if(c==u) {
printf("vowel\n");
}
else if(c==e) {
printf("vowel\n");
}
else if(c==o) {
printf("vowel\n");
}
else {
printf("consonant\n");
}
return 0;
}
| a.cc:8:19: error: extended character is not valid in an identifier
8 | if(c==a) {
| ^
a.cc: In function 'int main()':
a.cc:8:15: error: 'a' was not declared in this scope
8 | if(c==a) {
| ^
a.cc:8:19: error: '\U00003000' was not declared in this scope
8 | if(c==a) {
| ^~
a.cc:11:20: error: 'i' was not declared in this scope
11 | else if(c==i) {
| ^
a.cc:14:20: error: 'u' was not declared in this scope
14 | else if(c==u) {
| ^
a.cc:17:20: error: 'e' was not declared in this scope
17 | else if(c==e) {
| ^
a.cc:20:20: error: 'o' was not declared in this scope
20 | else if(c==o) {
| ^
|
s561854244 | p03852 | C++ | #include<stdio.h>
int main(void)
{
char c;
scanf("%c",&c);
if(c=='a') {
printf("vowel\n");
}
else if(c=='i') {
printf("vowel\n");
}
else if(c=='u') {
printf("vowel\n");
}
else if(c=='e') {
printf("vowel\n");
}
else if(c=='o') {
printf("vowel\n");
}
else {
printf("consonant\n");
}
return 0;
}
| a.cc:8:21: error: extended character is not valid in an identifier
8 | if(c=='a') {
| ^
a.cc: In function 'int main()':
a.cc:8:21: error: '\U00003000' was not declared in this scope
8 | if(c=='a') {
| ^~
|
s221659597 | p03852 | C++ | #include<stdio.h>
int main(void)
{
char s;
scanf("%c",&s);
if(s=='a') {
printf("vowel\n");
}
else if(s=='i') {
printf("vowel\n");
}
else if(s=='u') {
printf("vowel\n");
}
else if(s=='e') {
printf("vowel\n");
}
else if(s=='o') {
printf("vowel\n");
}
else {
printf("consonant\n");
}
return 0;
}
| a.cc:8:21: error: extended character is not valid in an identifier
8 | if(s=='a') {
| ^
a.cc: In function 'int main()':
a.cc:8:21: error: '\U00003000' was not declared in this scope
8 | if(s=='a') {
| ^~
|
s648726159 | p03852 | C++ | #include<stdio.h>
int main(void)
{
char s;
scanf("%c",&s);
if(s=='a') {
printf("vowel\n");
}
else if(s=='i') {
printf("vowel\n");
}
else if(s=='u') {
printf("vowel\n");
}
else if(s=='e') {
printf("vowel\n");
}
else if(s=='o') {
printf("vowel\n");
}
else {
printf("consonant\n");
}
return 0;
}
| a.cc:8:21: error: extended character is not valid in an identifier
8 | if(s=='a') {
| ^
a.cc: In function 'int main()':
a.cc:8:21: error: '\U00003000' was not declared in this scope
8 | if(s=='a') {
| ^~
|
s319444450 | p03852 | C++ | #include<stdio.h>
int main(void)
{
char s,a,i,u,e,o;
scanf("%c",&s);
if(s=='a') {
printf("vowel\n");
}
else if(s=='i') {
printf("vowel\n");
}
else if(s=='u') {
printf("vowel\n");
}
else if(s=='e') {
printf("vowel\n");
}
else if(s=='o') {
printf("vowel\n");
}
else {
printf("consonant\n");
}
return 0;
}
| a.cc:8:21: error: extended character is not valid in an identifier
8 | if(s=='a') {
| ^
a.cc: In function 'int main()':
a.cc:8:21: error: '\U00003000' was not declared in this scope
8 | if(s=='a') {
| ^~
|
s523445312 | p03852 | C++ | #include<stdio.h>
int main(void)
{
char s,a,i,u,e,o;
scanf("%c",&s);
if(s==a) {
printf("vowel\n");
}
else if(s==i) {
printf("vowel\n");
}
else if(s==u) {
printf("vowel\n");
}
else if(s==e) {
printf("vowel\n");
}
else if(s==o) {
printf("vowel\n");
}
else {
printf("consonant\n");
}
return 0;
}
| a.cc:8:19: error: extended character is not valid in an identifier
8 | if(s==a) {
| ^
a.cc: In function 'int main()':
a.cc:8:19: error: '\U00003000' was not declared in this scope
8 | if(s==a) {
| ^~
|
s454458344 | p03852 | C++ | #include<stdio.h>
int main(void)
{
char s,a,i,u,e,o;
scanf("%c",s);
if(s==a) {
printf("vowel\n");
}
else if(s==i) {
printf("vowel\n");
}
else if(s==u) {
printf("vowel\n");
}
else if(s==e) {
printf("vowel\n");
}
else if(s==o) {
printf("vowel\n");
}
else {
printf("consonant\n");
}
return 0;
}
| a.cc:8:19: error: extended character is not valid in an identifier
8 | if(s==a) {
| ^
a.cc: In function 'int main()':
a.cc:8:19: error: '\U00003000' was not declared in this scope
8 | if(s==a) {
| ^~
|
s859956968 | p03852 | C++ | #include<stdio.h>
int main(void)
{
char s,a,i,u,e,o;
scanf("%c",s);
if(s=='a') {
printf("vowel\n");
}
else if(s=='i') {
printf("vowel\n");
}
else if(s=='u') {
printf("vowel\n");
}
else if(s=='e') {
printf("vowel\n");
}
else if(s=='o') {
printf("vowel\n");
}
else {
printf("consonant\n");
}
return 0;
}
| a.cc:8:21: error: extended character is not valid in an identifier
8 | if(s=='a') {
| ^
a.cc: In function 'int main()':
a.cc:8:21: error: '\U00003000' was not declared in this scope
8 | if(s=='a') {
| ^~
|
s253214255 | p03852 | C++ | #include<stdio.h>
int main(void)
{
char s,a,i,u,e,o;
scanf("%c",s);
if(s==a) {
printf("vowel\n");
}
else if(s=='i') {
printf("vowel\n");
}
else if(s=='u') {
printf("vowel\n");
}
else if(s=='e') {
printf("vowel\n");
}
else if(s=='o') {
printf("vowel\n");
}
else {
printf("consonant\n");
}
return 0;
}
| a.cc:8:19: error: extended character is not valid in an identifier
8 | if(s==a) {
| ^
a.cc: In function 'int main()':
a.cc:8:19: error: '\U00003000' was not declared in this scope
8 | if(s==a) {
| ^~
|
s404673006 | p03852 | C++ | #include <iostream>
#include <algorithm>
#include <vector>
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:14:45: error: expected '}' at end of input
14 | cout << "consonant" << endl;
| ^
a.cc:8:1: note: to match this '{'
8 | {
| ^
|
s776084174 | 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:7:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c == "a" || c == "i" || c == "u" || c == "e" || c == "o")
| ~~^~~~~~
a.cc:7:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c == "a" || c == "i" || c == "u" || c == "e" || c == "o")
| ~~^~~~~~
a.cc:7:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c == "a" || c == "i" || c == "u" || c == "e" || c == "o")
| ~~^~~~~~
a.cc:7:46: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c == "a" || c == "i" || c == "u" || c == "e" || c == "o")
| ~~^~~~~~
a.cc:7:58: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c == "a" || c == "i" || c == "u" || c == "e" || c == "o")
| ~~^~~~~~
|
s823861333 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
char c;
cin >> c;
if (c == 'a' || c == 'b')
cout << vowel << endl;
if (c == 'c' || c == 'd')
cout << vowel << endl;
if (c == 'e')
cout << vowel << endl;
else {cout << consonant << endl;;}
}
| a.cc: In function 'int main()':
a.cc:8:9: error: 'vowel' was not declared in this scope
8 | cout << vowel << endl;
| ^~~~~
a.cc:10:10: error: 'vowel' was not declared in this scope
10 | cout << vowel << endl;
| ^~~~~
a.cc:12:10: error: 'vowel' was not declared in this scope
12 | cout << vowel << endl;
| ^~~~~
a.cc:13:15: error: 'consonant' was not declared in this scope
13 | else {cout << consonant << endl;;}
| ^~~~~~~~~
|
s339269033 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
int main(){
string a;
cin>>a;
if(a=='a'||a=='i'){
if(a=='u'||a=='e'||a=='o'){
cout<<"vowel"<<endl;
} }else{
cout<<"consonant"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:8:7: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
8 | if(a=='a'||a=='i'){
| ~^~~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if(a=='a'||a=='i'){
| ^~~
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if(a=='a'||a=='i'){
| ^~~
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if(a=='a'||a=='i'){
| ^~~
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if(a=='a'||a=='i'){
| ^~~
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if(a=='a'||a=='i'){
| ^~~
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if(a=='a'||a=='i'){
| ^~~
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if(a=='a'||a=='i'){
| ^~~
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
8 | if(a=='a'||a=='i'){
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
8 | if(a=='a'||a=='i'){
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | if(a=='a'||a=='i'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | if(a=='a'||a=='i'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | if(a=='a'||a=='i'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | if(a=='a'||a=='i'){
| ^~~
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
8 | if(a=='a'||a=='i'){
| ^~~
In file included from /usr/include/c++/14/string:43:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
8 | if(a=='a'||a=='i'){
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
629 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:629:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
8 | if(a=='a'||a=='i'){
| ^~~
/usr/include/c++/14/string_view:637:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::oper |
s217070796 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
int main(){
string 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:7: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
8 | if(a=='a'||a=='i'||a=='u'||a=='e'||a=='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:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if(a=='a'||a=='i'||a=='u'||a=='e'||a=='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:9: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if(a=='a'||a=='i'||a=='u'||a=='e'||a=='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:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if(a=='a'||a=='i'||a=='u'||a=='e'||a=='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:9: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if(a=='a'||a=='i'||a=='u'||a=='e'||a=='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:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if(a=='a'||a=='i'||a=='u'||a=='e'||a=='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:9: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if(a=='a'||a=='i'||a=='u'||a=='e'||a=='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:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if(a=='a'||a=='i'||a=='u'||a=='e'||a=='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:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
8 | if(a=='a'||a=='i'||a=='u'||a=='e'||a=='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:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
8 | if(a=='a'||a=='i'||a=='u'||a=='e'||a=='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:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | if(a=='a'||a=='i'||a=='u'||a=='e'||a=='o'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | if(a=='a'||a=='i'||a=='u'||a=='e'||a=='o'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | if(a=='a'||a=='i'||a=='u'||a=='e'||a=='o'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | if(a=='a'||a=='i'||a=='u'||a=='e'||a=='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:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
8 | if(a=='a'||a=='i'||a=='u'||a=='e'||a=='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:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
8 | if(a=='a'||a=='i'||a=='u'||a=='e'||a=='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,
| ^~~~~ |
s983653150 | p03852 | C++ | #include <iostream>
using namespace std;
int main(){
int c;
cin >> c;
bool flg = false;
char check[5] = {'a','i','u','e','o'};
for(int i = 0; i < 5; ++i){
if(c == check[i]){
flg = true;
break;
}
}
cout << ((flg) ? "vowel" : "consonant" << endl;
} | a.cc: In function 'int main()':
a.cc:15:42: error: invalid operands of types 'const char [10]' and '<unresolved overloaded function type>' to binary 'operator<<'
15 | cout << ((flg) ? "vowel" : "consonant" << endl;
| ~~~~~~~~~~~~^~~~~~~
a.cc:15:49: error: expected ')' before ';' token
15 | cout << ((flg) ? "vowel" : "consonant" << endl;
| ~ ^
| )
|
s289885838 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
chr c;
cin >> c;
if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
// ここにプログラムを追記
}
| a.cc: In function 'int main()':
a.cc:6:3: error: 'chr' was not declared in this scope; did you mean 'char'?
6 | chr c;
| ^~~
| char
a.cc:7:10: error: 'c' was not declared in this scope
7 | cin >> c;
| ^
|
s449791663 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
if(c == "a" || "i" || "u" || "e" || "o"){
cout << "vowel" <<endl;
}
else{
cout << "consonant" <<endl;
}
| a.cc: In function 'int main()':
a.cc:12:2: error: expected '}' at end of input
12 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s224786527 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s = "consonant";
char a;
cin >> a;
if(a=='a'||a=='e'||a=='i'||a=='o'||a=='u')
s = vowel;
cout << s << endl;
}
| a.cc: In function 'int main()':
a.cc:9:9: error: 'vowel' was not declared in this scope
9 | s = vowel;
| ^~~~~
|
s150055787 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s = "consonant";
char a;
cin >> a;
if(a=='a'||a=='e'||a=='i'||a=='o'||a=='u')
s = vowel;
cout << s << endl;
}
| a.cc: In function 'int main()':
a.cc:9:9: error: 'vowel' was not declared in this scope
9 | s = vowel;
| ^~~~~
|
s298468936 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s = "consonant"
char a;
cin >> a;
if(a=='a'||a=='e'||a=='i'||a=='o'||a=='u')
s = vowel;
cout << s << endl;
} | a.cc: In function 'int main()':
a.cc:6:3: error: expected ',' or ';' before 'char'
6 | char a;
| ^~~~
a.cc:7:10: error: 'a' was not declared in this scope
7 | cin >> a;
| ^
a.cc:9:9: error: 'vowel' was not declared in this scope
9 | s = vowel;
| ^~~~~
|
s448243606 | 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";
}else{cout<<"consonant";
}
}
| a.cc: In function 'int main()':
a.cc:7:5: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
7 | if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){
| ~^~~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:7:7: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:7:7: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:7:7: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){
| ^~~
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
7 | if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
7 | if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:7:7: 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:7: 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:7: 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:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
7 | if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){
| ^~~
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
7 | if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){
| ^~~
In file included from /usr/include/c++/14/string:43:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:7:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
7 | if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
629 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:629:5: note: template argument d |
s028983451 | p03852 | C++ | #include <iostream>
using namespace std;
int main(void)
{
char input;
cin >> input;
switch(input)
{
case 'a'
case 'i'
case 'u'
case 'e'
case 'o'
cout << "vowel" << endl;
break;
default:
cout << "consonant" << endl;
break;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:13:25: error: expected ':' before 'case'
13 | case 'a'
| ^
| :
14 | case 'i'
| ~~~~
a.cc:14:25: error: expected ':' before 'case'
14 | case 'i'
| ^
| :
15 | case 'u'
| ~~~~
a.cc:15:25: error: expected ':' before 'case'
15 | case 'u'
| ^
| :
16 | case 'e'
| ~~~~
a.cc:16:25: error: expected ':' before 'case'
16 | case 'e'
| ^
| :
17 | case 'o'
| ~~~~
a.cc:17:25: error: expected ':' before 'cout'
17 | case 'o'
| ^
| :
18 | cout << "vowel" << endl;
| ~~~~
|
s535501712 | p03852 | C++ | #include <bits/stdc++.h> //JuniorMonster a.k.a Sho10
#define ll long long
#pragma GCC optimize("O3")
#pragma GCC optimize("Ofast")
#define all(a) (a).begin(), (a).end()
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#define sz size
#define f first
#define s second
#define pb push_back
#define er erase
#define in insert
#define mp make_pair
#define pi pair
#define rc(s) return cout<<s,0
#define mod 1000000007
#define PI 3.14159265359
#define CODE_START ios_base::sync_with_stdio();cin.tie();cout.tie();
using namespace std;
ll n;
char a;
int32_t main(){
CODE_START;
cin >> a;
if(a=='a'||a=='e'||a=='i'||a[i]=='o'||a[i]=='u'){
rc("vowel");
}
cout << "consonant";
} | a.cc: In function 'int32_t main()':
a.cc:25:30: error: 'i' was not declared in this scope
25 | if(a=='a'||a=='e'||a=='i'||a[i]=='o'||a[i]=='u'){
| ^
|
s826764492 | p03852 | C++ | using namespace std;
int main() {
char c;
cin >> c;
if (c == 'a' || c == 'i' || c == 'u'
|| c == 'e' || c == 'o'){
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
5 | cin >> c;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
+++ |+#include <iostream>
1 | using namespace std;
a.cc:8:9: error: 'cout' was not declared in this scope
8 | cout << "vowel" << endl;
| ^~~~
a.cc:8:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:28: error: 'endl' was not declared in this scope
8 | cout << "vowel" << endl;
| ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
+++ |+#include <ostream>
1 | using namespace std;
a.cc:11:9: error: 'cout' was not declared in this scope
11 | cout << "consonant" << endl;
| ^~~~
a.cc:11:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:32: error: 'endl' was not declared in this scope
11 | cout << "consonant" << endl;
| ^~~~
a.cc:11:32: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
|
s544259518 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(void){
char c;
cin>>c;
switch (c) {
case a:cout<<vowel<<endl; break;
case e:cout<<vowel<<endl;break;
case i:cout<<vowel<<endl;break;
case o:cout<<vowel<<endl;break;
case u:cout<<vowel<<endl;break;
default:cout<<consonant<<endl;break;
}
} | a.cc: In function 'int main()':
a.cc:10:10: error: 'a' was not declared in this scope
10 | case a:cout<<vowel<<endl; break;
| ^
a.cc:10:18: error: 'vowel' was not declared in this scope
10 | case a:cout<<vowel<<endl; break;
| ^~~~~
a.cc:11:10: error: 'e' was not declared in this scope
11 | case e:cout<<vowel<<endl;break;
| ^
a.cc:12:10: error: 'i' was not declared in this scope
12 | case i:cout<<vowel<<endl;break;
| ^
a.cc:13:10: error: 'o' was not declared in this scope
13 | case o:cout<<vowel<<endl;break;
| ^
a.cc:14:10: error: 'u' was not declared in this scope
14 | case u:cout<<vowel<<endl;break;
| ^
a.cc:15:19: error: 'consonant' was not declared in this scope
15 | default:cout<<consonant<<endl;break;
| ^~~~~~~~~
|
s222924477 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(void){
char c;
cin>>c;
switch (c) {
case 'a':cout<<vowel<<endl; break;
case 'e':cout<<vowel<<endl;break;
case 'i':cout<<vowel<<endl;break;
case 'o':cout<<vowel<<endl;break;
case 'u':cout<<vowel<<endl;break;
default:cout<<consonant<<endl;break;
}
} | a.cc: In function 'int main()':
a.cc:10:20: error: 'vowel' was not declared in this scope
10 | case 'a':cout<<vowel<<endl; break;
| ^~~~~
a.cc:15:19: error: 'consonant' was not declared in this scope
15 | default:cout<<consonant<<endl;break;
| ^~~~~~~~~
|
s770155245 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(void){
char c;
cin>>c>>endl;
switch (c) {
case 'a':cout<<vowel<<endl; break;
case 'e':cout<<vowel<<endl;break;
case 'i':cout<<vowel<<endl;break;
case 'o':cout<<vowel<<endl;break;
case 'u':cout<<vowel<<endl;break;
default:cout<<consonant<<endl;break;
}
} | a.cc: In function 'int main()':
a.cc:7:9: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>' and '<unresolved overloaded function type>')
7 | cin>>c>>endl;
| ~~~~~~^~~~~~
In file included from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127,
from a.cc:1:
/usr/include/c++/14/istream:170:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
170 | operator>>(bool& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:170:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'bool&'
170 | operator>>(bool& __n)
| ~~~~~~^~~
/usr/include/c++/14/istream:174:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]'
174 | operator>>(short& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:174:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short int&'
174 | operator>>(short& __n);
| ~~~~~~~^~~
/usr/include/c++/14/istream:177:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
177 | operator>>(unsigned short& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:177:34: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short unsigned int&'
177 | operator>>(unsigned short& __n)
| ~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:181:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]'
181 | operator>>(int& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:181:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int&'
181 | operator>>(int& __n);
| ~~~~~^~~
/usr/include/c++/14/istream:184:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
184 | operator>>(unsigned int& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:184:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'unsigned int&'
184 | operator>>(unsigned int& __n)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:188:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
188 | operator>>(long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:188:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int&'
188 | operator>>(long& __n)
| ~~~~~~^~~
/usr/include/c++/14/istream:192:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
192 | operator>>(unsigned long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:192:33: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int&'
192 | operator>>(unsigned long& __n)
| ~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:199:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
199 | operator>>(long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:199:29: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int&'
199 | operator>>(long long& __n)
| ~~~~~~~~~~~^~~
/usr/include/c++/14/istream:203:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
203 | operator>>(unsigned long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:203:38: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long unsigned int&'
203 | operator>>(unsigned long long& __n)
| ~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:219:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
219 | operator>>(float& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:219:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float&'
219 | operator>>(float& __f)
| ~~~~~~~^~~
/usr/include/c++/14/istream:223:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
223 | operator>>(double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:223:26: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'double&'
223 | operator>>(double& __f)
| ~~~~~~~~^~~
/usr/include/c++/14/istream:227:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
227 | operator>>(long double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:227:31: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long double&'
227 | operator>>(long double& __f)
| ~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:328:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
328 | operator>>(void*& __p)
| ^~~~~~~~
/usr/include/c++/14/istream:328:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'void*&'
328 | operator>>(void*& __p)
| ~~~~~~~^~~
/usr/include/c++/14/istream:122:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__istream_type& (*)(__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
122 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:122:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&)' {aka 'std::basic_istream<char>& (*)(std::basic_istream<char>&)'}
122 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:126:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; __ios_type = std::basic_ios<char>]'
126 | operator>>(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:126:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'}
126 | operator>>(__ios_type& (*__pf)(__ios_type&))
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:133:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
133 | operator>>(ios_base& (*__pf)(ios_base&))
| ^~~~~~~~
/usr/include/c++/14/istream:133:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::ios_base& (*)(std::ios_base&)'
133 | operator>>(ios_base& (*__pf)(ios_base&))
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:352:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; __streambuf_type = std::basic_streambuf<char>]'
352 | operator>>(__streambuf_type* __sb);
| ^~~~~~~~
/usr/include/c++/14/istream:352:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_istream<char>::__str |
s994551933 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(void){
char c;
cin<<c<<endl;
switch (c) {
case 'a':cout<<vowel<<endl; break;
case 'e':cout<<vowel<<endl;break;
case 'i':cout<<vowel<<endl;break;
case 'o':cout<<vowel<<endl;break;
case 'u':cout<<vowel<<endl;break;
default:cout<<consonant<<endl;break;
}
} | a.cc: In function 'int main()':
a.cc:7:6: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'char')
7 | cin<<c<<endl;
| ~~~^~~
| | |
| | char
| std::istream {aka std::basic_istream<char>}
a.cc:7:6: note: candidate: 'operator<<(int, int)' (built-in)
7 | cin<<c<<endl;
| ~~~^~~
a.cc:7:6: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int'
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1715:5: note: candidate: 'template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const sub_match<_Bi_iter>&)'
1715 | operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1715:5: note: template argument deduction/substitution failed:
a.cc:7:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | cin<<c<<endl;
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41:
/usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
125 | operator<<(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed:
a.cc:7:3: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte'
7 | cin<<c<<endl;
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)'
763 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed:
a.cc:7:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | cin<<c<<endl;
| ^
/usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4077 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed:
a.cc:7:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | cin<<c<<endl;
| ^
/usr/include/c++/14/bitset:1687:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const bitset<_Nb>&)'
1687 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bitset:1687:5: note: template argument deduction/substitution failed:
a.cc:7:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | cin<<c<<endl;
| ^
In file included from /usr/include/c++/14/bits/ios_base.h:46,
from /usr/include/c++/14/streambuf:43,
from /usr/include/c++/14/bits/streambuf_iterator.h:35,
from /usr/include/c++/14/iterator:66,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54:
/usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)'
339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
| ^~~~~~~~
/usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed:
a.cc:7:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | cin<<c<<endl;
| ^
In file included from /usr/include/c++/14/memory:80,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:56:
/usr/include/c++/14/bits/shared_ptr.h:70:5: note: candidate: 'template<class _Ch, class _Tr, class _Tp, __gnu_cxx::_Lock_policy _Lp> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __shared_ptr<_Tp, _Lp>&)'
70 | operator<<(std::basic_ostream<_Ch, _Tr>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/shared_ptr.h:70:5: note: template argument deduction/substitution failed:
a.cc:7:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | cin<<c<<endl;
| ^
In file included from /usr/include/c++/14/istream:41,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)'
563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed:
a.cc:7:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | cin<<c<<endl;
| ^
/usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)'
573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed:
a.cc:7:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | cin<<c<<endl;
| ^
/usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)'
579 | operator<<(basic_ostream<char, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed:
a.cc:7:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
7 | cin<<c<<endl;
| ^
/usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)'
590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed:
a.cc:7:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
7 | cin<<c<<endl;
| ^
/usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)'
595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed:
a.cc:7:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
7 | cin<<c<<endl;
| ^
/usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)'
654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed:
a.cc:7:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | cin<<c<<endl;
| ^
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)'
307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed:
a.cc:7:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | cin<<c<<endl;
| ^
/usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)'
671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed:
a.cc:7:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
7 | cin<<c<<endl;
| ^
/usr/include/c++/14/ostream:684:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const s |
s541610238 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(void){
string c;
cin<<c<<endl;
switch (c) {
case 'a':cout<<vowel<<endl; break;
case 'e':cout<<vowel<<endl;break;
case 'i':cout<<vowel<<endl;break;
case 'o':cout<<vowel<<endl;break;
case 'u':cout<<vowel<<endl;break;
default:cout<<consonant<<endl;break;
}
} | a.cc: In function 'int main()':
a.cc:7:6: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
7 | cin<<c<<endl;
| ~~~^~~
| | |
| | std::string {aka std::__cxx11::basic_string<char>}
| std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1715:5: note: candidate: 'template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const sub_match<_Bi_iter>&)'
1715 | operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1715:5: note: template argument deduction/substitution failed:
a.cc:7:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | cin<<c<<endl;
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41:
/usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
125 | operator<<(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed:
a.cc:7:3: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte'
7 | cin<<c<<endl;
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)'
763 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed:
a.cc:7:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | cin<<c<<endl;
| ^
/usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4077 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed:
a.cc:7:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | cin<<c<<endl;
| ^
/usr/include/c++/14/bitset:1687:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const bitset<_Nb>&)'
1687 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bitset:1687:5: note: template argument deduction/substitution failed:
a.cc:7:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | cin<<c<<endl;
| ^
In file included from /usr/include/c++/14/bits/ios_base.h:46,
from /usr/include/c++/14/streambuf:43,
from /usr/include/c++/14/bits/streambuf_iterator.h:35,
from /usr/include/c++/14/iterator:66,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54:
/usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)'
339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
| ^~~~~~~~
/usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed:
a.cc:7:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | cin<<c<<endl;
| ^
In file included from /usr/include/c++/14/memory:80,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:56:
/usr/include/c++/14/bits/shared_ptr.h:70:5: note: candidate: 'template<class _Ch, class _Tr, class _Tp, __gnu_cxx::_Lock_policy _Lp> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __shared_ptr<_Tp, _Lp>&)'
70 | operator<<(std::basic_ostream<_Ch, _Tr>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/shared_ptr.h:70:5: note: template argument deduction/substitution failed:
a.cc:7:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | cin<<c<<endl;
| ^
In file included from /usr/include/c++/14/istream:41,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)'
563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed:
a.cc:7:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | cin<<c<<endl;
| ^
/usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)'
573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed:
a.cc:7:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | cin<<c<<endl;
| ^
/usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)'
579 | operator<<(basic_ostream<char, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed:
a.cc:7:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
7 | cin<<c<<endl;
| ^
/usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)'
590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed:
a.cc:7:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
7 | cin<<c<<endl;
| ^
/usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)'
595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed:
a.cc:7:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
7 | cin<<c<<endl;
| ^
/usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)'
654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed:
a.cc:7:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | cin<<c<<endl;
| ^
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)'
307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed:
a.cc:7:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
7 | cin<<c<<endl;
| ^
/usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)'
671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed:
a.cc:7:8: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
7 | cin<<c<<endl;
| ^
/usr/include/c++/14/ostream:684:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)'
684 | operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
| ^~~~~~~~
/usr |
s576082608 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if(c == 'a' || c== 'i' || c== 'u' || c== 'e' || c== 'o') {
cout << "vowel" << endl;
} else {
cout << "consonant" << endl;
}
return 0;
| a.cc: In function 'int main()':
a.cc:14:12: error: expected '}' at end of input
14 | return 0;
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s279698084 | p03852 | C++ | #include<iostream>
int main()
{char A; cin >> A;
if(A == 'a' || A == 'i' || A == 'u' || A == 'e' || A == 'o')
{cout << "vowel"<<endl;}
else{cout << "consonant" << endl;}
return 0;
} | a.cc: In function 'int main()':
a.cc:4:10: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
4 | {char A; 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:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
6 | {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:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
6 | {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:7:6: 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:29: 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)
| ^~~~
|
s352232351 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char S;
cin >> S;
if(S=='a'||S=='i'||S=='u'||S=='e'||S=='o'){
cout<< vowel<<endl;
}else{
cout<<consonant<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:9:11: error: 'vowel' was not declared in this scope
9 | cout<< vowel<<endl;
| ^~~~~
a.cc:11:10: error: 'consonant' was not declared in this scope
11 | cout<<consonant<<endl;
| ^~~~~~~~~
|
s825240196 | 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:44: warning: missing terminating ' character
8 | if(S=='a'||S=='i'||S=='u'||S=='e'||S=='o''){
| ^
a.cc:8:44: error: missing terminating ' character
8 | if(S=='a'||S=='i'||S=='u'||S=='e'||S=='o''){
| ^~~
a.cc: In function 'int main()':
a.cc:8:44: error: expected ';' before 'cout'
8 | if(S=='a'||S=='i'||S=='u'||S=='e'||S=='o''){
| ^
| ;
9 | cout<< vowel<<endl;
| ~~~~
a.cc:10:2: error: expected primary-expression before '}' token
10 | }else{
| ^
a.cc:9:23: error: expected ')' before '}' token
9 | cout<< vowel<<endl;
| ^
| )
10 | }else{
| ~
a.cc:8:5: note: to match this '('
8 | if(S=='a'||S=='i'||S=='u'||S=='e'||S=='o''){
| ^
a.cc:10:2: error: expected primary-expression before '}' token
10 | }else{
| ^
a.cc: At global scope:
a.cc:10:3: error: expected unqualified-id before 'else'
10 | }else{
| ^~~~
a.cc:13:1: error: expected declaration before '}' token
13 | }
| ^
|
s709541190 | 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''){
cont<< vowel<<endl;
}else{
cout<<consonant<<endl;
}
}
| a.cc:8:44: warning: missing terminating ' character
8 | if(S=='a'||S=='i'||S=='u'||S=='e'||S=='o''){
| ^
a.cc:8:44: error: missing terminating ' character
8 | if(S=='a'||S=='i'||S=='u'||S=='e'||S=='o''){
| ^~~
a.cc: In function 'int main()':
a.cc:8:44: error: expected ';' before 'cont'
8 | if(S=='a'||S=='i'||S=='u'||S=='e'||S=='o''){
| ^
| ;
9 | cont<< vowel<<endl;
| ~~~~
a.cc:10:2: error: expected primary-expression before '}' token
10 | }else{
| ^
a.cc:9:23: error: expected ')' before '}' token
9 | cont<< vowel<<endl;
| ^
| )
10 | }else{
| ~
a.cc:8:5: note: to match this '('
8 | if(S=='a'||S=='i'||S=='u'||S=='e'||S=='o''){
| ^
a.cc:10:2: error: expected primary-expression before '}' token
10 | }else{
| ^
a.cc: At global scope:
a.cc:10:3: error: expected unqualified-id before 'else'
10 | }else{
| ^~~~
a.cc:13:1: error: expected declaration before '}' token
13 | }
| ^
|
s301315773 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
const string vowel = "aiueo";
char c;
cin >> c;
if ( vowel.find(characrer) != string::npos){
cout << "vowel" << endl;
} else {
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:9:25: error: 'characrer' was not declared in this scope
9 | if ( vowel.find(characrer) != string::npos){
| ^~~~~~~~~
|
s739674085 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
const string vowel = "aiueo";
char c;
cin >> c;
cout << vowel.find(c) == -1 ? "consonant" : "vowel" << endl;
} | a.cc: In function 'int main()':
a.cc:9:31: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} and 'int')
9 | cout << vowel.find(c) == -1 ? "consonant" : "vowel" << endl;
| ~~~~~~~~~~~~~~~~~~~~~ ^~ ~~
| | |
| | int
| std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}
a.cc:9:31: note: candidate: 'operator==(int, int)' (built-in)
9 | cout << vowel.find(c) == -1 ? "consonant" : "vowel" << endl;
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~
a.cc:9:31: 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:9:35: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | cout << vowel.find(c) == -1 ? "consonant" : "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:9:35: 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>'
9 | cout << vowel.find(c) == -1 ? "consonant" : "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:9:35: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | cout << vowel.find(c) == -1 ? "consonant" : "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:9:35: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int'
9 | cout << vowel.find(c) == -1 ? "consonant" : "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:9:35: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | cout << vowel.find(c) == -1 ? "consonant" : "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:9:35: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int'
9 | cout << vowel.find(c) == -1 ? "consonant" : "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:9:35: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | cout << vowel.find(c) == -1 ? "consonant" : "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:9:35: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
9 | cout << vowel.find(c) == -1 ? "consonant" : "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:9:35: 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) == -1 ? "consonant" : "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:9:35: 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) == -1 ? "consonant" : "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:9:35: 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) == -1 ? "consonant" : "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:9:35: 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) == -1 ? "consonant" : "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:9:35: 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) == -1 ? "consonant" : "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 | operat |
s093644354 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
const string vowel = "aiueo";
char c;
cin >> c;
cout << vowel.find(c) == string::npos ? "vowel" : "consonant" << endl;
} | a.cc: In function 'int main()':
a.cc:9:31: 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:31: 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:31: 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:9:42: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | 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:9:42: 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>'
9 | 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:9:42: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | 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:9:42: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'}
9 | 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:9:42: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | 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:9:42: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'}
9 | 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:9:42: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | 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:9:42: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
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/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:9:42: 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/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:9:42: 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:42: 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:42: 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:42: note: 'st |
s176696889 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if ( "aiueo".find(c) != basic_string::npos) {
cout << "vowel" << endl;
} else {
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:22: error: request for member 'find' in '"aiueo"', which is of non-class type 'const char [6]'
8 | if ( "aiueo".find(c) != basic_string::npos) {
| ^~~~
a.cc:8:33: error: 'template<class _CharT, class _Traits, class _Alloc> class std::__cxx11::basic_string' used without template arguments
8 | if ( "aiueo".find(c) != basic_string::npos) {
| ^~~~~~~~~~~~
|
s868788424 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if ( "aiueo".find(c) ) {
cout << "vowel" << endl;
} else {
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:22: error: request for member 'find' in '"aiueo"', which is of non-class type 'const char [6]'
8 | if ( "aiueo".find(c) ) {
| ^~~~
|
s266696729 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char letter;
cin >> c;
if (c = 'a', 'e', 'i', 'o', 'u') {
cout << "vowel" << endl;
} else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:6:10: error: 'c' was not declared in this scope
6 | cin >> c;
| ^
|
s839140200 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if (c == 'a')[
cout << "vowel" << endl;
]
else if (c == 'e')[
cout << "vowel" << endl;
]
else if (c == 'i')[
cout << "vowel" << endl;
]
else if (c == 'o')[
cout << "vowel" << endl;
]
else if (c == 'u')[
cout << "vowel" << endl;
]
else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:7: warning: capture of variable 'std::cout' with non-automatic storage duration
8 | cout << "vowel" << endl;
| ^~~~
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:63:18: note: 'std::ostream std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:8:11: error: expected ',' before '<<' token
8 | cout << "vowel" << endl;
| ^~~
| ,
a.cc:8:12: error: expected identifier before '<<' token
8 | cout << "vowel" << endl;
| ^~
a.cc:8:30: error: expected ']' before ';' token
8 | cout << "vowel" << endl;
| ^
| ]
a.cc: In lambda function:
a.cc:8:30: error: expected '{' before ';' token
a.cc: In function 'int main()':
a.cc:9:3: error: expected primary-expression before ']' token
9 | ]
| ^
a.cc:12:3: error: expected primary-expression before ']' token
12 | ]
| ^
a.cc:15:3: error: expected primary-expression before ']' token
15 | ]
| ^
a.cc:18:3: error: expected primary-expression before ']' token
18 | ]
| ^
a.cc:21:3: error: expected primary-expression before ']' token
21 | ]
| ^
|
s421282715 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if (c == 'a')[
cout << "vowel" << endl;
]
else if (c == 'e')[
cout << "vowel" << endl;
]
else if (c == 'i')[
cout << "vowel" << endl;
]
else if (c == 'o')[
cout << "vowel" << endl;
]
else if (c == 'u')[
cout << "vowel" << endl;
]
else {
cout << "constatnt" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:7: warning: capture of variable 'std::cout' with non-automatic storage duration
8 | cout << "vowel" << endl;
| ^~~~
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:63:18: note: 'std::ostream std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:8:11: error: expected ',' before '<<' token
8 | cout << "vowel" << endl;
| ^~~
| ,
a.cc:8:12: error: expected identifier before '<<' token
8 | cout << "vowel" << endl;
| ^~
a.cc:8:30: error: expected ']' before ';' token
8 | cout << "vowel" << endl;
| ^
| ]
a.cc: In lambda function:
a.cc:8:30: error: expected '{' before ';' token
a.cc: In function 'int main()':
a.cc:9:3: error: expected primary-expression before ']' token
9 | ]
| ^
a.cc:12:3: error: expected primary-expression before ']' token
12 | ]
| ^
a.cc:15:3: error: expected primary-expression before ']' token
15 | ]
| ^
a.cc:18:3: error: expected primary-expression before ']' token
18 | ]
| ^
a.cc:21:3: error: expected primary-expression before ']' token
21 | ]
| ^
|
s193054804 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if(c == "a" || "e" || "i" || "o" || "u") {
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c == "a" || "e" || "i" || "o" || "u") {
| ~~^~~~~~
|
s839659682 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
if(c == 'a'||'e'||'i'||'o'||'u') {
cout << 'vowel' << endl;
}
else{
cout << 'consonant' << endl;
}
}
| a.cc:8:25: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
8 | cout << 'vowel' << endl;
| ^~~~~~~
a.cc:11:25: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
11 | cout << 'consonant' << endl;
| ^~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:14: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
7 | if(c == 'a'||'e'||'i'||'o'||'u') {
| ~ ^~ ~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if(c == 'a'||'e'||'i'||'o'||'u') {
| ^~~
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | if(c == 'a'||'e'||'i'||'o'||'u') {
| ^~~
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if(c == 'a'||'e'||'i'||'o'||'u') {
| ^~~
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | if(c == 'a'||'e'||'i'||'o'||'u') {
| ^~~
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if(c == 'a'||'e'||'i'||'o'||'u') {
| ^~~
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
7 | if(c == 'a'||'e'||'i'||'o'||'u') {
| ^~~
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if(c == 'a'||'e'||'i'||'o'||'u') {
| ^~~
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
7 | if(c == 'a'||'e'||'i'||'o'||'u') {
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
7 | if(c == 'a'||'e'||'i'||'o'||'u') {
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
7 | if(c == 'a'||'e'||'i'||'o'||'u') {
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
7 | if(c == 'a'||'e'||'i'||'o'||'u') {
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
7 | if(c == 'a'||'e'||'i'||'o'||'u') {
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
7 | if(c == 'a'||'e'||'i'||'o'||'u') {
| ^~~
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
7 | if(c == 'a'||'e'||'i'||'o'||'u') {
| ^~~
In file included from /usr/include/c++/14/string:43:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:7:17: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
7 | |
s238390048 | 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:12:1: error: expected primary-expression before '}' token
12 | }
| ^
|
s373966486 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string str;
cin >> str ;
if (str == "a" || str == "i"||
str =="u" || str == "e"|| str=="o")
cout << "vowel"<< endl;
else {
cout << "consonant"<<endl;
}
}
} | a.cc:16:1: error: expected declaration before '}' token
16 | }
| ^
|
s293592060 | p03852 | C | #include <stdio.h>
int
main(int argc, char *argv[])
{
char a;
char c[5] = {'a', 'i', 'u', 'e', 'o'}
scanf("%c", &a);
for(int i = 0; i < 5; i++){
if(a == c[i]){
printf("vowel\n");
}
else if(i == 4){
printf("consonant\n");
}
}
return 0;
} | main.c: In function 'main':
main.c:9:3: error: expected ',' or ';' before 'scanf'
9 | scanf("%c", &a);
| ^~~~~
|
s260762691 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a; cin>>a;
if(a=="a"||a=="i"){cout<<"vowel"<<endl;}
if else(a=="u"||a=="e"){cout<<"vowel"<<endl;}
if else(a=="o"){cout<<"vowel"<<endl;}
else{cout<<"consonant"<<endl;}
} | a.cc: In function 'int main()':
a.cc:7:6: error: expected '(' before 'else'
7 | if else(a=="u"||a=="e"){cout<<"vowel"<<endl;}
| ^~~~
| (
a.cc:8:6: error: expected '(' before 'else'
8 | if else(a=="o"){cout<<"vowel"<<endl;}
| ^~~~
| (
a.cc:9:3: error: 'else' without a previous 'if'
9 | else{cout<<"consonant"<<endl;}
| ^~~~
|
s448030612 | p03852 | C++ | #include <iostream>
#include <algorithm>
#include <math.h>
#include <stdio.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<"constant"<<endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:14:24: error: invalid operands of types 'const char [9]' and '<unresolved overloaded function type>' to binary 'operator<<'
14 | cout<"constant"<<endl;
| ~~~~~~~~~~^~~~~~
|
s548554923 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s ;
cin >> s;
if( s == "a" || s == "e" || s == "i" || s == "u" || s == "o"){
cout << "vowel" << endl;
}
else {
cout << "consonant" << 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() {
| ^
|
s603024933 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s ;
cin >> s;
if( s == "a" || s == "e" || s == "i" || s == "u" || s == "o"){
cout << "vowel" << endl;
}
else {
cout << "consonant" << 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() {
| ^
|
s473286883 | p03852 | C | c=input()
if c=='a' or c=='i' or c=='u' or c=='e'or c=='o':
print('vowel')
else:
print('consonant')
| main.c:1:1: warning: data definition has no type or storage class
1 | c=input()
| ^
main.c:1:1: error: type defaults to 'int' in declaration of 'c' [-Wimplicit-int]
main.c:1:3: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
1 | c=input()
| ^~~~~
main.c:1:3: error: initializer element is not constant
main.c:3:1: error: expected ',' or ';' before 'if'
3 | if c=='a' or c=='i' or c=='u' or c=='e'or c=='o':
| ^~
main.c:4:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
4 | print('vowel')
| ^~~~~~~
main.c:6:11: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
6 | print('consonant')
| ^~~~~~~~~~~
|
s505441034 | p03852 | C++ | int main(){
char c; cin >> c;
string v="aeiou";
for (int i=0; i<5; i++) {
if (v[i]==c) {
cout << "vowel" << endl;
return 0;
}
}
cout << "consonant" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:2:11: error: 'cin' was not declared in this scope
2 | char c; cin >> c;
| ^~~
a.cc:3:3: error: 'string' was not declared in this scope
3 | string v="aeiou";
| ^~~~~~
a.cc:5:9: error: 'v' was not declared in this scope
5 | if (v[i]==c) {
| ^
a.cc:6:7: error: 'cout' was not declared in this scope
6 | cout << "vowel" << endl;
| ^~~~
a.cc:6:26: error: 'endl' was not declared in this scope
6 | cout << "vowel" << endl;
| ^~~~
a.cc:10:3: error: 'cout' was not declared in this scope
10 | cout << "consonant" << endl;
| ^~~~
a.cc:10:26: error: 'endl' was not declared in this scope
10 | cout << "consonant" << endl;
| ^~~~
|
s501189280 | p03852 | C++ | #include <bits/stdc++.h>
using namespase std;
int main();
char c;
cin>>c;
if(c=="a"){
cout<<"vowel"<<endl;
}
else if(c=="e"){
cout<<"vowel"<<endl;
}
else if(c=="i"){
cout<<"vowel"<<endl;
}
else if(c=="o"){
cout<<"vowel"<<endl;
}
else if(c=="u"){
cout<<"vowel"<<endl;
}
else{
cout<<"consonant"<<endl;
}
}
| a.cc:2:7: error: expected nested-name-specifier before 'namespase'
2 | using namespase std;
| ^~~~~~~~~
a.cc:6:3: error: 'cin' does not name a type
6 | cin>>c;
| ^~~
a.cc:7:3: error: expected unqualified-id before 'if'
7 | if(c=="a"){
| ^~
a.cc:10:3: error: expected unqualified-id before 'else'
10 | else if(c=="e"){
| ^~~~
a.cc:13:3: error: expected unqualified-id before 'else'
13 | else if(c=="i"){
| ^~~~
a.cc:16:3: error: expected unqualified-id before 'else'
16 | else if(c=="o"){
| ^~~~
a.cc:19:3: error: expected unqualified-id before 'else'
19 | else if(c=="u"){
| ^~~~
a.cc:22:3: error: expected unqualified-id before 'else'
22 | else{
| ^~~~
a.cc:26:1: error: expected declaration before '}' token
26 | }
| ^
|
s173534236 | p03852 | C++ | #include <bits/stdc++.h>
using namespase std;
int main();
char c;
cin>>c;
if(c==a){
cout<<"vowel"<<endl;
}
else if(c==e){
cout<<"vowel"<<endl;
}
else if(c==i){
cout<<"vowel"<<endl;
}
else if(c==o){
cout<<"vowel"<<endl;
}
else if(c==u){
cout<<"vowel"<<endl;
}
else{
cout<<"consonant"<<endl;
}
}
| a.cc:2:7: error: expected nested-name-specifier before 'namespase'
2 | using namespase std;
| ^~~~~~~~~
a.cc:6:3: error: 'cin' does not name a type
6 | cin>>c;
| ^~~
a.cc:7:3: error: expected unqualified-id before 'if'
7 | if(c==a){
| ^~
a.cc:10:3: error: expected unqualified-id before 'else'
10 | else if(c==e){
| ^~~~
a.cc:13:3: error: expected unqualified-id before 'else'
13 | else if(c==i){
| ^~~~
a.cc:16:3: error: expected unqualified-id before 'else'
16 | else if(c==o){
| ^~~~
a.cc:19:3: error: expected unqualified-id before 'else'
19 | else if(c==u){
| ^~~~
a.cc:22:3: error: expected unqualified-id before 'else'
22 | else{
| ^~~~
a.cc:26:1: error: expected declaration before '}' token
26 | }
| ^
|
s668832553 | p03852 | C++ | #include <bits/stdc++.h>
using namespase 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==o){
cout<<"vowel"<<endl;
}
else if(c==u){
cout<<"vowel"<<endl;
}
else{
cout<<"consonant"<<endl;
}
}
| a.cc:2:7: error: expected nested-name-specifier before 'namespase'
2 | using namespase std;
| ^~~~~~~~~
a.cc:5:3: error: 'string' does not name a type; did you mean 'stdin'?
5 | string c;
| ^~~~~~
| stdin
a.cc:6:3: error: 'cin' does not name a type
6 | cin>>c;
| ^~~
a.cc:7:3: error: expected unqualified-id before 'if'
7 | if(c==a){
| ^~
a.cc:10:3: error: expected unqualified-id before 'else'
10 | else if(c==e){
| ^~~~
a.cc:13:3: error: expected unqualified-id before 'else'
13 | else if(c==i){
| ^~~~
a.cc:16:3: error: expected unqualified-id before 'else'
16 | else if(c==o){
| ^~~~
a.cc:19:3: error: expected unqualified-id before 'else'
19 | else if(c==u){
| ^~~~
a.cc:22:3: error: expected unqualified-id before 'else'
22 | else{
| ^~~~
a.cc:26:1: error: expected declaration before '}' token
26 | }
| ^
|
s040726106 | p03852 | C++ | #include <bits/stdc++.h>
using namespase std;
int main();
int c;
cin>>c;
if(c==a){
cout<<"vowel"<<endl;
}
else if(c==e){
cout<<"vowel"<<endl;
}
else if(c==i){
cout<<"vowel"<<endl;
}
else if(c==o){
cout<<"vowel"<<endl;
}
else if(c==u){
cout<<"vowel"<<endl;
}
else{
cout<<"consonant"<<endl;
}
}
| a.cc:2:7: error: expected nested-name-specifier before 'namespase'
2 | using namespase std;
| ^~~~~~~~~
a.cc:6:3: error: 'cin' does not name a type
6 | cin>>c;
| ^~~
a.cc:7:3: error: expected unqualified-id before 'if'
7 | if(c==a){
| ^~
a.cc:10:3: error: expected unqualified-id before 'else'
10 | else if(c==e){
| ^~~~
a.cc:13:3: error: expected unqualified-id before 'else'
13 | else if(c==i){
| ^~~~
a.cc:16:3: error: expected unqualified-id before 'else'
16 | else if(c==o){
| ^~~~
a.cc:19:3: error: expected unqualified-id before 'else'
19 | else if(c==u){
| ^~~~
a.cc:22:3: error: expected unqualified-id before 'else'
22 | else{
| ^~~~
a.cc:26:1: error: expected declaration before '}' token
26 | }
| ^
|
s989601037 | p03852 | C++ | #include "bits/stdc++.h"
using namespace std;
int main(void){
string ans;
char s[1];
cin << s;
if (s[0]=='a'||s[0]=='i'||s[0]=='u'||s[0]=='e'||s[0]=='o')
ans = "vowel";
else
ans = "consonant";
cout << ans << 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 [1]')
6 | cin << s;
| ~~~ ^~ ~
| | |
| | char [1]
| std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1715:5: note: candidate: 'template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const sub_match<_Bi_iter>&)'
1715 | operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1715:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << s;
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41:
/usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
125 | operator<<(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed:
a.cc:6:3: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte'
6 | cin << s;
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)'
763 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << s;
| ^
/usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4077 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << s;
| ^
/usr/include/c++/14/bitset:1687:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const bitset<_Nb>&)'
1687 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bitset:1687:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << s;
| ^
In file included from /usr/include/c++/14/bits/ios_base.h:46,
from /usr/include/c++/14/streambuf:43,
from /usr/include/c++/14/bits/streambuf_iterator.h:35,
from /usr/include/c++/14/iterator:66,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54:
/usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)'
339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
| ^~~~~~~~
/usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << s;
| ^
In file included from /usr/include/c++/14/memory:80,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:56:
/usr/include/c++/14/bits/shared_ptr.h:70:5: note: candidate: 'template<class _Ch, class _Tr, class _Tp, __gnu_cxx::_Lock_policy _Lp> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __shared_ptr<_Tp, _Lp>&)'
70 | operator<<(std::basic_ostream<_Ch, _Tr>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/shared_ptr.h:70:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << s;
| ^
In file included from /usr/include/c++/14/istream:41,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)'
563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << s;
| ^
/usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)'
573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << s;
| ^
/usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)'
579 | operator<<(basic_ostream<char, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << s;
| ^
/usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)'
590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << s;
| ^
/usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)'
595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << s;
| ^
/usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)'
654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << s;
| ^
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)'
307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << s;
| ^
/usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)'
671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << s;
| ^
/usr/include/c++/14/ostream:684:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)'
684 | operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:684:5: note: template argument deduction/substitution failed:
a.cc:6:10: not |
s512375905 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
cher 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: 'cher' was not declared in this scope; did you mean 'char'?
5 | cher c;
| ^~~~
| char
a.cc:6:10: error: 'c' was not declared in this scope
6 | cin >> c;
| ^
|
s344606598 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
char x=c. at(0);
if(x=='a' ||x=='e' ||x=='u' ||x=='i' ||x=='o') {
cout<<"vowe1" <<endl;
}
else{
cout<<"consonant"<<endl;
}
}
| a.cc:4:12: error: expected initializer before '\U0000ff5b'
4 | int main() {
| ^~
a.cc:6:4: error: 'cin' does not name a type
6 | cin >> c;
| ^~~
a.cc:7:11: error: 'c' was not declared in this scope
7 | char x=c. at(0);
| ^
a.cc:8:4: error: expected unqualified-id before 'if'
8 | if(x=='a' ||x=='e' ||x=='u' ||x=='i' ||x=='o') {
| ^~
a.cc:11:4: error: expected unqualified-id before 'else'
11 | else{
| ^~~~
a.cc:14:1: error: '\U0000ff5d' does not name a type
14 | }
| ^~
|
s463148000 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin>>c;
char x=c. at(0);
if(x=='a' ||x=='e' ||x=='u' ||x=='i' ||x=='o') {
cout<<"vowe1" <<endl;
}
else{
cout<<"consonant"<<endl;
}
}
| a.cc:4:12: error: expected initializer before '\U0000ff5b'
4 | int main() {
| ^~
a.cc:6:4: error: 'cin' does not name a type
6 | cin>>c;
| ^~~
a.cc:7:11: error: 'c' was not declared in this scope
7 | char x=c. at(0);
| ^
a.cc:8:4: error: expected unqualified-id before 'if'
8 | if(x=='a' ||x=='e' ||x=='u' ||x=='i' ||x=='o') {
| ^~
a.cc:11:4: error: expected unqualified-id before 'else'
11 | else{
| ^~~~
a.cc:14:1: error: '\U0000ff5d' does not name a type
14 | }
| ^~
|
s747672040 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin>>c;
char x=c. at(0);
if(x=='a' ||x=='e' ||x=='u' ||x=='i' ||x=='o') {
cout<<"vowe1" <<endl;
}
else{
cout<<"consonant"<<endl;
}
}
| a.cc:4:12: error: expected initializer before '\U0000ff5b'
4 | int main() {
| ^~
a.cc:6:4: error: 'cin' does not name a type
6 | cin>>c;
| ^~~
a.cc:7:11: error: 'c' was not declared in this scope
7 | char x=c. at(0);
| ^
a.cc:8:4: error: expected unqualified-id before 'if'
8 | if(x=='a' ||x=='e' ||x=='u' ||x=='i' ||x=='o') {
| ^~
a.cc:11:4: error: expected unqualified-id before 'else'
11 | else{
| ^~~~
a.cc:14:1: error: '\U0000ff5d' does not name a type
14 | }
| ^~
|
s171734060 | p03852 | C++ | #include ‹bits/stdc++.h›
using namespace std;
int main() {
string c;
cin>>c;
char x=c. at(0);
if(x=='a' ||x=='e' ||x=='u' ||x=='i' ||x=='o') {
cout<<"vowe1" <<endl;
}
else{
cout<<"consonant"<<endl;
}
}
| a.cc:1:10: error: extended character ‹ is not valid in an identifier
1 | #include ‹bits/stdc++.h›
| ^
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
1 | #include ‹bits/stdc++.h›
| ^~~~~
a.cc:1:23: error: extended character › is not valid in an identifier
1 | #include ‹bits/stdc++.h›
| ^
a.cc:4:12: error: expected initializer before '\U0000ff5b'
4 | int main() {
| ^~
a.cc:6:4: error: 'cin' does not name a type
6 | cin>>c;
| ^~~
a.cc:7:11: error: 'c' was not declared in this scope
7 | char x=c. at(0);
| ^
a.cc:8:4: error: expected unqualified-id before 'if'
8 | if(x=='a' ||x=='e' ||x=='u' ||x=='i' ||x=='o') {
| ^~
a.cc:11:4: error: expected unqualified-id before 'else'
11 | else{
| ^~~~
a.cc:14:1: error: '\U0000ff5d' does not name a type
14 | }
| ^~
|
s088924036 | p03852 | C++ | #include ‹bits/stdc++.h›
using namespace std;
int main() {
string c;
cin>>c;
char x=c. at(0);
if(x=='a' ||x=='e' ||x=='u' ||x=='i' ||x=='o') {
cout<<"vowe1" <<endl;
}
else{
cout<<"consonant"<<endl;
}
}
| a.cc:1:10: error: extended character ‹ is not valid in an identifier
1 | #include ‹bits/stdc++.h›
| ^
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
1 | #include ‹bits/stdc++.h›
| ^~~~~
a.cc:1:23: error: extended character › is not valid in an identifier
1 | #include ‹bits/stdc++.h›
| ^
a.cc:4:12: error: expected initializer before '\U0000ff5b'
4 | int main() {
| ^~
a.cc:6:4: error: 'cin' does not name a type
6 | cin>>c;
| ^~~
a.cc:7:11: error: 'c' was not declared in this scope
7 | char x=c. at(0);
| ^
a.cc:8:4: error: expected unqualified-id before 'if'
8 | if(x=='a' ||x=='e' ||x=='u' ||x=='i' ||x=='o') {
| ^~
a.cc:11:4: error: expected unqualified-id before 'else'
11 | else{
| ^~~~
a.cc:16:1: error: '\U0000ff5d' does not name a type
16 | }
| ^~
|
s390081862 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c, ans:
cin >> c;
if (c == "a" || c == "e" || c == "i" || c == "o" || c == "u") ans = "vowel";
else ans = "consonant";
cout << ans << endl;
} | a.cc: In function 'int main()':
a.cc:5:18: error: found ':' in nested-name-specifier, expected '::'
5 | string c, ans:
| ^
| ::
a.cc:5:15: error: 'ans' has not been declared
5 | string c, ans:
| ^~~
a.cc:6:9: error: qualified-id in declaration before '>>' token
6 | cin >> c;
| ^~
a.cc:8:67: error: 'ans' was not declared in this scope; did you mean 'abs'?
8 | if (c == "a" || c == "e" || c == "i" || c == "o" || c == "u") ans = "vowel";
| ^~~
| abs
a.cc:9:10: error: 'ans' was not declared in this scope; did you mean 'abs'?
9 | else ans = "consonant";
| ^~~
| abs
a.cc:11:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
11 | cout << ans << endl;
| ^~~
| abs
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.