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

#include <iostream>

using namespace std;

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

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:36: error: no match for 'operator||' (operand types are 'bool' and 'std::__cxx11::basic_string<char>')
    9 |     if((s=="a")||(s=="o")||(s=="u")||(s="e")||(s=="i")) cout << ("vowel");
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
      |                          |             |
      |                          bool          std::__cxx11::basic_string<char>
a.cc:9:36: note: candidate: 'operator||(bool, bool)' (built-in)
    9 |     if((s=="a")||(s=="o")||(s=="u")||(s="e")||(s=="i")) cout << ("vowel");
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
a.cc:9:36: note:   no known conversion for argument 2 from 'std::__cxx11::basic_string<char>' to 'bool'
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;
  }
  return 0;
}


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

#include<stdio.h>
#include<math.h>
#include<limits.h>
#include<assert.h>
#include<stdbool.h>
#include<stddef.h>
#include<stdint.h>
#include<string.h>
#include<unistd.h>
#include<stdlib.h>
#include<ctype.h>
#include<time.h>
int main(){
char c;
scanf("%c",c); c=tolower(c);
if(c=='a'||c=='e'||c=='i'|| c=='o'|| c=='u')?
    printf("vowel");
  else printf("consonant");
    return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:45: error: expected primary-expression before '?' token
   16 | if(c=='a'||c=='e'||c=='i'|| c=='o'|| c=='u')?
      |                                             ^
a.cc:17:20: error: expected ':' before ';' token
   17 |     printf("vowel");
      |                    ^
      |                    :
a.cc:17:20: error: expected primary-expression before ';' token
Language: C++

#include<stdio.h>
#include<math.h>

int main(){
char c;
scanf("%c",c);
c=tolower(c);
printf((c=='a'||c=='e'||c=='i'|| c=='o'|| c=='u')?"vowel":"consonant");
return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'tolower' was not declared in this scope; did you mean 'totalorder'?
    7 | c=tolower(c);
      |   ^~~~~~~
      |   totalorder
Language: C++

#include<stdio.h>
#include<math.h>
#include<limits.h>
#include<assert.h>
#include<stdbool.h>
#include<stddef.h>
#include<stdint.h>
#include<string.h>
#include<unistd.h>
#include<stdlib.h>
#include<cstdio.h>
#include<cstdlib.h>
#include<ctype.h>
#include<time.h>
int main(){
char c;
scanf("%c",c);
c=tolower(c);
printf((c=='a'||c=='e'||c=='i'|| c=='o'|| c=='u')?"vowel":"consonant");
return 0;}

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

#include<stdio.h>
#include<math.h>
#include<limits.h>
#include<assert.h>
#include<stdbool.h>
#include<stddef.h>
#include<stdint.h>
#include<string.h>
#include<unistd.h>
#include<stdlib.h>
#include<cstdio.h>
#include<cstdlib.h>
#include<ctype.h>
#include<time.h>
int main(){
char c;
scanf("%c",c);
printf((c=='a'||c=='e'||c=='i'|| c=='o'|| c=='u'||c=='A'||c=='E'||c=='O'||c=='I'||c=='U')?"vowel":"consonant");

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: expected '}' at end of input
   10 | return 0;
      |          ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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


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

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

int main() {
  string str = "Hello";

  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:11:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if(c == "a" || c=="i" || c== "u" || c=="e" ||c=="o"){
      |      ~~^~~~~~
a.cc:11:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if(c == "a" || c=="i" || c== "u" || c=="e" ||c=="o"){
      |                  ~^~~~~
a.cc:11:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if(c == "a" || c=="i" || c== "u" || c=="e" ||c=="o"){
      |                            ~^~~~~~
a.cc:11:40: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if(c == "a" || c=="i" || c== "u" || c=="e" ||c=="o"){
      |                                       ~^~~~~
a.cc:11:49: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if(c == "a" || c=="i" || c== "u" || c=="e" ||c=="o"){
      |                                                ~^~~~~
Language: C++

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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'elseif' was not declared in this scope
   11 |     elseif (c.at(0) == 'i') {
      |     ^~~~~~
a.cc:23:4: error: 'else' without a previous 'if'
   23 |    else
      |    ^~~~
a.cc: At global scope:
a.cc:33:1: error: expected declaration before '}' token
   33 | }
      | ^
Language: C++

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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: 'vowel' was not declared in this scope
    9 |   cout << vowel << endl;
      |           ^~~~~
a.cc:11:5: error: 'elseif' was not declared in this scope
   11 |     elseif (c.at(0) == 'i') {
      |     ^~~~~~
a.cc:23:4: error: 'else' without a previous 'if'
   23 |    else
      |    ^~~~
a.cc:24:11: error: 'consonant' was not declared in this scope
   24 |   cout << consonant << endl;
      |           ^~~~~~~~~
a.cc: At global scope:
a.cc:33:1: error: expected declaration before '}' token
   33 | }
      | ^
Language: C++

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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'S' was not declared in this scope
    8 |     if (S.at(0) == 'a') {
      |         ^
a.cc:9:11: error: 'vowel' was not declared in this scope
    9 |   cout << vowel << endl;
      |           ^~~~~
a.cc:11:13: error: 'S' was not declared in this scope
   11 |     elseif (S.at(0) == 'i') {
      |             ^
a.cc:11:5: error: 'elseif' was not declared in this scope
   11 |     elseif (S.at(0) == 'i') {
      |     ^~~~~~
a.cc:23:4: error: 'else' without a previous 'if'
   23 |    else
      |    ^~~~
a.cc:24:11: error: 'consonant' was not declared in this scope
   24 |   cout << consonant << endl;
      |           ^~~~~~~~~
a.cc: At global scope:
a.cc:33:1: error: expected declaration before '}' token
   33 | }
      | ^
Language: C++

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

int main(){

char c;
cin >> N;

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

}

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

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

int main(){

char c;
cin >> N;

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'N' was not declared in this scope
    7 | cin >> N;
      |        ^
a.cc:9:9: error: 'a' was not declared in this scope
    9 |   if(c==a,i,u,e,o){
      |         ^
a.cc:9:11: error: 'i' was not declared in this scope
    9 |   if(c==a,i,u,e,o){
      |           ^
a.cc:9:13: error: 'u' was not declared in this scope
    9 |   if(c==a,i,u,e,o){
      |             ^
a.cc:9:15: error: 'e' was not declared in this scope
    9 |   if(c==a,i,u,e,o){
      |               ^
a.cc:9:17: error: 'o' was not declared in this scope
    9 |   if(c==a,i,u,e,o){
      |                 ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: unable to find character literal operator 'operator""or' with 'char' argument
    7 |     if(alplabetchar=='e'or alplabetchar=='0'or alplabetchar=='a'or alplabetchar=='i'or alplabetchar=='u')
      |                      ^~~~~
a.cc:7:27: error: expected ')' before 'alplabetchar'
    7 |     if(alplabetchar=='e'or alplabetchar=='0'or alplabetchar=='a'or alplabetchar=='i'or alplabetchar=='u')
      |       ~                   ^~~~~~~~~~~~~
      |                           )
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:43: error: expected ';' before '{' token
    7 | if(c=="a" &&c=="u"&&c=="e"&&c=="o"&&c=="i"{
      |                                           ^
      |                                           ;
a.cc:9:1: error: expected primary-expression before 'else'
    9 | else cout<<"consonant";
      | ^~~~
a.cc:8:16: error: expected ')' before 'else'
    8 | cout<<"vowel";}
      |                ^
      |                )
    9 | else cout<<"consonant";
      | ~~~~            
a.cc:7:3: note: to match this '('
    7 | if(c=="a" &&c=="u"&&c=="e"&&c=="o"&&c=="i"{
      |   ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ')' before ';' token
    8 | cout<<"vowel";}
      |              ^
      |              )
a.cc:7:3: note: to match this '('
    7 | if(c=="a" &&c=="u"&&c=="e"&&c=="o"&&c=="i";
      |   ^
a.cc: At global scope:
a.cc:9:1: error: expected unqualified-id before 'else'
    9 | else cout<<"consonant";
      | ^~~~
a.cc:10:2: error: expected unqualified-id before 'return'
   10 |  return 0;
      |  ^~~~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

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

int main() {
  string S;
  cin  >> S;
  if(S == "a" || S == "b" || S == "c" || S == "d" || S == "e"){
    cout << "vowel" << endl;
  }else{
    cout << "consonant" << endl; 
}

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

#include <iostream>
using namespace std;

char c;
cin >> c;

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


Compiler output:
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >> c;
      | ^~~
Language: C++

#include <iostream>
using namespace std;

char c;
cin >> c;

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


Compiler output:
a.cc:9:10: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    9 |  cout << 'vowel' << endl;
      |          ^~~~~~~
a.cc:12:9: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
   12 | cout << 'consonant' << endl;
      |         ^~~~~~~~~~~
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >> c;
      | ^~~
Language: C++

#include <iostream>
using namespace std;

char c;
cin >> c;

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


Compiler output:
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >> c;
      | ^~~
a.cc: In function 'int main()':
a.cc:11:10: error: 'vowel' was not declared in this scope
   11 |  cout << vowel << endl;
      |          ^~~~~
a.cc:14:9: error: 'consonant' was not declared in this scope
   14 | cout << consonant << endl;
      |         ^~~~~~~~~
Language: C++

#include <iostream>
using namespace std;

char c;
cin >> c;

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


Compiler output:
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >> c;
      | ^~~
a.cc: In function 'int main()':
a.cc:8:10: error: 'a' was not declared in this scope
    8 | if (c == a || c == i || c == u || c == e || c == o) {
      |          ^
a.cc:8:20: error: 'i' was not declared in this scope
    8 | if (c == a || c == i || c == u || c == e || c == o) {
      |                    ^
a.cc:8:30: error: 'u' was not declared in this scope
    8 | if (c == a || c == i || c == u || c == e || c == o) {
      |                              ^
a.cc:8:40: error: 'e' was not declared in this scope
    8 | if (c == a || c == i || c == u || c == e || c == o) {
      |                                        ^
a.cc:8:50: error: 'o' was not declared in this scope
    8 | if (c == a || c == i || c == u || c == e || c == o) {
      |                                                  ^
a.cc:9:10: error: 'vowel' was not declared in this scope
    9 |  cout << vowel << endl;
      |          ^~~~~
a.cc:12:9: error: 'consonant' was not declared in this scope
   12 | cout << consonant << endl;
      |         ^~~~~~~~~
Language: C++

#include <iostream>
using namespace std;

int c;
cin >> c;

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


Compiler output:
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >> c;
      | ^~~
a.cc: In function 'int main()':
a.cc:8:10: error: 'a' was not declared in this scope
    8 | if (c == a || c == i || c == u || c == e || c == o) {
      |          ^
a.cc:8:20: error: 'i' was not declared in this scope
    8 | if (c == a || c == i || c == u || c == e || c == o) {
      |                    ^
a.cc:8:30: error: 'u' was not declared in this scope
    8 | if (c == a || c == i || c == u || c == e || c == o) {
      |                              ^
a.cc:8:40: error: 'e' was not declared in this scope
    8 | if (c == a || c == i || c == u || c == e || c == o) {
      |                                        ^
a.cc:8:50: error: 'o' was not declared in this scope
    8 | if (c == a || c == i || c == u || c == e || c == o) {
      |                                                  ^
a.cc:9:10: error: 'vowel' was not declared in this scope
    9 |  cout << vowel << endl;
      |          ^~~~~
a.cc:12:9: error: 'consonant' was not declared in this scope
   12 | cout << consonant << endl;
      |         ^~~~~~~~~
Language: C++

#include <iostream>

using namespace std;

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

    return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin << B;
      |   ^~~
a.cc:7:6: error: 'B' was not declared in this scope
    7 |   if(B == 'a' || B == 'i' || B == 'u' || B == 'e' || B == 'o'){
      |      ^
Language: C++

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

}

Compiler output:
a.cc:4:1: error: expected unqualified-id before '{' token
    4 | {
      | ^
Language: C++

#include <iostream>

using namespace std;

int main()

{
   string x ;
   cout <<"please enter the letter " << endl;
cin >> x ;
   if {
        x == "a" || x == "e" || x == "i" || x == "o" || x == "o" endl;
    cout << "vowel" << endl;
   else
    cout << "consonant" << endl;
   }
    return 0;
}


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: 'consonant' was not declared in this scope
   13 |   else cout << consonant << endl;
      |                ^~~~~~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: 'consonant' was not declared in this scope
   13 |   else cout << consonant << endl;
      |                ^~~~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:102: error: expected '}' at end of input
    7 |   cout << ((a == "a" || a == "i" || a == "u" || a == "e" || a == "o") ? "vowel":"consonant") << endl;
      |                                                                                                      ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(c== "a" || c== "i" || c=="u" || c=="e" || c=="o"){
      |      ~^~~~~~
a.cc:7:18: 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:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(c== "a" || c== "i" || c=="u" || c=="e" || c=="o"){
      |                            ~^~~~~
a.cc:7:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(c== "a" || c== "i" || c=="u" || c=="e" || c=="o"){
      |                                      ~^~~~~
a.cc:7:49: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(c== "a" || c== "i" || c=="u" || c=="e" || c=="o"){
      |                                                ~^~~~~
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(c=="a" || c=="i" || c=="u" || e=="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" || e=="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" || e=="e" || c=="o"){
      |                          ~^~~~~
a.cc:7:36: error: 'e' was not declared in this scope
    7 |   if(c=="a" || c=="i" || c=="u" || e=="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" || e=="e" || c=="o"){
      |                                              ~^~~~~
Language: C++

char c;
cin >> c;
const string vowel = "aeiou";
cout << vowel.find(c) == string::npos?  "vowel" :"consonant" << endl;


Compiler output:
a.cc:2:1: error: 'cin' does not name a type
    2 | cin >> c;
      | ^~~
a.cc:3:7: error: 'string' does not name a type
    3 | const string vowel = "aeiou";
      |       ^~~~~~
a.cc:4:1: error: 'cout' does not name a type
    4 | cout << vowel.find(c) == string::npos?  "vowel" :"consonant" << endl;
      | ^~~~
Language: C++

char c;
cin >> c;
const string vowel = "aeiou";
cout << vowel.find(c) == string::npos? "consonant" << endl;

Compiler output:
a.cc:2:1: error: 'cin' does not name a type
    2 | cin >> c;
      | ^~~
a.cc:3:7: error: 'string' does not name a type
    3 | const string vowel = "aeiou";
      |       ^~~~~~
a.cc:4:1: error: 'cout' does not name a type
    4 | cout << vowel.find(c) == string::npos? "consonant" << endl;
      | ^~~~
Language: C++

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

      
    }

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

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

      
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: 'a' was not declared in this scope
    9 |       if (n == a || n == i || n == u || n == e || n == o) {
      |                ^
a.cc:9:26: error: 'i' was not declared in this scope
    9 |       if (n == a || n == i || n == u || n == e || n == o) {
      |                          ^
a.cc:9:36: error: 'u' was not declared in this scope
    9 |       if (n == a || n == i || n == u || n == e || n == o) {
      |                                    ^
a.cc:9:46: error: 'e' was not declared in this scope
    9 |       if (n == a || n == i || n == u || n == e || n == o) {
      |                                              ^
a.cc:9:56: error: 'o' was not declared in this scope
    9 |       if (n == a || n == i || n == u || n == e || n == o) {
      |                                                        ^
Language: C++

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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:15:27: error: 'ensl' was not declared in this scope
   15 |     cout << "consonant" <<ensl;
      |                           ^~~~
Language: C++

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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: 'vowel' was not declared in this scope
    9 |     cout<< vowel<< endl;
      |            ^~~~~
a.cc:11:12: error: 'vowel' was not declared in this scope
   11 |     cout<< vowel<< endl;
      |            ^~~~~
a.cc:13:11: error: 'vowel' was not declared in this scope
   13 |     cout<<vowel<< endl;
      |           ^~~~~
a.cc:15:13: error: 'consonant' was not declared in this scope
   15 |     cout << consonant <<ensl;
      |             ^~~~~~~~~
a.cc:15:25: error: 'ensl' was not declared in this scope
   15 |     cout << consonant <<ensl;
      |                         ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | cin>>a;
      | ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<cstdio>
  +++ |+#include <iostream>
    2 | using namespace std;
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected unqualified-id before '=' token
    6 |     char = c;
      |          ^
a.cc:7:12: error: 'c' was not declared in this scope
    7 |     cin >> c;
      |            ^
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected unqualified-id before '=' token
    6 |     char = c;
      |          ^
a.cc:7:12: error: 'c' was not declared in this scope
    7 |     cin >> c;
      |            ^
a.cc:8:46: error: expected ')' before '{' token
    8 |     if(c == ('a' || 'e' || 'i' || 'o' || 'u'){
      |       ~                                      ^
      |                                              )
a.cc:14:1: error: expected primary-expression before '}' token
   14 | }
      | ^
Language: C++

#include <iostream>

using namespace std;

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

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

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected unqualified-id before '=' token
    6 |     char = c;
      |          ^
a.cc:7:12: error: 'c' was not declared in this scope
    7 |     cin >> c;
      |            ^
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected unqualified-id before '=' token
    6 |     char = c;
      |          ^
a.cc:7:12: error: 'c' was not declared in this scope
    7 |     cin >> c;
      |            ^
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected unqualified-id before '=' token
    6 |     char = c;
      |          ^
a.cc:8:12: error: 'c' was not declared in this scope
    8 |     cin >> c;
      |            ^
a.cc:9:19: error: expected primary-expression before ']' token
    9 |     if(c == vowel[]){
      |                   ^
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected unqualified-id before '=' token
    6 |     char = c;
      |          ^
a.cc:7:21: error: expected identifier before string constant
    7 |     string vowel = ["a", "e", "i", "o", "u"];
      |                     ^~~
a.cc:7:24: error: expected ']' before ',' token
    7 |     string vowel = ["a", "e", "i", "o", "u"];
      |                        ^
      |                        ]
a.cc: In lambda function:
a.cc:7:24: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:7:20: error: conversion from 'main()::<lambda()>' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    7 |     string vowel = ["a", "e", "i", "o", "u"];
      |                    ^~~~
a.cc:7:26: error: expected unqualified-id before string constant
    7 |     string vowel = ["a", "e", "i", "o", "u"];
      |                          ^~~
a.cc:8:12: error: 'c' was not declared in this scope
    8 |     cin >> c;
      |            ^
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected unqualified-id before '=' token
    6 |     char = c;
      |          ^
a.cc:7:25: error: expected unqualified-id before string constant
    7 |     string vowel = "a", "e", "i", "o", "u";
      |                         ^~~
a.cc:8:12: error: 'c' was not declared in this scope
    8 |     cin >> c;
      |            ^
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected unqualified-id before '=' token
    6 |     char = c;
      |          ^
a.cc:7:18: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    7 |     char vowel = "a", "e", "i", "o", "u";
      |                  ^~~
      |                  |
      |                  const char*
a.cc:7:23: error: expected unqualified-id before string constant
    7 |     char vowel = "a", "e", "i", "o", "u";
      |                       ^~~
a.cc:8:12: error: 'c' was not declared in this scope
    8 |     cin >> c;
      |            ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
     char  ch;
  cin>>ch;
  if (ch=='a' or ch=='o' or ch=='e'or ch=='i' or ch=='u'){
    cout<<"vowel. ";

  }
  else {
    cout<<"consonant.";
  }
    return 0;
}


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

#include <iostream>

using namespace std;

int main()
{
     char  str;
  cin>>str;
  if (str=='a' or str=='o' or str=='e'or str=='i' or str=='u'){
    cout<<"vowel. ";

  }
  else {
    cout<<"consonant.";
  }
    return 0;
}


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

#include <iostream>

using namespace std;

int main()
{
     char  str;
  cin>>str;
  if (str=='a' or str=='o' or str=='e'or str=='i' or str=='u'){
    cout<<"vouel";

  }
  else {
    cout<<"constant";
  }
    return 0;
}


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

#include <iostream>
#include <string>
using namespace std;
char x;
char z[]={'a','e','u','i','o'};
int main(){
   cin>>x;
    int c=0;
    for(int i=0;i<=4;i++) {
        if (z[i] == x) {
            c += 1
        }
    }
    if(c>0){
        cout<<"vowel"<<endl;
    } else{
        cout<<"consonant"<<endl;
    }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: expected ';' before '}' token
   11 |             c += 1
      |                   ^
      |                   ;
   12 |         }
      |         ~
Language: C++

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


}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 | if (a=='a' || a=="u")
      |               ~^~~~~
Language: C++

#include <iostream>

using namespace std;

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



    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: 'asd' was not declared in this scope
    9 |   if(asd=='a' || asd=='e' || letter=='i' || letter == 'u' || letter == 'o'){
      |      ^~~
Language: C++

#include <iostream>

using namespace std;

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



    return 0;
}


Compiler output:
a.cc:9:40: warning: multi-character character constant [-Wmultichar]
    9 |   if(letter=='a'|| etter=='e'||letter=='i '||letter =='u'||letter =='o'){
      |                                        ^~~~
a.cc: In function 'int main()':
a.cc:9:20: error: 'etter' was not declared in this scope; did you mean 'letter'?
    9 |   if(letter=='a'|| etter=='e'||letter=='i '||letter =='u'||letter =='o'){
      |                    ^~~~~
      |                    letter
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: expected ';' before '}' token
   12 | return 0
      |         ^
      |         ;
   13 | }
      | ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'vowel' was not declared in this scope
    8 |     cout<< vowel<< endl;
      |            ^~~~~
a.cc:10:8: error: 'consonant' was not declared in this scope
   10 | cout<< consonant<< endl;
      |        ^~~~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'o' was not declared in this scope
    7 | if ( c==o || c==e || c==i || c==u || c==a )
      |         ^
a.cc:7:17: error: 'e' was not declared in this scope
    7 | if ( c==o || c==e || c==i || c==u || c==a )
      |                 ^
a.cc:7:25: error: 'i' was not declared in this scope
    7 | if ( c==o || c==e || c==i || c==u || c==a )
      |                         ^
a.cc:7:33: error: 'u' was not declared in this scope
    7 | if ( c==o || c==e || c==i || c==u || c==a )
      |                                 ^
a.cc:7:41: error: 'a' was not declared in this scope
    7 | if ( c==o || c==e || c==i || c==u || c==a )
      |                                         ^
a.cc:8:11: error: 'vowel' was not declared in this scope
    8 |     cout<<vowel<<endl;
      |           ^~~~~
a.cc:10:11: error: 'consonant' was not declared in this scope
   10 |     cout<<consonant<<endl;
      |           ^~~~~~~~~
Language: C++

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

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

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

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

}


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

#include <iostream> 

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'string' was not declared in this scope
    4 |         string a ;
      |         ^~~~~~
a.cc:4:9: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin >> a ;
      |         ^~~
      |         std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:16: error: 'a' was not declared in this scope
    5 |         cin >> a ;
      |                ^
a.cc:7:17: 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:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |                 cout << "vowel" << endl;
      |                                    ^~~~
      |                                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |                 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:10:40: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |                 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: Java

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int hight = sc.nextInt();
		int wide = sc.nextInt();
		for (int i = 0; i < hight; i++) {
			String output = sc.next();
			System.out.print("\n" + output);
			System.out.print("\n" + output);
		}
		sc.close();
	}
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'vowel' was not declared in this scope
    8 |     cout << vowel << endl;
      |             ^~~~~
a.cc:11:13: error: 'consonant' was not declared in this scope
   11 |     cout << consonant << endl;
      |             ^~~~~~~~~