Language: C++

#include<iostream>
using namespace std;
int main(void){
  
  char c;

  cin >> c;

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

  return 0;
}

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