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

#include <iostream>
#include <numeric>
#include <math.h>
#include <algorithm>
#include <float.h>
#include <limits>
#include <vector> 
#include <string.h>

#define rep(i,a,n) for(ll int (i) = (a);(i) < (n);(i)++)
#define urep(i,a,n) for(ll int (i) = (a);(i) > (n);(i)--)
#define MOD 1000000007
#define ll long long
#define asort(a) sort(a.begin(),a.end());

using namespace::std;

int jo(ll int jxo, ll int jyo){//累乗
	ll int jhogeo = 1;
	rep(jinto,0,jyo) jhogeo=jhogeo*jxo;
	return jhogeo;
}
char tobig(char toxbig){//char大文字化
  return (toxbig-0x20);
}
char tolow(char toxlow){//char小文字化
  return (toxlow+0x20);
}
int ctoi(char cctoi){//char->int
  if('0' <= cctoi && cctoi <= '9') return (cctoi-'0');
  return -1;
}
int gcd(int gcad, int gcbd) {//最大公約数
  if(gcad < gcbd) return gcd(gcbd, gcad);
  int gcrd;
  while ((gcrd=gcad%gcbd)) {
    gcad = gcbd;
    gcbd = gcrd;
  }
  return gcbd;
}
int lcm(int lcam, int lcbm){//最小公倍数
 return (lcam*lcbm)/gcd(lcam,lcbm);
}


int main(){
  char c[5] = {'a','e','i','o','u'}
  char p;
  cin>>p;
  int ans=0;
  rep(i,0,5){
    if(p==c[i]) ans++;
  }
  cout<<(ans?"vowel":"consonant");
}
// int *p = new int[N];

//  vector<int> 変数名(要素数);
//  sort(変数名.begin(),変数名.end());//昇順ソート

// vector<vector<int>> 変数名(左の個数, vector<int>(右の個数));

//


Compiler output:
a.cc: In function 'int main()':
a.cc:49:3: error: expected ',' or ';' before 'char'
   49 |   char p;
      |   ^~~~
a.cc:50:8: error: 'p' was not declared in this scope
   50 |   cin>>p;
      |        ^
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 <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";
    }
    else
    {
        cout << "consonant";
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:68: error: expected primary-expression before ')' token
    9 |     if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o' ||)
      |                                                                    ^
Language: C++

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

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

}

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:21: 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:33: 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:45: 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:57: 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() {
  char r;
  cin >> r >> ;
  if (r=='a' || r=='e'|| r=='u' || r=='i' || r=='o'){
  cout << 'v' << endl;
  }
  else {
  cout << 'c' << endl;
  }
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: expected primary-expression before ';' token
    6 |   cin >> r >> ;
      |               ^
Language: C++

def yes
  puts "vowel"
  exit
end

def no
  puts "consonant"
  exit
end

c = gets
boin = "aiueo"

boin.each_char do |b|
  if c[0] == b
    yes()
  end
end

no()

Compiler output:
a.cc:1:1: error: 'def' does not name a type
    1 | def yes
      | ^~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: 'ifelse' was not declared in this scope; did you mean 'sigrelse'?
    9 | ifelse(A=='i'){
      | ^~~~~~
      | sigrelse
a.cc:21:1: error: 'else' without a previous 'if'
   21 | else{
      | ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:4: error: expected '(' before 'else'
    9 | if else(A=='i'){
      |    ^~~~
      |    (
a.cc:12:4: error: expected '(' before 'else'
   12 | if else(A=='u'){
      |    ^~~~
      |    (
a.cc:15:4: error: expected '(' before 'else'
   15 | if else(A=='e'){
      |    ^~~~
      |    (
a.cc:18:4: error: expected '(' before 'else'
   18 | if else(A=='o'){
      |    ^~~~
      |    (
a.cc:21:1: error: 'else' without a previous 'if'
   21 | 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{
    cout << "consonant" <<endl;
  }

Compiler output:
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 <bits/stdc++.h>
using namespace std;

int main(){
  string c;
  cin>>c;
  regex re("[aouie]");
  cout<<(regex_match(c,re)?"vowel":"consonant")<<endl
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:54: error: expected ';' before 'return'
    8 |   cout<<(regex_match(c,re)?"vowel":"consonant")<<endl
      |                                                      ^
      |                                                      ;
    9 |     return 0;
      |     ~~~~~~
Language: Java

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

Compiler output:
Main.java:1: error: cannot find symbol
public class Main{public static void main(String[] args){Scanner sc=new Scanner(System.in);System.out.println(sc.next().matches("[aiueo]")?"vowel":"consonant");}}
                                                         ^
  symbol:   class Scanner
  location: class Main
Main.java:1: error: cannot find symbol
public class Main{public static void main(String[] args){Scanner sc=new Scanner(System.in);System.out.println(sc.next().matches("[aiueo]")?"vowel":"consonant");}}
                                                                        ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include<vector>
#include<string>
#include<algorithm>
#include<cmath>
#include<cstdlib>
#include<tuple>
#define int long 
using namespace std;

signed 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:12:9: error: 'cin' was not declared in this scope
   12 |         cin >> A;
      |         ^~~
a.cc:6:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    5 | #include<cstdlib>
  +++ |+#include <iostream>
    6 | #include<tuple>
a.cc:14:17: error: 'cout' was not declared in this scope
   14 |                 cout << "vowel" << endl;
      |                 ^~~~
a.cc:14:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:36: error: 'endl' was not declared in this scope
   14 |                 cout << "vowel" << endl;
      |                                    ^~~~
a.cc:6:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    5 | #include<cstdlib>
  +++ |+#include <ostream>
    6 | #include<tuple>
a.cc:17:17: error: 'cout' was not declared in this scope
   17 |                 cout << "consonant" << endl;
      |                 ^~~~
a.cc:17:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:40: error: 'endl' was not declared in this scope
   17 |                 cout << "consonant" << endl;
      |                                        ^~~~
a.cc:17:40: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>
#include <string>
#include <vector>
using namespace std;
#define REP(i, n) for(int i=0; i<(n); i++)
#define FOR(i, a, n) for(int i=0; i<(n); i++)

int main(){
  	char s;cin >> s;
  	char ans = s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o' ? "vowel" : "consonant";
  	cout << ans << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:77: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   10 |         char ans = s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o' ? "vowel" : "consonant";
      |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
      |                                                                             |
      |                                                                             const char*
Language: Java


public class  Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in); //
        String c = sc.nextLine();

        if (c.equals("a")) {
            System.out.println("vowel");
        } else if (c.equals("i")) {
            System.out.println("vowel");
        } else if (c.equals("u")) {
            System.out.println("vowel");
        } else if (c.equals("e")) {
            System.out.println("vowel");
        } else if (c.equals("o")) {
            System.out.println("vowel");
        } else {
            System.out.println("consonant");
        }
    }

}

Compiler output:
Main.java:4: error: cannot find symbol
        Scanner sc = new Scanner(System.in); //
        ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
        Scanner sc = new Scanner(System.in); //
                         ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java


public class  Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in); //
        String c = scan.nextLine();

        if (c.equals("a")) {
            System.out.println("vowel");
        } else if (c.equals("i")) {
            System.out.println("vowel");
        } else if (c.equals("u")) {
            System.out.println("vowel");
        } else if (c.equals("e")) {
            System.out.println("vowel");
        } else if (c.equals("o")) {
            System.out.println("vowel");
        } else {
            System.out.println("consonant");
        }
    }

}

Compiler output:
Main.java:4: error: cannot find symbol
        Scanner sc = new Scanner(System.in); //
        ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
        Scanner sc = new Scanner(System.in); //
                         ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
        String c = scan.nextLine();
                   ^
  symbol:   variable scan
  location: class Main
3 errors
Language: Java

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


Compiler output:
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in); //
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in); //
                         ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

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


Compiler output:
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in); //
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in); //
                         ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

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


Compiler output:
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in); //
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in); //
                         ^
  symbol:   class Scanner
  location: class Main
2 errors
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";
  }else{
    cout <<"consonant"
  }

}
 

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

#include<cstdio>
int main(){
  char c;
  scanf("%s", c);
  
  if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o")
    printf("vowel");
  else
    printf("consonant");
  
  return 0;
}


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" || c=="i" || c=="u" || c=="e" || c=="o")
      |      ~^~~~~
a.cc:6:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o")
      |                ~^~~~~
a.cc:6:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o")
      |                          ~^~~~~
a.cc:6:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o")
      |                                    ~^~~~~
a.cc:6:47: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o")
      |                                              ~^~~~~
Language: C++

#include<cstdio>
int main(){
  char c;
  scanf("%c", c);
  
  if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o")
    printf("vowel");
  else
    printf("consonant");
  
  return 0;
}

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" || c=="i" || c=="u" || c=="e" || c=="o")
      |      ~^~~~~
a.cc:6:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o")
      |                ~^~~~~
a.cc:6:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o")
      |                          ~^~~~~
a.cc:6:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o")
      |                                    ~^~~~~
a.cc:6:47: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   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(char C ==  'a' 'i' 'u' 'e' 'o' ) {

    cout   << "vowel" << endl;

   } else {

   cout << "consonant" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: expected initializer before '==' token
    9 |     if(char C ==  'a' 'i' 'u' 'e' 'o' ) {
      |               ^~
a.cc:9:14: error: expected ')' before '==' token
    9 |     if(char C ==  'a' 'i' 'u' 'e' 'o' ) {
      |       ~      ^~~
      |              )
Language: C++

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

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

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

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

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

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

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:4: error: expected '(' before '!' token
   17 | 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')
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;
}
return 0;
}

Compiler output:
a.cc:20:1: error: expected unqualified-id before 'return'
   20 | return 0;
      | ^~~~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: expected unqualified-id before '=' token
    5 | char  = c;
      |       ^
a.cc:6:8: error: 'c' was not declared in this scope
    6 | cin >> c;
      |        ^
a.cc: At global scope:
a.cc:20:1: error: expected unqualified-id before 'return'
   20 | return 0;
      | ^~~~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

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

Compiler output:
a.cc:1:23: error: missing terminating > character
    1 | #include <bits/stdc++.
      |                       ^
a.cc:1:10: fatal error: bits/stdc++.: No such file or directory
    1 | #include <bits/stdc++.
      |          ^
compilation terminated.
Language: C++

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

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


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

#include<iostream>

using namespace std;

int main(void){

char c;

cin >> c;

if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){

cout << "vowel" << endl;

}else{

cout << "consonant" << endl;

}


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

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

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

  if(str == "a" || str == "i" || str == "u" || str == "e" || str == "o")
    cout << "vowel" << endl;
  else cout << "consonant" << endl;
  return 0;
}
提出情報

Compiler output:
a.cc:17:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' does not name a type
   17 | 提出情報
      | ^~~~~~~~
Language: C++

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


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

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
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;
  }
  return 0;
}


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

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
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;
  }
  return 0;
}


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

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
 string c;
  cin >> c;
 if (c == a || c == e || c == i || c == o || c == u){
   cout << "vowel" << endl;
 }
  else{
    cout << "consonant" << endl;
  }
  return 0;
}


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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |     if (c=="a" || c=="i" || c=="u" || c=="e" || c=="o")
      |         ~^~~~~
a.cc:7:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |     if (c=="a" || c=="i" || c=="u" || c=="e" || c=="o")
      |                   ~^~~~~
a.cc:7:30: 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:40: 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:50: 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 alpha;
  cin >> alpha;
  if (alpha == "a" || alpha == "I" || alpha == "u" || alpha == "e" || alpha == "o"){
    cout << "vowel" << endl;
  }
  else{
    cout << "consonant" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if (alpha == "a" || alpha == "I" || alpha == "u" || alpha == "e" || alpha == "o"){
      |       ~~~~~~^~~~~~
a.cc:7:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if (alpha == "a" || alpha == "I" || alpha == "u" || alpha == "e" || alpha == "o"){
      |                       ~~~~~~^~~~~~
a.cc:7:45: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if (alpha == "a" || alpha == "I" || alpha == "u" || alpha == "e" || alpha == "o"){
      |                                       ~~~~~~^~~~~~
a.cc:7:61: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if (alpha == "a" || alpha == "I" || alpha == "u" || alpha == "e" || alpha == "o"){
      |                                                       ~~~~~~^~~~~~
a.cc:7:77: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if (alpha == "a" || alpha == "I" || alpha == "u" || alpha == "e" || alpha == "o"){
      |                                                                       ~~~~~~^~~~~~
Language: C++

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


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

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

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(c == "a" | c == "i" | c == "u" | c == "e" | c == "o")
      |      ~~^~~~~~
a.cc:7:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(c == "a" | c == "i" | c == "u" | c == "e" | c == "o")
      |                 ~~^~~~~~
a.cc:7:30: 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:41: 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:52: 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: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if (c == "a" | c == "i" | c == "u" | c == "e" | c == "o")
      |       ~~^~~~~~
a.cc:7:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if (c == "a" | c == "i" | c == "u" | c == "e" | c == "o")
      |                  ~~^~~~~~
a.cc:7: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:42: 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:53: 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 <iostream>
using namespace std;

int main()
{
  char c; cin >> c;
  char arr[] = {'a', 'e', 'i', 'o', 'u'};
  for(int i = 0; i < 5; ++i) {
    if(c == arr[i]) {
      cout << "vowel";
      return 0;
    }
    cout << "consonant";
    return 0;
}

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

#include <iostream>
using namespace std;

int main()
{
  char c; cin >> c;
  char arr[] = {'a', 'e', 'i', 'o', 'u'};
  for(int i == 0; i < 5; ++i) {
    if(c == arr[i]) {
      cout << "vowel";
      return 0;
    }
    cout << "consonant";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before '==' token
    8 |   for(int i == 0; i < 5; ++i) {
      |            ^~~
      |            ;
a.cc:8:13: error: expected primary-expression before '==' token
    8 |   for(int i == 0; i < 5; ++i) {
      |             ^~
a.cc:8:24: error: expected ')' before ';' token
    8 |   for(int i == 0; i < 5; ++i) {
      |      ~                 ^
      |                        )
a.cc:8:28: error: 'i' was not declared in this scope
    8 |   for(int i == 0; i < 5; ++i) {
      |                            ^
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
  char c; cin >> c;
  char arr = {'a', 'e', 'i', 'o', 'u'};
  for(int i == 0; i < 5; ++i) {
    if(c == arr[i]) {
      cout << "vowel";
      return 0;
    }
    cout << "consonant";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: scalar object 'arr' requires one element in initializer
    7 |   char arr = {'a', 'e', 'i', 'o', 'u'};
      |        ^~~
a.cc:8:12: error: expected ';' before '==' token
    8 |   for(int i == 0; i < 5; ++i) {
      |            ^~~
      |            ;
a.cc:8:13: error: expected primary-expression before '==' token
    8 |   for(int i == 0; i < 5; ++i) {
      |             ^~
a.cc:8:24: error: expected ')' before ';' token
    8 |   for(int i == 0; i < 5; ++i) {
      |      ~                 ^
      |                        )
a.cc:8:28: error: 'i' was not declared in this scope
    8 |   for(int i == 0; i < 5; ++i) {
      |                            ^
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
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 << consonate << 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:11:13: error: 'consonate' was not declared in this scope
   11 |     cout << consonate << endl;
      |             ^~~~~~~~~
Language: C++

#include <iostream>
#include <stdio.h>
#include <string.h>
#include <algorithm>
#include <allocators>
#include <array>
#include <cfloat>
using namespace std;
int main (){
char c;
cin >> c;
if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u')
cout << "vowel"; 
}else
{
    cout << "consonant";
}
}

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

#include <iostream>
#include <stdio.h>
#include <string.h>
#include <algorithm>
#include <allocators>
#include <array>
#include <cfloat>
using namespace std;
int main (){
char c;
cin >> c;
if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u')
cout << "vowel"; 
}else
{
    cout << "consonant";
}

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

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

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

    if( s==a || s==b || s==c || s==d || s==e){
      
    cout << vowel << endl;
    }
      
      else {
        cout << consonant << endl;
        
}
}
  
  
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'a' was not declared in this scope
    8 |     if( s==a || s==b || s==c || s==d || s==e){
      |            ^
a.cc:8:20: error: 'b' was not declared in this scope
    8 |     if( s==a || s==b || s==c || s==d || s==e){
      |                    ^
a.cc:8:28: error: 'c' was not declared in this scope
    8 |     if( s==a || s==b || s==c || s==d || s==e){
      |                            ^
a.cc:8:36: error: 'd' was not declared in this scope
    8 |     if( s==a || s==b || s==c || s==d || s==e){
      |                                    ^
a.cc:8:44: error: 'e' was not declared in this scope
    8 |     if( s==a || s==b || s==c || s==d || s==e){
      |                                            ^
a.cc:10:13: error: 'vowel' was not declared in this scope
   10 |     cout << vowel << endl;
      |             ^~~~~
a.cc:14:17: error: 'consonant' was not declared in this scope
   14 |         cout << consonant << endl;
      |                 ^~~~~~~~~
a.cc: At global scope:
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^