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

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

int main() {
  char s;
  cin >> s;
  
  if(s==‘a’ || s==‘i’ || s==‘u’ || s==‘e’ || s==‘o’){
    cout << “vowel” << endl;
  }
  else{
    cout << “consonant”<<endl;
   }
}


Compiler output:
a.cc:8:9: error: extended character ‘ is not valid in an identifier
    8 |   if(s==‘a’ || s==‘i’ || s==‘u’ || s==‘e’ || s==‘o’){
      |         ^
a.cc:8:9: error: extended character ’ is not valid in an identifier
a.cc:8:19: error: extended character ‘ is not valid in an identifier
    8 |   if(s==‘a’ || s==‘i’ || s==‘u’ || s==‘e’ || s==‘o’){
      |                   ^
a.cc:8:19: error: extended character ’ is not valid in an identifier
a.cc:8:29: error: extended character ‘ is not valid in an identifier
    8 |   if(s==‘a’ || s==‘i’ || s==‘u’ || s==‘e’ || s==‘o’){
      |                             ^
a.cc:8:29: error: extended character ’ is not valid in an identifier
a.cc:8:39: error: extended character ‘ is not valid in an identifier
    8 |   if(s==‘a’ || s==‘i’ || s==‘u’ || s==‘e’ || s==‘o’){
      |                                       ^
a.cc:8:39: error: extended character ’ is not valid in an identifier
a.cc:8:49: error: extended character ‘ is not valid in an identifier
    8 |   if(s==‘a’ || s==‘i’ || s==‘u’ || s==‘e’ || s==‘o’){
      |                                                 ^
a.cc:8:49: error: extended character ’ is not valid in an identifier
a.cc:9:13: error: extended character “ is not valid in an identifier
    9 |     cout << “vowel” << endl;
      |             ^
a.cc:9:13: error: extended character ” is not valid in an identifier
a.cc:12:13: error: extended character “ is not valid in an identifier
   12 |     cout << “consonant”<<endl;
      |             ^
a.cc:12:13: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:8:9: error: '\U00002018a\U00002019' was not declared in this scope
    8 |   if(s==‘a’ || s==‘i’ || s==‘u’ || s==‘e’ || s==‘o’){
      |         ^~~
a.cc:8:19: error: '\U00002018i\U00002019' was not declared in this scope
    8 |   if(s==‘a’ || s==‘i’ || s==‘u’ || s==‘e’ || s==‘o’){
      |                   ^~~
a.cc:8:29: error: '\U00002018u\U00002019' was not declared in this scope
    8 |   if(s==‘a’ || s==‘i’ || s==‘u’ || s==‘e’ || s==‘o’){
      |                             ^~~
a.cc:8:39: error: '\U00002018e\U00002019' was not declared in this scope
    8 |   if(s==‘a’ || s==‘i’ || s==‘u’ || s==‘e’ || s==‘o’){
      |                                       ^~~
a.cc:8:49: error: '\U00002018o\U00002019' was not declared in this scope
    8 |   if(s==‘a’ || s==‘i’ || s==‘u’ || s==‘e’ || s==‘o’){
      |                                                 ^~~
a.cc:9:13: error: '\U0000201cvowel\U0000201d' was not declared in this scope
    9 |     cout << “vowel” << endl;
      |             ^~~~~~~
a.cc:12:13: error: '\U0000201cconsonant\U0000201d' was not declared in this scope
   12 |     cout << “consonant”<<endl;
      |             ^~~~~~~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:43: error: expected primary-expression before ')' token
   14 |     if(c=='a'|c=='i'|c=='u'|c=='e'|c=='o'|)cout<<"consonant";else cout <<"vowel";
      |                                           ^
Language: C++

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


Compiler output:
a.cc:14:50: warning: missing terminating " character
   14 |     if(c=='a'|c=='i'|c=='u'|c=='e'|c=='o'|)cout<<"consonant
      |                                                  ^
a.cc:14:50: error: missing terminating " character
   14 |     if(c=='a'|c=='i'|c=='u'|c=='e'|c=='o'|)cout<<"consonant
      |                                                  ^~~~~~~~~~
a.cc:15:21: warning: missing terminating " character
   15 | ";else cout <<"vowel";
      |                     ^
a.cc:15:21: error: missing terminating " character
   15 | ";else cout <<"vowel";
      |                     ^~
a.cc: In function 'int main()':
a.cc:14:43: error: expected primary-expression before ')' token
   14 |     if(c=='a'|c=='i'|c=='u'|c=='e'|c=='o'|)cout<<"consonant
      |                                           ^
a.cc:15:1: error: unable to find string literal operator 'operator""vowel' with 'const char [14]', 'long unsigned int' arguments
   15 | ";else cout <<"vowel";
      | ^~~~~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>
#include <cmath>
#include <string>
#include <typeinfo>
#include <climits>
#include <algorithm>
#include <cctype>
#include <cstring>
#include <stdio.h>
#include <cstdlib>
using namespace std;

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


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

#include <stdio.h>

int main(void){
	char v = "aiueo", c;
	scanf("%c", &c);
	int i = 0;
	while(v[i]){
		if(v[i++] == c){
			printf("vowel\n");
			return 0;
		}
	}
	printf("consonant\n");
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:18: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    4 |         char v = "aiueo", c;
      |                  ^~~~~~~
main.c:7:16: error: subscripted value is neither array nor pointer nor vector
    7 |         while(v[i]){
      |                ^
main.c:8:21: error: subscripted value is neither array nor pointer nor vector
    8 |                 if(v[i++] == c){
      |                     ^
Language: C


#include <stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:7:39: error: expected ')' before 's'
    7 |     if(s[0]=='a'||s[0]=='i'||s[0]=='u's[0]=='e'||s[0]=='o'){
      |       ~                               ^
      |                                       )
Language: C


#include <stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:6:16: error: 's' undeclared (first use in this function)
    6 |     scanf("%c",s);
      |                ^
main.c:6:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:39: error: expected ')' before 's'
    7 |     if(s[0]=='a'||s[0]=='i'||s[0]=='u's[0]=='e'||s[0]=='o'){
      |       ~                               ^
      |                                       )
Language: C++

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

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

  
}


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

#include<iostream>
#include<vector>
#include<algorithm>
#include<string.h>
#include<complex>
using namespace std;
typedef long long int llint
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:8:1: error: expected initializer before 'int'
    8 | int main(){
      | ^~~
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\n");
	} else {
		printf("consonant\n");
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:17: error: stray '\343' in program
    7 |         if (c ==<U+3000>'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o') {
      |                 ^~~~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: 'c' was not declared in this scope
    5 |   char str = c;
      |              ^
a.cc:6:14: error: 'a' was not declared in this scope
    6 |    if (str = a, o, u, i, e) {
      |              ^
a.cc:6:17: error: 'o' was not declared in this scope
    6 |    if (str = a, o, u, i, e) {
      |                 ^
a.cc:6:20: error: 'u' was not declared in this scope
    6 |    if (str = a, o, u, i, e) {
      |                    ^
a.cc:6:23: error: 'i' was not declared in this scope
    6 |    if (str = a, o, u, i, e) {
      |                       ^
a.cc:6:26: error: 'e' was not declared in this scope
    6 |    if (str = a, o, u, i, e) {
      |                          ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    5 |   char str = "c";
      |              ^~~
      |              |
      |              const char*
a.cc:6:14: error: 'a' was not declared in this scope
    6 |    if (str = a, o, u, i, e) {
      |              ^
a.cc:6:17: error: 'o' was not declared in this scope
    6 |    if (str = a, o, u, i, e) {
      |                 ^
a.cc:6:20: error: 'u' was not declared in this scope
    6 |    if (str = a, o, u, i, e) {
      |                    ^
a.cc:6:23: error: 'i' was not declared in this scope
    6 |    if (str = a, o, u, i, e) {
      |                       ^
a.cc:6:26: error: 'e' was not declared in this scope
    6 |    if (str = a, o, u, i, e) {
      |                          ^
Language: C++

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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: 'a' was not declared in this scope
    6 |    if (str = a, o, u, i, e) {
      |              ^
a.cc:6:17: error: 'o' was not declared in this scope
    6 |    if (str = a, o, u, i, e) {
      |                 ^
a.cc:6:20: error: 'u' was not declared in this scope
    6 |    if (str = a, o, u, i, e) {
      |                    ^
a.cc:6:23: error: 'i' was not declared in this scope
    6 |    if (str = a, o, u, i, e) {
      |                       ^
a.cc:6:26: error: 'e' was not declared in this scope
    6 |    if (str = a, o, u, i, e) {
      |                          ^
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main(void){
    string c;

    cin >> c;

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

    return 0;
}a

Compiler output:
a.cc:15:2: error: 'a' does not name a type
   15 | }a
      |  ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 'vowel' was not declared in this scope
   10 |     cout << vowel << endl;
      |             ^~~~~
a.cc:13:13: error: 'vowel' was not declared in this scope
   13 |     cout << vowel << endl;
      |             ^~~~~
a.cc:16:13: error: 'vowel' was not declared in this scope
   16 |     cout << vowel << endl;
      |             ^~~~~
a.cc:19:13: error: 'vowel' was not declared in this scope
   19 |     cout << vowel << endl;
      |             ^~~~~
a.cc:22:13: error: 'vowel' was not declared in this scope
   22 |     cout << vowel << endl;
      |             ^~~~~
a.cc:25:11: error: expected '(' before '{' token
   25 |   else if {
      |           ^
      |           (
Language: C

#include<stdio.h>
char c;
int main(){
  c=getchar();
  if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'||){
    printf("vowel\n");
  }else{
    printf("consonant\n");
  }
}


Compiler output:
main.c: In function 'main':
main.c:5:46: error: expected expression before ')' token
    5 |   if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'||){
      |                                              ^
Language: C++

#include <bits/stdc++.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> c;
      |   ^~~
      |   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:6:55: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   if (c=='a' || c=='i' || c=='u' || c=='e' || c=='o') 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:6:74: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   if (c=='a' || c=='i' || c=='u' || c=='e' || c=='o') cout << "vowel" << endl;
      |                                                                          ^~~~
      |                                                                          std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:7:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   else 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:7:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   else 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 <bits/stdc++.h>
using namespace std;

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


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

#include<iostream>
using namespeace std;
int main(){
char str;
cin >> a;
if (str==a,i,u,e,o)
cout << "vowel" << endl;
else
cout << "consonant" << endl;
return 0;

}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespeace'
    2 | using namespeace std;
      |       ^~~~~~~~~~
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 >> a;
      | ^~~
      | 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:5:8: error: 'a' was not declared in this scope
    5 | cin >> a;
      |        ^
a.cc:6:12: error: 'i' was not declared in this scope
    6 | if (str==a,i,u,e,o)
      |            ^
a.cc:6:14: error: 'u' was not declared in this scope
    6 | if (str==a,i,u,e,o)
      |              ^
a.cc:6:16: error: 'e' was not declared in this scope
    6 | if (str==a,i,u,e,o)
      |                ^
a.cc:6:18: error: 'o' was not declared in this scope
    6 | if (str==a,i,u,e,o)
      |                  ^
a.cc:7:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 | 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:7:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 | 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:9:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | 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:9:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 | 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 <bits/stdc++.h>
using namespace std;

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

  if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
   cout << “vowel” <<endl;
}
else{
 cout << “consonant ” << endl;
}
}


Compiler output:
a.cc:8:9: error: extended character ‘ is not valid in an identifier
    8 |   if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
      |         ^
a.cc:8:9: error: extended character ’ is not valid in an identifier
a.cc:8:17: error: extended character ‘ is not valid in an identifier
    8 |   if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
      |                 ^
a.cc:8:17: error: extended character ’ is not valid in an identifier
a.cc:8:25: error: extended character ‘ is not valid in an identifier
    8 |   if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
      |                         ^
a.cc:8:25: error: extended character ’ is not valid in an identifier
a.cc:8:33: error: extended character ‘ is not valid in an identifier
    8 |   if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
      |                                 ^
a.cc:8:33: error: extended character ’ is not valid in an identifier
a.cc:8:41: error: extended character ‘ is not valid in an identifier
    8 |   if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
      |                                         ^
a.cc:8:41: error: extended character ’ is not valid in an identifier
a.cc:9:12: error: extended character “ is not valid in an identifier
    9 |    cout << “vowel” <<endl;
      |            ^
a.cc:9:12: error: extended character ” is not valid in an identifier
a.cc:12:10: error: extended character “ is not valid in an identifier
   12 |  cout << “consonant ” << endl;
      |          ^
a.cc:12:21: error: extended character ” is not valid in an identifier
   12 |  cout << “consonant ” << endl;
      |                     ^
a.cc: In function 'int main()':
a.cc:8:9: error: '\U00002018a\U00002019' was not declared in this scope
    8 |   if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
      |         ^~~
a.cc:8:17: error: '\U00002018i\U00002019' was not declared in this scope
    8 |   if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
      |                 ^~~
a.cc:8:25: error: '\U00002018u\U00002019' was not declared in this scope
    8 |   if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
      |                         ^~~
a.cc:8:33: error: '\U00002018e\U00002019' was not declared in this scope
    8 |   if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
      |                                 ^~~
a.cc:8:41: error: '\U00002018o\U00002019' was not declared in this scope
    8 |   if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
      |                                         ^~~
a.cc:9:12: error: '\U0000201cvowel\U0000201d' was not declared in this scope
    9 |    cout << “vowel” <<endl;
      |            ^~~~~~~
a.cc:12:10: error: '\U0000201cconsonant' was not declared in this scope
   12 |  cout << “consonant ” << endl;
      |          ^~~~~~~~~~
Language: C++

c = input().rstrip()
print('vowel' if c in 'aeiou' else 'consonant')


Compiler output:
a.cc:2:7: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    2 | print('vowel' if c in 'aeiou' else 'consonant')
      |       ^~~~~~~
a.cc:2:23: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    2 | print('vowel' if c in 'aeiou' else 'consonant')
      |                       ^~~~~~~
a.cc:2:36: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
    2 | print('vowel' if c in 'aeiou' else 'consonant')
      |                                    ^~~~~~~~~~~
a.cc:1:1: error: 'c' does not name a type
    1 | c = input().rstrip()
      | ^
Language: C++

#Include <iostream>
using namespace std;

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #Include; did you mean #include?
    1 | #Include <iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   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 | #Include <iostream>
a.cc:7:65: error: 'cout' was not declared in this scope
    7 |   if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o' ) cout << "vowel" << endl;
      |                                                                 ^~~~
a.cc:7:65: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:84: error: 'endl' was not declared in this scope
    7 |   if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o' ) 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 | #Include <iostream>
a.cc:8:8: error: 'cout' was not declared in this scope
    8 |   else cout << "consonant" << endl;
      |        ^~~~
a.cc:8:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:31: error: 'endl' was not declared in this scope
    8 |   else cout << "consonant" << endl;
      |                               ^~~~
a.cc:8:31: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:77: error: expected ';' before 'return'
    9 |   vowel.find(c) == string::npos ? (cout <<  "vowel") : (cout << "consonant")
      |                                                                             ^
      |                                                                             ;
   10 |   return 0;
      |   ~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:52: error: expected ')' before ';' token
    9 |   vowel.find(c) == string::npos ? (cout <<  "vowel";) : (cout << "consonant";)
      |                                   ~                ^
      |                                                    )
a.cc:9:52: error: expected ':' before ';' token
    9 |   vowel.find(c) == string::npos ? (cout <<  "vowel";) : (cout << "consonant";)
      |                                                    ^
      |                                                    :
a.cc:9:52: error: expected primary-expression before ';' token
a.cc:9:53: error: expected primary-expression before ')' token
    9 |   vowel.find(c) == string::npos ? (cout <<  "vowel";) : (cout << "consonant";)
      |                                                     ^
a.cc:9:78: error: expected primary-expression before ')' token
    9 |   vowel.find(c) == string::npos ? (cout <<  "vowel";) : (cout << "consonant";)
      |                                                                              ^
Language: C++

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

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


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

#include <stdio.h>
int main(void)
{
  char c;
  scanf("%c", &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:8:12: warning: missing terminating " character
    8 |     printf("vowel\n\");
      |            ^
main.c:8:12: error: missing terminating " character
    8 |     printf("vowel\n\");
      |            ^~~~~~~~~~~~
main.c:9:12: error: expected expression before '}' token
    9 |            }else{
      |            ^
main.c:8:12: error: expected ';' before '}' token
    8 |     printf("vowel\n\");
      |            ^
      |            ;
    9 |            }else{
      |            ~
Language: C

#include<stdio.h>

intmain(){
  char c[2];
  
  scanf("%s", c);
  
  if(c[0] == 'a' || c[0] == 'i' || c[0] == 'u' || c[0] == 'e' || c[0] == 'o'){
    printf("vowel\n");
  } else {
    printf("consonant\n");
  }
  
  return 0;
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | intmain(){
      | ^~~~~~~
Language: C++

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

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

      else  {cout <<"consonant"<<endl;
      
  // ここにプログラムを追記
}


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

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

int main() {
  char s;
  cin >> s;
      if(s== 'a'||s=='i'||s=='u'||s=='e'||s=='o'){cout<<"vowel"<<<endl;}
      else  { cout <<"consonant"<<endl;}
      
  // ここにプログラムを追記
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:66: error: expected primary-expression before '<' token
    7 |       if(s== 'a'||s=='i'||s=='u'||s=='e'||s=='o'){cout<<"vowel"<<<endl;}
      |                                                                  ^
Language: C++

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

int main() {
  char s;
  cin >> s;
      if(s== 'a'||s=='i'||s=='u'||s=='e'||s=='o')cout<<"vowel"<<<endl;
      else if {
           cout <<"consonant"<<endl;
      }
  // ここにプログラムを追記
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:65: error: expected primary-expression before '<' token
    7 |       if(s== 'a'||s=='i'||s=='u'||s=='e'||s=='o')cout<<"vowel"<<<endl;
      |                                                                 ^
a.cc:8:15: error: expected '(' before '{' token
    8 |       else if {
      |               ^
      |               (
Language: C++

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

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

  // ここにプログラムを追記
}


Compiler output:
a.cc:8:16: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
    8 | else if cout <<'consonant'<<endl;
      |                ^~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:60: error: expected primary-expression before '<' token
    7 |  if(s== 'a'||s=='i'||s=='u'||s=='e'||s=='o')cout<<"vowel"<<<endl;
      |                                                            ^
a.cc:8:9: error: expected '(' before 'cout'
    8 | else if cout <<'consonant'<<endl;
      |         ^~~~
      |         (
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'a' was not declared in this scope
    7 |   if (A==a||A==e||A==i||A==o||A==u){
      |          ^
a.cc:7:16: error: 'e' was not declared in this scope
    7 |   if (A==a||A==e||A==i||A==o||A==u){
      |                ^
a.cc:7:22: error: 'i' was not declared in this scope
    7 |   if (A==a||A==e||A==i||A==o||A==u){
      |                      ^
a.cc:7:28: error: 'o' was not declared in this scope
    7 |   if (A==a||A==e||A==i||A==o||A==u){
      |                            ^
a.cc:7:34: error: 'u' was not declared in this scope
    7 |   if (A==a||A==e||A==i||A==o||A==u){
      |                                  ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: no match for 'operator||' (operand types are 'char' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
    7 |     if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
      |            ~~~ ^~ ~
      |            |      |
      |            char   std::string {aka std::__cxx11::basic_string<char>}
a.cc:7:16: note: candidate: 'operator||(bool, bool)' (built-in)
    7 |     if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
      |            ~~~~^~~~
a.cc:7:16: note:   no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
a.cc:7:27: error: no match for 'operator||' (operand types are 'char' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
    7 |     if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
      |                       ~~~ ^~ ~
      |                       |      |
      |                       char   std::string {aka std::__cxx11::basic_string<char>}
a.cc:7:27: note: candidate: 'operator||(bool, bool)' (built-in)
    7 |     if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
      |                       ~~~~^~~~
a.cc:7:27: note:   no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
a.cc:7:38: error: no match for 'operator||' (operand types are 'char' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
    7 |     if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
      |                                  ~~~ ^~ ~
      |                                  |      |
      |                                  char   std::string {aka std::__cxx11::basic_string<char>}
a.cc:7:38: note: candidate: 'operator||(bool, bool)' (built-in)
    7 |     if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
      |                                  ~~~~^~~~
a.cc:7:38: note:   no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
a.cc:7:49: error: no match for 'operator||' (operand types are 'char' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
    7 |     if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
      |                                             ~~~ ^~ ~
      |                                             |      |
      |                                             char   std::string {aka std::__cxx11::basic_string<char>}
a.cc:7:49: note: candidate: 'operator||(bool, bool)' (built-in)
    7 |     if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
      |                                             ~~~~^~~~
a.cc:7:49: note:   no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: no match for 'operator||' (operand types are 'char' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
    6 |     if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
      |            ~~~ ^~ ~
      |            |      |
      |            char   std::string {aka std::__cxx11::basic_string<char>}
a.cc:6:16: note: candidate: 'operator||(bool, bool)' (built-in)
    6 |     if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
      |            ~~~~^~~~
a.cc:6:16: note:   no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
a.cc:6:27: error: no match for 'operator||' (operand types are 'char' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
    6 |     if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
      |                       ~~~ ^~ ~
      |                       |      |
      |                       char   std::string {aka std::__cxx11::basic_string<char>}
a.cc:6:27: note: candidate: 'operator||(bool, bool)' (built-in)
    6 |     if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
      |                       ~~~~^~~~
a.cc:6:27: note:   no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
a.cc:6:38: error: no match for 'operator||' (operand types are 'char' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
    6 |     if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
      |                                  ~~~ ^~ ~
      |                                  |      |
      |                                  char   std::string {aka std::__cxx11::basic_string<char>}
a.cc:6:38: note: candidate: 'operator||(bool, bool)' (built-in)
    6 |     if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
      |                                  ~~~~^~~~
a.cc:6:38: note:   no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
a.cc:6:49: error: no match for 'operator||' (operand types are 'char' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
    6 |     if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
      |                                             ~~~ ^~ ~
      |                                             |      |
      |                                             char   std::string {aka std::__cxx11::basic_string<char>}
a.cc:6:49: note: candidate: 'operator||(bool, bool)' (built-in)
    6 |     if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
      |                                             ~~~~^~~~
a.cc:6:49: note:   no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
Language: C++

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

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

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'a' was not declared in this scope
    8 |   if (c == a,i,u,e,o) {
      |            ^
a.cc:8:14: error: 'i' was not declared in this scope
    8 |   if (c == a,i,u,e,o) {
      |              ^
a.cc:8:16: error: 'u' was not declared in this scope
    8 |   if (c == a,i,u,e,o) {
      |                ^
a.cc:8:18: error: 'e' was not declared in this scope
    8 |   if (c == a,i,u,e,o) {
      |                  ^
a.cc:8:20: error: 'o' was not declared in this scope
    8 |   if (c == a,i,u,e,o) {
      |                    ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'strin' was not declared in this scope; did you mean 'stdin'?
    4 |   strin s;
      |   ^~~~~
      |   stdin
a.cc:5:6: error: 's' was not declared in this scope
    5 |   if(s == "a" || s == "i" || s == "u" || s == "e" || s == "o") {
      |      ^
Language: C++

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

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

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'a' was not declared in this scope
    8 |   if (c==a,i,u,e,o) {
      |          ^
a.cc:8:12: error: 'i' was not declared in this scope
    8 |   if (c==a,i,u,e,o) {
      |            ^
a.cc:8:14: error: 'u' was not declared in this scope
    8 |   if (c==a,i,u,e,o) {
      |              ^
a.cc:8:16: error: 'e' was not declared in this scope
    8 |   if (c==a,i,u,e,o) {
      |                ^
a.cc:8:18: error: 'o' was not declared in this scope
    8 |   if (c==a,i,u,e,o) {
      |                  ^
Language: C++

#include <cstdio>

int main()
{	
	char C;

	scanf("%c",&C);
	if(C=='a'||C=='i'||C=='u'||C=='e'||C=='o'&&'a'<=&&'z'>=C){
		printf("vowel");}
	else{
		printf("consonat");}

	return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:59: error: expected identifier before 'z'
    8 |         if(C=='a'||C=='i'||C=='u'||C=='e'||C=='o'&&'a'<=&&'z'>=C){
      |                                                           ^~~
a.cc:8:59: error: expected ')' before 'z'
    8 |         if(C=='a'||C=='i'||C=='u'||C=='e'||C=='o'&&'a'<=&&'z'>=C){
      |           ~                                               ^~~
      |                                                           )
Language: C++

#include <cstdio>

int main()
{	
	char X;
	scanf("%c",&X);
	if(X=='a'||X=='i'||X=='u'||X=='e'||X=='o'){
		printf("vowel");}
	else{
		printf("consonat");}

	r

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'r' was not declared in this scope
   12 |         r
      |         ^
a.cc:12:10: error: expected '}' at end of input
   12 |         r
      |          ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:42: error: lvalue required as left operand of assignment
    9 |         if(c=='a'||c=='e'||c=='i'||c=='o'||c='u'){
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
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: In function 'int main()':
a.cc:8:16: error: switch quantity not an integer
    8 |         switch(s){
      |                ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: expected unqualified-id before '>>' token
    6 |   int >>a;
      |       ^~
Language: C++

#include<stdio.h>
#include<stdlib.h>
int main(){
	int c,a,e,i,o,u;
	scanf("%c",&c);
	if(c=getchar()=a,e,i,o,u){
		printf("vowel");
	}else{
		printf("consonant");
	}
	system("pause");
}

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

#include <stdio.h>

int main() {
	char c;
	scanf ("%c",&c);
	if (c==a) {
	printf("vowel\n");
	} else if (c==e) {
	  printf ("vowel\n");
	} else if (c==i) {
	  printf ("vowel\n") ;
	} else if (c==o) {
		printf("vowel\n"); }
		else if (c==u) {
		printf("vowel\n");
		} else  {
		printf ("consonant\n");
		 }
		return 0;
 }    


Compiler output:
main.c: In function 'main':
main.c:6:16: error: 'a' undeclared (first use in this function)
    6 |         if (c==a) {
      |                ^
main.c:6:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:23: error: 'e' undeclared (first use in this function)
    8 |         } else if (c==e) {
      |                       ^
main.c:10:23: error: 'i' undeclared (first use in this function)
   10 |         } else if (c==i) {
      |                       ^
main.c:12:23: error: 'o' undeclared (first use in this function)
   12 |         } else if (c==o) {
      |                       ^
main.c:14:29: error: 'u' undeclared (first use in this function)
   14 |                 else if (c==u) {
      |                             ^
Language: C

#include <stdio.h>

int main() {
	char c;
	scanf ("%c",&c);
	if (c=='a') {
	printf("vowel\n");
	} else if (c=='e') {
	  printf ("vowel\n");
	} else if (c=='i') {
	  printf ("vowel\n") ;
	} else if （c=='o') {
		printf("vowel\n"); }
		else if (c=='u') {
		printf("vowel\n");
		} else  {
		printf ("consonant\n");
		 }
		return 0;
 }    


Compiler output:
main.c: In function 'main':
main.c:12:19: error: expected '(' before '\U0000ff08c'
   12 |         } else if （c=='o') {
      |                   ^~~
      |                   (
main.c:12:19: error: '\U0000ff08c' undeclared (first use in this function)
   12 |         } else if （c=='o') {
      |                   ^~~
main.c:12:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:27: error: expected statement before ')' token
   12 |         } else if （c=='o') {
      |                           ^
main.c:14:17: error: 'else' without a previous 'if'
   14 |                 else if (c=='u') {
      |                 ^~~~
Language: Java

import java.util.*;
public class Vowel {

	public static void main(String[] args) {
		// TODO 自动生成的方法存根
		Scanner sc=new Scanner(System.in);
	    String c=sc.nextLine();
	    switch(c) {
	    case "a":
	    	System.out.println("vowel");
	    	break;
	    case "e":
	    	System.out.println("vowel");
            break;
	    case "i":
	    	System.out.println("vowel");
	    	break;
	    case "o":
	    	System.out.println("vowel");
	    	break;
	    case "u":
	    	System.out.println("vowel");
	    	break;
	    default:
	    	System.out.println("consonant");
	    }

	}

}


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

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

Compiler output:
a.cc:1:30: warning: extra tokens at end of #include directive
    1 | #include<bits/stdc++.h>using namespace std;int main(){    char a;cin>>a;    if(a=='a'||a=='e'||a=='i'||a=='o'||a=='u')cout<<"vowel";else cout<<"consonant";return 0;}
      |                              ^~~~~~~~~
a.cc:1:9: fatal error: bits/stdc++.h>usin: No such file or directory
    1 | #include<bits/stdc++.h>using namespace std;int main(){    char a;cin>>a;    if(a=='a'||a=='e'||a=='i'||a=='o'||a=='u')cout<<"vowel";else cout<<"consonant";return 0;}
      |         ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'a' was not declared in this scope
    7 |     if(n==a||a==e||a==i||a==o||a==u)
      |           ^
a.cc:7:17: error: 'e' was not declared in this scope
    7 |     if(n==a||a==e||a==i||a==o||a==u)
      |                 ^
a.cc:7:23: error: 'i' was not declared in this scope
    7 |     if(n==a||a==e||a==i||a==o||a==u)
      |                       ^
a.cc:7:29: error: 'o' was not declared in this scope
    7 |     if(n==a||a==e||a==i||a==o||a==u)
      |                             ^
a.cc:7:35: error: 'u' was not declared in this scope
    7 |     if(n==a||a==e||a==i||a==o||a==u)
      |                                   ^
a.cc:11:9: error: expected primary-expression before '.' token
   11 |     else.
      |         ^
a.cc:12:5: error: expected unqualified-id before '{' token
   12 |     {
      |     ^
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: 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);
      |            ^~~~~~~