submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3 values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s019300466 | p03852 | C++ | // Example program
#include <iostream>
#include <string>
using namespace std;
int main()
{
int c;
cin>>c;
if(c="a"||c="e"||c="i"||c="o"||c="u"){cout<<"vowel"<<endl;}
else{cout<<"consonant"<<endl;}
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:32: error: lvalue required as left operand of assignment
9 | if(c="a"||c="e"||c="i"||c="o"||c="u"){cout<<"vowel"<<endl;}
| ~~~^~~
|
s816660891 | p03852 | C++ | // Example program
#include <iostream>
#include <string>
using namespace std;
int main()
{
int c;
cin>>c;
if(c=a||c=e||c=i||c=o||c=u){cout<<"vowel"<<endl;}
else{cout<<"consonant"<<endl;}
return 0;
} | a.cc: In function 'int main()':
a.cc:9:8: error: 'a' was not declared in this scope
9 | if(c=a||c=e||c=i||c=o||c=u){cout<<"vowel"<<endl;}
| ^
a.cc:9:13: error: 'e' was not declared in this scope
9 | if(c=a||c=e||c=i||c=o||c=u){cout<<"vowel"<<endl;}
| ^
a.cc:9:18: error: 'i' was not declared in this scope
9 | if(c=a||c=e||c=i||c=o||c=u){cout<<"vowel"<<endl;}
| ^
a.cc:9:23: error: 'o' was not declared in this scope
9 | if(c=a||c=e||c=i||c=o||c=u){cout<<"vowel"<<endl;}
| ^
a.cc:9:28: error: 'u' was not declared in this scope
9 | if(c=a||c=e||c=i||c=o||c=u){cout<<"vowel"<<endl;}
| ^
|
s847378378 | p03852 | C++ | #include<iostream>
char main() {
int c;
std::cin >> c;
if (c == 'a') {
std::cout << "vowel" << std::endl;
}
else if (c == 'i') {
std::cout << "vowel" << std::endl;
}
else if (c == 'u') {
std::cout << "vowel" << std::endl;
}
else if (c == 'e') {
std::cout << "vowel" << std::endl;
}
else if (c == 'o') {
std::cout << "vowel" << std::endl;
}
else {
std::cout << "consonant" << std::endl;
}
} | a.cc:2:1: error: '::main' must return 'int'
2 | char main() {
| ^~~~
|
s989952490 | p03852 | C++ | #include<iostream>
char main() {
char c;
std::cin >> c;
if (c == 'a') {
std::cout << "vowel" << std::endl;
}
else if (c == 'i') {
std::cout << "vowel" << std::endl;
}
else if (c == 'u') {
std::cout << "vowel" << std::endl;
}
else if (c == 'e') {
std::cout << "vowel" << std::endl;
}
else if (c == 'o') {
std::cout << "vowel" << std::endl;
}
else {
std::cout << "consonant" << std::endl;
}
} | a.cc:2:1: error: '::main' must return 'int'
2 | char main() {
| ^~~~
|
s707178701 | p03852 | C++ | #include<iostream>
#include<string>
char main() {
char c;
std::cin >> c;
if (c == 'a') {
std::cout << "vowel" << std::endl;
}
else if (c == 'i') {
std::cout << "vowel" << std::endl;
}
else if (c == 'u') {
std::cout << "vowel" << std::endl;
}
else if (c == 'e') {
std::cout << "vowel" << std::endl;
}
else if (c == 'o') {
std::cout << "vowel" << std::endl;
}
else {
std::cout << "consonant" << std::endl;
}
} | a.cc:3:1: error: '::main' must return 'int'
3 | char main() {
| ^~~~
|
s036128374 | p03852 | C++ |
#include<string>
int main(){
std::string c;
std::cin >> c;
if(c=="o"){
std::cout << "vowel" <<std::endl;
}
else if(c=="u"){
std::cout << "vowel" <<std::endl;
}
else if(c=="i"){
std::cout << "vowel" <<std::endl;
}
else if(c=="e"){
std::cout << "vowel" <<std::endl;
}
else if(c=="a"){
std::cout << "vowel" <<std::endl;
}
else {
std::cout << "consonant" << std::endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:5:6: error: 'cin' is not a member of 'std'
5 | std::cin >> c;
| ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
2 | #include<string>
+++ |+#include <iostream>
3 | int main(){
a.cc:7:6: error: 'cout' is not a member of 'std'
7 | std::cout << "vowel" <<std::endl;
| ^~~~
a.cc:7:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:29: error: 'endl' is not a member of 'std'
7 | std::cout << "vowel" <<std::endl;
| ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
2 | #include<string>
+++ |+#include <ostream>
3 | int main(){
a.cc:10:6: error: 'cout' is not a member of 'std'
10 | std::cout << "vowel" <<std::endl;
| ^~~~
a.cc:10:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:29: error: 'endl' is not a member of 'std'
10 | std::cout << "vowel" <<std::endl;
| ^~~~
a.cc:10:29: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:13:6: error: 'cout' is not a member of 'std'
13 | std::cout << "vowel" <<std::endl;
| ^~~~
a.cc:13:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:29: error: 'endl' is not a member of 'std'
13 | std::cout << "vowel" <<std::endl;
| ^~~~
a.cc:13:29: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:16:6: error: 'cout' is not a member of 'std'
16 | std::cout << "vowel" <<std::endl;
| ^~~~
a.cc:16:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:29: error: 'endl' is not a member of 'std'
16 | std::cout << "vowel" <<std::endl;
| ^~~~
a.cc:16:29: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:19:6: error: 'cout' is not a member of 'std'
19 | std::cout << "vowel" <<std::endl;
| ^~~~
a.cc:19:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:19:29: error: 'endl' is not a member of 'std'
19 | std::cout << "vowel" <<std::endl;
| ^~~~
a.cc:19:29: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:22:6: error: 'cout' is not a member of 'std'
22 | std::cout << "consonant" << std::endl;
| ^~~~
a.cc:22:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:22:34: error: 'endl' is not a member of 'std'
22 | std::cout << "consonant" << std::endl;
| ^~~~
a.cc:22:34: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
|
s367748701 | p03852 | C++ | #include<iostream>
#include<string>
char main() {
char c;
std::cin >> c;
if (c == 'a') {
std::cout << "vowel" << std::endl;
}
else if (c == 'i') {
std::cout << "vowel" << std::endl;
}
else if (c == 'u') {
std::cout << "vowel" << std::endl;
}
else if (c == 'e') {
std::cout << "vowel" << std::endl;
}
else if (c == 'o') {
std::cout << "vowel" << std::endl;
}
else {
std::cout << "consonant" << std::endl;
}
return 0;
} | a.cc:3:1: error: '::main' must return 'int'
3 | char main() {
| ^~~~
|
s357460235 | p03852 | C++ |
#include<string>
int main(){
std::string c;
std::cin >> c;
if(c=="o"){
std::cout << "vowel" <<std::endl;
}
else if(c=="u"){
std::cout << "vowel" <<std::endl;
}
else if(c=="i"){
std::cout << "vowel" <<std::endl;
}
else if(c=="e"){
std::cout << "vowel" <<std::endl;
}
else if(c=="a"){
std::cout << "vowel" <<std::endl;
}
else {
std::cout << "consonant" << std::endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:5:6: error: 'cin' is not a member of 'std'
5 | std::cin >> c;
| ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
2 | #include<string>
+++ |+#include <iostream>
3 | int main(){
a.cc:7:6: error: 'cout' is not a member of 'std'
7 | std::cout << "vowel" <<std::endl;
| ^~~~
a.cc:7:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:29: error: 'endl' is not a member of 'std'
7 | std::cout << "vowel" <<std::endl;
| ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
2 | #include<string>
+++ |+#include <ostream>
3 | int main(){
a.cc:10:6: error: 'cout' is not a member of 'std'
10 | std::cout << "vowel" <<std::endl;
| ^~~~
a.cc:10:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:29: error: 'endl' is not a member of 'std'
10 | std::cout << "vowel" <<std::endl;
| ^~~~
a.cc:10:29: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:13:6: error: 'cout' is not a member of 'std'
13 | std::cout << "vowel" <<std::endl;
| ^~~~
a.cc:13:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:29: error: 'endl' is not a member of 'std'
13 | std::cout << "vowel" <<std::endl;
| ^~~~
a.cc:13:29: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:16:6: error: 'cout' is not a member of 'std'
16 | std::cout << "vowel" <<std::endl;
| ^~~~
a.cc:16:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:29: error: 'endl' is not a member of 'std'
16 | std::cout << "vowel" <<std::endl;
| ^~~~
a.cc:16:29: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:19:6: error: 'cout' is not a member of 'std'
19 | std::cout << "vowel" <<std::endl;
| ^~~~
a.cc:19:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:19:29: error: 'endl' is not a member of 'std'
19 | std::cout << "vowel" <<std::endl;
| ^~~~
a.cc:19:29: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:22:6: error: 'cout' is not a member of 'std'
22 | std::cout << "consonant" << std::endl;
| ^~~~
a.cc:22:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:22:34: error: 'endl' is not a member of 'std'
22 | std::cout << "consonant" << std::endl;
| ^~~~
a.cc:22:34: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
|
s996923401 | p03852 | C++ | #include<iostream>
#include<string>
char main() {
char c;
std::cin >> c;
if (c == 'a')
std::cout << "vowel" << std::endl;
if (c == 'i')
std::cout << "vowel" << std::endl;
if (c == 'u')
std::cout << "vowel" << std::endl;
if (c == 'e')
std::cout << "vowel" << std::endl;
if (c == 'o')
std::cout << "vowel" << std::endl;
else {
std::cout << "consonant" << std::endl;
}
} | a.cc:3:1: error: '::main' must return 'int'
3 | char main() {
| ^~~~
|
s127868514 | p03852 | C++ | #include <iostream>
#include<string>
char main() {
char c;
std::cin >> c;
if (c == 'a', 'i', 'u', 'e', 'o')
std::cout << "vowel" << std::endl;
else {
std::cout << "consonant" << std::endl;
}
} | a.cc:3:1: error: '::main' must return 'int'
3 | char main() {
| ^~~~
|
s325002091 | p03852 | C++ | #include<iostream>
#include<string>
int main(){
std::string c;
std::cin >> c;
if(c=="a"){
std::cout << "vowel" << std::endl;
}
else if(c=="e"){
std::cout << "vowel" << std::endl;
}
else if(c=="i"){
std::cout << "vowel" << std::endl;
}
else if(c=="o"){
std::cout << "vowel" << std::endl;
}
else if(C=="u"){
std::cout << "vowel" << std::endl;
}
else{
std::cout << "consonant" << std::endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:18:13: error: 'C' was not declared in this scope
18 | else if(C=="u"){
| ^
|
s809905741 | p03852 | C++ | #include<iostream>
#include<string>
int main(){
std::string c;
std::cin >> c;
if(c=="a"){
std::cout << "vowel" << std::endl;
}
else if(c=="e"){
std::cout << "vowel" << std::endl;
}
else if(c=="i"){
std::cout << "vowel" << std::endl;
}
else if(c=="o"){
std::cout << "vowel" << std::endl;
}
else if(C=="u"){
std::cout << "vowel" << std::endl;
}
else{
std::cout << "consonant" << std::endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:18:13: error: 'C' was not declared in this scope
18 | else if(C=="u"){
| ^
|
s814139962 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
string a;
string b = "aiueo";
int c = 0;
int i;
int main(){
cin>>a;
for(i=0;i<5;++i){
if(a == b[i]){
cout<<"vowel"<<endl;
c = 1;
break;
}
}
if(c == 0){
cout<<"consonant"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:11:10: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'})
11 | if(a == b[i]){
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:11:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
11 | if(a == b[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:11:16: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
11 | if(a == b[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:11:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
11 | if(a == b[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:11:16: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
11 | if(a == b[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:11:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
11 | if(a == b[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:11:16: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
11 | if(a == b[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:11:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
11 | if(a == b[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:11:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
11 | if(a == b[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:11:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
11 | if(a == b[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:11:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
11 | if(a == b[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:11:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
11 | if(a == b[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:11:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
11 | if(a == b[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:11:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
11 | if(a == b[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:11:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
11 | if(a == b[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:11:16: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
11 | if(a == b[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:11:16: note: 'std::__cxx11::basic_string<char |
s214603928 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
string a;
string b = "aiueo";
int c = 0;
int main(){
cin>>a;
for(i=0;i<5;++i){
if(a == b[i]){
cout<<"vowel"<<endl;
c = 1;
break;
}
}
if(c == 0){
cout<<"consonant"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:9:7: error: 'i' was not declared in this scope
9 | for(i=0;i<5;++i){
| ^
|
s527027317 | p03852 | C++ | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String s = scan.next();
char c = s.charAt(0);
if (c == 'a' || c == 'b' || c == 'c' ||c == 'd' ||c == 'e') {
System.out.println("vowel");
}
else
System.out.println("consonant");
}
}
| a.cc:1:1: error: 'import' does not name a type
1 | import java.util.Scanner;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
3 | public class Main {
| ^~~~~~
|
s151041603 | p03852 | C | #include<stdio.h>
int main()
{
char a;
scanf("%c",&Aa);
if(Aa =='a' || Aa == 'e' || Aa == 'i' || Aa == 'o' || Aa=='u')
{
printf("vowel\n");
}
else
{
printf("cosonant\n");
}
} | main.c: In function 'main':
main.c:5:17: error: 'Aa' undeclared (first use in this function); did you mean 'a'?
5 | scanf("%c",&Aa);
| ^~
| a
main.c:5:17: note: each undeclared identifier is reported only once for each function it appears in
|
s565653146 | p03852 | C | #include<stdio.h>
int main()
{
char a;
scanf("%c",&Aa);
if(Aa =='a' || Aa == 'e' || Aa == 'i' || Aa == 'o' || Aa=='u')
{
printf("vowel\n");
}
else
{
printf("consonant\n");
}
} | main.c: In function 'main':
main.c:5:17: error: 'Aa' undeclared (first use in this function); did you mean 'a'?
5 | scanf("%c",&Aa);
| ^~
| a
main.c:5:17: note: each undeclared identifier is reported only once for each function it appears in
|
s690009766 | p03852 | C++ | #include<stdio.h>
int main()
{
char a;
scanf("%c",&Aa);
if(Aa =='a' || Aa == 'e' || Aa == 'i' || Aa == 'o' || Aa=='u')
{
printf("vowel\n");
}
else
{
printf("consonant\n");
}
} | a.cc: In function 'int main()':
a.cc:5:17: error: 'Aa' was not declared in this scope; did you mean 'a'?
5 | scanf("%c",&Aa);
| ^~
| a
|
s488867179 | p03852 | Java | import java.util.*;
public class vowel_cnso
{
public static void main(String[] args)
{
Scanner in = new Scanner(System.in);
char a = in.next().charAt(0);
if(a =='a' || a == 'e' || a == 'i' || a == 'o' || a=='u')
{
System.out.println("vowel");
}
else
{
System.out.println("consonant");
}
}
}
| Main.java:2: error: class vowel_cnso is public, should be declared in a file named vowel_cnso.java
public class vowel_cnso
^
1 error
|
s107504635 | p03852 | C++ | #include<iostream>
#include<algorithm>
#include<vector>
#include<string>
using namespace std;
typedef long long lng;
#define UP(i,a,b) for(int i=(a); i<=(b); ++i)
#define DOWN(i,b,a) for(int i=(b); i>=(a); --i)
#define REP(i,n) UP(i,0,n-1)
#define ALL(a) (a).begin(), (a).end()
#define UNIQUE(a) a.erase(unique(ALL(a)), a.end()) //NOTE: <a> must be sorted in advance
lng power(lng b, lng n) {lng sol=1; while(n>0) {if(n&1) {sol=sol*b;} n>>=1; b*= b;} return sol;} //calculate b^n
const int MOD = 1000000007; //10^9+7
/*********** variables ************/
/**********************************/
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
char c;
cin >> c;
char vo[] = {'a','i', 'u', 'e', 'o'};
REP(i, 5) {
if(c==vo[i]) {
cout << "vowel" << endl;
return 0
}
}
cout << "consonant" << endl;
}
| a.cc: In function 'int main()':
a.cc:31:21: error: expected ';' before '}' token
31 | return 0
| ^
| ;
32 | }
| ~
|
s651132344 | 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 << "consonan" << endl;}
} | a.cc: In function 'int main()':
a.cc:7:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o"){
| ~^~~~~
a.cc:7:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o"){
| ~^~~~~
a.cc:7:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o"){
| ~^~~~~
a.cc:7:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o"){
| ~^~~~~
a.cc:7:47: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o"){
| ~^~~~~
|
s388614945 | p03852 | C++ | #include <bits/stdc++.h>
#include <ctype.h>
using namespace std;
int main(void){
char c;
char v[5] = ['a', 'i', 'u', 'e', 'o'];
for(int i = 0; i < 5; i ++){
if(c==v[i]) cout << "vowel" << endl;
else continue;
}
if(i >= 6) cout << "consonant" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:16: error: expected identifier before 'a'
7 | char v[5] = ['a', 'i', 'u', 'e', 'o'];
| ^~~
a.cc:7:19: error: expected ']' before ',' token
7 | char v[5] = ['a', 'i', 'u', 'e', 'o'];
| ^
| ]
a.cc: In lambda function:
a.cc:7:19: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:7:15: error: array must be initialized with a brace-enclosed initializer
7 | char v[5] = ['a', 'i', 'u', 'e', 'o'];
| ^~~~
a.cc:7:21: error: expected unqualified-id before 'i'
7 | char v[5] = ['a', 'i', 'u', 'e', 'o'];
| ^~~
a.cc:13:6: error: 'i' was not declared in this scope
13 | if(i >= 6) cout << "consonant" << endl;
| ^
|
s797840423 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char c;
cin >> c;
if(char c=="a" || char c=="i" || char c=="u" || char c=="e" || char c=="o"){
cout << "vowel" << endl;}
else{
cout << "consonan" << endl;}
} | a.cc: In function 'int main()':
a.cc:7:12: error: expected initializer before '==' token
7 | if(char c=="a" || char c=="i" || char c=="u" || char c=="e" || char c=="o"){
| ^~
a.cc:7:12: error: expected ')' before '==' token
7 | if(char c=="a" || char c=="i" || char c=="u" || char c=="e" || char c=="o"){
| ~ ^~
| )
|
s292886922 | 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 << "consonan" << endl;}
} | a.cc: In function 'int main()':
a.cc:7:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o"){
| ~^~~~~
a.cc:7:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o"){
| ~^~~~~
a.cc:7:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o"){
| ~^~~~~
a.cc:7:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o"){
| ~^~~~~
a.cc:7:47: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o"){
| ~^~~~~
|
s178012268 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
if (c == 'a' || c == 'i' || c == 'u'
|| c == 'e' || c == 'o'){
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:9: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
8 | if (c == 'a' || c == 'i' || c == 'u'
| ~ ^~ ~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if (c == 'a' || c == 'i' || c == 'u'
| ^~~
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if (c == 'a' || c == 'i' || c == 'u'
| ^~~
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if (c == 'a' || c == 'i' || c == 'u'
| ^~~
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if (c == 'a' || c == 'i' || c == 'u'
| ^~~
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if (c == 'a' || c == 'i' || c == 'u'
| ^~~
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if (c == 'a' || c == 'i' || c == 'u'
| ^~~
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if (c == 'a' || c == 'i' || c == 'u'
| ^~~
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
8 | if (c == 'a' || c == 'i' || c == 'u'
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
8 | if (c == 'a' || c == 'i' || c == 'u'
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | if (c == 'a' || c == 'i' || c == 'u'
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | if (c == 'a' || c == 'i' || c == 'u'
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | if (c == 'a' || c == 'i' || c == 'u'
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | if (c == 'a' || c == 'i' || c == 'u'
| ^~~
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
8 | if (c == 'a' || c == 'i' || c == 'u'
| ^~~
In file included from /usr/include/c++/14/string:43:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
8 | if (c == 'a' || c == 'i' || c == 'u'
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
629 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:629:5: |
s524024936 | p03852 | C++ | #define<iostream>
using namespace std;
int main(){
string s;cin>>s;
if(s=="a"||s=="i"||s=="u"||s=="e"||s=="o"){
cout<<"vowel"<<endl;
}else{
cout<<"consonant"<<endl;
}
} | a.cc:1:8: error: macro names must be identifiers
1 | #define<iostream>
| ^
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
4 | string s;cin>>s;
| ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
+++ |+#include <string>
1 | #define<iostream>
a.cc:4:12: error: 'cin' was not declared in this scope
4 | string s;cin>>s;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
+++ |+#include <iostream>
1 | #define<iostream>
a.cc:4:17: error: 's' was not declared in this scope
4 | string s;cin>>s;
| ^
a.cc:6:5: error: 'cout' was not declared in this scope
6 | cout<<"vowel"<<endl;
| ^~~~
a.cc:6:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:20: error: 'endl' was not declared in this scope
6 | cout<<"vowel"<<endl;
| ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
+++ |+#include <ostream>
1 | #define<iostream>
a.cc:8:5: error: 'cout' was not declared in this scope
8 | cout<<"consonant"<<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<<"consonant"<<endl;
| ^~~~
a.cc:8:24: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
|
s383587936 | p03852 | C++ | s=input()
if s=="a" or s=="i" or s=="u" or s=="e" or s=="o":
print("vowel")
else:
print("consonant")
| a.cc:1:1: error: 's' does not name a type
1 | s=input()
| ^
|
s040077818 | p03852 | C | #include <stdio.h>
#include <string.h>
void rev(char *s) {
int l = strlen(s), i;
for (i = 0; i<l / 2; i++) {
char t = s[i];
s[i] = s[l - 1 - i];
s[l - 1 - i] = t;
}
}
char T[4][8] = { "dream","dreamer","erase","eraser" };
int main() {
int i , c=0, l;
char s[100001];
for (i = 0; i<4; i++)rev(T[i]);
scanf("%s",& s);
l = strlen(s);
rev(s);
for (; c<l;) {
int k = -1;
for (i = 0; i<4; i++) {
if (strncmp(s + c, T[i], strlen(T[i]))!==0) {
k = strlen(T[i]);
break;
}
}
if (k<0) {
puts("NO");
return 0;
}
c += k;
}
puts("YES");
return 0;
}
| main.c: In function 'main':
main.c:22:65: error: expected expression before '=' token
22 | if (strncmp(s + c, T[i], strlen(T[i]))!==0) {
| ^
|
s903961953 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
spring 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: 'spring' was not declared in this scope; did you mean 'sprintf'?
5 | spring c;
| ^~~~~~
| sprintf
a.cc:6:10: error: 'c' was not declared in this scope
6 | cin >> c;
| ^
|
s317432264 | p03852 | C++ | #include<iostream>
#include<algorithm>
#include<math.h>
#include<set>
#include<vector>
#include<map>
typedef long l
typedef long long ll
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:14:7: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
14 | cout<<'vowel'<<endl;
| ^~~~~~~
a.cc:8:1: error: expected initializer before 'typedef'
8 | typedef long long ll
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:12:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
12 | cin>>c;
| ^~~
| 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:14:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
14 | 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:14:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
14 | 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:16:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
16 | 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:16:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
16 | cout<<"consonant"<<endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s089767579 | p03852 | C | #include<stdio.h>
int main(){
char ch=[1];
scanf("%s",ch);
if(ch[0]=='a'||ch[0]=='e'||ch[0]=='i'||ch[0]=='o'||ch[0]=='u'){
printf("vowel");
}
else{
printf("consonant");
}
return 0;
} | main.c: In function 'main':
main.c:4:9: error: expected expression before '[' token
4 | char ch=[1];
| ^
main.c:6:6: error: subscripted value is neither array nor pointer nor vector
6 | if(ch[0]=='a'||ch[0]=='e'||ch[0]=='i'||ch[0]=='o'||ch[0]=='u'){
| ^
main.c:6:18: error: subscripted value is neither array nor pointer nor vector
6 | if(ch[0]=='a'||ch[0]=='e'||ch[0]=='i'||ch[0]=='o'||ch[0]=='u'){
| ^
main.c:6:30: error: subscripted value is neither array nor pointer nor vector
6 | if(ch[0]=='a'||ch[0]=='e'||ch[0]=='i'||ch[0]=='o'||ch[0]=='u'){
| ^
main.c:6:42: error: subscripted value is neither array nor pointer nor vector
6 | if(ch[0]=='a'||ch[0]=='e'||ch[0]=='i'||ch[0]=='o'||ch[0]=='u'){
| ^
main.c:6:54: error: subscripted value is neither array nor pointer nor vector
6 | if(ch[0]=='a'||ch[0]=='e'||ch[0]=='i'||ch[0]=='o'||ch[0]=='u'){
| ^
|
s668531028 | p03852 | C++ | #include<iostream>
#include<cstring>
using namespace std;
int main(void)
{
char str[100];
cin >> str;
if (str[0] == "a" || str[0] == "i" || str[0] == "u" || str[0] == "e" || str[0] == "o") {
cout << "vowe1" << endl;
}
else {
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:11:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
11 | if (str[0] == "a" || str[0] == "i" || str[0] == "u" || str[0] == "e" || str[0] == "o") {
| ~~~~~~~^~~~~~
a.cc:11:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
11 | if (str[0] == "a" || str[0] == "i" || str[0] == "u" || str[0] == "e" || str[0] == "o") {
| ~~~~~~~^~~~~~
a.cc:11:54: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
11 | if (str[0] == "a" || str[0] == "i" || str[0] == "u" || str[0] == "e" || str[0] == "o") {
| ~~~~~~~^~~~~~
a.cc:11:71: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
11 | if (str[0] == "a" || str[0] == "i" || str[0] == "u" || str[0] == "e" || str[0] == "o") {
| ~~~~~~~^~~~~~
a.cc:11:88: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
11 | if (str[0] == "a" || str[0] == "i" || str[0] == "u" || str[0] == "e" || str[0] == "o") {
| ~~~~~~~^~~~~~
|
s100595161 | 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') {
puts("vowel");
}
else puts("consonant");
} | a.cc: In function 'int main()':
a.cc:6:37: error: lvalue required as left operand of assignment
6 | if (c=='a'||c=='e'||c=='i'||c=='o'||c='u') {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
|
s018418604 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int and = 0;string c,v[] = {“a”,”e”,”u”,”I”,”o”};cin >> c;
for(int i =0;i< 5;i++){
if(c == v[i]) ans = 1;
}
if(ans) cout << “vowel “;
else cout << “consonant”;
}
| a.cc:5:31: error: extended character “ is not valid in an identifier
5 | int and = 0;string c,v[] = {“a”,”e”,”u”,”I”,”o”};cin >> c;
| ^
a.cc:5:31: error: extended character ” is not valid in an identifier
a.cc:5:35: error: extended character ” is not valid in an identifier
5 | int and = 0;string c,v[] = {“a”,”e”,”u”,”I”,”o”};cin >> c;
| ^
a.cc:5:35: error: extended character ” is not valid in an identifier
a.cc:5:39: error: extended character ” is not valid in an identifier
5 | int and = 0;string c,v[] = {“a”,”e”,”u”,”I”,”o”};cin >> c;
| ^
a.cc:5:39: error: extended character ” is not valid in an identifier
a.cc:5:43: error: extended character ” is not valid in an identifier
5 | int and = 0;string c,v[] = {“a”,”e”,”u”,”I”,”o”};cin >> c;
| ^
a.cc:5:43: error: extended character ” is not valid in an identifier
a.cc:5:47: error: extended character ” is not valid in an identifier
5 | int and = 0;string c,v[] = {“a”,”e”,”u”,”I”,”o”};cin >> c;
| ^
a.cc:5:47: error: extended character ” is not valid in an identifier
a.cc:9:19: error: extended character “ is not valid in an identifier
9 | if(ans) cout << “vowel “;
| ^
a.cc:9:26: error: extended character “ is not valid in an identifier
9 | if(ans) cout << “vowel “;
| ^
a.cc:10:16: error: extended character “ is not valid in an identifier
10 | else cout << “consonant”;
| ^
a.cc:10:16: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:5:11: error: expected unqualified-id before '=' token
5 | int and = 0;string c,v[] = {“a”,”e”,”u”,”I”,”o”};cin >> c;
| ^
a.cc:5:31: error: '\U0000201ca\U0000201d' was not declared in this scope
5 | int and = 0;string c,v[] = {“a”,”e”,”u”,”I”,”o”};cin >> c;
| ^~~
a.cc:5:35: error: '\U0000201de\U0000201d' was not declared in this scope
5 | int and = 0;string c,v[] = {“a”,”e”,”u”,”I”,”o”};cin >> c;
| ^~~
a.cc:5:39: error: '\U0000201du\U0000201d' was not declared in this scope
5 | int and = 0;string c,v[] = {“a”,”e”,”u”,”I”,”o”};cin >> c;
| ^~~
a.cc:5:43: error: '\U0000201dI\U0000201d' was not declared in this scope
5 | int and = 0;string c,v[] = {“a”,”e”,”u”,”I”,”o”};cin >> c;
| ^~~
a.cc:5:47: error: '\U0000201do\U0000201d' was not declared in this scope
5 | int and = 0;string c,v[] = {“a”,”e”,”u”,”I”,”o”};cin >> c;
| ^~~
a.cc:7:19: error: 'ans' was not declared in this scope; did you mean 'abs'?
7 | if(c == v[i]) ans = 1;
| ^~~
| abs
a.cc:9:6: error: 'ans' was not declared in this scope; did you mean 'abs'?
9 | if(ans) cout << “vowel “;
| ^~~
| abs
a.cc:9:19: error: '\U0000201cvowel' was not declared in this scope
9 | if(ans) cout << “vowel “;
| ^~~~~~
a.cc:10:16: error: '\U0000201cconsonant\U0000201d' was not declared in this scope
10 | else cout << “consonant”;
| ^~~~~~~~~~~
|
s249820431 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
char c;
cin>>c
if(c=='a','i','u','e','o'){
cout<<vowel<<endl;
else{
cout<<"consonant"<<endl;
}
| a.cc: In function 'int main()':
a.cc:5:7: error: expected ';' before 'if'
5 | cin>>c
| ^
| ;
6 | if(c=='a','i','u','e','o'){
| ~~
a.cc:10:2: error: expected '}' at end of input
10 | }
| ^
a.cc:3:11: note: to match this '{'
3 | int main(){
| ^
|
s963173469 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
cout >> "vowel" >> endl;
}
else {
cout >> "consonant" >> endl;
}
} | a.cc: In function 'int main()':
a.cc:8:22: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [6]')
8 | cout >> "vowel" >> endl;
| ~~~~ ^~ ~~~~~~~
| | |
| | const char [6]
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41,
from a.cc:1:
/usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)'
131 | operator>>(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed:
a.cc:8:17: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte'
8 | cout >> "vowel" >> endl;
| ^~~~
In file included from /usr/include/c++/14/string:55,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
835 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed:
a.cc:8:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
8 | cout >> "vowel" >> endl;
| ^~~~~~~
/usr/include/c++/14/bitset:1597:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, bitset<_Nb>&)'
1597 | operator>>(std::basic_istream<_CharT, _Traits>& __is, bitset<_Nb>& __x)
| ^~~~~~~~
/usr/include/c++/14/bitset:1597:5: note: template argument deduction/substitution failed:
a.cc:8:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
8 | cout >> "vowel" >> endl;
| ^~~~~~~
In file included from /usr/include/c++/14/istream:1109,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)'
978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
| ^~~~~~~~
/usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed:
a.cc:8:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
8 | cout >> "vowel" >> endl;
| ^~~~~~~
/usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)'
849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed:
a.cc:8:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
8 | cout >> "vowel" >> endl;
| ^~~~~~~
/usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)'
854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed:
a.cc:8:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
8 | cout >> "vowel" >> endl;
| ^~~~~~~
/usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)'
896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed:
a.cc:8:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
8 | cout >> "vowel" >> endl;
| ^~~~~~~
/usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)'
939 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:939:5: note: template argument deduction/substitution failed:
a.cc:8:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
8 | cout >> "vowel" >> endl;
| ^~~~~~~
/usr/include/c++/14/istream:945:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*)'
945 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:945:5: note: template argument deduction/substitution failed:
a.cc:8:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
8 | cout >> "vowel" >> endl;
| ^~~~~~~
/usr/include/c++/14/istream:1099:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)'
1099 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
/usr/include/c++/14/istream:1099:5: note: template argument deduction/substitution failed:
/usr/include/c++/14/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = const char (&)[6]]':
a.cc:8:11: required from here
8 | cout >> "vowel" >> endl;
| ^~~~~~~
/usr/include/c++/14/istream:1099:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
1099 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
/usr/include/c++/14/complex:509:5: note: candidate: 'template<class _Tp, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, complex<_Tp>&)'
509 | operator>>(basic_istream<_CharT, _Traits>& __is, complex<_Tp>& __x)
| ^~~~~~~~
/usr/include/c++/14/complex:509:5: note: template argument deduction/substitution failed:
a.cc:8:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
8 | cout >> "vowel" >> endl;
| ^~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:143:
/usr/include/c++/14/iomanip:76:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Resetiosflags)'
76 | operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:76:5: note: template argument deduction/substitution failed:
a.cc:8:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
8 | cout >> "vowel" >> endl;
| ^~~~~~~
/usr/include/c++/14/iomanip:106:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setiosflags)'
106 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:106:5: note: template argument deduction/substitution failed:
a.cc:8:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
8 | cout >> "vowel" >> endl;
| ^~~~~~~
/usr/include/c++/14/iomanip:137:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setbase)'
137 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:137:5: note: template argument deduction/substitution failed:
a.cc:8:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
8 | cout >> "vowel" >> endl;
| ^~~~~~~
/usr/include/c++/14/iomanip:177:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setfill<_CharT>)'
177 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setfill<_CharT> __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:177:5: note: template argument deduction/substitution failed:
a.cc:8:25: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
8 | cout >> "vowel" >> endl;
| ^~~~~~~
/usr/include/c++/14/iomanip:207:5: not |
s454221908 | p03852 | C++ | #include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main(void){
// Your code here!
char c;
cin>>c;
cout<<a;
if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
else cout<<consonant<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:9: error: 'a' was not declared in this scope
8 | cout<<a;
| ^
a.cc:9:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ~~^~~~~~
a.cc:9:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ~~^~~~~~
a.cc:9:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ~~^~~~~
a.cc:9:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ~~^~~~~
a.cc:9:48: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ~~^~~~~
a.cc:9:61: error: 'vowe1' was not declared in this scope
9 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ^~~~~
a.cc:10:16: error: 'consonant' was not declared in this scope
10 | else cout<<consonant<<endl;
| ^~~~~~~~~
|
s038486407 | p03852 | C++ | #include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main(void){
// Your code here!
char c;
cin>>c;
cout<<a;
if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
else cout<<consonant<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:9: error: 'a' was not declared in this scope
8 | cout<<a;
| ^
a.cc:9:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ~~^~~~~~
a.cc:9:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ~~^~~~~~
a.cc:9:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ~~^~~~~
a.cc:9:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ~~^~~~~
a.cc:9:48: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ~~^~~~~
a.cc:9:61: error: 'vowe1' was not declared in this scope
9 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ^~~~~
a.cc:10:16: error: 'consonant' was not declared in this scope
10 | else cout<<consonant<<endl;
| ^~~~~~~~~
|
s620573157 | p03852 | C++ | #include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main(void){
// Your code here!
char c;
cin>>c;
if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
else cout<<consonant<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ~~^~~~~~
a.cc:8:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ~~^~~~~~
a.cc:8:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ~~^~~~~
a.cc:8:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ~~^~~~~
a.cc:8:48: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ~~^~~~~
a.cc:8:61: error: 'vowe1' was not declared in this scope
8 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ^~~~~
a.cc:9:16: error: 'consonant' was not declared in this scope
9 | else cout<<consonant<<endl;
| ^~~~~~~~~
|
s145468567 | p03852 | C++ | #include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main(void){
// Your code here!
char c;
cin>>c;
if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
else cout<<consonant<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ~~^~~~~~
a.cc:8:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ~~^~~~~~
a.cc:8:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ~~^~~~~
a.cc:8:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ~~^~~~~
a.cc:8:48: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ~~^~~~~
a.cc:8:61: error: 'vowe1' was not declared in this scope
8 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ^~~~~
a.cc:9:16: error: 'consonant' was not declared in this scope
9 | else cout<<consonant<<endl;
| ^~~~~~~~~
|
s932645288 | p03852 | C++ | #include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main(void){
// Your code here!
char c;
cin>>c;
if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
else cout<<consonant<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ~~^~~~~~
a.cc:8:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ~~^~~~~~
a.cc:8:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ~~^~~~~
a.cc:8:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ~~^~~~~
a.cc:8:48: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ~~^~~~~
a.cc:8:61: error: 'vowe1' was not declared in this scope
8 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ^~~~~
a.cc:9:16: error: 'consonant' was not declared in this scope
9 | else cout<<consonant<<endl;
| ^~~~~~~~~
|
s176814103 | p03852 | C++ | #include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main(void){
// Your code here!
char c;
cin>>c;
if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
else cout<<consonant<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ~~^~~~~~
a.cc:8:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ~~^~~~~~
a.cc:8:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ~~^~~~~
a.cc:8:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ~~^~~~~
a.cc:8:48: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ~~^~~~~
a.cc:8:61: error: 'vowe1' was not declared in this scope
8 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
| ^~~~~
a.cc:9:16: error: 'consonant' was not declared in this scope
9 | else cout<<consonant<<endl;
| ^~~~~~~~~
|
s682098384 | p03852 | C++ | #include <iostream>
using namespace std;
int main(void){
string l;
cin >> l;
if(c =="a"){
cout << "vowel" << endl;
}
else if(c=="e"){
cout << "vowel" << endl;
}
else if(c=="i"){
cout << "vowel" << endl;
}
else if(c=="O"){
cout << "vowel" << endl;
}
else if(c=="u"){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:6:8: error: 'c' was not declared in this scope
6 | if(c =="a"){
| ^
|
s726434618 | 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 << "constant" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:8:59: error: expected primary-expression before ')' token
8 | if (c == 'a'||c == 'i'||c == 'u'||c == 'e'||c == 'o'||) {
| ^
|
s674627904 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char a;
cin >> a;
if(a == 'a' || a == 'i' || a == 'u' || a == 'e' || a == 'o'){
cout << "vowel" << endl;
}
else{
cout << "consonant" << end;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:11:25: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
11 | cout << "consonant" << end;
| ~~~~~~~~~~~~~~~~~~~~^~~~~~
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,
from a.cc:1:
/usr/include/c++/14/ostream:116:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ostream_type& (*)(__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
116 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ^~~~~~~~
/usr/include/c++/14/ostream:116:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)' {aka 'std::basic_ostream<char>& (*)(std::basic_ostream<char>&)'}
116 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:125:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; __ios_type = std::basic_ios<char>]'
125 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/usr/include/c++/14/ostream:125:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'}
125 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:135:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
135 | operator<<(ios_base& (*__pf) (ios_base&))
| ^~~~~~~~
/usr/include/c++/14/ostream:135:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::ios_base& (*)(std::ios_base&)'
135 | operator<<(ios_base& (*__pf) (ios_base&))
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:174:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
174 | operator<<(long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:174:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int'
174 | operator<<(long __n)
| ~~~~~^~~
/usr/include/c++/14/ostream:178:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
178 | operator<<(unsigned long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:178:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int'
178 | operator<<(unsigned long __n)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:182:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
182 | operator<<(bool __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:182:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'bool'
182 | operator<<(bool __n)
| ~~~~~^~~
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:96:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]'
96 | basic_ostream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:97:22: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short int'
97 | operator<<(short __n)
| ~~~~~~^~~
/usr/include/c++/14/ostream:189:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
189 | operator<<(unsigned short __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:189:33: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short unsigned int'
189 | operator<<(unsigned short __n)
| ~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/ostream.tcc:110:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]'
110 | basic_ostream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:111:20: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int'
111 | operator<<(int __n)
| ~~~~^~~
/usr/include/c++/14/ostream:200:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
200 | operator<<(unsigned int __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:200:31: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'unsigned int'
200 | operator<<(unsigned int __n)
| ~~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:211:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
211 | operator<<(long long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:211:28: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int'
211 | operator<<(long long __n)
| ~~~~~~~~~~^~~
/usr/include/c++/14/ostream:215:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
215 | operator<<(unsigned long long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:215:37: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long unsigned int'
215 | operator<<(unsigned long long __n)
| ~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:231:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
231 | operator<<(double __f)
| ^~~~~~~~
/usr/include/c++/14/ostream:231:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'double'
231 | operator<<(double __f)
| ~~~~~~~^~~
/usr/include/c++/14/ostream:235:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
235 | operator<<(float __f)
| ^~~~~~~~
/usr/include/c++/14/ostream:235:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float'
235 | operator<<(float __f)
| ~~~~~~^~~
/usr/include/c++/14/ostream:243:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
243 | operator<<(long double __f)
| ^~~~~~~~
/usr/include/c++/14/ostream:243:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long double'
243 | operator<<(long double __f)
| ~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:301:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
301 | operator<<(const void* __p)
| ^~~~~~~~
/usr/include/c++/14/ostream:301:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const void*'
301 | operator<<(const void* __p)
| ~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:306:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::nullptr_t) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; std::nullptr_t = std::nullptr_ |
s315892133 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char a;
cin >> a;
if(a == 'a' || a == 'i' || a == 'u' || a == 'e' || a == 'o'){
cout << "vowel" << endl;
}
else{
cout << "consonant" << end;}
return 0;
} | a.cc: In function 'int main()':
a.cc:11:25: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
11 | cout << "consonant" << end;}
| ~~~~~~~~~~~~~~~~~~~~^~~~~~
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,
from a.cc:1:
/usr/include/c++/14/ostream:116:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ostream_type& (*)(__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
116 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ^~~~~~~~
/usr/include/c++/14/ostream:116:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)' {aka 'std::basic_ostream<char>& (*)(std::basic_ostream<char>&)'}
116 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:125:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; __ios_type = std::basic_ios<char>]'
125 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/usr/include/c++/14/ostream:125:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'}
125 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:135:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
135 | operator<<(ios_base& (*__pf) (ios_base&))
| ^~~~~~~~
/usr/include/c++/14/ostream:135:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::ios_base& (*)(std::ios_base&)'
135 | operator<<(ios_base& (*__pf) (ios_base&))
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:174:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
174 | operator<<(long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:174:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int'
174 | operator<<(long __n)
| ~~~~~^~~
/usr/include/c++/14/ostream:178:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
178 | operator<<(unsigned long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:178:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int'
178 | operator<<(unsigned long __n)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:182:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
182 | operator<<(bool __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:182:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'bool'
182 | operator<<(bool __n)
| ~~~~~^~~
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:96:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]'
96 | basic_ostream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:97:22: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short int'
97 | operator<<(short __n)
| ~~~~~~^~~
/usr/include/c++/14/ostream:189:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
189 | operator<<(unsigned short __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:189:33: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short unsigned int'
189 | operator<<(unsigned short __n)
| ~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/ostream.tcc:110:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]'
110 | basic_ostream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:111:20: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int'
111 | operator<<(int __n)
| ~~~~^~~
/usr/include/c++/14/ostream:200:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
200 | operator<<(unsigned int __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:200:31: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'unsigned int'
200 | operator<<(unsigned int __n)
| ~~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:211:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
211 | operator<<(long long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:211:28: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int'
211 | operator<<(long long __n)
| ~~~~~~~~~~^~~
/usr/include/c++/14/ostream:215:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
215 | operator<<(unsigned long long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:215:37: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long unsigned int'
215 | operator<<(unsigned long long __n)
| ~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:231:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
231 | operator<<(double __f)
| ^~~~~~~~
/usr/include/c++/14/ostream:231:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'double'
231 | operator<<(double __f)
| ~~~~~~~^~~
/usr/include/c++/14/ostream:235:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
235 | operator<<(float __f)
| ^~~~~~~~
/usr/include/c++/14/ostream:235:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float'
235 | operator<<(float __f)
| ~~~~~~^~~
/usr/include/c++/14/ostream:243:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
243 | operator<<(long double __f)
| ^~~~~~~~
/usr/include/c++/14/ostream:243:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long double'
243 | operator<<(long double __f)
| ~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:301:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
301 | operator<<(const void* __p)
| ^~~~~~~~
/usr/include/c++/14/ostream:301:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const void*'
301 | operator<<(const void* __p)
| ~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:306:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::nullptr_t) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; std::nullptr_t = std::nullptr |
s707511433 | p03852 | C++ | #include <bits/stdc++.h>
using namespase std;
int main( ) {
string C
int >> C
if (C == a || i || u || e || o )
cout << vowel
else
cout << consonant
} | a.cc:2:7: error: expected nested-name-specifier before 'namespase'
2 | using namespase std;
| ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
5 | string C
| ^~~~~~
a.cc:5:3: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note: 'std::string'
77 | typedef basic_string<char> string;
| ^~~~~~
/usr/include/c++/14/string:76:11: note: 'std::pmr::string'
76 | using string = basic_string<char>;
| ^~~~~~
|
s864527618 | p03852 | C++ | #include <iostream>
using namespace std;
int main(void) {
char c;
cin >> c;
if( c=='a' || c=='i' || c=='u' || c=='e' || c=='o' )
cout << vowel;
else
cout << consonant;
cout << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:17: error: 'vowel' was not declared in this scope
7 | cout << vowel;
| ^~~~~
a.cc:9:13: error: 'consonant' was not declared in this scope
9 | cout << consonant;
| ^~~~~~~~~
|
s878255649 | p03852 | C++ | #include <iostream>
using namespace std;
int main(void) {
char c;
cin >> c;
if( c=="a" || c=="i" || c=="u" || c=="e" || c=="o" )
cout << vowel;
else
cout << consonant;
cout << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if( c=="a" || c=="i" || c=="u" || c=="e" || c=="o" )
| ~^~~~~
a.cc:6:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if( c=="a" || c=="i" || c=="u" || c=="e" || c=="o" )
| ~^~~~~
a.cc:6:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if( c=="a" || c=="i" || c=="u" || c=="e" || c=="o" )
| ~^~~~~
a.cc:6:38: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if( c=="a" || c=="i" || c=="u" || c=="e" || c=="o" )
| ~^~~~~
a.cc:6:48: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if( c=="a" || c=="i" || c=="u" || c=="e" || c=="o" )
| ~^~~~~
a.cc:7:17: error: 'vowel' was not declared in this scope
7 | cout << vowel;
| ^~~~~
a.cc:9:13: error: 'consonant' was not declared in this scope
9 | cout << consonant;
| ^~~~~~~~~
|
s671245484 | p03852 | C | #include <iostream>
using namespace std;
int main(void) {
char c;
cin >> c;
if( c=="a" || c=="i" || c=="u" || c=="e" || c=="o" )
cout << vowel;
else
cout << consonant;
cout << endl;
return 0;
} | main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s968053289 | p03852 | C++ | #include <stdio.h>
int main(void){
int i;
char c;
char s[5] = {"aiueo"};
scanf("%c", &c);
for( i = 0 ; i < 5 ; i = i + 1 ){
if( s[i] == c ){
printf("vowel\n");
return 0;
}
}
printf("consonant\n");
return 0;
} | a.cc: In function 'int main()':
a.cc:11:18: error: initializer-string for 'char [5]' is too long [-fpermissive]
11 | char s[5] = {"aiueo"};
| ^~~~~~~
|
s915372423 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main ()
{
char s = {"aeiou"};
char n;
cin >> n;
if (n:s)
{ cout << "vowel";}
else
cout << "consonant";
return 0;
} | a.cc:9:4: error: extended character is not valid in an identifier
9 | char n;
| ^
a.cc:10:4: error: extended character is not valid in an identifier
10 | cin >> n;
| ^
a.cc: In function 'int main()':
a.cc:8:14: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
8 | char s = {"aeiou"};
| ^~~~~~~
| |
| const char*
a.cc:9:4: error: '\U0000200echar' was not declared in this scope
9 | char n;
| ^~~~
a.cc:10:4: error: '\U0000200ecin' was not declared in this scope
10 | cin >> n;
| ^~~
a.cc:10:11: error: 'n' was not declared in this scope
10 | cin >> n;
| ^
a.cc:11:6: error: found ':' in nested-name-specifier, expected '::'
11 | if (n:s)
| ^
| ::
a.cc:11:5: error: 'n' is not a class, namespace, or enumeration
11 | if (n:s)
| ^
|
s217468574 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main ()
{
string s = {"aeiou"};
string n;
cin >> n;
if (n:s)
{ cout << "vowel";}
else
cout << "consonant";
return 0;
} | a.cc:9:4: error: extended character is not valid in an identifier
9 | string n;
| ^
a.cc:10:4: error: extended character is not valid in an identifier
10 | cin >> n;
| ^
a.cc: In function 'int main()':
a.cc:9:4: error: '\U0000200estring' was not declared in this scope
9 | string n;
| ^~~~~~
a.cc:10:4: error: '\U0000200ecin' was not declared in this scope
10 | cin >> n;
| ^~~
a.cc:10:11: error: 'n' was not declared in this scope
10 | cin >> n;
| ^
a.cc:11:6: error: found ':' in nested-name-specifier, expected '::'
11 | if (n:s)
| ^
| ::
a.cc:11:5: error: 'n' is not a class, namespace, or enumeration
11 | if (n:s)
| ^
|
s840701922 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main ()
{
string s = {"aeiou"};
string n;
cin >> n;
if (n==s)
{ cout << "vowel";}
else
cout << "consonant";
return 0;
} | a.cc:9:4: error: extended character is not valid in an identifier
9 | string n;
| ^
a.cc:10:4: error: extended character is not valid in an identifier
10 | cin >> n;
| ^
a.cc: In function 'int main()':
a.cc:9:4: error: '\U0000200estring' was not declared in this scope
9 | string n;
| ^~~~~~
a.cc:10:4: error: '\U0000200ecin' was not declared in this scope
10 | cin >> n;
| ^~~
a.cc:10:11: error: 'n' was not declared in this scope
10 | cin >> n;
| ^
|
s250104789 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main ()
{
string s = {"aeiou"};
string n;
cin >> n;
if (n==s)
{ cout << "vowel"};
else
cout << "consonant";
return 0;
} | a.cc:9:4: error: extended character is not valid in an identifier
9 | string n;
| ^
a.cc:10:4: error: extended character is not valid in an identifier
10 | cin >> n;
| ^
a.cc: In function 'int main()':
a.cc:9:4: error: '\U0000200estring' was not declared in this scope
9 | string n;
| ^~~~~~
a.cc:10:4: error: '\U0000200ecin' was not declared in this scope
10 | cin >> n;
| ^~~
a.cc:10:11: error: 'n' was not declared in this scope
10 | cin >> n;
| ^
a.cc:12:18: error: expected ';' before '}' token
12 | { cout << "vowel"};
| ^
| ;
a.cc:13:1: error: 'else' without a previous 'if'
13 | else
| ^~~~
|
s735318740 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main ()
{
string s = {"aeiou"};
string n;
cin >> n;
if (n==s[0] ||s[1]||s[2]||s[3]||s[4])
{ cout << "vowel"};
else
cout << "consonant";
return 0;
} | a.cc:9:4: error: extended character is not valid in an identifier
9 | string n;
| ^
a.cc:10:4: error: extended character is not valid in an identifier
10 | cin >> n;
| ^
a.cc: In function 'int main()':
a.cc:9:4: error: '\U0000200estring' was not declared in this scope
9 | string n;
| ^~~~~~
a.cc:10:4: error: '\U0000200ecin' was not declared in this scope
10 | cin >> n;
| ^~~
a.cc:10:11: error: 'n' was not declared in this scope
10 | cin >> n;
| ^
a.cc:12:18: error: expected ';' before '}' token
12 | { cout << "vowel"};
| ^
| ;
a.cc:13:1: error: 'else' without a previous 'if'
13 | else
| ^~~~
|
s504672615 | p03852 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String c = sc.next();
char a = c.charAt(0);
if(c == 'a'||c=='i'||c=='u'||c=='e'||c=='o')System.out.println("vowel");
else System.out.println("consonant");
}
}
| Main.java:7: error: bad operand types for binary operator '=='
if(c == 'a'||c=='i'||c=='u'||c=='e'||c=='o')System.out.println("vowel");
^
first type: String
second type: char
Main.java:7: error: bad operand types for binary operator '=='
if(c == 'a'||c=='i'||c=='u'||c=='e'||c=='o')System.out.println("vowel");
^
first type: String
second type: char
Main.java:7: error: bad operand types for binary operator '=='
if(c == 'a'||c=='i'||c=='u'||c=='e'||c=='o')System.out.println("vowel");
^
first type: String
second type: char
Main.java:7: error: bad operand types for binary operator '=='
if(c == 'a'||c=='i'||c=='u'||c=='e'||c=='o')System.out.println("vowel");
^
first type: String
second type: char
Main.java:7: error: bad operand types for binary operator '=='
if(c == 'a'||c=='i'||c=='u'||c=='e'||c=='o')System.out.println("vowel");
^
first type: String
second type: char
5 errors
|
s743429565 | p03852 | C++ | #include "bits/stdc++.h"
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
const int INF = 1e9;
const ll LINF = 1e18;
template<class S,class T> ostream &operator << (ostream& out,const pair<S,T>& o){
out << "(" << o.first << "," << o.second << ")"; return out;
}
/*
Atcoder 100~200点代
アな問題が多いので,まとめる
*/
// https://abc042.contest.atcoder.jp/tasks/abc042_a
//void solve(){ ll A,B,C; cin >> A >> B >> C; if(A == 5 && B == 5 && C == 7){ cout << "YES" << endl; return;} if(A == 5 && B == 7 && C == 5){ cout << "YES" << endl; return;} if(A == 7 && B == 5 && C == 5){ cout << "YES" << endl; return;} cout << "NO" << endl; return ; }
// https://abc043.contest.atcoder.jp/tasks/abc043_a
//void solve(){ ll N; cin >> N; cout << N*(N+1)/2 << endl; }
// https://abc044.contest.atcoder.jp/tasks/abc044_a
//void solve(){ll N,K,X,Y;cin>>N>>K>>X>>Y; cout<<X*min(N,K)+Y*max(0LL,N-K)<<endl;}
// https://abc045.contest.atcoder.jp/tasks/abc045_a
//void solve(){ll a,b,h;cin>>a>>b>>h;cout<<(a+b)*h/2<<endl;}
// https://abc046.contest.atcoder.jp/tasks/abc046_a
//void solve(){ ll a,b,c; cin >> a >> b >> c; set<ll> s; s.insert(a); s.insert(b); s.insert(c); cout << s.size() << endl; }
// https://abc047.contest.atcoder.jp/tasks/abc047_a
//void solve(){ll a,b,c;cin>>a>>b>>c;if(a==b+c||b==a+c||c==a+b)cout<<"Yes"<<endl;else cout<<"No"<<endl;}
// https://abc048.contest.atcoder.jp/tasks/abc048_a
//void solve(){string s1,s2,s3;cin>>s1>>s2>>s3;cout<<"A"<<s2[0]<<"C"<<endl;}
// https://abc049.contest.atcoder.jp/tasks/abc049_a
void solve(){char c;cin>>c;string s="aiueo";if(s.find(c)!=s.end())cout<<"vowel"<<endl;else cout<<"consonant"<<endl;}
// https://abc050.contest.atcoder.jp/tasks/abc050_a
//void solve(){}
// https://abc051.contest.atcoder.jp/tasks/abc051_a
//void solve(){}
// https://abc052.contest.atcoder.jp/tasks/abc052_a
//void solve(){}
// https://abc053.contest.atcoder.jp/tasks/abc053_a
//void solve(){}
// https://abc054.contest.atcoder.jp/tasks/abc054_a
//void solve(){}
// Main function
int main(void) {cin.tie(0); ios::sync_with_stdio(false); solve(); return 0; }
| a.cc: In function 'void solve()':
a.cc:30:57: error: no match for 'operator!=' (operand types are 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'std::__cxx11::basic_string<char>::iterator')
30 | void solve(){char c;cin>>c;string s="aiueo";if(s.find(c)!=s.end())cout<<"vowel"<<endl;else cout<<"consonant"<<endl;}
| ~~~~~~~~~^~~~~~~~~
| | |
| | std::__cxx11::basic_string<char>::iterator
| std::__cxx11::basic_string<char>::size_type {aka long unsigned 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:1132:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator!=(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1132 | operator!=(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1132:5: note: template argument deduction/substitution failed:
a.cc:30:65: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'}
30 | void solve(){char c;cin>>c;string s="aiueo";if(s.find(c)!=s.end())cout<<"vowel"<<endl;else cout<<"consonant"<<endl;}
| ^
/usr/include/c++/14/bits/regex.h:1212: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>&)'
1212 | operator!=(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1212:5: note: template argument deduction/substitution failed:
a.cc:30:65: note: mismatched types 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'}
30 | void solve(){char c;cin>>c;string s="aiueo";if(s.find(c)!=s.end())cout<<"vowel"<<endl;else cout<<"consonant"<<endl;}
| ^
/usr/include/c++/14/bits/regex.h:1305: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>&)'
1305 | operator!=(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1305:5: note: template argument deduction/substitution failed:
a.cc:30:65: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'}
30 | void solve(){char c;cin>>c;string s="aiueo";if(s.find(c)!=s.end())cout<<"vowel"<<endl;else cout<<"consonant"<<endl;}
| ^
/usr/include/c++/14/bits/regex.h:1379:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator!=(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1379 | operator!=(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1379:5: note: template argument deduction/substitution failed:
a.cc:30:65: note: 'std::__cxx11::basic_string<char>::iterator' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
30 | void solve(){char c;cin>>c;string s="aiueo";if(s.find(c)!=s.end())cout<<"vowel"<<endl;else cout<<"consonant"<<endl;}
| ^
/usr/include/c++/14/bits/regex.h:1473:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator!=(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1473 | operator!=(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1473:5: note: template argument deduction/substitution failed:
a.cc:30:65: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'}
30 | void solve(){char c;cin>>c;string s="aiueo";if(s.find(c)!=s.end())cout<<"vowel"<<endl;else cout<<"consonant"<<endl;}
| ^
/usr/include/c++/14/bits/regex.h:1547:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator!=(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1547 | operator!=(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1547:5: note: template argument deduction/substitution failed:
a.cc:30:65: note: 'std::__cxx11::basic_string<char>::iterator' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
30 | void solve(){char c;cin>>c;string s="aiueo";if(s.find(c)!=s.end())cout<<"vowel"<<endl;else cout<<"consonant"<<endl;}
| ^
/usr/include/c++/14/bits/regex.h:1647:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator!=(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1647 | operator!=(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1647:5: note: template argument deduction/substitution failed:
a.cc:30:65: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'}
30 | void solve(){char c;cin>>c;string s="aiueo";if(s.find(c)!=s.end())cout<<"vowel"<<endl;else cout<<"consonant"<<endl;}
| ^
/usr/include/c++/14/bits/regex.h:2213:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator!=(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2213 | operator!=(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2213:5: note: template argument deduction/substitution failed:
a.cc:30:65: note: mismatched types 'const std::__cxx11::match_results<_BiIter, _Alloc>' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'}
30 | void solve(){char c;cin>>c;string s="aiueo";if(s.find(c)!=s.end())cout<<"vowel"<<endl;else cout<<"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:1052:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator!=(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1052 | operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1052:5: note: template argument deduction/substitution failed:
a.cc:30:65: note: mismatched types 'const std::pair<_T1, _T2>' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'}
30 | void solve(){char c;cin>>c;string s="aiueo";if(s.find(c)!=s.end())cout<<"vowel"<<endl;else cout<<"consonant"<<endl;}
| ^
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:455:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator!=(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
455 | operator!=(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:455:5: note: template argument deduction/substitution failed:
a.cc:30:65: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'}
30 | void solve(){char c;cin>>c;string s="aiueo";if(s.find(c)!=s.end())cout<<"vowel"<<endl;else cout<<"consonant"<<endl;}
| ^
/usr/include/c++/14/bits/stl_iterator.h:500:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator!=(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
500 | operator!=(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:500:5: note: template argument deduction/substitution failed:
a.cc:30:65: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'}
30 | void solve(){char c;cin>>c;string s="aiueo";if(s.find(c)!=s.end())cout<<"vowel"<<endl;else cout<<"consonant"<<endl;}
| ^
/usr/include/c++/14/bits/stl_iterator.h:1686:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator!=(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1686 | operator!=(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1686:5: note: template argument deduction/substitution failed:
a.cc:30:65: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'}
30 | void solve(){char c;cin>>c;string s="aiueo";if(s.find(c)!=s.end())cout<<"vowel"<<endl;else cout<<"consonant"<<endl;}
| ^
/usr/include/c++/14/bits/stl_iterator.h:1753:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator!=(const move_iterator<_Iterator |
s937692197 | p03852 | C++ | #include<iostream>
using namespace std;
int main(){
int c;
cin >> c;
if(c == 'a') cout<<"vowel\n";
else if(c == 'i') cout<<"vowel\n";
else if(c == 'u') cout<<"vowel\n";
else if(c == 'e') cout<<"vowel\n";
else if(c == 'o') cout<<"vowel\n";
else if cout <<"consonant\n";
} | a.cc: In function 'int main()':
a.cc:13:11: error: expected '(' before 'cout'
13 | else if cout <<"consonant\n";
| ^~~~
| (
|
s820187338 | p03852 | C++ | #include<iostream>
using namespace std;
int main(){
int c;
cin >> c;
if(c == 'a') cout<<"vowel\n";
else if(c == 'i') cout<<"vowel\n";
else if(c == 'u') cout<<"vowel\n";
else if(c == 'e') cout<<"vowel\n";
else if(c == 'o') cout<<"vowel\n";
else cout <<"consonant\n"; | a.cc: In function 'int main()':
a.cc:13:29: error: expected '}' at end of input
13 | else cout <<"consonant\n";
| ^
a.cc:4:11: note: to match this '{'
4 | int main(){
| ^
|
s857136632 | p03852 | C++ | #include<iostream>
using namespace std;
int main(){
char c;
cin >> c;
if(c == "a") cout<<"vowel\n";
else if(c == "i") cout<<"vowel\n";
else if(c == "u") cout<<"vowel\n";
else if(c == "e") cout<<"vowel\n";
else if(c == "o") cout<<"vowel\n";
else cout <<"consonant\n"; | a.cc: In function 'int main()':
a.cc:8:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(c == "a") cout<<"vowel\n";
| ~~^~~~~~
a.cc:9:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | else if(c == "i") cout<<"vowel\n";
| ~~^~~~~~
a.cc:10:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
10 | else if(c == "u") cout<<"vowel\n";
| ~~^~~~~~
a.cc:11:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
11 | else if(c == "e") cout<<"vowel\n";
| ~~^~~~~~
a.cc:12:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
12 | else if(c == "o") cout<<"vowel\n";
| ~~^~~~~~
a.cc:13:29: error: expected '}' at end of input
13 | else cout <<"consonant\n";
| ^
a.cc:4:11: note: to match this '{'
4 | int main(){
| ^
|
s781375447 | p03852 | C | #include<stdio.h>
int main(void)
{
char str;
int i;
char scan[]={'a','i','u','e','o'};
scanf("%c",&str);
for(i=0;i<5;i++)
{
if(str==scan[i])
{
printf("vowel\n");
break;
}
else if(i==4&&str!=scan[i])
{
printf("consonant\n");
break;
}
}
}
return 0; | main.c:22:3: error: expected identifier or '(' before 'return'
22 | return 0;
| ^~~~~~
|
s589616493 | p03852 | C | #include<stdio.h>
int main(void)
{
char str;
int i;
char scan[]={'a','i','u','e','o'};
scanf("%c",&str);
for(i=0;i<5;i++)
{
if(str==scan[i])
{
printf("vowel\n");
break;
}
else if(i==4&&str!=scan[i])
{
printf("consonant\n");
break;
}
}
return 0; | main.c: In function 'main':
main.c:21:3: error: expected declaration or statement at end of input
21 | return 0;
| ^~~~~~
|
s497930877 | p03852 | C | #include<stdio.h>
int main(void)
{
char str;
int i;
char scan[]={a,i,u,e,o};
scanf("%c",&str);
for(i=0;i<5;i++)
{
if(str==scan[i])
{
printf("vowel\n");
break;
}
else if(i==4&&str!=scan[i])
{
printf("consonant\n");
break;
}
}
return 0; | main.c: In function 'main':
main.c:6:16: error: 'a' undeclared (first use in this function)
6 | char scan[]={a,i,u,e,o};
| ^
main.c:6:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:20: error: 'u' undeclared (first use in this function)
6 | char scan[]={a,i,u,e,o};
| ^
main.c:6:22: error: 'e' undeclared (first use in this function)
6 | char scan[]={a,i,u,e,o};
| ^
main.c:6:24: error: 'o' undeclared (first use in this function)
6 | char scan[]={a,i,u,e,o};
| ^
main.c:21:3: error: expected declaration or statement at end of input
21 | return 0;
| ^~~~~~
|
s623390734 | p03852 | C | #include<stdio.h>
int main(){
char c;
scanf("%c",&c);
if(c='a'||c='i'||c='u'||c='e'||c='o'){
printf("vowel");
}
else{
printf("consonant");
}
return 0;
} | main.c: In function 'main':
main.c:5:35: error: lvalue required as left operand of assignment
5 | if(c='a'||c='i'||c='u'||c='e'||c='o'){
| ^
|
s071883195 | p03852 | Java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String w = sc.next();
char s = w.charAt();
if(s=='a' || s=='i' || s=='u' || s=='e' || s=='o'){
System.out.println("vowel");
}else{
System.out.println("consonant");
}
}
} | Main.java:6: error: method charAt in class String cannot be applied to given types;
char s = w.charAt();
^
required: int
found: no arguments
reason: actual and formal argument lists differ in length
1 error
|
s845330635 | p03852 | C++ | #include<iostream>
#include<algorithm>
#include<string>
#include<vector>
#include<math.h>
#include<map>
#include<functional>
#include<queue>
using namespace std;
int main() {
char c;
cin>>c;
if((c=='a')||(c=='b')||(c=='c')||(c=='d')||(c=='e'){
cout<<"vowel"<<endl;
}else{
cout<<"consonant"<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:13:52: error: expected ')' before '{' token
13 | if((c=='a')||(c=='b')||(c=='c')||(c=='d')||(c=='e'){
| ~ ^
| )
a.cc:18:1: error: expected primary-expression before '}' token
18 | }
| ^
|
s895777358 | p03852 | C++ | // finish date: 2018/01/10
#include <iostream>
#include <cmath>
#include <vector>
#include <bitset>
#include <algorithm>
#include <stack>
#include <map>
#include <climits>
using namespace std;
#define FOR(i, a, b) for(int i=a;i<b;i++)
#define rep(i, n) FOR(i,0,n)
#define ll long long
bool isExist(char c, string str) {
rep(i, str.length()) {
if (c == str[i]) return true;
}
return false;
}
int fact(int n) {
int ans = 1;
FOR(i, 1, n + 1) {
ans *= i;
}
return ans;
}
int main() {
char c;
cin >> c;
if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){
cout <<"vowel"<<endl;
}else cout<<"consonant"
return 0;
} | a.cc: In function 'int main()':
a.cc:37:28: error: expected ';' before 'return'
37 | }else cout<<"consonant"
| ^
| ;
......
40 | return 0;
| ~~~~~~
|
s015242276 | p03852 | C++ | #include<iostream>
#include<math.h>
#include<string>
#include<algorithm>
using namespace std;
int main(){
a[]={1,0,0,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0};
char c;
cin>>c;
int n=c-'a';
if(n)cout<<"vowel"<<endl;
else cout<<"consonant"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:9: error: 'a' was not declared in this scope
8 | a[]={1,0,0,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0};
| ^
a.cc:8:11: error: expected primary-expression before ']' token
8 | a[]={1,0,0,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0};
| ^
|
s478515552 | p03852 | C++ | #include <iostream>
#include <string>
int main(){
std::string S;
std::cin >> S;
if(S=='a' || S=='i' || S=='u' || S=='e' ||S=='o')
std::cout << "vowel" << std::endl;
else
std::cout << "consonant" <<std::endl;
} | a.cc: In function 'int main()':
a.cc:6:5: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
6 | if(S=='a' || S=='i' || S=='u' || S=='e' ||S=='o')
| ~^~~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/c++allocator.h:33,
from /usr/include/c++/14/bits/allocator.h:46,
from /usr/include/c++/14/string:43,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/new_allocator.h:215:9: note: candidate: 'template<class _Up> bool std::operator==(const __new_allocator<char>&, const __new_allocator<_Tp>&)'
215 | operator==(const __new_allocator&, const __new_allocator<_Up>&)
| ^~~~~~~~
/usr/include/c++/14/bits/new_allocator.h:215:9: note: template argument deduction/substitution failed:
a.cc:6:7: note: mismatched types 'const std::__new_allocator<_Tp>' and 'char'
6 | if(S=='a' || S=='i' || S=='u' || S=='e' ||S=='o')
| ^~~
In file included from /usr/include/c++/14/iosfwd:42,
from /usr/include/c++/14/ios:40:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:6:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
6 | if(S=='a' || S=='i' || S=='u' || S=='e' ||S=='o')
| ^~~
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:6:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
6 | if(S=='a' || S=='i' || S=='u' || S=='e' ||S=='o')
| ^~~
In file included from /usr/include/c++/14/string:48:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:6:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
6 | if(S=='a' || S=='i' || S=='u' || S=='e' ||S=='o')
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:6:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
6 | if(S=='a' || S=='i' || S=='u' || S=='e' ||S=='o')
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:6:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
6 | if(S=='a' || S=='i' || S=='u' || S=='e' ||S=='o')
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:6:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
6 | if(S=='a' || S=='i' || S=='u' || S=='e' ||S=='o')
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/string:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:6:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
6 | if(S=='a' || S=='i' || S=='u' || S=='e' ||S=='o')
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
629 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:629:5: note: template argument deduction/substitution failed:
a.cc:6:7: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
6 | if(S=='a' || S=='i' || S=='u' || S=='e' ||S=='o')
| ^~~
/usr/include/c++/14/string_view:637:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
637 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:637:5: note: template argument deduction/substitution failed:
a.cc:6:7: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
6 | if(S=='a' || S=='i' || S=='u' || S=='e' ||S=='o')
| ^~~
/usr/include/c++/14/string_view:644:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)'
644 | operator==(__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:644:5: note: template argument deduction/substitution failed:
a.cc:6:7: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'char'
6 | if(S=='a' || S=='i' || S=='u' || S=='e' ||S=='o')
| ^~~
/usr/include/c++/14/bits/basic_string.h:3755:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3755 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3755:5: note: template argument deduction/substitution failed:
a.cc:6:7: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'char'
6 | if(S=='a' || S=='i' || S=='u' || S=='e' ||S=='o')
| ^~~
/usr/include/c++/14/bits/basic_string.h:3772:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3772 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3772:5: note: template argument deduction/substitution failed:
a.cc:6:7: note: mismatched types 'const _CharT*' and 'char'
6 | if(S=='a' || S=='i' || S=='u' || S=='e' ||S=='o')
| ^~~
/usr/include/c++/14/bits/basic_string.h:3819:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3819 | operator==(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3819:5: note: template argument deduction/substitution failed:
a.cc:6:7: note: mismatched types 'const _CharT*' and 'std::__cxx11::basic_string<char>'
6 | if(S=='a' || S=='i' || S=='u' || S=='e' ||S=='o')
| ^~~
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/tuple:2558:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator==(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)'
2558 | operator==(const tuple<_TElements...>& __t,
| ^~~~~~~~
/usr/include/c++/14/tuple:2558:5: note: template argument deduction/substitution failed:
a.cc:6:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::tuple<_UTypes ...>'
6 | if(S=='a' || S=='i' || S=='u' || S=='e' ||S=='o')
| ^~~
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
from /usr/include/c++/14/bits/basic_ios.h:37,
from /usr/include/c++/14/ios:46:
/usr/include/c++/14/bits/streambuf_itera |
s342764520 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
struct edge {int /*from,*/to,cost;};
typedef long long ll;
typedef pair<int,int> P;
typedef pair<pair<int,int>,int> PP;
typedef vector<int> VI;
typedef vector<long long int> VL;
typedef vector<edge> VE;
static const int MOD = 1000000007;
//static const int INF = 2147483647;
//static const long long INF = 9223372000000000000;
//static const long long INF = 9223372000000000000/2;
//static const int INF = 1000010000;
//int dx4[4] = {0,1,0,-1}, dy4[4] = {-1,0,1,0};
//int dx5[5] = {-1,0,0,0,1}, dy5[5] = {0,-1,0,1,0};
//int dx8[8] = {-1,0,1,1,1,0,-1,-1}, dy8[8] = {1,1,1,0,-1,-1,-1,0};
//int dx9[9] = {-1,0,1,1,1,0,-1,-1,0}, dy9[9] = {1,1,1,0,-1,-1,-1,0,0};
#define pb push_back
#define mp make_pair
#define all(x) (x).begin(),(x).end()
#define fi first
#define se second
#define np next_permutation
#define pq priority_queue
#define SZ(a) int((a).size())
#define LEN(a) int((a).length())
#define MAX(a,b,c) max((a),max((b),(c)))
#define MIN(a,b,c) min((a),min((b),(c)))
#define SORT(c) sort((c).begin(),(c).end())
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,x) for(int i=0;i<(int)(x);i++)
#define REP1(i,x) for(int i=1;i<=(int)(x);i++)
#define RREP(i,x) for(int i=((int)(x)-1);i>=0;i--)
#define RREP1(i,x) for(int i=((int)(x));i>0;i--)
//#define int ll
signed main(){
char c;
scanf("%c",&c);
if(c==a || c==i || c==u || c==e || c==o) puts("vowel");
else puts("consonant");
return 0;
} | a.cc: In function 'int main()':
a.cc:42:11: error: 'a' was not declared in this scope
42 | if(c==a || c==i || c==u || c==e || c==o) puts("vowel");
| ^
a.cc:42:19: error: 'i' was not declared in this scope
42 | if(c==a || c==i || c==u || c==e || c==o) puts("vowel");
| ^
a.cc:42:27: error: 'u' was not declared in this scope
42 | if(c==a || c==i || c==u || c==e || c==o) puts("vowel");
| ^
a.cc:42:35: error: 'e' was not declared in this scope
42 | if(c==a || c==i || c==u || c==e || c==o) puts("vowel");
| ^
a.cc:42:43: error: 'o' was not declared in this scope
42 | if(c==a || c==i || c==u || c==e || c==o) puts("vowel");
| ^
|
s600783655 | p03852 | C++ | #include<iostream>
#include<string>
using namespace std;
int main()
{
string s;
cin>>s;
if(s==a || s==i || s==u || s==e || s==o)
{
cout<<"vowel"<<endl;
}else{
cout<<"consonant"<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:8:11: error: 'a' was not declared in this scope
8 | if(s==a || s==i || s==u || s==e || s==o)
| ^
a.cc:8:19: error: 'i' was not declared in this scope
8 | if(s==a || s==i || s==u || s==e || s==o)
| ^
a.cc:8:27: error: 'u' was not declared in this scope
8 | if(s==a || s==i || s==u || s==e || s==o)
| ^
a.cc:8:35: error: 'e' was not declared in this scope
8 | if(s==a || s==i || s==u || s==e || s==o)
| ^
a.cc:8:43: error: 'o' was not declared in this scope
8 | if(s==a || s==i || s==u || s==e || s==o)
| ^
|
s672802490 | p03852 | C++ | #include<iostream>
#include<string>
using namespace std;
int main()
{
string a;
cin>>a;
if(a==a || a==i || a==u || a==e || a==o)
{
cout<<"vowel"<<endl;
}else{
cout<<"consonant"<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:8:19: error: 'i' was not declared in this scope
8 | if(a==a || a==i || a==u || a==e || a==o)
| ^
a.cc:8:27: error: 'u' was not declared in this scope
8 | if(a==a || a==i || a==u || a==e || a==o)
| ^
a.cc:8:35: error: 'e' was not declared in this scope
8 | if(a==a || a==i || a==u || a==e || a==o)
| ^
a.cc:8:43: error: 'o' was not declared in this scope
8 | if(a==a || a==i || a==u || a==e || a==o)
| ^
|
s970234825 | p03852 | C++ | #include<iostream>
#include<string>
using namespace std;
int main()
{
string 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:7:9: error: expected ';' before 'if'
7 | cin>>a
| ^
| ;
8 | if(a==a || a==i || a==u || a==e || a==o)
| ~~
a.cc:11:8: error: 'else' without a previous 'if'
11 | }else{
| ^~~~
|
s435300045 | p03852 | C++ | #include <iostream>
#include <string>
using namespace std;
int main()
{
string c;
cin >> c;
if (c == a)
{
cout << "vowel" << endl;
}
else if (c == i)
{
cout << "vowel" << endl;
}
else if (c == u)
{
cout << "vowel" << endl;
}
else if (c == e)
{
cout << "vowel" << endl;
}
else if (c == o)
{
cout << "vowel" << endl;
}
else
{
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:9:10: error: 'a' was not declared in this scope
9 | if (c == a)
| ^
a.cc:13:15: error: 'i' was not declared in this scope
13 | else if (c == i)
| ^
a.cc:17:15: error: 'u' was not declared in this scope
17 | else if (c == u)
| ^
a.cc:21:15: error: 'e' was not declared in this scope
21 | else if (c == e)
| ^
a.cc:25:15: error: 'o' was not declared in this scope
25 | else if (c == o)
| ^
|
s307863580 | p03852 | C++ | #include<bits/stdc++.h>
int main()
{
char s;
cin>>s;
if(s=='a' || s=='e' || s=='i' || s=='o' || s=='u'){
cout<<"vowel";
}
else{
cout<<"consonant";
}
} | a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin>>s;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:7:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
7 | cout<<"vowel";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:10:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
10 | cout<<"consonant";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
|
s576107409 | p03852 | C | #include<stdio.h>
int main() {
int c;
scanf(%d,&c);
if(c==a ||
c==i ||
c==u ||
c==e ||
c==o){
printf("vowel¥n");
}else{
printf("consonant¥n");
}
return 0;
} | main.c: In function 'main':
main.c:4:7: error: expected expression before '%' token
4 | scanf(%d,&c);
| ^
main.c:5:7: error: 'a' undeclared (first use in this function)
5 | if(c==a ||
| ^
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:8: error: 'i' undeclared (first use in this function)
6 | c==i ||
| ^
main.c:7:8: error: 'u' undeclared (first use in this function)
7 | c==u ||
| ^
main.c:8:8: error: 'e' undeclared (first use in this function)
8 | c==e ||
| ^
main.c:9:8: error: 'o' undeclared (first use in this function)
9 | c==o){
| ^
|
s713466772 | p03852 | C | #include<stdio.h>
int main() {
int c;
scanf(%d,&c);
if(c==a ||
c==i ||
c==u ||
c==e ||
c==o){
printf("vowel¥n");
}else{
printf("consonant¥n");
}
return 0;
} | main.c: In function 'main':
main.c:4:7: error: expected expression before '%' token
4 | scanf(%d,&c);
| ^
main.c:5:7: error: 'a' undeclared (first use in this function)
5 | if(c==a ||
| ^
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:8: error: 'i' undeclared (first use in this function)
6 | c==i ||
| ^
main.c:7:8: error: 'u' undeclared (first use in this function)
7 | c==u ||
| ^
main.c:8:8: error: 'e' undeclared (first use in this function)
8 | c==e ||
| ^
main.c:9:8: error: 'o' undeclared (first use in this function)
9 | c==o){
| ^
|
s558264323 | p03852 | C | #include<stdio.h>
int main(void) {
int c;
scanf(%d,&c);
if(c==a ||
c==i ||
c==u ||
c==e ||
c==o){
printf("vowel¥n");
}else{
printf("contest");
}
return 0;
} | main.c: In function 'main':
main.c:4:7: error: expected expression before '%' token
4 | scanf(%d,&c);
| ^
main.c:5:7: error: 'a' undeclared (first use in this function)
5 | if(c==a ||
| ^
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:8: error: 'i' undeclared (first use in this function)
6 | c==i ||
| ^
main.c:7:8: error: 'u' undeclared (first use in this function)
7 | c==u ||
| ^
main.c:8:8: error: 'e' undeclared (first use in this function)
8 | c==e ||
| ^
main.c:9:8: error: 'o' undeclared (first use in this function)
9 | c==o){
| ^
|
s536087603 | p03852 | C++ | #include <iostream>
using namespace std;
int main()
{
string c;
cin >> c;
if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') {
cout << "vowel" << endl;
} else {
cout << "consonant" << endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:11: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
9 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') {
| ~ ^~ ~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/iosfwd:42,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:9:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
9 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') {
| ^~~
In file included from /usr/include/c++/14/string:43,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:9:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
9 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') {
| ^~~
In file included from /usr/include/c++/14/string:48:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:9:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
9 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') {
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:9:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
9 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') {
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:9:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
9 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') {
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:9:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
9 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') {
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/string:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:9:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
9 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') {
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
629 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:629:5: note: template argument deduction/substitution failed:
a.cc:9:14: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
9 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') {
| ^~~
/usr/include/c++/14/string_view:637:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
637 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:637:5: note: template argument deduction/substitution failed:
a.cc:9:14: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
9 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') {
| ^~~
/usr/include/c++/14/string_view:644:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)'
644 | operator==(__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:644:5: note: template argument deduction/substitution failed:
a.cc:9:14: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'char'
9 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') {
| ^~~
/usr/include/c++/14/bits/basic_string.h:3755:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3755 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3755:5: note: template argument deduction/substitution failed:
a.cc:9:14: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'char'
9 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') {
| ^~~
/usr/include/c++/14/bits/basic_string.h:3772:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3772 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3772:5: note: template argument deduction/substitution failed:
a.cc:9:14: note: mismatched types 'const _CharT*' and 'char'
9 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') {
| ^~~
/usr/include/c++/14/bits/basic_string.h:3819:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3819 | operator==(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3819:5: note: template argument deduction/substitution failed:
a.cc:9:14: note: mismatched types 'const _CharT*' and 'std::__cxx11::basic_string<char>'
9 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') {
| ^~~
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/tuple:2558:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator==(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)'
2558 | operator==(const tuple<_TElements...>& __t,
| ^~~~~~~~
/usr/include/c++/14/tuple:2558:5: note: template argument deduction/substitution failed:
a.cc:9:14: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::tuple<_UTypes ...>'
9 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') {
| ^~~
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
from /usr/include/c++/14/bits/basic_ios.h:37,
from /usr/include/c++/14/ios:46:
/usr/include/c++/14/bits/streambuf_iterator.h:234:5: note: candidate: 'template<class _CharT, class _Traits> bool std::operator==(const istreambuf_iterator<_CharT, _Traits>&, const istreambuf_iterator<_CharT, _Traits>&)'
234 | operator==(const istreambuf_iterator<_CharT, _Traits>& __a,
| ^~~~~ |
s295347163 | p03852 | C++ | include<iostream>
using namespace std;
int main(){
string 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:1:1: error: 'include' does not name a type
1 | include<iostream>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:4:9: error: 'string' was not declared in this scope
4 | string a;
| ^~~~~~
a.cc:5:9: error: 'cin' was not declared in this scope
5 | cin>>a;
| ^~~
a.cc:5:14: error: 'a' was not declared in this scope
5 | cin>>a;
| ^
a.cc:6:59: error: 'cout' was not declared in this scope
6 | if(a=="a" || a=="i" || a=="u" || a=="e" || a=="o")cout<<"vowel"<<endl;
| ^~~~
a.cc:6:74: error: 'endl' was not declared in this scope
6 | if(a=="a" || a=="i" || a=="u" || a=="e" || a=="o")cout<<"vowel"<<endl;
| ^~~~
a.cc:7:14: error: 'cout' was not declared in this scope
7 | else cout<<"consonant"<<endl;
| ^~~~
a.cc:7:33: error: 'endl' was not declared in this scope
7 | else cout<<"consonant"<<endl;
| ^~~~
|
s669520563 | p03852 | C++ | #include<iostream>
using namespace std;
int main(){
string 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:5:12: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
5 | cin<<a;
| ~~~^~~
| | |
| | std::string {aka std::__cxx11::basic_string<char>}
| std::istream {aka std::basic_istream<char>}
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/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/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:5:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
5 | cin<<a;
| ^
/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:5:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
5 | cin<<a;
| ^
In file included from /usr/include/c++/14/bits/memory_resource.h:38,
from /usr/include/c++/14/string:68:
/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:5:9: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte'
5 | cin<<a;
| ^~~
In file included from /usr/include/c++/14/bits/ios_base.h:46:
/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:5:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
5 | cin<<a;
| ^
/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:5:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
5 | cin<<a;
| ^
/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:5:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
5 | cin<<a;
| ^
/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:5:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
5 | cin<<a;
| ^
/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:5:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
5 | cin<<a;
| ^
/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:5:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
5 | cin<<a;
| ^
/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:5:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
5 | cin<<a;
| ^
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:5:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
5 | cin<<a;
| ^
/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:5:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
5 | cin<<a;
| ^
/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:5:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
5 | cin<<a;
| ^
/usr/include/c++/14/ostream:689:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const unsigned char*)'
689 | operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:689:5: note: template argument deduction/substitution failed:
a.cc:5:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
5 | cin<<a;
| ^
/usr/include/c++/14/ostream:810:5: note: candidate: 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&)'
810 | operator<<(_Ostream&& __os, const _Tp& __x)
| ^~~~~~~~
/usr/include/c++/14/ostream:810:5: note: template argument deduction/substitution failed:
/usr/include/c++/14/ostream: In substitution of 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&) [with _Ostream = std::basic_istream<char>&; _Tp = std::__cxx11::basic_string<char>]':
a.cc:5:7: required from here
5 | cin<<a;
| ^
/usr/include/c++/14/ostream:810:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
810 | operator<<(_Ostream&& __os, const _Tp& __x)
| ^~~~~~~~
|
s227538353 | p03852 | C++ | #include<iostream>
#include<cstdio>
using namespace std;
int main(){
char c;
cin>>c;
if(c='a' || c='i' || c='u' || c='e' || c='o'){
cout<<"vowel"<<endl;
}
else{
cout<<"consonant"<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:45: error: lvalue required as left operand of assignment
7 | if(c='a' || c='i' || c='u' || c='e' || c='o'){
| ~~~~^~~~
|
s298025626 | p03852 | C++ | #include<iostream>
#include<cstdio>
using namespace std;
int main(){
char c;
cin>>c;
if(c='a' || c='i' || c='u' || c='e' || c='o' ||){
cout<<"vowel"<<endl;
}
else{
cout<<"consonant"<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:56: error: expected primary-expression before ')' token
7 | if(c='a' || c='i' || c='u' || c='e' || c='o' ||){
| ^
|
s569114391 | p03852 | C++ | #include<iostream>
using namespace std;
int main(){
string 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:5:12: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
5 | cin<<a;
| ~~~^~~
| | |
| | std::string {aka std::__cxx11::basic_string<char>}
| std::istream {aka std::basic_istream<char>}
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/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/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:5:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
5 | cin<<a;
| ^
/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:5:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
5 | cin<<a;
| ^
In file included from /usr/include/c++/14/bits/memory_resource.h:38,
from /usr/include/c++/14/string:68:
/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:5:9: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte'
5 | cin<<a;
| ^~~
In file included from /usr/include/c++/14/bits/ios_base.h:46:
/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:5:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
5 | cin<<a;
| ^
/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:5:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
5 | cin<<a;
| ^
/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:5:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
5 | cin<<a;
| ^
/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:5:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
5 | cin<<a;
| ^
/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:5:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
5 | cin<<a;
| ^
/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:5:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
5 | cin<<a;
| ^
/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:5:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
5 | cin<<a;
| ^
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:5:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
5 | cin<<a;
| ^
/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:5:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
5 | cin<<a;
| ^
/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:5:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
5 | cin<<a;
| ^
/usr/include/c++/14/ostream:689:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const unsigned char*)'
689 | operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:689:5: note: template argument deduction/substitution failed:
a.cc:5:14: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
5 | cin<<a;
| ^
/usr/include/c++/14/ostream:810:5: note: candidate: 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&)'
810 | operator<<(_Ostream&& __os, const _Tp& __x)
| ^~~~~~~~
/usr/include/c++/14/ostream:810:5: note: template argument deduction/substitution failed:
/usr/include/c++/14/ostream: In substitution of 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&) [with _Ostream = std::basic_istream<char>&; _Tp = std::__cxx11::basic_string<char>]':
a.cc:5:7: required from here
5 | cin<<a;
| ^
/usr/include/c++/14/ostream:810:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
810 | operator<<(_Ostream&& __os, const _Tp& __x)
| ^~~~~~~~
a.cc:6:13: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
6 | if(a=='a' || a=='i' || a=='u' || a=='e' || a=='o')cout<<"vowel"<<endl;
| ~^~~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/iosfwd:42,
from /usr/include/c++/14/ios:40:
/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>& _ |
s365515449 | p03852 | C++ | a = input()
if a == 'a' or a == 'e' or a == 'i' or a == 'o' or a == 'u' :
print('vowel')
else :
print('consonant') | a.cc:3:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
3 | print('vowel')
| ^~~~~~~
a.cc:5:11: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
5 | print('consonant')
| ^~~~~~~~~~~
a.cc:1:1: error: 'a' does not name a type
1 | a = input()
| ^
|
s639207958 | p03852 | C++ | #include<bits/stdc++.h>
#define fi first
#define se second
#define FO(x, n) for (int x = 0; x < n; ++x)
#define FOR(x, a, b) for (int x = a; x < b; ++x)
#define RFO(x, n) for (int x = n - 1; x >= 0; --x)
#define RFOR(x, a, b) for (int x = b - 1; x >= a; --x)
#define FOR_ITER(x, a) for(auto x = a.begin(); x != a.end(); ++x)
using namespace std;
typedef unsigned char byte;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> pii;
typedef pair<double, double> pdd;
typedef pair<string, string> pss;
typedef pair<ll, ll> pll;
inline bool feq(const double& a, const double& b) { return fabs(a - b) < 1e-10; }
using namespace std;
int main(){
// int n, l;
// cin >> n >> k;
// vector<bool> dislike(10, false);
//
// FOR(i, 0, k) {
// int t;
// cin >> t;
// dislike[t] = true;
// }
ch a, b, c;
cin >> a ;//>> b >> c;
cout << (a=='a'||a=='e' ||a=='i'||a=='o'||a=='u'? "vowel":"consonant") << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:37:5: error: 'ch' was not declared in this scope
37 | ch a, b, c;
| ^~
a.cc:38:12: error: 'a' was not declared in this scope
38 | cin >> a ;//>> b >> c;
| ^
|
s394629334 | p03852 | C++ | using namespace std;
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define RFOR(i,a,b) for (int i=(b)-1;i>=(a);i--)
#define REP(i,n) for(int i=0;i<(n);i++)
#define RREP(i,n) for (int i=(n)-1;i>=0;i--)
#define pb push_back
#define PII pair<int,int>
#define VS vector<string>
#define VI vector<int>
#define ll long long int
#define debug(x) cout << x << " :" <<#x << endl
int main(void) {
string s = "aiueo";
char c; cin >> c;
bool p = false;
REP(i,5) {
if(c == s[i]) {
p = true;
break;
}
}
if(p) cout << "vowel" << endl;
else cout << "consonant" << endl;
} | a.cc: In function 'int main()':
a.cc:15:5: error: 'string' was not declared in this scope
15 | string s = "aiueo";
| ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
+++ |+#include <string>
1 | using namespace std;
a.cc:16:13: error: 'cin' was not declared in this scope
16 | char c; 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:19:17: error: 's' was not declared in this scope
19 | if(c == s[i]) {
| ^
a.cc:24:11: error: 'cout' was not declared in this scope
24 | if(p) cout << "vowel" << endl;
| ^~~~
a.cc:24:11: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:24:30: error: 'endl' was not declared in this scope
24 | if(p) 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:25:10: error: 'cout' was not declared in this scope
25 | else cout << "consonant" << endl;
| ^~~~
a.cc:25:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:25:33: error: 'endl' was not declared in this scope
25 | else cout << "consonant" << endl;
| ^~~~
a.cc:25:33: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
|
s501277101 | p03852 | C++ | package main
import (
"fmt"
)
func main(){
var c string
fmt.Scan(&c)
if c == "a" || c == "i" || c == "u" || c == "e" || c == "o" {
fmt.Println("vowel")
} else{
fmt.Println("consonat")
}
} | a.cc:1:1: error: 'package' does not name a type
1 | package main
| ^~~~~~~
|
s068011313 | p03852 | C++ | include<iostream>
#include<string>
using namespace std;
int main(){
string c;
cin>>c;
if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){
cout<<"vowel"<<endl;
}
else{
cout<<"consonant"<<endl;
}
return 0;
}
| a.cc:1:1: error: 'include' does not name a type
1 | include<iostream>
| ^~~~~~~
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from a.cc:2:
/usr/include/c++/14/bits/postypes.h:68:11: error: 'ptrdiff_t' does not name a type
68 | typedef ptrdiff_t streamsize; // Signed integral type
| ^~~~~~~~~
/usr/include/c++/14/bits/postypes.h:41:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
40 | #include <cwchar> // For mbstate_t
+++ |+#include <cstddef>
41 |
In file included from /usr/include/c++/14/bits/char_traits.h:50:
/usr/include/c++/14/type_traits:666:33: error: 'nullptr_t' is not a member of 'std'
666 | struct is_null_pointer<std::nullptr_t>
| ^~~~~~~~~
/usr/include/c++/14/type_traits:666:42: error: template argument 1 is invalid
666 | struct is_null_pointer<std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:670:48: error: template argument 1 is invalid
670 | struct is_null_pointer<const std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:674:51: error: template argument 1 is invalid
674 | struct is_null_pointer<volatile std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:678:57: error: template argument 1 is invalid
678 | struct is_null_pointer<const volatile std::nullptr_t>
| ^
/usr/include/c++/14/type_traits:1429:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1429 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/14/cwchar:44,
from /usr/include/c++/14/bits/postypes.h:40:
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/type_traits:1429:57: error: template argument 1 is invalid
1429 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^
/usr/include/c++/14/type_traits:1429:57: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1438:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1438 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/type_traits:1438:46: error: template argument 1 is invalid
1438 | : public integral_constant<std::size_t, 0> { };
| ^
/usr/include/c++/14/type_traits:1438:46: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1440:26: error: 'std::size_t' has not been declared
1440 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/14/type_traits:1441:21: error: '_Size' was not declared in this scope
1441 | struct rank<_Tp[_Size]>
| ^~~~~
/usr/include/c++/14/type_traits:1441:27: error: template argument 1 is invalid
1441 | struct rank<_Tp[_Size]>
| ^
/usr/include/c++/14/type_traits:1442:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/type_traits:1442:65: error: template argument 1 is invalid
1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/14/type_traits:1442:65: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1446:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/type_traits:1446:65: error: template argument 1 is invalid
1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/14/type_traits:1446:65: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:2086:26: error: 'std::size_t' has not been declared
2086 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/14/type_traits:2087:30: error: '_Size' was not declared in this scope
2087 | struct remove_extent<_Tp[_Size]>
| ^~~~~
/usr/include/c++/14/type_traits:2087:36: error: template argument 1 is invalid
2087 | struct remove_extent<_Tp[_Size]>
| ^
/usr/include/c++/14/type_traits:2099:26: error: 'std::size_t' has not been declared
2099 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/14/type_traits:2100:35: error: '_Size' was not declared in this scope
2100 | struct remove_all_extents<_Tp[_Size]>
| ^~~~~
/usr/include/c++/14/type_traits:2100:41: error: template argument 1 is invalid
2100 | struct remove_all_extents<_Tp[_Size]>
| ^
/usr/include/c++/14/type_traits:2171:12: error: 'std::size_t' has not been declared
2171 | template<std::size_t _Len>
| ^~~
/usr/include/c++/14/type_traits:2176:30: error: '_Len' was not declared in this scope
2176 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/14/type_traits:2194:12: error: 'std::size_t' has not been declared
2194 | template<std::size_t _Len, std::size_t _Align =
| ^~~
/usr/include/c++/14/type_traits:2194:30: error: 'std::size_t' has not been declared
2194 | template<std::size_t _Len, std::size_t _Align =
| ^~~
/usr/include/c++/14/type_traits:2195:55: error: '_Len' was not declared in this scope
2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^~~~
/usr/include/c++/14/type_traits:2195:59: error: template argument 1 is invalid
2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^
/usr/include/c++/14/type_traits:2202:30: error: '_Len' was not declared in this scope
2202 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/14/type_traits:2203:44: error: '_Align' was not declared in this scope
2203 | struct __attribute__((__aligned__((_Align)))) { } __align;
| ^~~~~~
/usr/include/c++/14/bits/char_traits.h:144:61: error: 'std::size_t' has not been declared
144 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/14/bits/char_traits.h:146:40: error: 'size_t' in namespace 'std' does not name a type
146 | static _GLIBCXX14_CONSTEXPR std::size_t
| ^~~~~~
/usr/include/c++/14/bits/char_traits.h:150:34: error: 'std::size_t' has not been declared
150 | find(const char_type* __s, std::size_t __n, const char_type& __a);
| ^~~
/usr/include/c++/14/bits/char_traits.h:153:52: error: 'std::size_t' has not been declared
153 | move(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/14/bits/char_traits.h:156:52: error: 'std::size_t' has not been declared
156 | copy(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/14/bits/char_traits.h:159:30: error: 'std::size_t' has not been declared
159 | assign(char_type* __s, std::size_t __n, char_type __a);
| ^~~
/usr/include/c++/14/bits/char_traits.h:187:59: error: 'std::size_t' has not been declared
187 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~
/usr/include/c++/14/bits/char_traits.h: In static member function 'static constexpr int __gnu_cxx::char_traits<_CharT>::compare(const char_type*, const char_type*, int)':
/usr/include/c++/14/bits/char_traits.h:189:17: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
189 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/c++/14/bits/char_traits.h:189:33: error: '__i' was not declared in this scope; did you mean '__n'?
189 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~
| __n
/usr/include/c++/14/bits/char_traits.h: At global scope:
/usr/include/c++/14/bits/char_traits.h:198:31: error: 'size_t' in namespace 'std' does not name a type
198 | _GLIBCXX14_CONSTEXPR std::size_t
| |
s000239623 | p03852 | C++ |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define vvi vector< vector<int> >
#define vi vector<int>
#define All(X) X.begin(),X.end()
#define FOR(i,a,b) for(int i=(int)(a);i<(int)(b);i++)
#define REP(i,n) for(int i=0;i<(int)(n);i++)
#define pb push_back
#define pii pair<int,int>
#define mp make_pair
#define pi 3.14159265359
#define shosu(X) fixed << setprecision(X)
ll gcd(ll a,ll b){return b?gcd(b,a%b):a;}
ll lcm(ll a,ll b){return a/gcd(a,b)*b;}
int main(){
char c;
cin >> c;
bool flg = false;
string s = "aiueo";
REP(i,s.size()) if(c == s[i]) flg = true;
if(flg) cout << "vowel" << endl;
else cout << "consonant" << endl; | a.cc: In function 'int main()':
a.cc:26:34: error: expected '}' at end of input
26 | else cout << "consonant" << endl;
| ^
a.cc:19:11: note: to match this '{'
19 | int main(){
| ^
|
s588544908 | p03852 | Java | import java.util.*;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
String c = sc.next();
if(c.equals("a")||c.equals("i")||c.equals("u")||c.equals("e")||c.equals("o")){
System.out.println("voyel");
}
else System.out.println("consonant");
}
| Main.java:12: error: reached end of file while parsing
}
^
1 error
|
s264965073 | p03852 | Java | import java.util.*;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
String c = sc.next();
if(c.equals("a")||c.equals("i")||c.equals("u")||c.equals("e")||c.equals("o")){
System.out.println("voyel");
}
else System.out.println("consonant");
}
| Main.java:12: error: reached end of file while parsing
}
^
1 error
|
s705725377 | p03852 | Java | package spring;
import java.io.*;
public class A_UOIAUI {
public static void main(String[] args)
throws java.io.IOException{
int c = System.in.read();
if(c == 'a'||c == 'i'||c == 'u'||c == 'e'||c == 'o'){
System.out.println("vowel");
}else{
System.out.println("consonant");
}
}
} | Main.java:3: error: class A_UOIAUI is public, should be declared in a file named A_UOIAUI.java
public class A_UOIAUI {
^
1 error
|
s898554802 | p03852 | Java | import java.util.*;
public class ABC049_A {
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
String c=sc.next();
if(c.equals("a")||c.equals("e")||c.equals("i")||c.equals("o")||c.equals("u")){
System.out.println("vowel");
}
else{
System.out.println("consonant");
}
}
} | Main.java:2: error: class ABC049_A is public, should be declared in a file named ABC049_A.java
public class ABC049_A {
^
1 error
|
s276981849 | p03852 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String c = sc.next();
if(c.equals ("a") ||c.equals ("i") ||c.equals("u") || c.equals("e") ||c.equals ("o")){
System.out.println("vowel");
else{
System.out.println("consonant");
}
}
}
} | Main.java:9: error: 'else' without 'if'
else{
^
1 error
|
s466109299 | p03852 | Java | import java.util.Scanner;
public class main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String c = sc.next();
if(c.equals("a") || c.equals("i")|| c.equals("u")|| c.equals("e")|| c.equals("o"))
System.out.println("vowel");
else
System.out.println("consonant");
}
} | Main.java:2: error: class main is public, should be declared in a file named main.java
public class main {
^
1 error
|
s548174605 | p03852 | Java | import java.util.Scanner;
public class uoiaiuai {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String c = sc.next();
if(c.equals("a") || c.equals("i")|| c.equals("u")|| c.equals("e")|| c.equals("o"))
System.out.println("vowel");
else
System.out.println("consonant");
}
} | Main.java:3: error: class uoiaiuai is public, should be declared in a file named uoiaiuai.java
public class uoiaiuai {
^
1 error
|
s969505397 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
cout << (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o' ? "vowel" : "consonant" << endl;
}
| a.cc: In function 'int main()':
a.cc:7:93: error: invalid operands of types 'const char [10]' and '<unresolved overloaded function type>' to binary 'operator<<'
7 | cout << (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o' ? "vowel" : "consonant" << endl;
| ~~~~~~~~~~~~^~~~~~~
a.cc:7:100: error: expected ')' before ';' token
7 | cout << (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o' ? "vowel" : "consonant" << endl;
| ~ ^
| )
|
s205735829 | p03852 | Java | import java.util.Scanner;
public class Main {
private static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
String s = sc.next();
int e = s.length();
while(true) {
if (e==0) {
break;
} else if (e<5) {
System.out.println("NO");
return;
}
if (s.substring(e-5, e).equals("erase")) {
e -= 5;
} else if (s.substring(e-5, e).equals("dream")) {
e -= 5;
} else if (s.substring(e-6, e).equals("eraser")) {
e -= 6;
} else if (s.substring(e-7, e).equals("dreamer")) {
e -= 7;
} else {
System.out.println("NO");
return;
}
}
System.out.println("YES");
}
} | Main.java:2: error: illegal character: '\u00a0'
?
^
Main.java:15: error: illegal character: '\u00a0'
?
^
Main.java:29: error: illegal character: '\u00a0'
?
^
3 errors
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.