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

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

Compiler output:
a.cc:3:31: error: expected '}' before ')' token
    3 | char a[5]={'a','e','i','o','u');
      |           ~                   ^
a.cc:3:31: error: expected ',' or ';' before ')' token
a.cc: In function 'int main()':
a.cc:6:14: error: too few arguments to function 'int putchar(int)'
    6 |     c=putchar();
      |       ~~~~~~~^~
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/stdio.h:618:12: note: declared here
  618 | extern int putchar (int __c);
      |            ^~~~~~~
Language: C++

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

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

#include<iostream>
using namespace std;
int main(){
  int A;
  cin>>A;
  if(A==a||A==b||A==c||A==d||A==e){
    cout<<"vowel"<<endl;
  }
  else{
    cout<<"consonant"<<endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'a' was not declared in this scope
    6 |   if(A==a||A==b||A==c||A==d||A==e){
      |         ^
a.cc:6:15: error: 'b' was not declared in this scope
    6 |   if(A==a||A==b||A==c||A==d||A==e){
      |               ^
a.cc:6:21: error: 'c' was not declared in this scope
    6 |   if(A==a||A==b||A==c||A==d||A==e){
      |                     ^
a.cc:6:27: error: 'd' was not declared in this scope
    6 |   if(A==a||A==b||A==c||A==d||A==e){
      |                           ^
a.cc:6:33: error: 'e' was not declared in this scope
    6 |   if(A==a||A==b||A==c||A==d||A==e){
      |                                 ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:6: error: implicit declaration of function 'put'; did you mean 'puts'? [-Wimplicit-function-declaration]
    7 | else put("consonant");
      |      ^~~
      |      puts
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >>s;
  switch(s) {
  case 'a':
  case 'i':
  case 'u':
  case 'e':
  case 'o':
  cout << "vowel" << endl;
  break;
  default:
  cout <<　"consonant" << endl;
  }
}


Compiler output:
a.cc:15:10: error: extended character 　 is not valid in an identifier
   15 |   cout <<　"consonant" << endl;
      |          ^
a.cc: In function 'int main()':
a.cc:6:10: error: switch quantity not an integer
    6 |   switch(s) {
      |          ^
a.cc:15:10: error: '\U00003000' was not declared in this scope
   15 |   cout <<　"consonant" << endl;
      |          ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >>s;
  switch(s) {
  case 'a':
  case 'i':
  case 'u':
  case 'e':
  case 'o':
  cout << 'vowel' << endl;
  break;
  default:
  cout <<　'consonant' << endl;
  }
}

Compiler output:
a.cc:12:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
   12 |   cout << 'vowel' << endl;
      |           ^~~~~~~
a.cc:15:10: error: extended character 　 is not valid in an identifier
   15 |   cout <<　'consonant' << endl;
      |          ^
a.cc:15:12: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
   15 |   cout <<　'consonant' << endl;
      |            ^~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:10: error: switch quantity not an integer
    6 |   switch(s) {
      |          ^
a.cc:15:10: error: '\U00003000' was not declared in this scope
   15 |   cout <<　'consonant' << endl;
      |          ^~
Language: C++

#include <iostream>
#include <string>
using namespace std;
 
string divide[4] = {"dream", "dreamer", "erase", "eraser"};
bool dp[100010];
 
int main() {
    string S;
    cin >> S;
 
    dp[0] = 1;
    for(int i = 0; i < S.size(); ++i){
        for(string s : divide){
            if(S.substr(i, s.size()) == s){ // うまく切れたら先に進む
                dp[i + s.size()] = d[i];
            }
        }
    }
    cout << (dp[S.size()] ? "YES" : "NO") << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:36: error: 'd' was not declared in this scope
   16 |                 dp[i + s.size()] = d[i];
      |                                    ^
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') {



}

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

import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        char c = sc.next().charAt(0);
        char vowels = new char[]{'a','i','u','e','o'};
        for(char v:vowels) if(c==v){
        	System.out.println("vowel");
        	return;
        }
        System.out.println("consonant");
        
    }
}

Compiler output:
Main.java:8: error: incompatible types: char[] cannot be converted to char
        char vowels = new char[]{'a','i','u','e','o'};
                      ^
Main.java:9: error: for-each not applicable to expression type
        for(char v:vowels) if(c==v){
                   ^
  required: array or java.lang.Iterable
  found:    char
2 errors
Language: C++

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

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

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

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected '}' before 'else'
    8 |   else
      |   ^~~~
a.cc:6:41: note: to match this '{'
    6 |   if(c=='a' || 'i' || 'u' || 'e' || 'o'){
      |                                         ^
a.cc: At global scope:
a.cc:11:3: error: expected unqualified-id before 'return'
   11 |   return 0;
      |   ^~~~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'vowel' was not declared in this scope
    7 |     cout<<vowel<<endl;
      |           ^~~~~
a.cc:9:11: error: 'consonant' was not declared in this scope
    9 |     cout<<consonant<<endl;
      |           ^~~~~~~~~
a.cc: At global scope:
a.cc:11:3: error: expected unqualified-id before 'return'
   11 |   return 0;
      |   ^~~~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: Java

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

Compiler output:
Main.java:6: error: cannot find symbol
if(s.contains(a)||s.contains(i)||s.contains(u)||s.contains(e)||s.contains(o)){
              ^
  symbol:   variable a
  location: class Main
Main.java:6: error: cannot find symbol
if(s.contains(a)||s.contains(i)||s.contains(u)||s.contains(e)||s.contains(o)){
                             ^
  symbol:   variable i
  location: class Main
Main.java:6: error: cannot find symbol
if(s.contains(a)||s.contains(i)||s.contains(u)||s.contains(e)||s.contains(o)){
                                            ^
  symbol:   variable u
  location: class Main
Main.java:6: error: cannot find symbol
if(s.contains(a)||s.contains(i)||s.contains(u)||s.contains(e)||s.contains(o)){
                                                           ^
  symbol:   variable e
  location: class Main
Main.java:6: error: cannot find symbol
if(s.contains(a)||s.contains(i)||s.contains(u)||s.contains(e)||s.contains(o)){
                                                                          ^
  symbol:   variable o
  location: class Main
5 errors
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

#include<iostream>
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<<"cousonant"<<endl;}
 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |  if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){cout<<"vowel"<<endl;}
      |     ~^~~~~
a.cc:6:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |  if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){cout<<"vowel"<<endl;}
      |             ~^~~~~
a.cc:6:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |  if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){cout<<"vowel"<<endl;}
      |                     ~^~~~~
a.cc:6:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |  if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){cout<<"vowel"<<endl;}
      |                             ~^~~~~
a.cc:6:38: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |  if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){cout<<"vowel"<<endl;}
      |                                     ~^~~~~
Language: C++

#include<iostream>
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<<"cousonant"<<endl;}
 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'a' was not declared in this scope
    6 |  if(c==a||c==e||c==i||c==o||c==u){cout<<"vowel"<<endl;}
      |        ^
a.cc:6:14: error: 'e' was not declared in this scope
    6 |  if(c==a||c==e||c==i||c==o||c==u){cout<<"vowel"<<endl;}
      |              ^
a.cc:6:20: error: 'i' was not declared in this scope
    6 |  if(c==a||c==e||c==i||c==o||c==u){cout<<"vowel"<<endl;}
      |                    ^
a.cc:6:26: error: 'o' was not declared in this scope
    6 |  if(c==a||c==e||c==i||c==o||c==u){cout<<"vowel"<<endl;}
      |                          ^
a.cc:6:32: error: 'u' was not declared in this scope
    6 |  if(c==a||c==e||c==i||c==o||c==u){cout<<"vowel"<<endl;}
      |                                ^
Language: C++

#include<iostream>
#include<string>
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<<"cousonant"<<endl;}
 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'a' was not declared in this scope
    7 |  if(c==a||c==e||c==i||c==o||c==u){cout<<"vowel"<<endl;}
      |        ^
a.cc:7:14: error: 'e' was not declared in this scope
    7 |  if(c==a||c==e||c==i||c==o||c==u){cout<<"vowel"<<endl;}
      |              ^
a.cc:7:20: error: 'i' was not declared in this scope
    7 |  if(c==a||c==e||c==i||c==o||c==u){cout<<"vowel"<<endl;}
      |                    ^
a.cc:7:26: error: 'o' was not declared in this scope
    7 |  if(c==a||c==e||c==i||c==o||c==u){cout<<"vowel"<<endl;}
      |                          ^
a.cc:7:32: error: 'u' was not declared in this scope
    7 |  if(c==a||c==e||c==i||c==o||c==u){cout<<"vowel"<<endl;}
      |                                ^
Language: C++

// Example program
#include <iostream>
#include <string>
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:8:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){cout<<"vowel"<<endl;}
      |      ~^~~~~
a.cc:8:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){cout<<"vowel"<<endl;}
      |              ~^~~~~
a.cc:8:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){cout<<"vowel"<<endl;}
      |                      ~^~~~~
a.cc:8:31: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){cout<<"vowel"<<endl;}
      |                              ~^~~~~
a.cc:8:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){cout<<"vowel"<<endl;}
      |                                      ~^~~~~
Language: C++

// Example program
#include <iostream>
#include <string>
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;}
  return 0;
}


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

// Example program
#include <iostream>
#include <string>
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;}
  return 0;
}



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

// Example program
#include <iostream>
#include <string>
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;}
  return 0;
}


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

// Example program
#include <iostream>
#include <string>
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;}
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'a' was not declared in this scope
    9 |   if(c=a||c=e||c=i||c=o||c=u){cout<<"vowel"<<endl;}
      |        ^
a.cc:9:13: error: 'e' was not declared in this scope
    9 |   if(c=a||c=e||c=i||c=o||c=u){cout<<"vowel"<<endl;}
      |             ^
a.cc:9:18: error: 'i' was not declared in this scope
    9 |   if(c=a||c=e||c=i||c=o||c=u){cout<<"vowel"<<endl;}
      |                  ^
a.cc:9:23: error: 'o' was not declared in this scope
    9 |   if(c=a||c=e||c=i||c=o||c=u){cout<<"vowel"<<endl;}
      |                       ^
a.cc:9:28: error: 'u' was not declared in this scope
    9 |   if(c=a||c=e||c=i||c=o||c=u){cout<<"vowel"<<endl;}
      |                            ^
Language: C++

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

Compiler output:
a.cc:2:1: error: '::main' must return 'int'
    2 | char main() {
      | ^~~~
Language: C++

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

Compiler output:
a.cc:2:1: error: '::main' must return 'int'
    2 | char main() {
      | ^~~~
Language: C++

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

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | char main() {
      | ^~~~
Language: C++

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

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | char main() {
      | ^~~~
Language: C++

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

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | char main() {
      | ^~~~
Language: C++

#include <iostream>
#include<string>
char main() {
	char c;
	std::cin >> c;
	if (c == 'a', 'i', 'u', 'e', 'o')
		std::cout << "vowel" << std::endl;
	else {
		std::cout << "consonant" << std::endl;
	}
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | char main() {
      | ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:13: error: 'C' was not declared in this scope
   18 |     else if(C=="u"){
      |             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
string a;
string b = "aiueo";
int c = 0;

int main(){
  cin>>a;
  for(i=0;i<5;++i){
    if(a == b[i]){
      cout<<"vowel"<<endl;
      c = 1;
      break;
    }
  }
  if(c == 0){
    cout<<"consonant"<<endl;
  }
}

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

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String s = scan.next();
		char c = s.charAt(0);
		if (c == 'a' || c == 'b' || c == 'c' ||c == 'd' ||c == 'e') {			
			System.out.println("vowel");
		}
		else
		System.out.println("consonant");
	}
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C

#include<stdio.h>
int main()
{
    char a;
    scanf("%c",&Aa);

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

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

}

Compiler output:
main.c: In function 'main':
main.c:5:17: error: 'Aa' undeclared (first use in this function); did you mean 'a'?
    5 |     scanf("%c",&Aa);
      |                 ^~
      |                 a
main.c:5:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main()
{
    char a;
    scanf("%c",&Aa);

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

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

}

Compiler output:
main.c: In function 'main':
main.c:5:17: error: 'Aa' undeclared (first use in this function); did you mean 'a'?
    5 |     scanf("%c",&Aa);
      |                 ^~
      |                 a
main.c:5:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<stdio.h>
int main()
{
    char a;
    scanf("%c",&Aa);

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

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: 'Aa' was not declared in this scope; did you mean 'a'?
    5 |     scanf("%c",&Aa);
      |                 ^~
      |                 a
Language: Java

import java.util.*;
public class vowel_cnso 
{

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

	}

}


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

#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
using namespace std;
typedef long long lng;
#define UP(i,a,b) for(int i=(a); i<=(b); ++i)
#define DOWN(i,b,a) for(int i=(b); i>=(a); --i)
#define REP(i,n) UP(i,0,n-1)
#define ALL(a) (a).begin(), (a).end()
#define UNIQUE(a) a.erase(unique(ALL(a)), a.end()) //NOTE: <a> must be sorted in advance

lng power(lng b, lng n) {lng sol=1; while(n>0) {if(n&1) {sol=sol*b;} n>>=1; b*= b;} return sol;} //calculate b^n

const int MOD = 1000000007; //10^9+7


/*********** variables ************/

/**********************************/

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    char c;
    cin >> c;
    char vo[] = {'a','i', 'u', 'e', 'o'};
    REP(i, 5) {
        if(c==vo[i]) {
            cout << "vowel" << endl;
            return 0
        }
    }
    cout << "consonant" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:31:21: error: expected ';' before '}' token
   31 |             return 0
      |                     ^
      |                     ;
   32 |         }
      |         ~
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 << "consonan" << endl;}
}

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

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

int main(void){
  char c;
  char v[5] = ['a', 'i', 'u', 'e', 'o'];

  for(int i = 0; i < 5; i ++){
    if(c==v[i]) cout << "vowel" << endl;
    else continue;
  }
  if(i >= 6) cout << "consonant" << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected identifier before 'a'
    7 |   char v[5] = ['a', 'i', 'u', 'e', 'o'];
      |                ^~~
a.cc:7:19: error: expected ']' before ',' token
    7 |   char v[5] = ['a', 'i', 'u', 'e', 'o'];
      |                   ^
      |                   ]
a.cc: In lambda function:
a.cc:7:19: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:7:15: error: array must be initialized with a brace-enclosed initializer
    7 |   char v[5] = ['a', 'i', 'u', 'e', 'o'];
      |               ^~~~
a.cc:7:21: error: expected unqualified-id before 'i'
    7 |   char v[5] = ['a', 'i', 'u', 'e', 'o'];
      |                     ^~~
a.cc:13:6: error: 'i' was not declared in this scope
   13 |   if(i >= 6) cout << "consonant" << endl;
      |      ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected initializer before '==' token
    7 |   if(char c=="a" || char c=="i" || char c=="u" || char c=="e" || char c=="o"){
      |            ^~
a.cc:7:12: error: expected ')' before '==' token
    7 |   if(char c=="a" || char c=="i" || char c=="u" || char c=="e" || char 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 << "consonan" << endl;}
}

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

#define<iostream>
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:8: error: macro names must be identifiers
    1 | #define<iostream>
      |        ^
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string s;cin>>s;
      |   ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #define<iostream>
a.cc:4:12: error: 'cin' was not declared in this scope
    4 |   string s;cin>>s;
      |            ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #define<iostream>
a.cc:4:17: error: 's' was not declared in this scope
    4 |   string s;cin>>s;
      |                 ^
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout<<"vowel"<<endl;
      |     ^~~~
a.cc:6:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:20: error: 'endl' was not declared in this scope
    6 |     cout<<"vowel"<<endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #define<iostream>
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout<<"consonant"<<endl;
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:24: error: 'endl' was not declared in this scope
    8 |     cout<<"consonant"<<endl;
      |                        ^~~~
a.cc:8:24: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C

#include <stdio.h>
#include <string.h>
void rev(char *s) {
	int l = strlen(s), i;
	for (i = 0; i<l / 2; i++) {
		char t = s[i];
		s[i] = s[l - 1 - i];
		s[l - 1 - i] = t;
	}
}
char T[4][8] = { "dream","dreamer","erase","eraser" };
int main() {
	int i , c=0, l;
	char s[100001];
	for (i = 0; i<4; i++)rev(T[i]);
	scanf("%s",& s);
	l = strlen(s);
	rev(s);
	for (; c<l;) {
		int k = -1;
		for (i = 0; i<4; i++) {
			if (strncmp(s + c, T[i], strlen(T[i]))!==0) {
				k = strlen(T[i]);
				break;
			}
		}
		if (k<0) {
			puts("NO");
			return 0;
		}
		c += k;
	}
	puts("YES");
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:22:65: error: expected expression before '=' token
   22 |                         if (strncmp(s + c, T[i], strlen(T[i]))!==0) {
      |                                                                 ^
Language: C++

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

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

}

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



}


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

#include<iostream>
#include<algorithm>
#include<math.h>
#include<set>
#include<vector>
#include<map>
typedef long l
typedef long long ll
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:14:7: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
   14 | cout<<'vowel'<<endl;
      |       ^~~~~~~
a.cc:8:1: error: expected initializer before 'typedef'
    8 | typedef long long ll
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:12:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   12 | 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:14:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 | cout<<'vowel'<<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:14:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 | cout<<'vowel'<<endl;
      |                ^~~~
      |                std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:16:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 | cout<<"consonant"<<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:16:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 | cout<<"consonant"<<endl;
      |                    ^~~~
      |                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

#include<stdio.h>

int main(){
char ch=[1];
scanf("%s",ch);
if(ch[0]=='a'||ch[0]=='e'||ch[0]=='i'||ch[0]=='o'||ch[0]=='u'){
printf("vowel");
}
else{
printf("consonant");
}
return 0;

}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected expression before '[' token
    4 | char ch=[1];
      |         ^
main.c:6:6: error: subscripted value is neither array nor pointer nor vector
    6 | if(ch[0]=='a'||ch[0]=='e'||ch[0]=='i'||ch[0]=='o'||ch[0]=='u'){
      |      ^
main.c:6:18: error: subscripted value is neither array nor pointer nor vector
    6 | if(ch[0]=='a'||ch[0]=='e'||ch[0]=='i'||ch[0]=='o'||ch[0]=='u'){
      |                  ^
main.c:6:30: error: subscripted value is neither array nor pointer nor vector
    6 | if(ch[0]=='a'||ch[0]=='e'||ch[0]=='i'||ch[0]=='o'||ch[0]=='u'){
      |                              ^
main.c:6:42: error: subscripted value is neither array nor pointer nor vector
    6 | if(ch[0]=='a'||ch[0]=='e'||ch[0]=='i'||ch[0]=='o'||ch[0]=='u'){
      |                                          ^
main.c:6:54: error: subscripted value is neither array nor pointer nor vector
    6 | if(ch[0]=='a'||ch[0]=='e'||ch[0]=='i'||ch[0]=='o'||ch[0]=='u'){
      |                                                      ^
Language: C++

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

int main(void)
{
	char str[100];

	cin >> str;

	if (str[0] == "a" || str[0] == "i" || str[0] == "u" || str[0] == "e" || str[0] == "o") {
		cout << "vowe1" << endl;
	}
	else {
		cout << "consonant" << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         if (str[0] == "a" || str[0] == "i" || str[0] == "u" || str[0] == "e" || str[0] == "o") {
      |             ~~~~~~~^~~~~~
a.cc:11:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         if (str[0] == "a" || str[0] == "i" || str[0] == "u" || str[0] == "e" || str[0] == "o") {
      |                              ~~~~~~~^~~~~~
a.cc:11:54: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         if (str[0] == "a" || str[0] == "i" || str[0] == "u" || str[0] == "e" || str[0] == "o") {
      |                                               ~~~~~~~^~~~~~
a.cc:11:71: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         if (str[0] == "a" || str[0] == "i" || str[0] == "u" || str[0] == "e" || str[0] == "o") {
      |                                                                ~~~~~~~^~~~~~
a.cc:11:88: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         if (str[0] == "a" || str[0] == "i" || str[0] == "u" || str[0] == "e" || str[0] == "o") {
      |                                                                                 ~~~~~~~^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:37: error: lvalue required as left operand of assignment
    6 |   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','i','u','e','o'){
cout<<vowel<<endl;
else{
cout<<"consonant"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: expected ';' before 'if'
    5 | cin>>c
      |       ^
      |       ;
    6 | if(c=='a','i','u','e','o'){
      | ~~     
a.cc:10:2: error: expected '}' at end of input
   10 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main(void){
    // Your code here!
    char c;
    cin>>c;
  cout<<a;
    if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<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 |   cout<<a;
      |         ^
a.cc:9:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
      |        ~~^~~~~~
a.cc:9:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
      |                  ~~^~~~~~
a.cc:9:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
      |                            ~~^~~~~
a.cc:9:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
      |                                     ~~^~~~~
a.cc:9:48: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
      |                                              ~~^~~~~
a.cc:9:61: error: 'vowe1' was not declared in this scope
    9 |     if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
      |                                                             ^~~~~
a.cc:10:16: error: 'consonant' was not declared in this scope
   10 |     else cout<<consonant<<endl;
      |                ^~~~~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
      |        ~~^~~~~~
a.cc:8:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
      |                  ~~^~~~~~
a.cc:8:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
      |                            ~~^~~~~
a.cc:8:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
      |                                     ~~^~~~~
a.cc:8:48: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
      |                                              ~~^~~~~
a.cc:8:61: error: 'vowe1' was not declared in this scope
    8 |     if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl;
      |                                                             ^~~~~
a.cc:9:16: error: 'consonant' was not declared in this scope
    9 |     else cout<<consonant<<endl;
      |                ^~~~~~~~~
Language: C++

#include <iostream>
using namespace std;
int main(void){
    string l;
    cin >> l;
    if(c =="a"){
        cout << "vowel" << endl;
    }
    else if(c=="e"){
         cout << "vowel" << endl;
    }
    else if(c=="i"){
         cout << "vowel" << endl;
    }
    else if(c=="O"){
         cout << "vowel" << endl;
    }
    else if(c=="u"){
         cout << "vowel" << endl;
    }
    else{
        cout << "consonant" << endl;
    }
    
}


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

#include <iostream>
using namespace std;

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

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

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

int main( ) {
  string C
  int >> C
    if (C == a || i || u || e || o )
    cout << vowel

    else
    cout << consonant
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase  std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string C
      |   ^~~~~~
a.cc:5:3: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
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;
  else
    cout << consonant;
  cout << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'vowel' was not declared in this scope
    7 |         cout << vowel;
      |                 ^~~~~
a.cc:9:13: error: 'consonant' was not declared in this scope
    9 |     cout << consonant;
      |             ^~~~~~~~~
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;
  else
    cout << consonant;
  cout << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: 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:18: 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:28: 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:38: 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:48: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if( c=="a" || c=="i" || c=="u" || c=="e" || c=="o" )
      |                                               ~^~~~~
a.cc:7:17: error: 'vowel' was not declared in this scope
    7 |         cout << vowel;
      |                 ^~~~~
a.cc:9:13: error: 'consonant' was not declared in this scope
    9 |     cout << consonant;
      |             ^~~~~~~~~
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;
  else
    cout << consonant;
  cout << endl;
  return 0;
}

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

#include <stdio.h>
                                                                                                
  
int main(void){
                                                                                                
   
    int i;

    char c;
   
    char s[5] = {"aiueo"};
   
      
    scanf("%c", &c);
   
    
    for( i = 0 ; i < 5 ; i = i + 1 ){

         if( s[i] == c ){

             printf("vowel\n");

             return 0;

             }

         }

    printf("consonant\n");


    return 0;
                                                          
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: initializer-string for 'char [5]' is too long [-fpermissive]
   11 |     char s[5] = {"aiueo"};
      |                  ^~~~~~~