Language: C++

#include <iostream>
using namespace std;

int main(){
  char c;
  cin >> c;
  
  if(c == ‘a’ || c == ‘i’ || c == ‘u’ || c == ‘e’ || c == ‘o’){
    cout << “vowel\n”;
  }
  else
    cout << “consonant\n”;
  return 0;
}

Compiler output:
a.cc:8:11: error: extended character ‘ is not valid in an identifier
    8 |   if(c == ‘a’ || c == ‘i’ || c == ‘u’ || c == ‘e’ || c == ‘o’){
      |           ^
a.cc:8:11: error: extended character ’ is not valid in an identifier
a.cc:8:23: error: extended character ‘ is not valid in an identifier
    8 |   if(c == ‘a’ || c == ‘i’ || c == ‘u’ || c == ‘e’ || c == ‘o’){
      |                       ^
a.cc:8:23: error: extended character ’ is not valid in an identifier
a.cc:8:35: error: extended character ‘ is not valid in an identifier
    8 |   if(c == ‘a’ || c == ‘i’ || c == ‘u’ || c == ‘e’ || c == ‘o’){
      |                                   ^
a.cc:8:35: error: extended character ’ is not valid in an identifier
a.cc:8:47: error: extended character ‘ is not valid in an identifier
    8 |   if(c == ‘a’ || c == ‘i’ || c == ‘u’ || c == ‘e’ || c == ‘o’){
      |                                               ^
a.cc:8:47: error: extended character ’ is not valid in an identifier
a.cc:8:59: error: extended character ‘ is not valid in an identifier
    8 |   if(c == ‘a’ || c == ‘i’ || c == ‘u’ || c == ‘e’ || c == ‘o’){
      |                                                           ^
a.cc:8:59: error: extended character ’ is not valid in an identifier
a.cc:9:13: error: extended character “ is not valid in an identifier
    9 |     cout << “vowel\n”;
      |             ^
a.cc:9:19: error: stray '\' in program
    9 |     cout << “vowel\n”;
      |                   ^
a.cc:9:20: error: extended character ” is not valid in an identifier
    9 |     cout << “vowel\n”;
      |                    ^
a.cc:12:13: error: extended character “ is not valid in an identifier
   12 |     cout << “consonant\n”;
      |             ^
a.cc:12:23: error: stray '\' in program
   12 |     cout << “consonant\n”;
      |                       ^
a.cc:12:24: error: extended character ” is not valid in an identifier
   12 |     cout << “consonant\n”;
      |                        ^
a.cc: In function 'int main()':
a.cc:8:11: error: '\U00002018a\U00002019' was not declared in this scope
    8 |   if(c == ‘a’ || c == ‘i’ || c == ‘u’ || c == ‘e’ || c == ‘o’){
      |           ^~~
a.cc:8:23: error: '\U00002018i\U00002019' was not declared in this scope
    8 |   if(c == ‘a’ || c == ‘i’ || c == ‘u’ || c == ‘e’ || c == ‘o’){
      |                       ^~~
a.cc:8:35: error: '\U00002018u\U00002019' was not declared in this scope
    8 |   if(c == ‘a’ || c == ‘i’ || c == ‘u’ || c == ‘e’ || c == ‘o’){
      |                                   ^~~
a.cc:8:47: error: '\U00002018e\U00002019' was not declared in this scope
    8 |   if(c == ‘a’ || c == ‘i’ || c == ‘u’ || c == ‘e’ || c == ‘o’){
      |                                               ^~~
a.cc:8:59: error: '\U00002018o\U00002019' was not declared in this scope
    8 |   if(c == ‘a’ || c == ‘i’ || c == ‘u’ || c == ‘e’ || c == ‘o’){
      |                                                           ^~~
a.cc:9:13: error: '\U0000201cvowel' was not declared in this scope
    9 |     cout << “vowel\n”;
      |             ^~~~~~
a.cc:12:13: error: '\U0000201cconsonant' was not declared in this scope
   12 |     cout << “consonant\n”;
      |             ^~~~~~~~~~