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

#include <bits/stdc++.h>

using namespace std;

int main ()

{
   char s = {"aeiou"};
   ‎char n;
   ‎cin >> n;
if (n:s)
{ cout << "vowel";}
else
cout << "consonant";

return 0;
}

Compiler output:
a.cc:9:4: error: extended character ‎ is not valid in an identifier
    9 |    ‎char n;
      |    ^
a.cc:10:4: error: extended character ‎ is not valid in an identifier
   10 |    ‎cin >> n;
      |    ^
a.cc: In function 'int main()':
a.cc:8:14: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    8 |    char s = {"aeiou"};
      |              ^~~~~~~
      |              |
      |              const char*
a.cc:9:4: error: '\U0000200echar' was not declared in this scope
    9 |    ‎char n;
      |    ^~~~
a.cc:10:4: error: '\U0000200ecin' was not declared in this scope
   10 |    ‎cin >> n;
      |    ^~~
a.cc:10:11: error: 'n' was not declared in this scope
   10 |    ‎cin >> n;
      |           ^
a.cc:11:6: error: found ':' in nested-name-specifier, expected '::'
   11 | if (n:s)
      |      ^
      |      ::
a.cc:11:5: error: 'n' is not a class, namespace, or enumeration
   11 | if (n:s)
      |     ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main ()

{
   string s = {"aeiou"};
   ‎string n;
   ‎cin >> n;
if (n:s)
{ cout << "vowel";}
else
cout << "consonant";

return 0;
}

Compiler output:
a.cc:9:4: error: extended character ‎ is not valid in an identifier
    9 |    ‎string n;
      |    ^
a.cc:10:4: error: extended character ‎ is not valid in an identifier
   10 |    ‎cin >> n;
      |    ^
a.cc: In function 'int main()':
a.cc:9:4: error: '\U0000200estring' was not declared in this scope
    9 |    ‎string n;
      |    ^~~~~~
a.cc:10:4: error: '\U0000200ecin' was not declared in this scope
   10 |    ‎cin >> n;
      |    ^~~
a.cc:10:11: error: 'n' was not declared in this scope
   10 |    ‎cin >> n;
      |           ^
a.cc:11:6: error: found ':' in nested-name-specifier, expected '::'
   11 | if (n:s)
      |      ^
      |      ::
a.cc:11:5: error: 'n' is not a class, namespace, or enumeration
   11 | if (n:s)
      |     ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main ()

{
   string s = {"aeiou"};
   ‎string n;
   ‎cin >> n;
if (n==s)
{ cout << "vowel";}
else
cout << "consonant";

return 0;
}

Compiler output:
a.cc:9:4: error: extended character ‎ is not valid in an identifier
    9 |    ‎string n;
      |    ^
a.cc:10:4: error: extended character ‎ is not valid in an identifier
   10 |    ‎cin >> n;
      |    ^
a.cc: In function 'int main()':
a.cc:9:4: error: '\U0000200estring' was not declared in this scope
    9 |    ‎string n;
      |    ^~~~~~
a.cc:10:4: error: '\U0000200ecin' was not declared in this scope
   10 |    ‎cin >> n;
      |    ^~~
a.cc:10:11: error: 'n' was not declared in this scope
   10 |    ‎cin >> n;
      |           ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main ()

{
   string s = {"aeiou"};
   ‎string n;
   ‎cin >> n;
if (n==s)
{ cout << "vowel"};
else
cout << "consonant";

return 0;
}

Compiler output:
a.cc:9:4: error: extended character ‎ is not valid in an identifier
    9 |    ‎string n;
      |    ^
a.cc:10:4: error: extended character ‎ is not valid in an identifier
   10 |    ‎cin >> n;
      |    ^
a.cc: In function 'int main()':
a.cc:9:4: error: '\U0000200estring' was not declared in this scope
    9 |    ‎string n;
      |    ^~~~~~
a.cc:10:4: error: '\U0000200ecin' was not declared in this scope
   10 |    ‎cin >> n;
      |    ^~~
a.cc:10:11: error: 'n' was not declared in this scope
   10 |    ‎cin >> n;
      |           ^
a.cc:12:18: error: expected ';' before '}' token
   12 | { cout << "vowel"};
      |                  ^
      |                  ;
a.cc:13:1: error: 'else' without a previous 'if'
   13 | else
      | ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main ()

{
   string s = {"aeiou"};
   ‎string n;
   ‎cin >> n;
if (n==s[0] ||s[1]||s[2]||s[3]||s[4])
{ cout << "vowel"};
else
cout << "consonant";

return 0;
}

Compiler output:
a.cc:9:4: error: extended character ‎ is not valid in an identifier
    9 |    ‎string n;
      |    ^
a.cc:10:4: error: extended character ‎ is not valid in an identifier
   10 |    ‎cin >> n;
      |    ^
a.cc: In function 'int main()':
a.cc:9:4: error: '\U0000200estring' was not declared in this scope
    9 |    ‎string n;
      |    ^~~~~~
a.cc:10:4: error: '\U0000200ecin' was not declared in this scope
   10 |    ‎cin >> n;
      |    ^~~
a.cc:10:11: error: 'n' was not declared in this scope
   10 |    ‎cin >> n;
      |           ^
a.cc:12:18: error: expected ';' before '}' token
   12 | { cout << "vowel"};
      |                  ^
      |                  ;
a.cc:13:1: error: 'else' without a previous 'if'
   13 | else
      | ^~~~
Language: Java

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


Compiler output:
Main.java:7: error: bad operand types for binary operator '=='
  if(c == 'a'||c=='i'||c=='u'||c=='e'||c=='o')System.out.println("vowel");
       ^
  first type:  String
  second type: char
Main.java:7: error: bad operand types for binary operator '=='
  if(c == 'a'||c=='i'||c=='u'||c=='e'||c=='o')System.out.println("vowel");
                ^
  first type:  String
  second type: char
Main.java:7: error: bad operand types for binary operator '=='
  if(c == 'a'||c=='i'||c=='u'||c=='e'||c=='o')System.out.println("vowel");
                        ^
  first type:  String
  second type: char
Main.java:7: error: bad operand types for binary operator '=='
  if(c == 'a'||c=='i'||c=='u'||c=='e'||c=='o')System.out.println("vowel");
                                ^
  first type:  String
  second type: char
Main.java:7: error: bad operand types for binary operator '=='
  if(c == 'a'||c=='i'||c=='u'||c=='e'||c=='o')System.out.println("vowel");
                                        ^
  first type:  String
  second type: char
5 errors
Language: C++

#include<iostream>
using namespace std;
 
int main(){
  int c;
  cin >> c;
  
  if(c == 'a') cout<<"vowel\n";
  else if(c == 'i') cout<<"vowel\n";
  else if(c == 'u') cout<<"vowel\n";
  else if(c == 'e') cout<<"vowel\n";
  else if(c == 'o') cout<<"vowel\n";
  else if cout <<"consonant\n";
}  

Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: expected '(' before 'cout'
   13 |   else if cout <<"consonant\n";
      |           ^~~~
      |           (
Language: C++

#include<iostream>
using namespace std;
 
int main(){
  int c;
  cin >> c;
  
  if(c == 'a') cout<<"vowel\n";
  else if(c == 'i') cout<<"vowel\n";
  else if(c == 'u') cout<<"vowel\n";
  else if(c == 'e') cout<<"vowel\n";
  else if(c == 'o') cout<<"vowel\n";
  else cout <<"consonant\n";

Compiler output:
a.cc: In function 'int main()':
a.cc:13:29: error: expected '}' at end of input
   13 |   else cout <<"consonant\n";
      |                             ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if(c == "a") cout<<"vowel\n";
      |      ~~^~~~~~
a.cc:9:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   else if(c == "i") cout<<"vowel\n";
      |           ~~^~~~~~
a.cc:10:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   else if(c == "u") cout<<"vowel\n";
      |           ~~^~~~~~
a.cc:11:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   else if(c == "e") cout<<"vowel\n";
      |           ~~^~~~~~
a.cc:12:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   else if(c == "o") cout<<"vowel\n";
      |           ~~^~~~~~
a.cc:13:29: error: expected '}' at end of input
   13 |   else cout <<"consonant\n";
      |                             ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C

#include<stdio.h>
int main(void)
{
char str;
  int i;
  char scan[]={'a','i','u','e','o'};
  scanf("%c",&str);
  for(i=0;i<5;i++)
  {
		if(str==scan[i]) 
        {
			printf("vowel\n");
          break;
        }
    	else if(i==4&&str!=scan[i])
        {
			printf("consonant\n");
          break;
        }
  }
}
  return 0;

Compiler output:
main.c:22:3: error: expected identifier or '(' before 'return'
   22 |   return 0;
      |   ^~~~~~
Language: C

#include<stdio.h>
int main(void)
{
char str;
  int i;
  char scan[]={'a','i','u','e','o'};
  scanf("%c",&str);
  for(i=0;i<5;i++)
  {
		if(str==scan[i]) 
        {
			printf("vowel\n");
          break;
        }
    	else if(i==4&&str!=scan[i])
        {
			printf("consonant\n");
          break;
        }
  }
  return 0;

Compiler output:
main.c: In function 'main':
main.c:21:3: error: expected declaration or statement at end of input
   21 |   return 0;
      |   ^~~~~~
Language: C

#include<stdio.h>
int main(void)
{
char str;
  int i;
  char scan[]={a,i,u,e,o};
  scanf("%c",&str);
  for(i=0;i<5;i++)
  {
		if(str==scan[i]) 
        {
			printf("vowel\n");
          break;
        }
    	else if(i==4&&str!=scan[i])
        {
			printf("consonant\n");
          break;
        }
  }
  return 0;

Compiler output:
main.c: In function 'main':
main.c:6:16: error: 'a' undeclared (first use in this function)
    6 |   char scan[]={a,i,u,e,o};
      |                ^
main.c:6:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:20: error: 'u' undeclared (first use in this function)
    6 |   char scan[]={a,i,u,e,o};
      |                    ^
main.c:6:22: error: 'e' undeclared (first use in this function)
    6 |   char scan[]={a,i,u,e,o};
      |                      ^
main.c:6:24: error: 'o' undeclared (first use in this function)
    6 |   char scan[]={a,i,u,e,o};
      |                        ^
main.c:21:3: error: expected declaration or statement at end of input
   21 |   return 0;
      |   ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:35: error: lvalue required as left operand of assignment
    5 |   if(c='a'||c='i'||c='u'||c='e'||c='o'){
      |                                   ^
Language: Java

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

Compiler output:
Main.java:6: error: method charAt in class String cannot be applied to given types;
    char s = w.charAt();
              ^
  required: int
  found:    no arguments
  reason: actual and formal argument lists differ in length
1 error
Language: C++

#include<iostream>
#include<algorithm>
#include<string>
#include<vector>
#include<math.h>
#include<map>
#include<functional>
#include<queue>
using namespace std;
int main() {
    char c;
    cin>>c;
if((c=='a')||(c=='b')||(c=='c')||(c=='d')||(c=='e'){
    cout<<"vowel"<<endl;
}else{
    cout<<"consonant"<<endl;
}
}   



Compiler output:
a.cc: In function 'int main()':
a.cc:13:52: error: expected ')' before '{' token
   13 | if((c=='a')||(c=='b')||(c=='c')||(c=='d')||(c=='e'){
      |   ~                                                ^
      |                                                    )
a.cc:18:1: error: expected primary-expression before '}' token
   18 | }
      | ^
Language: C++

// finish date: 2018/01/10
#include <iostream>
#include <cmath>
#include <vector>
#include <bitset>
#include <algorithm>
#include <stack>
#include <map>
#include <climits>

using namespace std;

#define FOR(i, a, b) for(int i=a;i<b;i++)
#define rep(i, n)  FOR(i,0,n)
#define ll long long

bool isExist(char c, string str) {
    rep(i, str.length()) {
        if (c == str[i]) return true;
    }
    return false;
}

int fact(int n) {
    int ans = 1;
    FOR(i, 1, n + 1) {
        ans *= i;
    }
    return ans;
}

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


    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:28: error: expected ';' before 'return'
   37 |     }else cout<<"consonant"
      |                            ^
      |                            ;
......
   40 |     return 0;
      |     ~~~~~~
Language: C++

#include<iostream>
#include<math.h>
#include<string>
#include<algorithm>
using namespace std;

int main(){
	a[]={1,0,0,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0};
	char c;
	cin>>c;
	int n=c-'a';
	if(n)cout<<"vowel"<<endl;
	else cout<<"consonant"<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'a' was not declared in this scope
    8 |         a[]={1,0,0,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0};
      |         ^
a.cc:8:11: error: expected primary-expression before ']' token
    8 |         a[]={1,0,0,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0};
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
struct edge {int /*from,*/to,cost;};
typedef long long ll;
typedef pair<int,int> P;
typedef pair<pair<int,int>,int> PP;
typedef vector<int> VI;
typedef vector<long long int> VL;
typedef vector<edge> VE;
static const int MOD = 1000000007;
//static const int INF = 2147483647;
//static const long long INF = 9223372000000000000;
//static const long long INF = 9223372000000000000/2;
//static const int INF = 1000010000;
//int dx4[4] = {0,1,0,-1}, dy4[4] = {-1,0,1,0};
//int dx5[5] = {-1,0,0,0,1}, dy5[5] = {0,-1,0,1,0};
//int dx8[8] = {-1,0,1,1,1,0,-1,-1}, dy8[8] = {1,1,1,0,-1,-1,-1,0};
//int dx9[9] = {-1,0,1,1,1,0,-1,-1,0}, dy9[9] = {1,1,1,0,-1,-1,-1,0,0};
#define pb push_back
#define mp make_pair
#define all(x) (x).begin(),(x).end()
#define fi first
#define se second
#define np next_permutation
#define pq priority_queue
#define SZ(a) int((a).size())
#define LEN(a) int((a).length())
#define MAX(a,b,c) max((a),max((b),(c)))
#define MIN(a,b,c) min((a),min((b),(c)))
#define SORT(c) sort((c).begin(),(c).end())
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,x) for(int i=0;i<(int)(x);i++)
#define REP1(i,x) for(int i=1;i<=(int)(x);i++)
#define RREP(i,x) for(int i=((int)(x)-1);i>=0;i--)
#define RREP1(i,x) for(int i=((int)(x));i>0;i--)
//#define int ll

signed main(){
    char c;
    scanf("%c",&c);
    if(c==a || c==i || c==u || c==e || c==o) puts("vowel");
    else puts("consonant");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:42:11: error: 'a' was not declared in this scope
   42 |     if(c==a || c==i || c==u || c==e || c==o) puts("vowel");
      |           ^
a.cc:42:19: error: 'i' was not declared in this scope
   42 |     if(c==a || c==i || c==u || c==e || c==o) puts("vowel");
      |                   ^
a.cc:42:27: error: 'u' was not declared in this scope
   42 |     if(c==a || c==i || c==u || c==e || c==o) puts("vowel");
      |                           ^
a.cc:42:35: error: 'e' was not declared in this scope
   42 |     if(c==a || c==i || c==u || c==e || c==o) puts("vowel");
      |                                   ^
a.cc:42:43: error: 'o' was not declared in this scope
   42 |     if(c==a || c==i || c==u || c==e || c==o) puts("vowel");
      |                                           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'a' was not declared in this scope
    8 |     if(s==a || s==i || s==u || s==e || s==o)
      |           ^
a.cc:8:19: error: 'i' was not declared in this scope
    8 |     if(s==a || s==i || s==u || s==e || s==o)
      |                   ^
a.cc:8:27: error: 'u' was not declared in this scope
    8 |     if(s==a || s==i || s==u || s==e || s==o)
      |                           ^
a.cc:8:35: error: 'e' was not declared in this scope
    8 |     if(s==a || s==i || s==u || s==e || s==o)
      |                                   ^
a.cc:8:43: error: 'o' was not declared in this scope
    8 |     if(s==a || s==i || s==u || s==e || s==o)
      |                                           ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected ';' before 'if'
    7 |   cin>>a
      |         ^
      |         ;
    8 |     if(a==a || a==i || a==u || a==e || a==o)
      |     ~~   
a.cc:11:8: error: 'else' without a previous 'if'
   11 |       }else{
      |        ^~~~
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin>>s;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |                 cout<<"vowel";
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |             cout<<"consonant";
      |             ^~~~
      |             std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

#include<stdio.h>
int main() {
int c;
scanf(%d,&c);
if(c==a ||
    c==i ||
    c==u ||
    c==e ||
    c==o){
printf("vowel¥n");
}else{
printf("consonant¥n");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:7: error: expected expression before '%' token
    4 | scanf(%d,&c);
      |       ^
main.c:5:7: error: 'a' undeclared (first use in this function)
    5 | if(c==a ||
      |       ^
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:8: error: 'i' undeclared (first use in this function)
    6 |     c==i ||
      |        ^
main.c:7:8: error: 'u' undeclared (first use in this function)
    7 |     c==u ||
      |        ^
main.c:8:8: error: 'e' undeclared (first use in this function)
    8 |     c==e ||
      |        ^
main.c:9:8: error: 'o' undeclared (first use in this function)
    9 |     c==o){
      |        ^
Language: C

#include<stdio.h>
int main(void) {
int c;
scanf(%d,&c);
if(c==a ||
    c==i ||
    c==u ||
    c==e ||
    c==o){
printf("vowel¥n");
}else{
printf("contest");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:7: error: expected expression before '%' token
    4 | scanf(%d,&c);
      |       ^
main.c:5:7: error: 'a' undeclared (first use in this function)
    5 | if(c==a ||
      |       ^
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:8: error: 'i' undeclared (first use in this function)
    6 |     c==i ||
      |        ^
main.c:7:8: error: 'u' undeclared (first use in this function)
    7 |     c==u ||
      |        ^
main.c:8:8: error: 'e' undeclared (first use in this function)
    8 |     c==e ||
      |        ^
main.c:9:8: error: 'o' undeclared (first use in this function)
    9 |     c==o){
      |        ^
Language: C++

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:4:9: error: 'string' was not declared in this scope
    4 |         string a;
      |         ^~~~~~
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin>>a;
      |         ^~~
a.cc:5:14: error: 'a' was not declared in this scope
    5 |         cin>>a;
      |              ^
a.cc:6:59: error: 'cout' was not declared in this scope
    6 |         if(a=="a" || a=="i" || a=="u" || a=="e" || a=="o")cout<<"vowel"<<endl;
      |                                                           ^~~~
a.cc:6:74: error: 'endl' was not declared in this scope
    6 |         if(a=="a" || a=="i" || a=="u" || a=="e" || a=="o")cout<<"vowel"<<endl;
      |                                                                          ^~~~
a.cc:7:14: error: 'cout' was not declared in this scope
    7 |         else cout<<"consonant"<<endl;
      |              ^~~~
a.cc:7:33: error: 'endl' was not declared in this scope
    7 |         else cout<<"consonant"<<endl;
      |                                 ^~~~
Language: C++

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

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

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

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

a = input()
if a == 'a' or a == 'e' or a == 'i' or a == 'o' or a == 'u' :
    print('vowel')
else :
    print('consonant')

Compiler output:
a.cc:3:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    3 |     print('vowel')
      |           ^~~~~~~
a.cc:5:11: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
    5 |     print('consonant')
      |           ^~~~~~~~~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a = input()
      | ^
Language: C++

#include<bits/stdc++.h>

#define fi first
#define se second
#define FO(x, n) for (int x = 0; x < n; ++x)
#define FOR(x, a, b) for (int x = a; x < b; ++x)
#define RFO(x, n) for (int x = n - 1; x >= 0; --x)
#define RFOR(x, a, b) for (int x = b - 1; x >= a; --x)
#define FOR_ITER(x, a) for(auto x = a.begin(); x != a.end(); ++x)



using namespace std;
typedef unsigned char byte;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> pii;
typedef pair<double, double> pdd;
typedef pair<string, string> pss;
typedef pair<ll, ll> pll;
inline bool feq(const double& a, const double& b) { return fabs(a - b) < 1e-10; }

using namespace std;


int main(){
//    int n, l;
//    cin >> n >> k;
//    vector<bool> dislike(10, false);
//
//    FOR(i, 0, k) {
//        int t;
//        cin >> t;
//        dislike[t] = true;
//    }

    ch a, b, c;
    cin >> a ;//>> b >> c;

    cout << (a=='a'||a=='e' ||a=='i'||a=='o'||a=='u'? "vowel":"consonant") << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:5: error: 'ch' was not declared in this scope
   37 |     ch a, b, c;
      |     ^~
a.cc:38:12: error: 'a' was not declared in this scope
   38 |     cin >> a ;//>> b >> c;
      |            ^
Language: C++

using namespace std;
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define RFOR(i,a,b) for (int i=(b)-1;i>=(a);i--)
#define REP(i,n) for(int i=0;i<(n);i++)
#define RREP(i,n) for (int i=(n)-1;i>=0;i--)
             
#define pb push_back
#define PII pair<int,int>
             
#define VS vector<string>
#define VI vector<int>
#define ll long long int
#define debug(x) cout << x << " :" <<#x << endl  
int main(void) {
    string s = "aiueo";
    char c; cin >> c;
    bool p = false;
    REP(i,5) {
        if(c == s[i]) {
            p = true;                                                                                                                    
            break;
        }    
    }        
    if(p) cout << "vowel" << endl;
    else cout << "consonant" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: 'string' was not declared in this scope
   15 |     string s = "aiueo";
      |     ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:16:13: error: 'cin' was not declared in this scope
   16 |     char c; cin >> c;
      |             ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:19:17: error: 's' was not declared in this scope
   19 |         if(c == s[i]) {
      |                 ^
a.cc:24:11: error: 'cout' was not declared in this scope
   24 |     if(p) cout << "vowel" << endl;
      |           ^~~~
a.cc:24:11: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:24:30: error: 'endl' was not declared in this scope
   24 |     if(p) cout << "vowel" << endl;
      |                              ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:25:10: error: 'cout' was not declared in this scope
   25 |     else cout << "consonant" << endl;
      |          ^~~~
a.cc:25:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:25:33: error: 'endl' was not declared in this scope
   25 |     else cout << "consonant" << endl;
      |                                 ^~~~
a.cc:25:33: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

package main

import (
  "fmt"
)

func main(){
  var c string
  fmt.Scan(&c)
  if c == "a" || c == "i" || c == "u" || c == "e" || c == "o" {
    fmt.Println("vowel")

  } else{
    fmt.Println("consonat")
  }
}

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


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

#define ll long long
#define vvi vector< vector<int> >
#define vi vector<int>
#define All(X) X.begin(),X.end()
#define FOR(i,a,b) for(int i=(int)(a);i<(int)(b);i++)
#define REP(i,n) for(int i=0;i<(int)(n);i++)
#define pb push_back
#define pii pair<int,int>
#define mp make_pair
#define pi 3.14159265359
#define shosu(X) fixed << setprecision(X)
ll gcd(ll a,ll b){return b?gcd(b,a%b):a;}
ll lcm(ll a,ll b){return a/gcd(a,b)*b;}

int main(){
char c;
cin >> c;
bool flg = false;
string s = "aiueo";
REP(i,s.size()) if(c == s[i]) flg = true;
if(flg) cout << "vowel" << endl;
else cout << "consonant" << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:26:34: error: expected '}' at end of input
   26 | else cout << "consonant" << endl;
      |                                  ^
a.cc:19:11: note: to match this '{'
   19 | int main(){
      |           ^
Language: Java

import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		String c = sc.next();
		if(c.equals("a")||c.equals("i")||c.equals("u")||c.equals("e")||c.equals("o")){
			System.out.println("voyel");
		}
		else System.out.println("consonant");
	}
		


Compiler output:
Main.java:12: error: reached end of file while parsing
	}
	 ^
1 error
Language: Java

package spring;
import java.io.*;
public class A_UOIAUI {
	public static void main(String[] args)
	throws java.io.IOException{
				int c = System.in.read();
				if(c == 'a'||c == 'i'||c == 'u'||c == 'e'||c == 'o'){
					System.out.println("vowel");
				}else{
					System.out.println("consonant");
				}
	}
}

Compiler output:
Main.java:3: error: class A_UOIAUI is public, should be declared in a file named A_UOIAUI.java
public class A_UOIAUI {
       ^
1 error
Language: Java

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

Compiler output:
Main.java:2: error: class ABC049_A is public, should be declared in a file named ABC049_A.java
public class ABC049_A {
       ^
1 error
Language: Java

import java.util.*;

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

Compiler output:
Main.java:9: error: 'else' without 'if'
            else{
            ^
1 error
Language: Java

import java.util.Scanner;
public class main {

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

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

}

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

import java.util.Scanner;

public class uoiaiuai {

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

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

}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:93: error: invalid operands of types 'const char [10]' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout << (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o' ? "vowel" : "consonant" << endl;
      |                                                                                 ~~~~~~~~~~~~^~~~~~~
a.cc:7:100: error: expected ')' before ';' token
    7 |   cout << (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o' ? "vowel" : "consonant" << endl;
      |           ~                                                                                        ^
      |                                                                                                    )
Language: Java

import java.util.Scanner;
 
public class Main {
	private static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		String s = sc.next();
		int e = s.length();
		while(true) {
			if (e==0) {
				break;
			} else if (e<5) {
				System.out.println("NO");
				return;
			}
 
			if (s.substring(e-5, e).equals("erase")) {
				e -= 5;
			} else if (s.substring(e-5, e).equals("dream")) {
				e -= 5;
			} else if (s.substring(e-6, e).equals("eraser")) {
				e -= 6;
			} else if (s.substring(e-7, e).equals("dreamer")) {
				e -= 7;
			} else {
				System.out.println("NO");
				return;
			}
		}
 
		System.out.println("YES");
	}
}

Compiler output:
Main.java:2: error: illegal character: '\u00a0'
?
^
Main.java:15: error: illegal character: '\u00a0'
?
^
Main.java:29: error: illegal character: '\u00a0'
?
^
3 errors
Language: C++

#include <cstdio>

int main()
{
  char c;
  scanf("%c", c);
  std::string s("aeiou");
  printf("%s\n", s.find(c) ? "vowel" : "consonant");
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'string' is not a member of 'std'
    7 |   std::string s("aeiou");
      |        ^~~~~~
a.cc:2:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    1 | #include <cstdio>
  +++ |+#include <string>
    2 | 
a.cc:8:18: error: 's' was not declared in this scope
    8 |   printf("%s\n", s.find(c) ? "vowel" : "consonant");
      |                  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(i=0; i<n; i++)
#define out(x) cout<<(x)<<"\n"

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

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

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(i=0; i<n; i++)
#define out(x) cout<<(x)<<"\n"

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'c' was not declared in this scope
    7 |   cin>>c;
      |        ^
Language: C++

//ABC 050-C
#define _USE_MATH_DEFINES

#include <iostream>
#include <cmath>
#include <stdlib.h>
#include <algorithm>
#include <cstdio>
#include <vector>
#include <cstring>
#include <numeric>
#include <string>
#include <map>
#include <sstream>
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 if cout << "consonant" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |         if (c == "a") cout << "vowel" << endl;
      |             ~~^~~~~~
a.cc:22:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   22 |         if (c == "i") cout << "vowel" << endl;
      |             ~~^~~~~~
a.cc:23:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   23 |         if (c == "u") cout << "vowel" << endl;
      |             ~~^~~~~~
a.cc:24:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   24 |         if (c == "e") cout << "vowel" << endl;
      |             ~~^~~~~~
a.cc:25:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   25 |         if (c == "o") cout << "vowel" << endl;
      |             ~~^~~~~~
a.cc:26:17: error: expected '(' before 'cout'
   26 |         else if cout << "consonant" << endl;
      |                 ^~~~
      |                 (
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | cin >> c;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 | std:cout << ((c == 'a' || c == 'i' || c=='u'||c=='e'||c=='o') ? "vowel" : "consonant") << std:endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:94: error: found ':' in nested-name-specifier, expected '::'
    6 | std:cout << ((c == 'a' || c == 'i' || c=='u'||c=='e'||c=='o') ? "vowel" : "consonant") << std:endl;
      |                                                                                              ^
      |                                                                                              ::
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:56: error: 'e' was not declared in this scope
    6 | std::cout << ((c == 'a' || c == 'i' || c=='u'||c=='e'||e=='o') ? "vowel" : "consonant") << std::endl;
      |                                                        ^
Language: C++

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | cin >> c;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 | std:cout << ((c == 'a' || c == 'i' || c=='u'||c=='e'||e=='o') ? "vowel" : "consonant") << std:endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:55: error: 'e' was not declared in this scope
    6 | std:cout << ((c == 'a' || c == 'i' || c=='u'||c=='e'||e=='o') ? "vowel" : "consonant") << std:endl;
      |                                                       ^
a.cc:6:94: error: found ':' in nested-name-specifier, expected '::'
    6 | std:cout << ((c == 'a' || c == 'i' || c=='u'||c=='e'||e=='o') ? "vowel" : "consonant") << std:endl;
      |                                                                                              ^
      |                                                                                              ::
Language: Java

class Test{
        public static void main(String args[])
        throws java.io.IOException{
                int c;
                c=System.in.read();
                if(c='a'or'i'or'u'or'e'or'o'){
                        System.out.println("vowel");
                }else{
                        System.out.println("consonant");
                }       
        }
}


Compiler output:
Main.java:6: error: ')' expected
                if(c='a'or'i'or'u'or'e'or'o'){
                        ^
Main.java:6: error: ';' expected
                if(c='a'or'i'or'u'or'e'or'o'){
                          ^
Main.java:6: error: not a statement
                if(c='a'or'i'or'u'or'e'or'o'){
                             ^
Main.java:6: error: ';' expected
                if(c='a'or'i'or'u'or'e'or'o'){
                               ^
Main.java:6: error: not a statement
                if(c='a'or'i'or'u'or'e'or'o'){
                                  ^
Main.java:6: error: ';' expected
                if(c='a'or'i'or'u'or'e'or'o'){
                                    ^
Main.java:6: error: not a statement
                if(c='a'or'i'or'u'or'e'or'o'){
                                       ^
Main.java:6: error: ';' expected
                if(c='a'or'i'or'u'or'e'or'o'){
                                         ^
Main.java:8: error: 'else' without 'if'
                }else{
                 ^
9 errors
Language: C++

#include <iostream>
using namespace std;

void main()
{
	char c;
	cin >> c;
	switch(c)
	{
		case 'a':
		case 'e':
		case 'i':
		case 'o':
		case 'u':
			cout << "vowel" << endl;
			break;
		default:
			cout << "consonant" << endl;
			break;
	}
	return;
}

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:21:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   21 |         return;
      |         ^~~~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
	string mozi;
	bool flag;
	cin >> mozi;

	for (int i; i < mozi.size();i++) {
		if (char[i] == "a" || char[i] == "i" || char[i] == "u" || char[i] == "e" || char[i] == "o") {
			flag = true;
		}
	}

	if (flag) {
		cout << "vowel";
	}
	else {
		cout << "consonant";
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: error: expected unqualified-id before '[' token
   11 |                 if (char[i] == "a" || char[i] == "i" || char[i] == "u" || char[i] == "e" || char[i] == "o") {
      |                         ^
Language: C++

#include <iostream>
using namespace std;

char [] vowel = {'a', 'i', 'u', 'e', 'o'};
 int main(){
   char c;
   cin >> c;
   int j = 0;
   for(int i = 0; i < (sizeof vowel)/sizeof char; i++){
     if(vowel[i]==c)j=1;
   }
   if(j)cout << "consonant" << endl;
   else cout << "consonant" << endl;
 }


Compiler output:
a.cc:4:6: error: structured binding declaration cannot have type 'char'
    4 | char [] vowel = {'a', 'i', 'u', 'e', 'o'};
      |      ^~
a.cc:4:6: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:4:6: error: empty structured binding declaration
a.cc:4:9: error: expected initializer before 'vowel'
    4 | char [] vowel = {'a', 'i', 'u', 'e', 'o'};
      |         ^~~~~
a.cc: In function 'int main()':
a.cc:9:31: error: 'vowel' was not declared in this scope
    9 |    for(int i = 0; i < (sizeof vowel)/sizeof char; i++){
      |                               ^~~~~
a.cc:9:45: error: expected primary-expression before 'char'
    9 |    for(int i = 0; i < (sizeof vowel)/sizeof char; i++){
      |                                             ^~~~
a.cc:9:44: error: expected ';' before 'char'
    9 |    for(int i = 0; i < (sizeof vowel)/sizeof char; i++){
      |                                            ^~~~~
      |                                            ;
a.cc:9:45: error: expected primary-expression before 'char'
    9 |    for(int i = 0; i < (sizeof vowel)/sizeof char; i++){
      |                                             ^~~~
a.cc:9:44: error: expected ')' before 'char'
    9 |    for(int i = 0; i < (sizeof vowel)/sizeof char; i++){
      |       ~                                    ^~~~~
      |                                            )
a.cc:9:45: error: declaration does not declare anything [-fpermissive]
    9 |    for(int i = 0; i < (sizeof vowel)/sizeof char; i++){
      |                                             ^~~~
a.cc:9:51: error: 'i' was not declared in this scope
    9 |    for(int i = 0; i < (sizeof vowel)/sizeof char; i++){
      |                                                   ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
char qwe;
while(cin >> qwe)
{
if(qwe=='a'||qwe=='e'||qwe=='i'||qwe=='o'||qwe=='u')
printf("vowel\n");
else
printf("consonant\n")
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: expected ';' before '}' token
   11 | printf("consonant\n")
      |                      ^
      |                      ;
   12 | }
      | ~