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

#include<stdio.h>

int main()
{
	char c;
	scanf_s("%c", &c);
	switch (c)
	{
	case 'a':
	case 'i':
	case 'u':
	case 'e':
	case 'o':
		printf("voewl");
		break;
	default:
		printf("consonant");
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 |         scanf_s("%c", &c);
      |         ^~~~~~~
      |         scanf
Language: C++

#include<stdio.h>

void main()
{
	char c;
	int t = scanf_s("%c", &c);
	switch (c)
	{
	case 'a':
	case 'i':
	case 'u':
	case 'e':
	case 'o':
		printf("voewl");
		break;
	default:
		printf("consonant");
	}
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 |         int t = scanf_s("%c", &c);
      |                 ^~~~~~~
      |                 scanf
Language: C++

#include<stdio.h>
 
void main()
{
  char c;
  scanf("%c",&c);
  switch(c)
  {
    case 'a':
    case 'e':
    case 'i':
    case 'o':
    case 'u':
    printf("voewl");
     break;
    default:
     printf("consonant");
  }
}

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

#include<stdio.h>
 
void main()
{
  char c;
  int tmp =
  scanf("%c",&c);
  switch(c)
  {
    case 'a':
    case 'i':
    case 'u':
    case 'e':
    case 'o':
    printf("voewl");
     break;
    default:
     printf("consonant");
  }
}

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

#include<stdio.h>
 
void main()
{
  char c;
  scanf_s("%c",&c);
  switch(c)
  {
    case 'a':
    case 'i':
    case 'u':
    case 'e':
    case 'o':
    printf("voewl");
     break;
    default:
     printf("consonant");
  }
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 |   scanf_s("%c",&c);
      |   ^~~~~~~
      |   scanf
Language: C++

#include<stdio.h>
 
void main()
{
  char c;
  scanf("%c",&c);
  switch(c)
  {
    case 'a':
    case 'i':
    case 'u':
    case 'e':
    case 'o':
    printf("voewl");
     break;
    default:
     printf("consonant");
  }
}

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

#include<stdio.h>
 
void main()
{
  char c;
  scanf_s("%c",&c);
  switch(c)
  {
    case 'a':
    case 'i':
    case 'u':
    case 'e':
    case 'o':
    printf("voewl");
     break;
    default:
     printf("consonant");
  }
}

Compiler output:
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |   scanf_s("%c",&c);
      |   ^~~~~~~
      |   scanf
Language: C

#include<stdio.h>
 
void main()
{
  char c;
  scanf(%c,&c);
  switch(c)
  {
    case 'a':
    case 'i':
    case 'u':
    case 'e':
    case 'o':
    printf("voewl");
     break;
    default:
     printf("consonant");
  }
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: expected expression before '%' token
    6 |   scanf(%c,&c);
      |         ^
Language: C++

#include<stdio.h>

void main()
{
  char c;
  scanf(%c,&c);
  switch(c)
  {
    case 'a':
    case 'i':
    case 'u':
    case 'e':
    case 'o':
    printf("voewl");
     break;
    default:
     printf("consonant");
  }
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:9: error: expected primary-expression before '%' token
    6 |   scanf(%c,&c);
      |         ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:15: error: 'a' was not declared in this scope
    4 |   scanf("%s",&a);
      |               ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:15: error: 'a' was not declared in this scope
    4 |   scanf("%s",&a);
      |               ^
a.cc:5:13: error: 'i' was not declared in this scope
    5 |   if(x = a||i||u||e||o) printf("vowel");
      |             ^
a.cc:5:16: error: 'u' was not declared in this scope
    5 |   if(x = a||i||u||e||o) printf("vowel");
      |                ^
a.cc:5:19: error: 'e' was not declared in this scope
    5 |   if(x = a||i||u||e||o) printf("vowel");
      |                   ^
a.cc:5:22: error: 'o' was not declared in this scope
    5 |   if(x = a||i||u||e||o) printf("vowel");
      |                      ^
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;
  }
}
#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:17:5: error: redefinition of 'int main()'
   17 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
Language: C++

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

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

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


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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: expected unqualified-id before '==' token
    8 |       if (char == 'a' || char == 'i' || char == 'u' || char == 'e' || char == 'o') {
      |                ^~
a.cc: At global scope:
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
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:68: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    8 | if(c == 'a' ||c == 'i' ||c == 'u' ||c == 'e' ||c == 'o') { cout << 'vowel' << endl; }
      |                                                                    ^~~~~~~
a.cc: In function 'int main()':
a.cc:9:17: error: 'consonant' was not declared in this scope
    9 |   else {cout << consonant << endl;}
      |                 ^~~~~~~~~
Language: C++

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

int main() {
    ios::sync_with_stdio(false);
    cin.tie(NULL);
    //string c;
    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:12:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     if (c == "a" || c == "e" || c == "i" || c == "u" || c == "o") {
      |         ~~^~~~~~
a.cc:12:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     if (c == "a" || c == "e" || c == "i" || c == "u" || c == "o") {
      |                     ~~^~~~~~
a.cc:12:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     if (c == "a" || c == "e" || c == "i" || c == "u" || c == "o") {
      |                                 ~~^~~~~~
a.cc:12:47: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     if (c == "a" || c == "e" || c == "i" || c == "u" || c == "o") {
      |                                             ~~^~~~~~
a.cc:12:59: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     if (c == "a" || c == "e" || c == "i" || c == "u" || c == "o") {
      |                                                         ~~^~~~~~
Language: C++

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

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


Compiler output:
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

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

int main(){
  set<char> s{'a', 'i', 'u', 'e', 'o'};
  char ch;
  cin >> ch;
  
  set<char>::iterator it = s.find(ch);
  if (it = s.end())
    cout << "consonant" << endl;
  else 
    cout << "vowel" << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: could not convert '(it = s.std::set<char>::end())' from 'std::set<char>::iterator' {aka 'std::_Rb_tree<char, char, std::_Identity<char>, std::less<char>, std::allocator<char> >::const_iterator'} to 'bool'
   11 |   if (it = s.end())
      |       ~~~^~~~~~~~~
      |          |
      |          std::set<char>::iterator {aka std::_Rb_tree<char, char, std::_Identity<char>, std::less<char>, std::allocator<char> >::const_iterator}
Language: C++

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

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

Compiler output:
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin >> s;
      |   ^~~
a.cc:7:3: error: expected unqualified-id before 'if'
    7 |   if (s =="a" || s == "e" || s == "i" || s == "o" || s == "u"){
      |   ^~
a.cc:10:3: error: expected unqualified-id before 'else'
   10 |   else {
      |   ^~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 1; i < S.size(); i++)

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'a' was not declared in this scope
    8 |   if(ans == a){
      |             ^
a.cc:11:13: error: 'e' was not declared in this scope
   11 |   if(ans == e){
      |             ^
a.cc:14:13: error: 'i' was not declared in this scope
   14 |   if(ans == i){
      |             ^
a.cc:17:13: error: 'o' was not declared in this scope
   17 |   if(ans == o){
      |             ^
a.cc:20:13: error: 'u' was not declared in this scope
   20 |   if(ans == u){
      |             ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: could not convert 'C.std::__cxx11::basic_string<char>::operator=(((const char*)"a"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    7 |  if(C="a"){
      |     ~^~~~
      |      |
      |      std::__cxx11::basic_string<char>
a.cc:10:11: error: could not convert 'C.std::__cxx11::basic_string<char>::operator=(((const char*)"i"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   10 | else if (C="i"){
      |          ~^~~~
      |           |
      |           std::__cxx11::basic_string<char>
a.cc:13:10: error: could not convert 'C.std::__cxx11::basic_string<char>::operator=(((const char*)"u"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   13 | else if(C="u"){
      |         ~^~~~
      |          |
      |          std::__cxx11::basic_string<char>
a.cc:16:10: error: could not convert 'C.std::__cxx11::basic_string<char>::operator=(((const char*)"e"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   16 | else if(C="e"){
      |         ~^~~~
      |          |
      |          std::__cxx11::basic_string<char>
a.cc:19:10: error: could not convert 'C.std::__cxx11::basic_string<char>::operator=(((const char*)"o"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   19 | else if(C="o"){
      |         ~^~~~
      |          |
      |          std::__cxx11::basic_string<char>
Language: C++

#include <bits/stdc++.h>
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 << "consonant" << endl;
 }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: could not convert '((((((void)C.std::__cxx11::basic_string<char>::operator=(((const char*)"a"))), ((void)C.std::__cxx11::basic_string<char>::operator=(((const char*)"i")))), ((void)C.std::__cxx11::basic_string<char>::operator=(((const char*)"u")))), ((void)C.std::__cxx11::basic_string<char>::operator=(((const char*)"e")))), C.std::__cxx11::basic_string<char>::operator=(((const char*)"o")))' from 'std::__cxx11::basic_string<char>' to 'bool'
    7 | if(C="a",C="i",C="u",C="e",C="o"){
      |    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
      |                           |
      |                           std::__cxx11::basic_string<char>
Language: C++

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

int main() {
string 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:11:9: error: 'consonant' was not declared in this scope
   11 | cout << consonant << endl;
      |         ^~~~~~~~~
Language: C++

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

int main() {
string 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:7:6: error: 'a' was not declared in this scope
    7 | if(C=a,i,u,e,o){
      |      ^
a.cc:7:8: error: 'i' was not declared in this scope
    7 | if(C=a,i,u,e,o){
      |        ^
a.cc:7:10: error: 'u' was not declared in this scope
    7 | if(C=a,i,u,e,o){
      |          ^
a.cc:7:12: error: 'e' was not declared in this scope
    7 | if(C=a,i,u,e,o){
      |            ^
a.cc:7:14: error: 'o' was not declared in this scope
    7 | if(C=a,i,u,e,o){
      |              ^
Language: C++

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

int main() {
  char c:; cin >> c;
  if (string("aeiou").find(c) == string::npos) {
    cout << "consonant";
  } else {
    cout << "vowel";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before ':' token
    5 |   char c:; cin >> c;
      |         ^
a.cc:5:19: error: 'c' was not declared in this scope
    5 |   char c:; cin >> c;
      |                   ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |     if(a=="a"||a=="e"||a=="i"||a=="o"||a=="u")cout<<"vowel"<<endl;
      |        ~^~~~~
a.cc:6:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |     if(a=="a"||a=="e"||a=="i"||a=="o"||a=="u")cout<<"vowel"<<endl;
      |                ~^~~~~
a.cc:6:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |     if(a=="a"||a=="e"||a=="i"||a=="o"||a=="u")cout<<"vowel"<<endl;
      |                        ~^~~~~
a.cc:6:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |     if(a=="a"||a=="e"||a=="i"||a=="o"||a=="u")cout<<"vowel"<<endl;
      |                                ~^~~~~
a.cc:6:41: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |     if(a=="a"||a=="e"||a=="i"||a=="o"||a=="u")cout<<"vowel"<<endl;
      |                                        ~^~~~~
Language: C++

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

int main () {
     // input
    string str;
    cin >> str;
    
    // calculation
    string five, six, seven;
    unsigned  long len = str.length ();
    
    if (len < 5 ) {
        cout << "NO";
         return  0 ;
    } else  if (len == 5 ) {
         if (str == "dream" || str == "erase" ) {
            cout << "YES";
             return  0 ;
        } else {
            cout << "NO";
             return  0 ;
        }
    } else  if (len == 6 ) {
         if (str == "eraser" ) {
            cout << "YES";
             return  0 ;
        } else {
            cout << "NO";
             return  0 ;
        }
    } else  if (len == 7 ) {
         if (str == "dreamer" ) {
            cout << "YES";
             return  0 ;
        } else {
            cout << "NO";
             return  0 ;
        }
    } else {
         while (str.length() ! = 0 ) {
            = Str.Substr five (Str.Size () - 1 - 4 , 5 );
             an if (five == "dream" || five == "erase" ) {
                Str.Erase (Str.End () - 5 , Str.End ());
            } else {
                = Str.Substr six (Str.Size () - 1 - 5 , 6 );
                 an if (six == "eraser" ) {
                    Str.Erase (Str.End () - 6 , Str.End ());
                } else {
                    = Str.Substr seven (Str.Size () - 1 - 6 , 7 );
                     an if (seven == "dreamer" ) {
                        Str.Erase (Str.End () - 7 , Str.End ());
                    } else {
                        cout << "NO" << "\n" ;
                         return  0 ;
                    }
                }
            }
        }
        cout << "YES" << "\n" ;
         return  0 ;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:43:29: error: expected ')' before '!' token
   43 |          while (str.length() ! = 0 ) {
      |                ~            ^~
      |                             )
a.cc:43:32: error: expected primary-expression before '=' token
   43 |          while (str.length() ! = 0 ) {
      |                                ^
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:6:47: error: lvalue required as left operand of assignment
    6 |   if(s = 'a' || s = 'i' || s = 'u' || s = 'e' || s = 'o'){
      |                                           ~~~~^~~~
Language: C++

#include<iostream>
#include<cstdio>

using namespace std;

int main(){
	char c=getchar();
	if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u')printf("vowel\n");
	else preintf("consonant\n");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: 'preintf' was not declared in this scope; did you mean 'printf'?
    9 |         else preintf("consonant\n");
      |              ^~~~~~~
      |              printf
Language: C++

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

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

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


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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected '(' before 'else'
    8 | }if else{
      |     ^~~~
      |     (
Language: C++

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

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

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

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

int main(){
 char="s";
 cin >> s;

if (s.at("a") == "s"){
 cout <<  vowel << endl;
}else{
 cout << consonant << endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: expected unqualified-id before '=' token
    5 |  char="s";
      |      ^
a.cc:6:9: error: 's' was not declared in this scope
    6 |  cin >> s;
      |         ^
a.cc:9:11: error: 'vowel' was not declared in this scope
    9 |  cout <<  vowel << endl;
      |           ^~~~~
a.cc:11:10: error: 'consonant' was not declared in this scope
   11 |  cout << consonant << endl;
      |          ^~~~~~~~~
Language: C++

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

int main(){
 char="s";
 cin >> s;

if (s.at("a") == "s"){

}

}

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

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

int main() {
  string z;
  cin >> z;
  int A = 0;

  for(int i = 0; i < z.zise(); i++){

    if(z.at(i) == 'a' || 'i' || 'u'|| 'o'|| 'e'){
      A++;
    }
  }
 if(A > 0){
  cout <<  "vowel" << endl;
 }
 else{
   cout << "consonant" << endl;
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'zise'
    9 |   for(int i = 0; i < z.zise(); i++){
      |                        ^~~~
Language: C++

#include<iostream>
#include<string>
#include<algorithm>

using namespace std;

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

  
 
  return 0;
}


Compiler output:
a.cc:10:80: warning: missing terminating " character
   10 |   (c=="a" || c=="i" || c=="u" ||c=="e" ||c=="o)? cout<<"vowel":cout<<"consonant";
      |                                                                                ^
a.cc:10:80: error: missing terminating " character
   10 |   (c=="a" || c=="i" || c=="u" ||c=="e" ||c=="o)? cout<<"vowel":cout<<"consonant";
      |                                                                                ^~
a.cc: In function 'int main()':
a.cc:10:62: error: inconsistent user-defined literal suffixes 'vowel' and 'consonant' in string literal
   10 |   (c=="a" || c=="i" || c=="u" ||c=="e" ||c=="o)? cout<<"vowel":cout<<"consonant";
      |                                                              ^~~~~~~~~~~~~~~~~~
a.cc:10:62: error: unable to find string literal operator 'operator""vowel' with 'const char [18]', 'long unsigned int' arguments
a.cc:10:80: error: expected ')' before 'return'
   10 |   (c=="a" || c=="i" || c=="u" ||c=="e" ||c=="o)? cout<<"vowel":cout<<"consonant";
      |   ~                                                                            ^
      |                                                                                )
......
   14 |   return 0;
      |   ~~~~~~
Language: C++

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

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

#include <bits/stdic++.h>
using namespace std::

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

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

}

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


#include<iostream>  //这里用这个就行

using namespace std;
  
int main()
{
  
  char a[5]={'a','e','i','o','u'};
  
  int n;  //输入
  
  cin>>n;
  
  for(int i=0;i<5;i++)
                       
	if(a[i]==n)cout<<"vowel"  //very easy 的元音判断
                           
  		else cout<<"consonant";
                           
  return 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:33: error: expected ';' before 'else'
   17 |         if(a[i]==n)cout<<"vowel"  //very easy 的元音判断
      |                                 ^
      |                                 ;
   18 | 
   19 |                 else cout<<"consonant";
      |                 ~~~~
Language: C++

#include<iostream>  //这里用这个就行

using namespace std;
  
int main()
{
  
  char a[5]={a,e,i,o,u};
  
  int n;  //输入
  
  cin>>n;
  
  for(int i=0;i<5;i++)
                       
	if(a[i]==n)cout<<"vowel"  //very easy 的元音判断
                           
  		else cout<<"consonant";
                           
  return 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: 'e' was not declared in this scope
    8 |   char a[5]={a,e,i,o,u};
      |                ^
a.cc:8:18: error: 'i' was not declared in this scope
    8 |   char a[5]={a,e,i,o,u};
      |                  ^
a.cc:8:20: error: 'o' was not declared in this scope
    8 |   char a[5]={a,e,i,o,u};
      |                    ^
a.cc:8:22: error: 'u' was not declared in this scope
    8 |   char a[5]={a,e,i,o,u};
      |                      ^
a.cc:16:33: error: expected ';' before 'else'
   16 |         if(a[i]==n)cout<<"vowel"  //very easy 的元音判断
      |                                 ^
      |                                 ;
   17 | 
   18 |                 else cout<<"consonant";
      |                 ~~~~
Language: Java

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

Compiler output:
Main.java:5: error: incompatible types: String cannot be converted to char
      char c = scan.next();
                        ^
Main.java:6: error: bad operand types for binary operator '=='
      if (c =="a"||c=="i"||c=="u"||c=="e"||c=="o"){
            ^
  first type:  char
  second type: String
Main.java:6: error: bad operand types for binary operator '=='
      if (c =="a"||c=="i"||c=="u"||c=="e"||c=="o"){
                    ^
  first type:  char
  second type: String
Main.java:6: error: bad operand types for binary operator '=='
      if (c =="a"||c=="i"||c=="u"||c=="e"||c=="o"){
                            ^
  first type:  char
  second type: String
Main.java:6: error: bad operand types for binary operator '=='
      if (c =="a"||c=="i"||c=="u"||c=="e"||c=="o"){
                                    ^
  first type:  char
  second type: String
Main.java:6: error: bad operand types for binary operator '=='
      if (c =="a"||c=="i"||c=="u"||c=="e"||c=="o"){
                                            ^
  first type:  char
  second type: String
6 errors
Language: C

#include <stdio.h>

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

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

#include <stdio.h>

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

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

import java.util.*;

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

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

import java.util.*;

class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    String str = sc.next();
    
    if(str.equals("[aiueo]")){
      System.out.println("vowel");
    }else{
      System.out/println("consonant");
  }
}

Compiler output:
Main.java:11: error: not a statement
      System.out/println("consonant");
                ^
Main.java:13: error: reached end of file while parsing
}
 ^
2 errors
Language: C

#include <stdio.h>

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

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'sacnf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |   sacnf("%s", c);
      |   ^~~~~
      |   scanf
main.c:8:17: error: stray '\343' in program
    8 |   if(c == 'a' ||<U+3000>c == 'e' || c == 'i' || c == 'o' || c == 'u'){
      |                 ^~~~~~~~
Language: C++

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

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


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

#include "pch.h"
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <iomanip>
#include <tuple>
#include <bitset>
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:1:10: fatal error: pch.h: No such file or directory
    1 | #include "pch.h"
      |          ^~~~~~~
compilation terminated.
Language: C++

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

int main(){
    int 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: In function 'int main()':
a.cc:7:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |     if(c == "a"){
      |        ~~^~~~~~
a.cc:10:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 | else if(c == "e"){
      |         ~~^~~~~~
a.cc:13:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 | else if(c == "i"){
      |         ~~^~~~~~
a.cc:16:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 | else if(c == "o"){
      |         ~~^~~~~~
a.cc:19:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 | else if(c == "u"){
      |         ~~^~~~~~
Language: C++

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

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

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

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

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

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

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'ch' was not declared in this scope
    5 |   ch c;
      |   ^~
a.cc:6:10: error: 'c' was not declared in this scope
    6 |   cin >> c ;
      |          ^
a.cc:7:13: error: expected primary-expression before '||' token
    7 |   if(c=='a')||(c=='e')||(c=='i')||(c=='o')||(c=='u')) {
      |             ^~
Language: C++

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

int main () {
   char c;
   cin >> c;
   string str1, str2;
   str1 = "vowel";
   str2 = "consonant";

   if (c == 'a' || c == 'e' || c == 'i' || C == 'o' || C == 'u') {
       cout << str1 << endl;
   }

   else {
       cout << str2 << endl;
   }

}

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

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

Compiler output:
a.cc:13:2: error: stray '#' in program
   13 | }#include <bits/stdc++.h>
      |  ^
a.cc:13:3: error: 'include' does not name a type
   13 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:16:5: error: redefinition of 'int main()'
   16 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
Language: Java

//第 4 問: ABC 087 B - Coinsi (200 点)
/*
 * dreamererasereraserdream
erasereraserdream
reraserdream
NO
 */

import java.util.Scanner;

public class ABC049C{

	public static void main(String[] args){

		Scanner scan = new Scanner(System.in);

		String S = scan.next();
		StringBuilder sb = new StringBuilder();
		sb.append(S);

		/*
		String A = "";
		String B = "";
		String C = "";
		*/

		while(true) {

			int counter = sb.length();

			if (counter > 7) {

				if (sb.substring(0,8).equals("dreamera")){

					sb = sb.delete(0,5);

				}
				else if(sb.substring(0,7).equals("dreamer")){

					sb = sb.delete(0,7);

				}
				else if(sb.substring(0,6).equals("eraser")){

					sb = sb.delete(0,6);
					//System.out.println("Err");

				}
				else if ((sb.substring(0,5).equals("dream")) || (sb.substring(0,5).equals("erase"))) {

					sb = sb.delete(0,5);
					//System.out.println("Err2");

				}
				else {
					System.out.println("NO");
					//System.out.println("A");
					break;
				}

			//System.out.println(sb);

			}
			else if (counter == 7) {
				if(sb.toString().equals("dreamer")) {
					System.out.println("YES");
					break;
				}
				else {
					System.out.println("NO");
					//System.out.println("B");
					break;
				}

			}
			else if (counter == 6) {

				if(sb.toString().equals("eraser")) {
					System.out.println("YES");
					break;
				}
				else {
					System.out.println("NO");
					//System.out.println("C");
					break;
				}

			}
			else if (counter == 5) {
				if ((sb.toString().equals("dream")) || (sb.toString().equals("erase"))) {
					System.out.println("YES");
					break;
				}
				else{
					System.out.println("NO");
					//System.out.println("D");
					break;
				}
			}
			else {
				System.out.println("NO");
				//System.out.println("E");
				break;
			}

			//System.out.println(sb);

		}

	}
}



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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'a' was not declared in this scope
    8 | if (x = a || x= i || x= u || x= e || x= o ) {
      |         ^
a.cc:8:17: error: 'i' was not declared in this scope
    8 | if (x = a || x= i || x= u || x= e || x= o ) {
      |                 ^
a.cc:8:25: error: 'u' was not declared in this scope
    8 | if (x = a || x= i || x= u || x= e || x= o ) {
      |                         ^
a.cc:8:33: error: 'e' was not declared in this scope
    8 | if (x = a || x= i || x= u || x= e || x= o ) {
      |                                 ^
a.cc:8:41: error: 'o' was not declared in this scope
    8 | if (x = a || x= i || x= u || x= e || x= o ) {
      |                                         ^
Language: C++

#include<iostream>
#include<fstream>
#include<algorithm>
#include<cmath>
#include<cstdio>
#include<string>
#include<cstring>
using namespace std;
int a[21]={"bcdfghjklmnpqrstvwxyz"};
int b[5]={"aeiou"};
char x;
int main()
{
	x=getchar();
	for(int i=0;i<=20;i++)
	{
		if(a[i]==x){cout<<"vowel\n";exit(0);}
	}
	for(int i=0;i<=4;i++)
	{
		if(a[i]==x){cout<<"consonant\n";exit(0);}
	}
	cout<<"consonant\n";
}


Compiler output:
a.cc:9:12: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    9 | int a[21]={"bcdfghjklmnpqrstvwxyz"};
      |            ^~~~~~~~~~~~~~~~~~~~~~~
      |            |
      |            const char*
a.cc:10:11: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   10 | int b[5]={"aeiou"};
      |           ^~~~~~~
      |           |
      |           const char*
Language: C++

#include <set>
#include <map>
#include <list>
#include <queue>
#include <stack>
#include <cmath>
#include <ctime>
#include <cstdio>
#include <vector>
#include <string>
#include <bitset>
#include <cctype>
#include <cstdlib>
#include <cstring>
#include <utility>
#include <numeric>
#include <complex>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <cassert>
#include <iostream>
#include <iterator>
#include <algorithm>
using namespace std;
typedef long long ll;
typedef vector<int> vint;
typedef pair<int, int> pint;
#define rep(i, n) REP(i, 0, n)
#define all(v) v.begin(), v.end()
#define REP(i, x, n) for(int i = x; i < n; i++)
#define INF 2e9
signed main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    int a,b,gyo0=0,gyo1=0,re0=0,re1=0,h,w,count;
    string s;
    cin>>s;
    if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o"){
        cout<<"vowel"<<'\n';
    }
    else{
        cout<<"consonant"<<'\n';
    }
    return(0);
}

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

#include <set>
#include <map>
#include <list>
#include <queue>
#include <stack>
#include <cmath>
#include <ctime>
#include <cstdio>
#include <vector>
#include <string>
#include <bitset>
#include <cctype>
#include <cstdlib>
#include <cstring>
#include <utility>
#include <numeric>
#include <complex>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <cassert>
#include <iostream>
#include <iterator>
#include <algorithm>
using namespace std;
typedef long long ll;
typedef vector<int> vint;
typedef pair<int, int> pint;
#define rep(i, n) REP(i, 0, n)
#define all(v) v.begin(), v.end()
#define REP(i, x, n) for(int i = x; i < n; i++)
#define INF 2e9
signed main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    int a,b,gyo0=0,gyo1=0,re0=0,re1=0,h,w,count;
    string s;
    cin>>c;
    if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o"){
        cout<<"vowel"<<'\n';
    }
    else{
        cout<<"consonant"<<'\n';
    }
    return(0);
}

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

#include <set>
#include <map>
#include <list>
#include <queue>
#include <stack>
#include <cmath>
#include <ctime>
#include <cstdio>
#include <vector>
#include <string>
#include <bitset>
#include <cctype>
#include <cstdlib>
#include <cstring>
#include <utility>
#include <numeric>
#include <complex>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <cassert>
#include <iostream>
#include <iterator>
#include <algorithm>
using namespace std;
typedef long long ll;
typedef vector<int> vint;
typedef pair<int, int> pint;
#define rep(i, n) REP(i, 0, n)
#define all(v) v.begin(), v.end()
#define REP(i, x, n) for(int i = x; i < n; i++)
#define INF 2e9
signed main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    int a,b,gyo0=0,gyo1=0,re0=0,re1=0,h,w,count;
    string s;
    cin<<c;
    if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o"){
        cout<<"vowel"<<'\n';
    }
    else{
        cout<<"consonant"<<'\n';
    }
    return(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:38:10: error: 'c' was not declared in this scope
   38 |     cin<<c;
      |          ^