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

#pinclude <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<(n); i++)
#define FOR(i,a,b) for(int i=a; i<=b; i++)
#define all(v) v.begin(), v.end()
#define F first
#define S second
#define INF 1000000000000
#define MOD 10000007
#define PI 3.14159265359
typedef long long ll;
//
int main(){
    
    char c;
    cin>>c;
    if(c=='a'||'i'||'u'||'e'||'o'){
    
    cout<<vowel<<endl;}else{
   cout<<consonant<<endl; }
    
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #pinclude; did you mean #include?
    1 | #pinclude <bits/stdc++.h>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:16:5: error: 'cin' was not declared in this scope
   16 |     cin>>c;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #pinclude <bits/stdc++.h>
a.cc:19:5: error: 'cout' was not declared in this scope
   19 |     cout<<vowel<<endl;}else{
      |     ^~~~
a.cc:19:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:19:11: error: 'vowel' was not declared in this scope
   19 |     cout<<vowel<<endl;}else{
      |           ^~~~~
a.cc:19:18: error: 'endl' was not declared in this scope
   19 |     cout<<vowel<<endl;}else{
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #pinclude <bits/stdc++.h>
a.cc:20:4: error: 'cout' was not declared in this scope
   20 |    cout<<consonant<<endl; }
      |    ^~~~
a.cc:20:4: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:20:10: error: 'consonant' was not declared in this scope
   20 |    cout<<consonant<<endl; }
      |          ^~~~~~~~~
a.cc:20:21: error: 'endl' was not declared in this scope
   20 |    cout<<consonant<<endl; }
      |                     ^~~~
a.cc:20:21: 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 == 'e' || c == 'i' || c == 'o' || c == 'u'){
    cout << 'vowel' << endl;
  }
  else {
    cout << 'consonant' << endl ;
  }

Compiler output:
a.cc:8:13: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    8 |     cout << 'vowel' << endl;
      |             ^~~~~~~
a.cc:11:13: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
   11 |     cout << 'consonant' << endl ;
      |             ^~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:12:4: error: expected '}' at end of input
   12 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main(){
string 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:8:9: error: 'a' was not declared in this scope
    8 |   if(c==a,i,u,e,o){
      |         ^
a.cc:8:11: error: 'i' was not declared in this scope
    8 |   if(c==a,i,u,e,o){
      |           ^
a.cc:8:13: error: 'u' was not declared in this scope
    8 |   if(c==a,i,u,e,o){
      |             ^
a.cc:8:15: error: 'e' was not declared in this scope
    8 |   if(c==a,i,u,e,o){
      |               ^
a.cc:8:17: error: 'o' was not declared in this scope
    8 |   if(c==a,i,u,e,o){
      |                 ^
Language: C++

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

int main() {
  
    string c;
  cin >> c;
  
  if ( c == "a"){
    cout << "vowel" << endl;
  }

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

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

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

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

  
 
}



Compiler output:
a.cc: In function 'int main()':
a.cc:13:6: error: expected '(' before 'else'
   13 |   if else ( c == "e"){
      |      ^~~~
      |      (
a.cc:17:6: error: expected '(' before 'else'
   17 |   if else( c == "i"){
      |      ^~~~
      |      (
a.cc:21:6: error: expected '(' before 'else'
   21 |   if else( c == "o"){
      |      ^~~~
      |      (
a.cc:25:6: error: expected '(' before 'else'
   25 |   if else( c == "u"){
      |      ^~~~
      |      (
a.cc:29:3: error: 'else' without a previous 'if'
   29 |   else{
      |   ^~~~
Language: C++

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

int main() {
  //入力と出力用の宣言
  string A;
  char s;
  
  //初期条件
  s='E'
  A="error"
    
  //入力部
  cin >> s;
  
  //判定部
  if(s=='a'||'i'||'u'||'e'||'o'){
  	A="vowel"; 
  }
  else{
    A="consonant";
  }
  
  //出力部
  cout << s << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: expected ';' before 'A'
   10 |   s='E'
      |        ^
      |        ;
   11 |   A="error"
      |   ~
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 << endl;
  }
  

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'a' was not declared in this scope
    7 |   if (c == a || c == i || c == u || c == e || c == o) {
      |            ^
a.cc:7:22: error: 'i' was not declared in this scope
    7 |   if (c == a || c == i || c == u || c == e || c == o) {
      |                      ^
a.cc:7:32: error: 'u' was not declared in this scope
    7 |   if (c == a || c == i || c == u || c == e || c == o) {
      |                                ^
a.cc:7:42: error: 'e' was not declared in this scope
    7 |   if (c == a || c == i || c == u || c == e || c == o) {
      |                                          ^
a.cc:7:52: error: 'o' was not declared in this scope
    7 |   if (c == a || c == i || c == u || c == e || c == o) {
      |                                                    ^
a.cc:8:13: error: 'voewl' was not declared in this scope
    8 |     cout << voewl << endl;
      |             ^~~~~
a.cc:9:4: error: expected '}' at end of input
    9 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: Java

import java.util.*;

public class Main{
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      String name = sc.next();
      System.out.println(name.match("[aiueo]")?"vowel":"consonant");
     	
    }
}

Compiler output:
Main.java:7: error: cannot find symbol
      System.out.println(name.match("[aiueo]")?"vowel":"consonant");
                             ^
  symbol:   method match(String)
  location: variable name of type String
1 error
Language: Java

import java.util.*;

public class Main{
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      String name = sc.next();
      System.out.println(name.match("[aiueo]")?:"vowel":"consonant");
     	
    }
}

Compiler output:
Main.java:7: error: illegal start of expression
      System.out.println(name.match("[aiueo]")?:"vowel":"consonant");
                                               ^
Main.java:7: error: ')' or ',' expected
      System.out.println(name.match("[aiueo]")?:"vowel":"consonant");
                                                       ^
2 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  char c;
  string str = "aiueo";
  string ans = "consonant";
  
  cin >> c;
  
  for(int i = 0; i < str.size(); i++){
    if(c == str.at(i)){
      ans = "vowel"
      break;
    }
	
  }
  
  cout << ans << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:20: error: expected ';' before 'break'
   13 |       ans = "vowel"
      |                    ^
      |                    ;
   14 |       break;
      |       ~~~~~
Language: C++

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

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



    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected ';' before 'cin'
    7 |   a = 0
      |        ^
      |        ;
    8 |   cin >> c;
      |   ~~~
Language: C++

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

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



    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected ';' before 'cin'
    7 |   a = 0
      |        ^
      |        ;
    8 |   cin >> c;
      |   ~~~   
a.cc:10:13: error: 'vowel' was not declared in this scope
   10 |     cout << vowel <<endl;
      |             ^~~~~
a.cc:14:13: error: 'vowel' was not declared in this scope
   14 |     cout << vowel <<endl;
      |             ^~~~~
a.cc:18:13: error: 'vowel' was not declared in this scope
   18 |     cout << vowel <<endl;
      |             ^~~~~
a.cc:22:13: error: 'vowel' was not declared in this scope
   22 |     cout << vowel <<endl;
      |             ^~~~~
a.cc:26:13: error: 'vowel' was not declared in this scope
   26 |     cout << vowel <<endl;
      |             ^~~~~
a.cc:30:13: error: 'consonant' was not declared in this scope
   30 |     cout << consonant << endl;
      |             ^~~~~~~~~
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:12: error: 'a' was not declared in this scope
    8 |     if (c==a || e || i || o || u) {
      |            ^
a.cc:8:17: error: 'e' was not declared in this scope
    8 |     if (c==a || e || i || o || u) {
      |                 ^
a.cc:8:22: error: 'i' was not declared in this scope
    8 |     if (c==a || e || i || o || u) {
      |                      ^
a.cc:8:27: error: 'o' was not declared in this scope
    8 |     if (c==a || e || i || o || u) {
      |                           ^
a.cc:8:32: 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 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:13: error: 'vowel' was not declared in this scope
    9 |     cout << vowel << endl;
      |             ^~~~~
a.cc:10:16: error: 'consonant' was not declared in this scope
   10 |   else cout << consonant << endl;
      |                ^~~~~~~~~
Language: Java


import java.util.*;

public class Main{
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String judbe = "consonant";
        if(a == "a" || a == "i" || a == "u" || a == "e" || a == "o"){
            judge = "vowel";
        }
        System.out.println(judge);
    }
}

Compiler output:
Main.java:11: error: cannot find symbol
            judge = "vowel";
            ^
  symbol:   variable judge
  location: class Main
Main.java:13: error: cannot find symbol
        System.out.println(judge);
                           ^
  symbol:   variable judge
  location: class Main
2 errors
Language: Java


import java.util.*;

public class Main{
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        char a = (char) sc.next();
        String judbe = "consonant";
        if(a == 'a' || a == 'i' || a == 'u' || a == 'e' || a == 'o'){
            judge = "vowel";
        }
        System.out.println(judge);
    }
}

Compiler output:
Main.java:8: error: incompatible types: String cannot be converted to char
        char a = (char) sc.next();
                               ^
Main.java:11: error: cannot find symbol
            judge = "vowel";
            ^
  symbol:   variable judge
  location: class Main
Main.java:13: error: cannot find symbol
        System.out.println(judge);
                           ^
  symbol:   variable judge
  location: class Main
3 errors
Language: Java


import java.util.*;

public class Main{
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        char a = sc.next();
        String judbe = "consonant";
        if(a == 'a' || a == 'i' || a == 'u' || a == 'e' || a == 'o'){
            judge = "vowel";
        }
        System.out.println(judge);
    }
}

Compiler output:
Main.java:8: error: incompatible types: String cannot be converted to char
        char a = sc.next();
                        ^
Main.java:11: error: cannot find symbol
            judge = "vowel";
            ^
  symbol:   variable judge
  location: class Main
Main.java:13: error: cannot find symbol
        System.out.println(judge);
                           ^
  symbol:   variable judge
  location: class Main
3 errors
Language: C++

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

int main() {
  char c;
  cin>>c;
  while (int i==0){
    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;
  }
  else{
    cout<<"consonant"<<endl;
  }
    i++;
  }
    
  
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected initializer before '==' token
    7 |   while (int i==0){
      |               ^~
a.cc:7:15: error: expected ')' before '==' token
    7 |   while (int i==0){
      |         ~     ^~
      |               )
a.cc:7:15: error: expected primary-expression before '==' token
    7 |   while (int i==0){
      |               ^~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: unable to find character literal operator 'operator""or' with 'char' argument
    8 |         if (c=='a'or c=='e'or c=='u'or c=='e'or c=='o'){
      |                ^~~~~
a.cc:8:21: error: expected ')' before 'c'
    8 |         if (c=='a'or c=='e'or c=='u'or c=='e'or c=='o'){
      |            ~        ^~
      |                     )
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:1: error: expected '}' before 'else'
   13 | else
      | ^~~~
a.cc:11:1: note: to match this '{'
   11 | {
      | ^
Language: C++

#define <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:9: error: macro names must be identifiers
    1 | #define <bits/stdc++.h>
      |         ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> c;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #define <bits/stdc++.h>
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << "vowel" << endl;
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:24: error: 'endl' was not declared in this scope
    8 |     cout << "vowel" << endl;
      |                        ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #define <bits/stdc++.h>
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << "consonant" << endl;
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:28: error: 'endl' was not declared in this scope
   10 |     cout << "consonant" << endl;
      |                            ^~~~
a.cc:10:28: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
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:36: error: expected '}' at end of input
    8 |   else cout << "consonant" << endl;
      |                                    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

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

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

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

int main() {
  char m;
  cin >> m;
  
    if(m=="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: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(m=="a"||"i"||"u"||"e"||"o"){
      |        ~^~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: no matching function for call to 'std::__cxx11::basic_string<char>::at(std::string&)'
    8 |     string i=m.at(i);
      |              ~~~~^~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:1287:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::at(size_type) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; const_reference = const char&; size_type = long unsigned int]'
 1287 |       at(size_type __n) const
      |       ^~
/usr/include/c++/14/bits/basic_string.h:1287:20: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'}
 1287 |       at(size_type __n) const
      |          ~~~~~~~~~~^~~
/usr/include/c++/14/bits/basic_string.h:1309:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::at(size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; reference = char&; size_type = long unsigned int]'
 1309 |       at(size_type __n)
      |       ^~
/usr/include/c++/14/bits/basic_string.h:1309:20: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'}
 1309 |       at(size_type __n)
      |          ~~~~~~~~~~^~~
a.cc:9:9: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (std::string&)'
    9 |     if(m(i)=="a"||"i"||"u"||"e"||"o"){
      |        ~^~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int&)'
    9 |     if(m(i)=="a"||"i"||"u"||"e"||"o"){
      |        ~^~~
a.cc:13:13: error: expected primary-expression before ')' token
   13 |     else if(){
      |             ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'i' was not declared in this scope
    8 |     if(m(i)=="a"||"i"||"u"||"e"||"o"){
      |          ^
a.cc:12:12: error: expected '(' before '{' token
   12 |     else if{
      |            ^
      |            (
Language: C

#include<stdio.h>
#include<string.h>

int main(){
	//char S[];
	//scanf("%s",S);
	fgets(S);
	int length = strlen(S);
	int i,frag = 0;
	for(i = 0; i < length; i++){
		if(S[i] == 'd' && S[i + 1] == 'r' && S[i + 2] == 'e' && S[i + 3] == 'a' && S[i + 4] == 'm'){
			if(S[i + 5] == 'e' && S[i + 6] == 'r'){
				i += 6;
			} else {
				i += 4;
			}
		} else if(S[i] == 'e' && S[i + 1] == 'r' && S[i + 2] == 'a' && S[i + 3] == 's' && S[i + 4] == 'e'){
			if(S[i + 5] == 'r'){
				i += 5;
			} else {
				i += 4;
			}
		} else {
			frag++;
			break;
		}
	}
	if(frag == 0){
		printf("YES");
	} else {
		printf("NO");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:15: error: 'S' undeclared (first use in this function)
    7 |         fgets(S);
      |               ^
main.c:7:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:9: error: too few arguments to function 'fgets'
    7 |         fgets(S);
      |         ^~~~~
In file included from main.c:1:
/usr/include/stdio.h:654:14: note: declared here
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |              ^~~~~
Language: Java

import java.util.Scanner;
//import java.util.Arrays;
public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		Srting c = scan.next();
		String str = "consonant";
		switch(c){
		case "a":
		case "i":
		case "u":
		case "e":
		case "o":
			str = "vowel";
		}
		System.out.println(str);
	}
}


Compiler output:
Main.java:6: error: cannot find symbol
		Srting c = scan.next();
		^
  symbol:   class Srting
  location: class Main
1 error
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 if{
    cout << "consonant" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: expected '(' before '{' token
   10 |   }else if{
      |           ^
      |           (
a.cc:12:2: 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() {
  string c ;
  cin >> c;
  if (c[0] = 'a' || c[0] = 'i' || c[0] = 'u' || c[0] = 'e' || c[0] = 'o') {
  cout << "vowel" << endl;
}
else {
  cout << "consonant" << endl;
}
return 0;
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:7:60: error: lvalue required as left operand of assignment
    7 |   if (c[0] = 'a' || c[0] = 'i' || c[0] = 'u' || c[0] = 'e' || c[0] = 'o') {
Language: C++

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

}

Compiler output:
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
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:8:45: error: expected primary-expression before ')' token
    8 |   if(c || "a" || "i" || "u" || "e" || "o" ||){
      |                                             ^
Language: C++

/**
 * author: moririn_cocoa       
**/

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <cmath>
#include <vector>
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_map>
#include <queue>
#include <ctime>
#include <cassert>
#include <complex>
#include <string>
#include <cstring>
#include <chrono>
#include <random>
#include <bitset>
using namespace std;

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

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:16: error: 'a' was not declared in this scope
   32 |   if ( hy9r == a || hy9r == i || hy9r == u || hy9r == e || hy9r == o ) {
      |                ^
a.cc:32:29: error: 'i' was not declared in this scope
   32 |   if ( hy9r == a || hy9r == i || hy9r == u || hy9r == e || hy9r == o ) {
      |                             ^
a.cc:32:42: error: 'u' was not declared in this scope
   32 |   if ( hy9r == a || hy9r == i || hy9r == u || hy9r == e || hy9r == o ) {
      |                                          ^
a.cc:32:55: error: 'e' was not declared in this scope
   32 |   if ( hy9r == a || hy9r == i || hy9r == u || hy9r == e || hy9r == o ) {
      |                                                       ^
a.cc:32:68: error: 'o' was not declared in this scope
   32 |   if ( hy9r == a || hy9r == i || hy9r == u || hy9r == e || hy9r == o ) {
      |                                                                    ^
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class main {
	public static void main(String[] args) throws IOException {
		try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			System.out.println(in.equals("a")? "vowel"
							  :in.equals("e")? "vowel"
    						  :in.equals("i")? "vowel"
							  :in.equals("o")? "vowel"
							  :in.equals("u")? "vowel"
							  :"consonant");

		}
	}
}


Compiler output:
Main.java:5: error: class main is public, should be declared in a file named main.java
public class main {
       ^
1 error
Language: C++

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

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:24:11: error: 'consonant' was not declared in this scope
   24 |     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: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:15: 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:23: 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:31: 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"){
      |                                      ~^~~~~
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:9: error: 'a' was not declared in this scope
    7 |   if(c==a&&c==i&&c==u&&c==e&&c==o){
      |         ^
a.cc:7:15: error: 'i' was not declared in this scope
    7 |   if(c==a&&c==i&&c==u&&c==e&&c==o){
      |               ^
a.cc:7:21: error: 'u' was not declared in this scope
    7 |   if(c==a&&c==i&&c==u&&c==e&&c==o){
      |                     ^
a.cc:7:27: error: 'e' was not declared in this scope
    7 |   if(c==a&&c==i&&c==u&&c==e&&c==o){
      |                           ^
a.cc:7:33: error: 'o' was not declared in this scope
    7 |   if(c==a&&c==i&&c==u&&c==e&&c==o){
      |                                 ^
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(){
  string 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:13: error: 'vowel' was not declared in this scope
   10 |     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 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:12:11: error: expected primary-expression before ')' token
   12 |     else () {
      |           ^
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 if () {
      cout << "consonant" << endl;
    }      
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: expected primary-expression before ')' token
   12 |     else if () {
      |              ^
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 if () {
      cout << "consonant" << endl;
    }      
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: expected primary-expression before ')' token
   12 |     else if () {
      |              ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(s.at(0)== "a" || "e" || "i" || "o" || "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 << "vowel" << endl;
  else cout << "consonant" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: 'C' was not declared in this scope
    7 |   if(c=='a'||c=='i'||C=='u'||c=='e'||c=='o') cout << "vowel" << 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 << "vowal" <<endl;
  }
  else if (C=="u"){
    cout << "vowal" <<endl;
  }
  else if (C=="e"){
    cout << "vowal" <<endl;
  }
  else if (C=="o"){
    cout << "vowal" <<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:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |   else if (C=="e"){
      |            ~^~~~~
a.cc:19:13: 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() {
  cher C;
  cin >> C;
  if (C=='a'){
    cout << "vowel" <<endl;
  }
  else if (C=='i'){
    cout << "vowal" <<endl;
  }
  else if (C=='u'){
    cout << "vowal" <<endl;
  }
  else if (C=='e'){
    cout << "vowal" <<endl;
  }
  else if (C=='o'){
    cout << "vowal" <<endl;
  }
  else{
    cout << "consonant" <<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cher' was not declared in this scope; did you mean 'char'?
    5 |   cher C;
      |   ^~~~
      |   char
a.cc:6:10: error: 'C' was not declared in this scope
    6 |   cin >> C;
      |          ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cher' was not declared in this scope; did you mean 'char'?
    5 |   cher C;
      |   ^~~~
      |   char
a.cc:6:10: error: 'C' was not declared in this scope
    6 |   cin >> C;
      |          ^
a.cc:7:10: error: 'a' was not declared in this scope
    7 |   if (C==a){
      |          ^
a.cc:10:15: error: 'i' was not declared in this scope
   10 |   else if (C==i){
      |               ^
a.cc:13:15: error: 'u' was not declared in this scope
   13 |   else if (C==u){
      |               ^
a.cc:16:15: error: 'e' was not declared in this scope
   16 |   else if (C==e){
      |               ^
a.cc:19:15: error: 'o' was not declared in this scope
   19 |   else if (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:9:9: error: expected primary-expression before ')' token
    9 |   else ()
      |         ^
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:7:41: error: lvalue required as left operand of assignment
    7 | if(a=='a' || a=='i' || a=='u' ||a =='e' ||a='o'){cout <<"vowel"<<endl;}
      |    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Language: C

#include <stdio.h>

int main()
{
    char ch;

    scanf("%c", &ch);

    if (ch == 'a' || ch ==a 'e' || ch == 'i' || ch == 'o' || ch == 'u')
    {
        printf("vowel\n");
    }

    else
    {
        printf("consonant\n");
    }

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:27: error: 'a' undeclared (first use in this function)
    9 |     if (ch == 'a' || ch ==a 'e' || ch == 'i' || ch == 'o' || ch == 'u')
      |                           ^
main.c:9:27: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:28: error: expected ')' before 'e'
    9 |     if (ch == 'a' || ch ==a 'e' || ch == 'i' || ch == 'o' || ch == 'u')
      |        ~                   ^~~~
      |                            )
Language: C++

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

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

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

#include<bits\stdc++.h>
using namespace std;
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie();
 char aj;
 cin>>aj;
 if(aj=='a'||aj=='e'||aj=='i'||aj=='o'||aj=='u')
    cout<<"Since"<<" "<< aj<<" " <<"is a vowel, print vowel."<<endl;
else
    cout<<"consonant"<<endl;
return 0;
}




Compiler output:
a.cc:1:9: 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()
{
    ios_base::sync_with_stdio(false);
    cin.tie();
 char aj;
 cin>>aj;
 if(aj=='a'||aj=='e'||aj=='i'||aj=='o'||aj=='u')
    cout<<"Since"<<" "<< aj<<" " <<"is a vowel, print vowel."<<endl;
else
    cout<<"consonant"<<endl;
}



Compiler output:
a.cc:1:9: 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() {
  int c;
  cin >> c;
  
  if(c == a){
    cout << "vowel" << endl;
  }
  else if(c == e){
    cout << "vowel" << endl;
  }
  else if(c == i){
    cout << "vowel" << endl;
  }
  else if(c == o){
    cout << "vowel" << endl;
  }
  else if(c == u){
    cout << "vowel" << endl;
  }
  else{
    cout << "consonant" << endl;
  }
}  


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'a' was not declared in this scope
    8 |   if(c == a){
      |           ^
a.cc:11:16: error: 'e' was not declared in this scope
   11 |   else if(c == e){
      |                ^
a.cc:14:16: error: 'i' was not declared in this scope
   14 |   else if(c == i){
      |                ^
a.cc:17:16: error: 'o' was not declared in this scope
   17 |   else if(c == o){
      |                ^
a.cc:20:16: error: 'u' was not declared in this scope
   20 |   else if(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 << "vowel" << endl;
  else
    cout << "consonant" << endl;
}


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

#include<iostream>
using namespace std;
int main(){
  char 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:6:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if(c=="a")
      |      ~^~~~~
a.cc:8:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   else if(c=="i")
      |           ~^~~~~
a.cc:10:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   else if(c=="u")
      |           ~^~~~~
a.cc:12:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   else if(c=="e")
      |           ~^~~~~
a.cc:14:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |   else if(c=="o")
      |           ~^~~~~
Language: C++

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

int main() {
 char c;
 sin >> 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:6:6: error: invalid operands of types '<unresolved overloaded function type>' and 'char' to binary 'operator>>'
    6 |  sin >> c;
      |  ~~~~^~~~
Language: C++

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:15:10: error: expected '(' before '{' token
   15 |   else if{
      |          ^
      |          (
Language: C++

#include <bits/stdc++.h>
using namespace std;
  
int main(){
  
  char A;
  cin >> A;
  
  if(A == a || b || c || d || e ){
    
  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(A == a || b || c || d || e ){
      |           ^
a.cc:9:16: error: 'b' was not declared in this scope
    9 |   if(A == a || b || c || d || e ){
      |                ^
a.cc:9:21: error: 'c' was not declared in this scope
    9 |   if(A == a || b || c || d || e ){
      |                     ^
a.cc:9:26: error: 'd' was not declared in this scope
    9 |   if(A == a || b || c || d || e ){
      |                          ^
a.cc:9:31: error: 'e' was not declared in this scope
    9 |   if(A == a || b || c || d || e ){
      |                               ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   if(A == "a" || "b" || "c" || "d" || "e" ){
      |      ~~^~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  char s;
  cin>>s;
  const string vowel="aeiou";
  cout<<vowel.find(c)==string::npos ? "vowel":"consonant"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: 'c' was not declared in this scope
    7 |   cout<<vowel.find(c)==string::npos ? "vowel":"consonant"<<endl;
      |                    ^
a.cc:7:58: error: invalid operands of types 'const char [10]' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout<<vowel.find(c)==string::npos ? "vowel":"consonant"<<endl;
      |                                               ~~~~~~~~~~~^~~~~~
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:13: error: 'vowel' was not declared in this scope
    8 |     cout << vowel << endl;
      |             ^~~~~
a.cc:10:13: 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;

  bool vowel = false;

  for (int i = 0; i < 5; i++) {
    if
      "aiueo"s.at(i) == c {
        cout << "vowel" << endl;
        vowel = true;
      }
  }
  if (vowel == false) {
    cout << "constant" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:7: error: expected '(' before user-defined string literal
   13 |       "aiueo"s.at(i) == c {
      |       ^~~~~~~~
      |       (
Language: C++

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

int main() {
  string 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:6:13: error: expected primary-expression before '||' token
    6 |   if(c=="a")||(c=="i")||(c=="u")||(c=="e")||(c=="o")
      |             ^~
a.cc: At global scope:
a.cc:9:1: error: expected unqualified-id before 'else'
    9 | else {
      | ^~~~
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 == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u')
    cout << 'vowel' 
  else
  {
    cout << 'consonant'
  }
  

 
  
}

Compiler output:
a.cc:9:13: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    9 |     cout << 'vowel'
      |             ^~~~~~~
a.cc:12:13: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
   12 |     cout << 'consonant'
      |             ^~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:20: error: expected ';' before 'else'
    9 |     cout << 'vowel'
      |                    ^
      |                    ;
   10 |   else
      |   ~~~~