criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include <iostream>

using namespace std;,

char ans[5]={'a','b','c','d','e'};

int main(){
  string c;
  cin>>c;
  for(int i=0;i<5;i++){
    if(c[0]==ans[i]){
      cout<<"vowel"<<endl;
      return 0;
    }
  }
  cout<<"consonant"<<endl;
  return 0;
}


Compiler output:
a.cc:3:21: error: expected unqualified-id before ',' token
    3 | using namespace std;,
      |                     ^
a.cc:5:1: error: expected unqualified-id before 'char'
    5 | char ans[5]={'a','b','c','d','e'};
      | ^~~~
a.cc: In function 'int main()':
a.cc:11:14: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |     if(c[0]==ans[i]){
      |              ^~~
      |              abs
Language: 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;
  }
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(c == "a"||"i"||"u"||"e"||"o"){
      |      ~~^~~~~~
Language: 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;
 }
}
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(c=="a"||"i"||"u"||"e"||"o"){
      |      ~^~~~~
Language: 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;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected unqualified-id before '=' token
    5 |   char = c;
      |        ^
a.cc:6:10: error: 'c' was not declared in this scope
    6 |   cin >> c;
      |          ^
Language: 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;  
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(c == "a" || c == "i" || c == "u" || c == "e" || c == "o"){
      |      ~~^~~~~~
a.cc:7:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(c == "a" || c == "i" || c == "u" || c == "e" || c == "o"){
      |                  ~~^~~~~~
a.cc:7:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(c == "a" || c == "i" || c == "u" || c == "e" || c == "o"){
      |                              ~~^~~~~~
a.cc:7:44: 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:56: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(c == "a" || c == "i" || c == "u" || c == "e" || c == "o"){
      |                                                      ~~^~~~~~
Language: 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;  
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(c == "a" || c=="i" || c=="u" || c=="e" || c=="o"){
      |      ~~^~~~~~
a.cc:7:19: 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:29: 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:39: 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:49: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(c == "a" || c=="i" || c=="u" || c=="e" || c=="o"){
      |                                                ~^~~~~
Language: 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;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected '}' before 'else'
   10 |   else cout << "consonant" << endl;
      |   ^~~~
a.cc:8:37: note: to match this '{'
    8 |   if (c == 'a', 'i', 'u', 'e', 'o') {
      |                                     ^
a.cc: At global scope:
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  char c;
  cin >> c;
  
  if (c.at(0) == 'a', 'i', 'u', 'e', 'o') {
    cout << "vowel" << endl;
  }
  else cout << "consonant" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: request for member 'at' in 'c', which is of non-class type 'char'
    8 |   if (c.at(0) == 'a', 'i', 'u', 'e', 'o') {
      |         ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  char c;
  cin >> c;
  
  if (c.at(0) == a, i, u, e, o) {
    cout << "vowel" << endl;
  }
  else cout << "consonant" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: request for member 'at' in 'c', which is of non-class type 'char'
    8 |   if (c.at(0) == a, i, u, e, o) {
      |         ^~
a.cc:8:18: error: 'a' was not declared in this scope
    8 |   if (c.at(0) == a, i, u, e, o) {
      |                  ^
a.cc:8:21: error: 'i' was not declared in this scope
    8 |   if (c.at(0) == a, i, u, e, o) {
      |                     ^
a.cc:8:24: error: 'u' was not declared in this scope
    8 |   if (c.at(0) == a, i, u, e, o) {
      |                        ^
a.cc:8:27: error: 'e' was not declared in this scope
    8 |   if (c.at(0) == a, i, u, e, o) {
      |                           ^
a.cc:8:30: error: 'o' was not declared in this scope
    8 |   if (c.at(0) == a, i, u, e, o) {
      |                              ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  char c;
  cin >> c;
  if(c==a||i||u||e||o)
    cout << "vowel";
  else
    cout << "constant";
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'a' was not declared in this scope
    7 |   if(c==a||i||u||e||o)
      |         ^
a.cc:7:12: error: 'i' was not declared in this scope
    7 |   if(c==a||i||u||e||o)
      |            ^
a.cc:7:15: error: 'u' was not declared in this scope
    7 |   if(c==a||i||u||e||o)
      |               ^
a.cc:7:18: error: 'e' was not declared in this scope
    7 |   if(c==a||i||u||e||o)
      |                  ^
a.cc:7:21: error: 'o' was not declared in this scope
    7 |   if(c==a||i||u||e||o)
      |                     ^
Language: C

#include <bits/stdc++.h>
using namespace std;

int main() {
  char c;
 cin >> c;
  
  if('c'== 'a'){
  cout << "vowel" << endl; 
}
if('c' == 'i'){
  cout << "vowel" << endl; 
}
 if('c' == 'u'){
  cout << "vowel" << endl; 
}
  if('c' == 'e'){
  cout << "vowel" << endl; 
}
  if('c' == 'o'){
  cout << "vowel" << endl; 
}
  if ('c' !='a' && 'c' != 'i' && 'c' != 'u' && 'c' != 'e' && 'c' != 'o'){
    cout << "consonant" <<endl;
  }
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  char s;
  cin >> s;
  if(s=='a' || S=='i' || S=='u' || S=='e' || S=='o'){
    cout << "vowel" << endl;
  }
  else{
    cout << "consonant" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: 'S' was not declared in this scope
    7 |   if(s=='a' || S=='i' || S=='u' || S=='e' || S=='o'){
      |                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  string c;
  cin >> c; // 変数sで入力を一行受け取る
  
  if (c = "a") {
    cout << "vowel" << endl;
  }
  else if (c = "e") {
    cout << "vowel" << endl;
  }
  else if (c = "i") {
    cout << "vowel" << endl;
  }
  else if (c = "o") {
    cout << "vowel" << endl;
  }
  else if (c = "u") {
    cout << "vowel" << endl;
  }
    
  else {
    cout << "consonant" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: could not convert 'c.std::__cxx11::basic_string<char>::operator=(((const char*)"a"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    8 |   if (c = "a") {
      |       ~~^~~~~
      |         |
      |         std::__cxx11::basic_string<char>
a.cc:11:14: error: could not convert 'c.std::__cxx11::basic_string<char>::operator=(((const char*)"e"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |   else if (c = "e") {
      |            ~~^~~~~
      |              |
      |              std::__cxx11::basic_string<char>
a.cc:14:14: error: could not convert 'c.std::__cxx11::basic_string<char>::operator=(((const char*)"i"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   14 |   else if (c = "i") {
      |            ~~^~~~~
      |              |
      |              std::__cxx11::basic_string<char>
a.cc:17:14: error: could not convert 'c.std::__cxx11::basic_string<char>::operator=(((const char*)"o"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   17 |   else if (c = "o") {
      |            ~~^~~~~
      |              |
      |              std::__cxx11::basic_string<char>
a.cc:20:14: error: could not convert 'c.std::__cxx11::basic_string<char>::operator=(((const char*)"u"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   20 |   else if (c = "u") {
      |            ~~^~~~~
      |              |
      |              std::__cxx11::basic_string<char>
Language: 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;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'vowel' was not declared in this scope
    8 |   cout << vowel << endl;
      |           ^~~~~
a.cc:11:13: error: 'consonant' was not declared in this scope
   11 |     cout << consonant << endl;
      |             ^~~~~~~~~
a.cc:12:2: error: expected '}' at end of input
   12 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  char a;
  cin >> a;

  if ( a=='a' || a=-'i' || a=='u' || a=='e' || a=='o' )
    cout << "vowel" << endl;
  else
    cout << "consonant" << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: lvalue required as left operand of assignment
    8 |   if ( a=='a' || a=-'i' || a=='u' || a=='e' || a=='o' )
      |        ~~~~~~~^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  char c;
  cin >> c;
   
  if( c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u' ){
     cout << "vowel" << endl;
  
  else{
    cout << "consonant" << endl;
     
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected '}' before 'else'
   11 |   else{
      |   ^~~~
a.cc:8:65: note: to match this '{'
    8 |   if( c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u' ){
      |                                                                 ^
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  char c;
  cin >> c;
  if (c=='a'||C=='e'||C=='i'||C=='o'||C=='u'){
    cout << "vowel" << endl;
  }
  else{
    cout << "consonant" << endl;
  }
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 'C' was not declared in this scope
    7 |   if (c=='a'||C=='e'||C=='i'||C=='o'||C=='u'){
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  char a; 
  cin >> a;
  // ここにプログラムを追記
  if (a == 'a' || a == 'i' || a == 'u' || a == 'e' || a == 'o') {
    cout << vowel << endl;
  }
  else {
    cout << consonant << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'vowel' was not declared in this scope
    9 |     cout << vowel << endl;
      |             ^~~~~
a.cc:12:13: error: 'consonant' was not declared in this scope
   12 |     cout << consonant << endl;
      |             ^~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  char a; 
  cin >> a;
    >> a;
  // ここにプログラムを追記
  if (a == 'a' || a == 'i' || a == 'u' || a == 'e' || a == 'o') {
    cout << vowel << endl;
  }
  else {
    cout << consonant << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected primary-expression before '>>' token
    7 |     >> a;
      |     ^~
a.cc:10:13: error: 'vowel' was not declared in this scope
   10 |     cout << vowel << endl;
      |             ^~~~~
a.cc:13:13: error: 'consonant' was not declared in this scope
   13 |     cout << consonant << endl;
      |             ^~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  char a 
  cin
    >> a;
  // ここにプログラムを追記
  if (a == 'a' || a == 'i' || a == 'u' || a == 'e' || a == 'o') {
    cout << vowel << endl;
  }
  else {
    cout << consonant << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin
      |   ^~~
a.cc:9:7: error: 'a' was not declared in this scope
    9 |   if (a == 'a' || a == 'i' || a == 'u' || a == 'e' || a == 'o') {
      |       ^
a.cc:10:13: error: 'vowel' was not declared in this scope
   10 |     cout << vowel << endl;
      |             ^~~~~
a.cc:13:13: error: 'consonant' was not declared in this scope
   13 |     cout << consonant << endl;
      |             ^~~~~~~~~
Language: 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;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: lvalue required as left operand of assignment
    8 |   if(c=='a' || c='i' || c=='u'||c=='e'||c=='o'){
      |      ~~~~~~~^~~~
Language: 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;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: 'C' was not declared in this scope
    8 |   if(c=="a" || C="i" || c=="u"||c=="e"||c=="o"){
      |                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
    string S;
    cin >> S;
    if(S == a || i || u || e || o ){
    cout << "vowel"<<endl;
    }
    else{
    cout << "consonant" <<endl;
    }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'a' was not declared in this scope
    7 |     if(S == a || i || u || e || o ){
      |             ^
a.cc:7:18: error: 'i' was not declared in this scope
    7 |     if(S == a || i || u || e || o ){
      |                  ^
a.cc:7:23: error: 'u' was not declared in this scope
    7 |     if(S == a || i || u || e || o ){
      |                       ^
a.cc:7:28: error: 'e' was not declared in this scope
    7 |     if(S == a || i || u || e || o ){
      |                            ^
a.cc:7:33: error: 'o' was not declared in this scope
    7 |     if(S == a || i || u || e || o ){
      |                                 ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
    string S;
    cin >> S;
    if(S="a"||"i"||"u"||"e"||"o";){
    cout << "vowel"<<endl;
    }
    else{
    cout << "consonant" <<endl;
    }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:34: error: expected primary-expression before ')' token
    7 |     if(S="a"||"i"||"u"||"e"||"o";){
      |                                  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
    string S;
    cin >> S;
    if(S="a"||"i"||"u"||"e"||"o"){
    cout << "vowel"<<endl;
    }
    else{
    cout << "consonant" <<endl;
    }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((int)((char)(((((((const char*)"a") != 0) || (((const char*)"i") != 0)) || (((const char*)"u") != 0)) || (((const char*)"e") != 0)) || (((const char*)"o") != 0)))))' from 'std::__cxx11::basic_string<char>' to 'bool'
    7 |     if(S="a"||"i"||"u"||"e"||"o"){
      |        ~^~~~~~~~~~~~~~~~~~~~~~~~
      |         |
      |         std::__cxx11::basic_string<char>
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main(){
  string data="aiueo";
  char d;
  cin>>d;
  
  if(data.find(d)!=nops){
    cout<<"vowel";
    
  }
  else{
    cout<<"consonant";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: 'nops' was not declared in this scope
   11 |   if(data.find(d)!=nops){
      |                    ^~~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

int main(){
  vector<char> data;
  data.push_back('a');
  data.push_back('i');
  data.push_back('u');
  data.push_back('e');
  data.push_back('o');
  
  char c;
  cin>>c;
  if(data[find(data.begin(),data.end(),c)]==c){
    cout<<"vowel";
    
  }
  else{
    cout<<"consonant";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:10: error: no match for 'operator[]' (operand types are 'std::vector<char>' and '__gnu_cxx::__normal_iterator<char*, std::vector<char> >')
   16 |   if(data[find(data.begin(),data.end(),c)]==c){
      |          ^
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_vector.h:1128:7: note: candidate: 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = char; _Alloc = std::allocator<char>; reference = char&; size_type = long unsigned int]'
 1128 |       operator[](size_type __n) _GLIBCXX_NOEXCEPT
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1128:28: note:   no known conversion for argument 1 from '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' to 'std::vector<char>::size_type' {aka 'long unsigned int'}
 1128 |       operator[](size_type __n) _GLIBCXX_NOEXCEPT
      |                  ~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:1147:7: note: candidate: 'std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator[](size_type) const [with _Tp = char; _Alloc = std::allocator<char>; const_reference = const char&; size_type = long unsigned int]'
 1147 |       operator[](size_type __n) const _GLIBCXX_NOEXCEPT
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1147:28: note:   no known conversion for argument 1 from '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' to 'std::vector<char>::size_type' {aka 'long unsigned int'}
 1147 |       operator[](size_type __n) const _GLIBCXX_NOEXCEPT
      |                  ~~~~~~~~~~^~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

int main(){
  vector<char> data;
  data.push_back('a');
  data.push_back('i');
  data.push_back('u');
  data.push_back('e');
  data.push_back('o');
  
  char c;
  cin>>c;
  auto s= find(data.begin(),data.end(),c);
  if(type_info(s)==int){
    cout<<"vowel";
    
  }
  else{
    cout<<"consonant";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:17: error: no matching function for call to 'std::type_info::type_info(__gnu_cxx::__normal_iterator<char*, std::vector<char> >&)'
   17 |   if(type_info(s)==int){
      |                 ^
In file included from /usr/include/c++/14/bits/exception_ptr.h:37,
                 from /usr/include/c++/14/exception:166,
                 from /usr/include/c++/14/ios:41,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/typeinfo:151:14: note: candidate: 'std::type_info::type_info(const char*)'
  151 |     explicit type_info(const char *__n): __name(__n) { }
      |              ^~~~~~~~~
/usr/include/c++/14/typeinfo:151:36: note:   no known conversion for argument 1 from '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' to 'const char*'
  151 |     explicit type_info(const char *__n): __name(__n) { }
      |                        ~~~~~~~~~~~~^~~
a.cc:17:20: error: expected primary-expression before 'int'
   17 |   if(type_info(s)==int){
      |                    ^~~
a.cc:17:20: error: expected ')' before 'int'
   17 |   if(type_info(s)==int){
      |     ~              ^~~
      |                    )
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

int main(){
  vector<char> data;
  data.push_back('a');
  data.push_back('i');
  data.push_back('u');
  data.push_back('e');
  data.push_back('o');
  
  char c;
  cin>>c;
  auto s= find(data.begin(),data.end(),c);
  if(type_info(s)=="int"){
    cout<<"vowel";
    
  }
  else{
    cout<<"consonant";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:17: error: no matching function for call to 'std::type_info::type_info(__gnu_cxx::__normal_iterator<char*, std::vector<char> >&)'
   17 |   if(type_info(s)=="int"){
      |                 ^
In file included from /usr/include/c++/14/bits/exception_ptr.h:37,
                 from /usr/include/c++/14/exception:166,
                 from /usr/include/c++/14/ios:41,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/typeinfo:151:14: note: candidate: 'std::type_info::type_info(const char*)'
  151 |     explicit type_info(const char *__n): __name(__n) { }
      |              ^~~~~~~~~
/usr/include/c++/14/typeinfo:151:36: note:   no known conversion for argument 1 from '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' to 'const char*'
  151 |     explicit type_info(const char *__n): __name(__n) { }
      |                        ~~~~~~~~~~~~^~~
Language: C++

#include <iostream>
#include <map>

using namespace std;

int main(){
  map<char,int> a;
  a['a']=1;
  a['b']=1;
  a['c']=1;
  a['d']=1;
  a['e']=1;
  char data;
  cin>>data;
  if(a.contains(data)){
    cout<<"consonant";
  }
  else{
    cout<<"vowel";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:8: error: 'class std::map<char, int>' has no member named 'contains'
   15 |   if(a.contains(data)){
      |        ^~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  char c;
  cin >> c;
  if (c == 'a'){
    cout << "vowel" << endl;
  }
  if (c == 'b'){
    cout << "vowel" << endl;
  }
  if (c == 'c'){
    cout << "vowel" << endl;
  }
  if (c == 'd'){
    cout << "vowel" << endl;
  }
  if (c == 'e'){
    cout << "vowel" << endl;
  }
  else cout << consonant << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:16: error: 'consonant' was not declared in this scope
   22 |   else cout << consonant << endl;
      |                ^~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main () {
  string  c ;
  cin >> c;
  
  if ( c = 'a','e','i','u','o'){
    cout << vewel << endl;
  }
  if else {
    cout << consonant << endl;
  }
  // ここにプログラムを追記
 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'vewel' was not declared in this scope
    9 |     cout << vewel << endl;
      |             ^~~~~
a.cc:11:6: error: expected '(' before 'else'
   11 |   if else {
      |      ^~~~
      |      (
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main {
  string c ;
  cin << c ;
  
  if ( c.at(0) == 'a','i','u','e','o'){
    cout >> vewel >> endl;
  }
  if else {
    cout >> consonant >> endl;
  }
  // ここにプログラムを追記
 
}


Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main {
      |     ^~~~
a.cc:5:10: error: expected primary-expression before 'c'
    5 |   string c ;
      |          ^
a.cc:5:10: error: expected '}' before 'c'
a.cc:4:10: note: to match this '{'
    4 | int main {
      |          ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin << c ;
      |   ^~~
a.cc:8:3: error: expected unqualified-id before 'if'
    8 |   if ( c.at(0) == 'a','i','u','e','o'){
      |   ^~
a.cc:11:3: error: expected unqualified-id before 'if'
   11 |   if else {
      |   ^~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main {
  char c ;
  cin << c;
  
  if ( c == a,e,i,u,o){
    cout >> vewel >> endl;
  }
  if else {
    cout >> consonant >> endl;
  }
  // ここにプログラムを追記
 
}

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main {
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'char'
    5 |   char c ;
      |   ^~~~
a.cc:5:3: error: expected '}' before 'char'
a.cc:4:10: note: to match this '{'
    4 | int main {
      |          ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin << c;
      |   ^~~
a.cc:8:3: error: expected unqualified-id before 'if'
    8 |   if ( c == a,e,i,u,o){
      |   ^~
a.cc:11:3: error: expected unqualified-id before 'if'
   11 |   if else {
      |   ^~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  char c;
  cin>>c;
  if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o"){
   cout<<"vowel"<<endl; 
  }else{
   cout<<"consonant"<<endl;
  }
  return 0;
}

Compiler output:
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"){
      |                                              ~^~~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
using ll = long long;

int main() {
  char N,K;// N人とK種類
  cin >> N ;
  
 if(N = 'a' ||N = 'i' ||N = 'u' ||N = 'e' ||N = 'o' ){
  
  cout << "vowel" << endl;
  
  
  }else{
    cout << "consonant" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:43: error: lvalue required as left operand of assignment
   10 |  if(N = 'a' ||N = 'i' ||N = 'u' ||N = 'e' ||N = 'o' ){
      |                                       ~~~~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  char a;
  cin >> a;
  if(a=='a'||a=='i'||a=='u'||a=='e'||a=='o'){
    cout << vowel << endl;
  }
  else
    cout << consonant << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'vowel' was not declared in this scope
    8 |     cout << vowel << endl;
      |             ^~~~~
a.cc:11:13: error: 'consonant' was not declared in this scope
   11 |     cout << consonant << endl;
      |             ^~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  char c=c;
  cin >> c;
  if(c='a','e'.'i','o','u'){
    cout<<"vowel"<<endl;
  else{
    cout<<"consonant"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected unqualified-id before 'i'
    7 |   if(c='a','e'.'i','o','u'){
      |                ^~~
a.cc:7:16: error: expected ')' before 'i'
    7 |   if(c='a','e'.'i','o','u'){
      |     ~          ^~~
      |                )
a.cc:9:3: error: expected '}' before 'else'
    9 |   else{
      |   ^~~~
a.cc:7:28: note: to match this '{'
    7 |   if(c='a','e'.'i','o','u'){
      |                            ^
Language: C++

#Include <bits/stdc++.h>
using namespace std;

int main(){
  char a;
  cin >> a;
  
  if(a=='a'||a=='e'||a=='i'||a=='o'||a=='u'){
    cout << "vowel" << endl;
  }
  else{
    cout << "consonant" << endl;
  }
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #Include; did you mean #include?
    1 | #Include <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> a;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #Include <bits/stdc++.h>
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << "vowel" << endl;
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:24: error: 'endl' was not declared in this scope
    9 |     cout << "vowel" << endl;
      |                        ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #Include <bits/stdc++.h>
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "consonant" << endl;
      |     ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:28: error: 'endl' was not declared in this scope
   12 |     cout << "consonant" << endl;
      |                            ^~~~
a.cc:12:28: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: 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;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:47: error: lvalue required as left operand of assignment
    7 |   if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o') cout << "vowel" << endl;
      |                                           ~~~~^~~~
Language: C++

#inlcude <iostream>
#include <string>
using namespace std;

int main() {
  char c;
  cin >> c;
  if (c == 'a'||c == 'i'||c == 'u'||c == 'e'||c == 'o') {
    cout << "vowel" << endl;
  } else {
    cout << "consonant" << endl;
  }
  return 0;
}

  
  

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude <iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> c;
      |   ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <string>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << "vowel" << endl;
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:24: error: 'endl' was not declared in this scope
    9 |     cout << "vowel" << endl;
      |                        ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include <string>
  +++ |+#include <ostream>
    3 | using namespace std;
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << "consonant" << endl;
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:28: error: 'endl' was not declared in this scope
   11 |     cout << "consonant" << endl;
      |                            ^~~~
a.cc:11:28: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define PI 3.14159265358979323846
constexpr int INF = numeric_limits<int>::max() / 2;
constexpr long long INFL = numeric_limits<long long>::max() / 2;
constexpr int MOD = 1000000007;
using Graph = vector<vector<int>>;



int main() {
    cin.tie(nullptr);
    ios::sync_with_stdio(false);

    char c;
    cin>>c;
    if(c=='a'||c=='i'||c=='u'||c=='e'||c='o'){
        cout <<"vowel"<< endl;
    }
    else cout <<"consonant" <<endl;



}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:38: error: lvalue required as left operand of assignment
   18 |     if(c=='a'||c=='i'||c=='u'||c=='e'||c='o'){
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Language: C++

char c;
cin >> c;
const string vowel = "aeiou";
cout << vowel.find(c) == string :: npos ? "vowel" : "consonant" << endl;


Compiler output:
a.cc:2:1: error: 'cin' does not name a type
    2 | cin >> c;
      | ^~~
a.cc:3:7: error: 'string' does not name a type
    3 | const string vowel = "aeiou";
      |       ^~~~~~
a.cc:4:1: error: 'cout' does not name a type
    4 | cout << vowel.find(c) == string :: npos ? "vowel" : "consonant" << endl;
      | ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  char c;
  cin >> c;
  String anser;
  
  if(c == 'a'){
    anser = "vowel";
  }
  else if(c == 'i'){
    anser = "vowel";
  }
  else if(c == 'u'){
 	anser = "vowel";
  }
  else if(c == 'e'){
 	anser = "vowel";
  }
  else if(c == 'o'){
 	anser = "vowel";
  }else  {
   anser = "consonant";
  }
 
  cout << anser << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'String' was not declared in this scope
    7 |   String anser;
      |   ^~~~~~
a.cc:10:5: error: 'anser' was not declared in this scope; did you mean 'assert'?
   10 |     anser = "vowel";
      |     ^~~~~
      |     assert
a.cc:13:5: error: 'anser' was not declared in this scope; did you mean 'assert'?
   13 |     anser = "vowel";
      |     ^~~~~
      |     assert
a.cc:16:9: error: 'anser' was not declared in this scope; did you mean 'assert'?
   16 |         anser = "vowel";
      |         ^~~~~
      |         assert
a.cc:19:9: error: 'anser' was not declared in this scope; did you mean 'assert'?
   19 |         anser = "vowel";
      |         ^~~~~
      |         assert
a.cc:22:9: error: 'anser' was not declared in this scope; did you mean 'assert'?
   22 |         anser = "vowel";
      |         ^~~~~
      |         assert
a.cc:24:4: error: 'anser' was not declared in this scope; did you mean 'assert'?
   24 |    anser = "consonant";
      |    ^~~~~
      |    assert
a.cc:27:11: error: 'anser' was not declared in this scope; did you mean 'assert'?
   27 |   cout << anser << endl;
      |           ^~~~~
      |           assert
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  string c;
  cin >> c;

  string anser;
  
  if(c == "a"){
    anser = vowel;
  }
  else if(c == "i"){
    anser = vowel;
  }
  else if(c == "u"){
 	anser = vowel;
  }
  else if(c == "e"){
 	anser = vowel;
  }
  else if(c == "o"){
 	anser = vowel;
  }else  {
   anser = consonant;
  }
 
  cout << anser << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: 'vowel' was not declared in this scope
   11 |     anser = vowel;
      |             ^~~~~
a.cc:14:13: error: 'vowel' was not declared in this scope
   14 |     anser = vowel;
      |             ^~~~~
a.cc:17:17: error: 'vowel' was not declared in this scope
   17 |         anser = vowel;
      |                 ^~~~~
a.cc:20:17: error: 'vowel' was not declared in this scope
   20 |         anser = vowel;
      |                 ^~~~~
a.cc:23:17: error: 'vowel' was not declared in this scope
   23 |         anser = vowel;
      |                 ^~~~~
a.cc:25:12: error: 'consonant' was not declared in this scope
   25 |    anser = consonant;
      |            ^~~~~~~~~
Language: 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;
  }
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:50: error: expected ')' before 'c'
    8 |   if ( c =='a' || c == 'i' || c == 'u' || c== 'e'
      |      ~                                           ^
      |                                                  )
    9 |       c == || 'o' ){
      |       ~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  char c;
  cin>>c;
  
  if(c=='a'){
  cout<<"vowel"
  }
  else if(c=='i'){
  cout<<"vowel"
  }
  else if(c=='u'){
  cout<<"vowel"
  }
  elseif(c=='e'){
  cout<<"vowel"
  }
  else if(c=='o'){
  cout<<"vowel"
  }
  else{
  
  cout<<"consonant"
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: expected ';' before '}' token
    9 |   cout<<"vowel"
      |                ^
      |                ;
   10 |   }
      |   ~             
a.cc:12:16: error: expected ';' before '}' token
   12 |   cout<<"vowel"
      |                ^
      |                ;
   13 |   }
      |   ~             
a.cc:15:16: error: expected ';' before '}' token
   15 |   cout<<"vowel"
      |                ^
      |                ;
   16 |   }
      |   ~             
a.cc:17:3: error: 'elseif' was not declared in this scope
   17 |   elseif(c=='e'){
      |   ^~~~~~
a.cc:20:3: error: 'else' without a previous 'if'
   20 |   else if(c=='o'){
      |   ^~~~
a.cc:21:16: error: expected ';' before '}' token
   21 |   cout<<"vowel"
      |                ^
      |                ;
   22 |   }
      |   ~             
a.cc:25:20: error: expected ';' before '}' token
   25 |   cout<<"consonant"
      |                    ^
      |                    ;
   26 |   }
      |   ~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  char c;
  cin>>c;
  
  if(c==(a|i|u|e|o)){
  cout<<"vowel"
  }
  else{
  
  cout<<"consonant"
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'a' was not declared in this scope
    8 |   if(c==(a|i|u|e|o)){
      |          ^
a.cc:8:12: error: 'i' was not declared in this scope
    8 |   if(c==(a|i|u|e|o)){
      |            ^
a.cc:8:14: error: 'u' was not declared in this scope
    8 |   if(c==(a|i|u|e|o)){
      |              ^
a.cc:8:16: error: 'e' was not declared in this scope
    8 |   if(c==(a|i|u|e|o)){
      |                ^
a.cc:8:18: error: 'o' was not declared in this scope
    8 |   if(c==(a|i|u|e|o)){
      |                  ^
a.cc:9:16: error: expected ';' before '}' token
    9 |   cout<<"vowel"
      |                ^
      |                ;
   10 |   }
      |   ~             
a.cc:13:20: error: expected ';' before '}' token
   13 |   cout<<"consonant"
      |                    ^
      |                    ;
   14 |   }
      |   ~
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){
  int  c;
  cin>>c;
  if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){
    cout<<"vowel"<<endl;
  }
  else{
    cout<<"consonant"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){
      |      ~^~~~~
a.cc:7:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){
      |              ~^~~~~
a.cc:7:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){
      |                      ~^~~~~
a.cc:7:31: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){
      |                              ~^~~~~
a.cc:7:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){
      |                                      ~^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  char c;
  cin >> c;

  // ここにプログラムを追記
    if(c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){
      cout << "vowel" << endl;
    }else{
      cout << "consonant" << endl;
    }
  }
}
  



Compiler output:
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  char c;
  cin >> c;

  if (c=="a" || c=="e" || c=="i" || c=="o" || c=="u") {
    cout << "vowel" << endl;
  }
    
  else {
    cout << "consonant" << endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (c=="a" || c=="e" || c=="i" || c=="o" || c=="u") {
      |       ~^~~~~
a.cc:8:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (c=="a" || c=="e" || c=="i" || c=="o" || c=="u") {
      |                 ~^~~~~
a.cc:8:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (c=="a" || c=="e" || c=="i" || c=="o" || c=="u") {
      |                           ~^~~~~
a.cc:8:38: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (c=="a" || c=="e" || c=="i" || c=="o" || c=="u") {
      |                                     ~^~~~~
a.cc:8:48: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (c=="a" || c=="e" || c=="i" || c=="o" || c=="u") {
      |                                               ~^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  char c;
  cin >> c;

  if (c == a || c==e || c==i || c==o || c==u) {
    cout << "vowel" << endl;
  }
    
  else {
    cout << "consonant" << endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'a' was not declared in this scope
    8 |   if (c == a || c==e || c==i || c==o || c==u) {
      |            ^
a.cc:8:20: error: 'e' was not declared in this scope
    8 |   if (c == a || c==e || c==i || c==o || c==u) {
      |                    ^
a.cc:8:28: error: 'i' was not declared in this scope
    8 |   if (c == a || c==e || c==i || c==o || c==u) {
      |                            ^
a.cc:8:36: error: 'o' was not declared in this scope
    8 |   if (c == a || c==e || c==i || c==o || c==u) {
      |                                    ^
a.cc:8:44: error: 'u' was not declared in this scope
    8 |   if (c == a || c==e || c==i || c==o || c==u) {
      |                                            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  char c;
  cin >> c;

  if ( c == a, e, i, o, u){
    cout << "vowel" << endl;
  }
    
  else {
    cout << "consonant" << endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'a' was not declared in this scope
    8 |   if ( c == a, e, i, o, u){
      |             ^
a.cc:8:16: error: 'e' was not declared in this scope
    8 |   if ( c == a, e, i, o, u){
      |                ^
a.cc:8:19: error: 'i' was not declared in this scope
    8 |   if ( c == a, e, i, o, u){
      |                   ^
a.cc:8:22: error: 'o' was not declared in this scope
    8 |   if ( c == a, e, i, o, u){
      |                      ^
a.cc:8:25: error: 'u' was not declared in this scope
    8 |   if ( c == a, e, i, o, u){
      |                         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  char S;
  cin >> S;

  // ここにプログラムを追記
  if(S == a || S == i || S == u || S == e || S == o) {
    cout << "vowel" << endl;
  }
  else {
    cout << "consonant" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: 'a' was not declared in this scope
    9 |   if(S == a || S == i || S == u || S == e || S == o) {
      |           ^
a.cc:9:21: error: 'i' was not declared in this scope
    9 |   if(S == a || S == i || S == u || S == e || S == o) {
      |                     ^
a.cc:9:31: error: 'u' was not declared in this scope
    9 |   if(S == a || S == i || S == u || S == e || S == o) {
      |                               ^
a.cc:9:41: error: 'e' was not declared in this scope
    9 |   if(S == a || S == i || S == u || S == e || S == o) {
      |                                         ^
a.cc:9:51: error: 'o' was not declared in this scope
    9 |   if(S == a || S == i || S == u || S == e || S == o) {
      |                                                   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  char S;
  cin >> S;

  // ここにプログラムを追記
  if(S = a || S = i || S = u || S = e || S = o) {
    cout << "vowel" << endl;
  }
  else {
    cout << "consonant" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: 'a' was not declared in this scope
    9 |   if(S = a || S = i || S = u || S = e || S = o) {
      |          ^
a.cc:9:19: error: 'i' was not declared in this scope
    9 |   if(S = a || S = i || S = u || S = e || S = o) {
      |                   ^
a.cc:9:28: error: 'u' was not declared in this scope
    9 |   if(S = a || S = i || S = u || S = e || S = o) {
      |                            ^
a.cc:9:37: error: 'e' was not declared in this scope
    9 |   if(S = a || S = i || S = u || S = e || S = o) {
      |                                     ^
a.cc:9:46: error: 'o' was not declared in this scope
    9 |   if(S = a || S = i || S = u || S = e || S = o) {
      |                                              ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  char c;
  cin >> c;

  if (c == a || c == e) {
    cout << "vowel" << endl;
  }

  else if (c == i && c == o) {
    cout << "vowel" << endl;
  }

  else if (c == u ) {
    cout << "vowel" << endl;
  }
  else {
  cout << "consonant" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'a' was not declared in this scope
    8 |   if (c == a || c == e) {
      |            ^
a.cc:8:22: error: 'e' was not declared in this scope
    8 |   if (c == a || c == e) {
      |                      ^
a.cc:12:17: error: 'i' was not declared in this scope
   12 |   else if (c == i && c == o) {
      |                 ^
a.cc:12:27: error: 'o' was not declared in this scope
   12 |   else if (c == i && c == o) {
      |                           ^
a.cc:16:17: error: 'u' was not declared in this scope
   16 |   else if (c == u ) {
      |                 ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < n; i++)
#define rep1(i, n) for(int i = 1; i < n+1; i++)
#define sort(A) sort(A.begin(),A.end())
#define reverse(A) reverse(A.begin(),A.end())
#define vecmin(A) *min_element(A.begin(),A.end())
#define vecmax(A) *max_element(A.begin(),A.end())
typedef long long ll;

int main(){
  
  char c;
  cin >> c;
  bool sub1 = c == 'a';
  bool sub2 = c == 'b';
  bool sub3 = c == 'c';
  bool sub4 = c == 'd';
  bool sub5 = c == 'e';
  if(sub1 || sub2 || sub3 || sub4 || sub5) cout << "vowel" << endl;
  else cout << consonant << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:16: error: 'consonant' was not declared in this scope
   21 |   else cout << consonant << endl;
      |                ^~~~~~~~~