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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:38: error: 'a' was not declared in this scope
    7 |   if(c=='a'||c=='e'||c=='i'||c=='o'||a=='u'){
      |                                      ^
a.cc:10:24: error: expected ';' before '}' token
   10 |     cout << "consonant"
      |                        ^
      |                        ;
   11 |   }
      |   ~
Language: C++

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

int main() {
  //定義一覧
  char C;
  
  if(C == 'a' or C == 'e' or C == 'i' or C == 'o' or C == 'u' C == 'A' or C == 'E' or C == 'I' or C == 'O' or C == 'U'){
  	cout << "vowel" << endl;
  }else{
  	cout << "consonant" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:62: error: expected ')' before 'C'
    8 |   if(C == 'a' or C == 'e' or C == 'i' or C == 'o' or C == 'u' C == 'A' or C == 'E' or C == 'I' or C == 'O' or C == 'U'){
      |     ~                                                        ^~
      |                                                              )
Language: C++

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

int main() {

  int c;
   
  cin >> c;

  if( c == 'a'|| c== 'i' || c == 'u' || c =='e' || c == 'o' ){
      
      cout << vowel << endl ;

  }

  else { cout << consonant << endl ;}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: 'vowel' was not declared in this scope
   12 |       cout << vowel << endl ;
      |               ^~~~~
a.cc:16:18: error: 'consonant' was not declared in this scope
   16 |   else { cout << consonant << endl ;}
      |                  ^~~~~~~~~
a.cc:16:38: error: expected '}' at end of input
   16 |   else { cout << consonant << endl ;}
      |                                      ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
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:8:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if ( s == "a" || s == "i" || s == "u" || s ==  "e" || s == "o") {
      |        ~~^~~~~~
a.cc:8:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if ( s == "a" || s == "i" || s == "u" || s ==  "e" || s == "o") {
      |                    ~~^~~~~~
a.cc:8:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if ( s == "a" || s == "i" || s == "u" || s ==  "e" || s == "o") {
      |                                ~~^~~~~~
a.cc:8:46: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if ( s == "a" || s == "i" || s == "u" || s ==  "e" || s == "o") {
      |                                            ~~^~~~~~~
a.cc:8:59: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   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;
  
  const string vowel = "aeiou";
  string result; 
  for (int i = 0; i < vowel.size(); i++) {
    if (c == vowel.at(i)) {
      result = "vowel";
      break;
    }
    else {
      result = "consonant"
    }
  }
  
  cout << result << endl;
  
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:16:27: error: expected ';' before '}' token
   16 |       result = "consonant"
      |                           ^
      |                           ;
   17 |     }
      |     ~
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:8:14: 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:22: 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:30: 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:46: 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 << "voewl" << endl;
  }
  else {
    cout << consonant << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
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() {
 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:10: error: 'a' was not declared in this scope
    8 |   if (c==a || C==i || c==u || c==e || C==o ) {
      |          ^
a.cc:8:15: error: 'C' was not declared in this scope
    8 |   if (c==a || C==i || c==u || c==e || C==o ) {
      |               ^
a.cc:8:18: error: 'i' was not declared in this scope
    8 |   if (c==a || C==i || c==u || c==e || C==o ) {
      |                  ^
a.cc:8:26: error: 'u' was not declared in this scope
    8 |   if (c==a || C==i || c==u || c==e || C==o ) {
      |                          ^
a.cc:8:34: error: 'e' was not declared in this scope
    8 |   if (c==a || C==i || c==u || c==e || C==o ) {
      |                                  ^
a.cc:8:42: error: 'o' was not declared in this scope
    8 |   if (c==a || C==i || c==u || c==e || C==o ) {
      |                                          ^
a.cc:9:24: error: expected primary-expression before ';' token
    9 |     cout << "vowel" << ;endl;
      |                        ^
a.cc:9:29: error: statement cannot resolve address of overloaded function
    9 |     cout << "vowel" << ;endl;
      |                             ^
Language: C++

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

int main() {
  string 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;

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: 'a' was not declared in this scope
    6 |   if (c == a) {
      |            ^
a.cc:7:13: error: 'vowel' was not declared in this scope
    7 |     cout << vowel << endl;
      |             ^~~~~
a.cc:8:19: error: 'i' was not declared in this scope
    8 |   }else  if (c == i) {
      |                   ^
a.cc:9:13: error: 'vowel' was not declared in this scope
    9 |     cout << vowel << endl;
      |             ^~~~~
a.cc:10:18: error: 'u' was not declared in this scope
   10 |   }else if (c == u) {
      |                  ^
a.cc:11:13: error: 'vowel' was not declared in this scope
   11 |     cout << vowel << endl;
      |             ^~~~~
a.cc:12:19: error: 'e' was not declared in this scope
   12 |   }else  if (c == e) {
      |                   ^
a.cc:13:13: error: 'vowel' was not declared in this scope
   13 |     cout << vowel << endl;
      |             ^~~~~
a.cc:14:19: error: 'o' was not declared in this scope
   14 |   }else  if (c == o) {
      |                   ^
a.cc:15:13: error: 'vowel' was not declared in this scope
   15 |     cout << vowel << endl;
      |             ^~~~~
a.cc:17:13: error: 'consonant' was not declared in this scope
   17 |     cout << consonant << endl;
      |             ^~~~~~~~~
a.cc:17:31: error: expected '}' at end of input
   17 |     cout << consonant << endl;
      |                               ^
a.cc:16:10: note: to match this '{'
   16 |   }else  {
      |          ^
a.cc:17:31: error: expected '}' at end of input
   17 |     cout << consonant << endl;
      |                               ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include<set>
#include<map>
using namespace std;


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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     if(a == "a" || a == "e" || a == "o" || a == "i" || a == "u"){
      |        ~~^~~~~~
a.cc:14:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     if(a == "a" || a == "e" || a == "o" || a == "i" || a == "u"){
      |                    ~~^~~~~~
a.cc:14:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     if(a == "a" || a == "e" || a == "o" || a == "i" || a == "u"){
      |                                ~~^~~~~~
a.cc:14:46: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     if(a == "a" || a == "e" || a == "o" || a == "i" || a == "u"){
      |                                            ~~^~~~~~
a.cc:14:58: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     if(a == "a" || a == "e" || a == "o" || a == "i" || a == "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:8:47: error: lvalue required as left operand of assignment
    8 |   if(S = 'a' || S = 'i' || S = 'u' || S = 'e' || S = 'o'){
      |                                           ~~~~^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
int A;
cin >> A;
 
  if (A == "a"||A == "i"||A == "u"||A == "e"||A == "o")
  {
    cout << "a" << endl;
  }
  else
  {
    cout<<"consonant"<<endl;
  }
  
  
 
}
#include <bits/stdc++.h>
using namespace std;
 
int main() {
int c;
cin >> c;
 
  if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'
  {
    cout << "a" << endl;
  }
  else
  {
    cout<<"consonant"<<endl;
  }
  
  
 
}
提出情報

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (A == "a"||A == "i"||A == "u"||A == "e"||A == "o")
      |       ~~^~~~~~
a.cc:8:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (A == "a"||A == "i"||A == "u"||A == "e"||A == "o")
      |                 ~~^~~~~~
a.cc:8:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (A == "a"||A == "i"||A == "u"||A == "e"||A == "o")
      |                           ~~^~~~~~
a.cc:8:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (A == "a"||A == "i"||A == "u"||A == "e"||A == "o")
      |                                     ~~^~~~~~
a.cc:8:49: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (A == "a"||A == "i"||A == "u"||A == "e"||A == "o")
      |                                               ~~^~~~~~
a.cc: At global scope:
a.cc:23:5: error: redefinition of 'int main()'
   23 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
a.cc: In function 'int main()':
a.cc:27:63: error: expected ')' before '{' token
   27 |   if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'
      |      ~                                                        ^
      |                                                               )
   28 |   {
      |   ~                                                            
a.cc:38:1: error: expected primary-expression before '}' token
   38 | }
      | ^
a.cc: At global scope:
a.cc:39:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' does not name a type
   39 | 提出情報
      | ^~~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (A == "a"||A == "i"||A == "u"||A == "e"||A == "o")
      |       ~~^~~~~~
a.cc:8:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (A == "a"||A == "i"||A == "u"||A == "e"||A == "o")
      |                 ~~^~~~~~
a.cc:8:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (A == "a"||A == "i"||A == "u"||A == "e"||A == "o")
      |                           ~~^~~~~~
a.cc:8:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (A == "a"||A == "i"||A == "u"||A == "e"||A == "o")
      |                                     ~~^~~~~~
a.cc:8:49: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (A == "a"||A == "i"||A == "u"||A == "e"||A == "o")
      |                                               ~~^~~~~~
Language: C++

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

int main() {
int A;
cin >> A;

  if (A== "a"||A== "i"||A== "u"||A== "e"||A== "o")
  {
    cout << "a" << 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 (A== "a"||A== "i"||A== "u"||A== "e"||A== "o")
      |       ~^~~~~~
a.cc:8:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (A== "a"||A== "i"||A== "u"||A== "e"||A== "o")
      |                ~^~~~~~
a.cc:8:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (A== "a"||A== "i"||A== "u"||A== "e"||A== "o")
      |                         ~^~~~~~
a.cc:8:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (A== "a"||A== "i"||A== "u"||A== "e"||A== "o")
      |                                  ~^~~~~~
a.cc:8:44: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (A== "a"||A== "i"||A== "u"||A== "e"||A== "o")
      |                                           ~^~~~~~
Language: C++

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

int main() {
int A;
cin >> A;

  if (A=="a"||A=="i"||A=="u"||A=="e"||A=="o")
  {
    cout << "a" << 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 (A=="a"||A=="i"||A=="u"||A=="e"||A=="o")
      |       ~^~~~~
a.cc:8:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (A=="a"||A=="i"||A=="u"||A=="e"||A=="o")
      |               ~^~~~~
a.cc:8:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (A=="a"||A=="i"||A=="u"||A=="e"||A=="o")
      |                       ~^~~~~
a.cc:8:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (A=="a"||A=="i"||A=="u"||A=="e"||A=="o")
      |                               ~^~~~~
a.cc:8:40: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (A=="a"||A=="i"||A=="u"||A=="e"||A=="o")
      |                                       ~^~~~~
Language: C++

using namespace std;

int main() {
int A;
cin >> A;

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | 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 | using namespace std;
a.cc:7:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if (A=="a"||A=="i"||A=="u"||A=="e"||A=="o")
      |       ~^~~~~
a.cc:7:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if (A=="a"||A=="i"||A=="u"||A=="e"||A=="o")
      |               ~^~~~~
a.cc:7:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if (A=="a"||A=="i"||A=="u"||A=="e"||A=="o")
      |                       ~^~~~~
a.cc:7:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if (A=="a"||A=="i"||A=="u"||A=="e"||A=="o")
      |                               ~^~~~~
a.cc:7:40: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if (A=="a"||A=="i"||A=="u"||A=="e"||A=="o")
      |                                       ~^~~~~
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << "a" << endl;
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:20: error: 'endl' was not declared in this scope
    9 |     cout << "a" << 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:13:5: error: 'cout' was not declared in this scope
   13 |     cout<<"consonant"<<endl;
      |     ^~~~
a.cc:13:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:24: error: 'endl' was not declared in this scope
   13 |     cout<<"consonant"<<endl;
      |                        ^~~~
a.cc:13:24: 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;
  
    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:24:4: error: expected '}' at end of input
   24 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:24:4: error: expected '}' at end of input
   24 |   }
      |    ^
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";
  else
    cout<<"consonant"
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: expected ';' before '}' token
    9 |     cout<<"consonant"
      |                      ^
      |                      ;
   10 | }
      | ~
Language: C++

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

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



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

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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'a' was not declared in this scope
    7 |   if ( c == a || c == e || c == i || c == o || c == u ) {
      |             ^
a.cc:7:23: error: 'e' was not declared in this scope
    7 |   if ( c == a || c == e || c == i || c == o || c == u ) {
      |                       ^
a.cc:7:33: error: 'i' was not declared in this scope
    7 |   if ( c == a || c == e || c == i || c == o || c == u ) {
      |                                 ^
a.cc:7:43: error: 'o' was not declared in this scope
    7 |   if ( c == a || c == e || c == i || c == o || c == u ) {
      |                                           ^
a.cc:7:53: error: 'u' was not declared in this scope
    7 |   if ( c == a || c == e || c == i || c == o || c == u ) {
      |                                                     ^
a.cc:10:3: error: expected '}' before 'else'
   10 |   else {
      |   ^~~~
a.cc:7:57: note: to match this '{'
    7 |   if ( c == a || c == e || c == i || c == o || c == u ) {
      |                                                         ^
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 << "voewl";
	else
		cout << "consonant"
	cout << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:36: error: expected ';' before 'cout'
   11 |                 cout << "consonant"
      |                                    ^
      |                                    ;
   12 |         cout << 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:25: error: expected primary-expression before '||' token
    8 |     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:8:25: error: expected primary-expression before '||' token
    8 |     if (c=='a'||c=='i'==||c=='u'||c=='e'||c=='o'){
      |                         ^~
a.cc:9:13: error: 'vowel' was not declared in this scope
    9 |       cout<<vowel<<endl;
      |             ^~~~~
a.cc:12:13: error: 'consonant' was not declared in this scope
   12 |       cout<<consonant<<endl;
      |             ^~~~~~~~~
Language: C++

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

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


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"){
      |       ~^~~~~
a.cc:10:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   else if (c=="i"){
      |            ~^~~~~
a.cc:13:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   else if (c=="u"){
      |            ~^~~~~
a.cc:16:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |     else if (c=="e"){
      |              ~^~~~~
a.cc:19:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |     else if (c=="o"){
      |              ~^~~~~
Language: C++

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

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


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"){
      |       ~^~~~~
a.cc:8:13: error: 'vowel' was not declared in this scope
    8 |     cout << vowel << endl;
      |             ^~~~~
a.cc:10:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   else if (c=="i"){
      |            ~^~~~~
a.cc:11:13: error: 'vowel' was not declared in this scope
   11 |     cout << vowel << endl;
      |             ^~~~~
a.cc:13:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   else if (c=="u"){
      |            ~^~~~~
a.cc:14:13: error: 'vowel' was not declared in this scope
   14 |     cout << vowel << endl;
      |             ^~~~~
a.cc:16:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |     else if (c=="e"){
      |              ~^~~~~
a.cc:17:13: error: 'vowel' was not declared in this scope
   17 |     cout << vowel << endl;
      |             ^~~~~
a.cc:19:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |     else if (c=="o"){
      |              ~^~~~~
a.cc:20:13: error: 'vowel' was not declared in this scope
   20 |     cout << vowel << endl;
      |             ^~~~~
a.cc:23:12: error: 'consonant' was not declared in this scope
   23 |    cout << consonant << endl;
      |            ^~~~~~~~~
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:9:24: error: expected primary-expression before ',' token
    9 |       cout << "vowel" <,endl;
      |                        ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: invalid operands of types '<unresolved overloaded function type>' and 'char' to binary 'operator=='
    8 |   if(str.at == 'a'){
      |      ~~~~~~ ^~ ~~~
      |          |     |
      |          |     char
      |          <unresolved overloaded function type>
a.cc:11:18: error: invalid operands of types '<unresolved overloaded function type>' and 'char' to binary 'operator=='
   11 |   else if(str.at == 'i'){
      |           ~~~~~~ ^~ ~~~
      |               |     |
      |               |     char
      |               <unresolved overloaded function type>
a.cc:14:18: error: invalid operands of types '<unresolved overloaded function type>' and 'char' to binary 'operator=='
   14 |   else if(str.at == 'u'){
      |           ~~~~~~ ^~ ~~~
      |               |     |
      |               |     char
      |               <unresolved overloaded function type>
a.cc:17:18: error: invalid operands of types '<unresolved overloaded function type>' and 'char' to binary 'operator=='
   17 |   else if(str.at == 'e'){
      |           ~~~~~~ ^~ ~~~
      |               |     |
      |               |     char
      |               <unresolved overloaded function type>
a.cc:20:18: error: invalid operands of types '<unresolved overloaded function type>' and 'char' to binary 'operator=='
   20 |   else if(str.at == 'o'){
      |           ~~~~~~ ^~ ~~~
      |               |     |
      |               |     char
      |               <unresolved overloaded function type>
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:73: error: expected primary-expression before ')' token
    8 |         if ( c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u' ||)
      |                                                                         ^
Language: C++

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

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


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==u || c==o){
      |            ^
a.cc:8:20: error: 'e' was not declared in this scope
    8 |   if (c == a || c==e || c==i || c==u || c==o){
      |                    ^
a.cc:8:28: error: 'i' was not declared in this scope
    8 |   if (c == a || c==e || c==i || c==u || c==o){
      |                            ^
a.cc:8:36: error: 'u' was not declared in this scope
    8 |   if (c == a || c==e || c==i || c==u || c==o){
      |                                    ^
a.cc:8:44: error: 'o' was not declared in this scope
    8 |   if (c == a || c==e || c==i || c==u || c==o){
      |                                            ^
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: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='i'||c=='u'||c=='e'||c=='o')
      cout<<"vowel"<<endl;
    else
      cout<<"consonant"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: lvalue required as left operand of assignment
   10 |     if(c=='a'||c='i'||c=='u'||c=='e'||c=='o')
      |        ~~~~~~^~~
a.cc: At global scope:
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

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

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

 if (str.at(1) == 'a' || str.at(1) == 'i' || str.at(1) == 'u' || str.at(1) == 'e' || str.at(1) == 'o') {
    cout << "vowel" << endl;
  }
  
  else {
    cout << "consonant" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: 'str' was not declared in this scope; did you mean 'str1'?
    8 |  if (str.at(1) == 'a' || str.at(1) == 'i' || str.at(1) == 'u' || str.at(1) == 'e' || str.at(1) == 'o') {
      |      ^~~
      |      str1
Language: C++

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

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


Compiler output:
a.cc:25:1: error: expected declaration before '}' token
   25 | }
      | ^
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:46: 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() {
  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:1:10: fatal error: bits.stdc++.h: No such file or directory
    1 | #include <bits.stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

int main(){
  string c;
  cin >> c;
  if(c.find == ("a" or "i" or "u" or "e" or "o")){
    cout << "vowel" << endl;
  }
  else{
    cout << "consonant" << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: invalid operands of types '<unresolved overloaded function type>' and 'bool' to binary 'operator=='
    8 |   if(c.find == ("a" or "i" or "u" or "e" or "o")){
      |      ~~~~~~ ^~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |        |                                 |
      |        |                                 bool
      |        <unresolved overloaded function type>
Language: C++

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

int main(){
  char c; //入力
  cin >> c;
  String boin; //文字列変数
  boin = "aiueo";
  
  for(int i=0;i<boin.size();i++){
    if(boin.at(i) == c){
      cout << "vowel";
    } else {
      cout << "consonant";
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'String' was not declared in this scope
    7 |   String boin; //文字列変数
      |   ^~~~~~
a.cc:8:3: error: 'boin' was not declared in this scope
    8 |   boin = "aiueo";
      |   ^~~~
Language: C++

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

int main(){
  char c; //入力
  cin >> c;
  string boin; //文字列変数
  boin = "aiueo";
  
  for(i=0;i<boin.size();i++){
    if(boin.at(i) == c){
      cout << "vowel";
    } else {
      cout << "consonant";
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: 'i' was not declared in this scope
   10 |   for(i=0;i<boin.size();i++){
      |       ^
Language: C++

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

int main(){
  char c; //入力
  cin >> c;
  String boin; //文字列変数
  boin = "aiueo";
  
  for(i=0;i<boin.size();i++){
    if(boin.at(i) == c){
      cout << "vowel";
    } else {
      cout << "consonant";
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'String' was not declared in this scope
    7 |   String boin; //文字列変数
      |   ^~~~~~
a.cc:8:3: error: 'boin' was not declared in this scope
    8 |   boin = "aiueo";
      |   ^~~~
a.cc:10:7: error: 'i' was not declared in this scope
   10 |   for(i=0;i<boin.size();i++){
      |       ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:2: error: expected '}' at end of input
   11 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 'consonant' was not declared in this scope
   10 |     cout << consonant <<endl;
      |             ^~~~~~~~~
a.cc:11:2: error: expected '}' at end of input
   11 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
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:10: error: 'c' was not declared in this scope
    5 |     cin>>c;
      |          ^
Language: C++

#include <iostream>
using namespace std;
int main(){
char b;
string a;
cin >> a;
b = a;
 if(b=='a' or b =='i' or b=='u' or b=='e' or b=='o'){
  cout << "vowel" << endl;
  }
 else{
 cout << "consonant" << endl;
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char' in assignment
    7 | b = a;
      |     ^
      |     |
      |     std::string {aka std::__cxx11::basic_string<char>}
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:23: error: expression cannot be used as a function
    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:15: error: expected primary-expression before ',' token
    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:15: error: expected primary-expression before '||' token
    8 |   if (c =='a')||(c=='e')||(c=='i')||(c=='o')||(c=='u')
      |               ^~
Language: C++

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

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

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

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

int main() {
  char s;
  bool judge=true;
  cin >> s;
    switch(s.at(i)){  
      case'a':;
      case'i':;
        case'u':;
        case'e':;
        case'o':;
      default:judge=false;
    }
    if(judge ==true)
      cout << "vowel" << endl;
  else cout << "consonant" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: request for member 'at' in 's', which is of non-class type 'char'
    8 |     switch(s.at(i)){
      |              ^~
a.cc:8:17: error: 'i' was not declared in this scope
    8 |     switch(s.at(i)){
      |                 ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'a' was not declared in this scope
    7 |     if(ch==a || ch==e || ch==i || ch==o || ch==b)
      |            ^
a.cc:7:21: error: 'e' was not declared in this scope
    7 |     if(ch==a || ch==e || ch==i || ch==o || ch==b)
      |                     ^
a.cc:7:30: error: 'i' was not declared in this scope
    7 |     if(ch==a || ch==e || ch==i || ch==o || ch==b)
      |                              ^
a.cc:7:39: error: 'o' was not declared in this scope
    7 |     if(ch==a || ch==e || ch==i || ch==o || ch==b)
      |                                       ^
a.cc:7:48: error: 'b' was not declared in this scope
    7 |     if(ch==a || ch==e || ch==i || ch==o || ch==b)
      |                                                ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: 'ch' was not declared in this scope
    7 |   if(ch==a || ch==e || ch==i || ch==o || ch==b)
      |      ^~
a.cc:7:19: error: 'e' was not declared in this scope
    7 |   if(ch==a || ch==e || ch==i || ch==o || ch==b)
      |                   ^
a.cc:7:28: error: 'i' was not declared in this scope
    7 |   if(ch==a || ch==e || ch==i || ch==o || ch==b)
      |                            ^
a.cc:7:37: error: 'o' was not declared in this scope
    7 |   if(ch==a || ch==e || ch==i || ch==o || ch==b)
      |                                     ^
a.cc:7:46: error: 'b' was not declared in this scope
    7 |   if(ch==a || ch==e || ch==i || ch==o || ch==b)
      |                                              ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: expected primary-expression before '}' token
   12 |   }
      |   ^
a.cc:12:4: error: expected '}' at end of input
   12 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
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:11: error: 'vowel' was not declared in this scope
    8 |     cout<<vowel<<endl;
      |           ^~~~~
a.cc:10:11: error: 'consonant' was not declared in this scope
   10 |     cout<<consonant<<endl;
      |           ^~~~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'bloo' was not declared in this scope
    7 |         bloo flag = false;
      |         ^~~~
a.cc:10:17: error: 'flag' was not declared in this scope
   10 |                 flag = true;
      |                 ^~~~
a.cc:13:17: error: 'flag' was not declared in this scope
   13 |                 flag = true;
      |                 ^~~~
a.cc:16:17: error: 'flag' was not declared in this scope
   16 |                 flag = true;
      |                 ^~~~
a.cc:19:17: error: 'flag' was not declared in this scope
   19 |                 flag = true;
      |                 ^~~~
a.cc:22:17: error: 'flag' was not declared in this scope
   22 |                 flag = true;
      |                 ^~~~
a.cc:25:17: error: 'flag' was not declared in this scope
   25 |                 flag = false;
      |                 ^~~~
a.cc:28:12: error: 'flag' was not declared in this scope
   28 |         if(flag == true){
      |            ^~~~
Language: C++

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

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

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

  else {
    cout << "consonant" << endl;
  }

}


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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    5 |   char alpabet = "";
      |                  ^~
      |                  |
      |                  const char*
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected unqualified-id before '=' token
    5 |   char = s;
      |        ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected unqualified-id before '=' token
    5 |   char = s;
      |        ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected unqualified-id before '=' token
    5 |   char = s;
      |        ^