Language: C++

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

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

  if (x == “a”){
cout << "vowel” << endl;
  }
if (x==”i”){
cout << "vowel” << endl;
  }
if (x==”u”){
cout << "vowel” << endl;
  }
if (x==”e”){
cout << "vowel” << endl;
  }
if (x== “o”) {
    cout << "vowel” << endl;
  }
  else{
    cout << “consonant” << endl;
  }
}


Compiler output:
a.cc:8:12: error: extended character “ is not valid in an identifier
    8 |   if (x == “a”){
      |            ^
a.cc:8:12: error: extended character ” is not valid in an identifier
a.cc:9:9: warning: missing terminating " character
    9 | cout << "vowel” << endl;
      |         ^
a.cc:9:9: error: missing terminating " character
    9 | cout << "vowel” << endl;
      |         ^~~~~~~~~~~~~~~~
a.cc:11:8: error: extended character ” is not valid in an identifier
   11 | if (x==”i”){
      |        ^
a.cc:11:8: error: extended character ” is not valid in an identifier
a.cc:12:9: warning: missing terminating " character
   12 | cout << "vowel” << endl;
      |         ^
a.cc:12:9: error: missing terminating " character
   12 | cout << "vowel” << endl;
      |         ^~~~~~~~~~~~~~~~
a.cc:14:8: error: extended character ” is not valid in an identifier
   14 | if (x==”u”){
      |        ^
a.cc:14:8: error: extended character ” is not valid in an identifier
a.cc:15:9: warning: missing terminating " character
   15 | cout << "vowel” << endl;
      |         ^
a.cc:15:9: error: missing terminating " character
   15 | cout << "vowel” << endl;
      |         ^~~~~~~~~~~~~~~~
a.cc:17:8: error: extended character ” is not valid in an identifier
   17 | if (x==”e”){
      |        ^
a.cc:17:8: error: extended character ” is not valid in an identifier
a.cc:18:9: warning: missing terminating " character
   18 | cout << "vowel” << endl;
      |         ^
a.cc:18:9: error: missing terminating " character
   18 | cout << "vowel” << endl;
      |         ^~~~~~~~~~~~~~~~
a.cc:20:9: error: extended character “ is not valid in an identifier
   20 | if (x== “o”) {
      |         ^
a.cc:20:9: error: extended character ” is not valid in an identifier
a.cc:21:13: warning: missing terminating " character
   21 |     cout << "vowel” << endl;
      |             ^
a.cc:21:13: error: missing terminating " character
   21 |     cout << "vowel” << endl;
      |             ^~~~~~~~~~~~~~~~
a.cc:24:13: error: extended character “ is not valid in an identifier
   24 |     cout << “consonant” << endl;
      |             ^
a.cc:24:13: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:8:12: error: '\U0000201ca\U0000201d' was not declared in this scope
    8 |   if (x == “a”){
      |            ^~~
a.cc:10:3: error: expected primary-expression before '}' token
   10 |   }
      |   ^
a.cc:11:8: error: '\U0000201di\U0000201d' was not declared in this scope
   11 | if (x==”i”){
      |        ^~~
a.cc:13:3: error: expected primary-expression before '}' token
   13 |   }
      |   ^
a.cc:14:8: error: '\U0000201du\U0000201d' was not declared in this scope
   14 | if (x==”u”){
      |        ^~~
a.cc:16:3: error: expected primary-expression before '}' token
   16 |   }
      |   ^
a.cc:17:8: error: '\U0000201de\U0000201d' was not declared in this scope
   17 | if (x==”e”){
      |        ^~~
a.cc:19:3: error: expected primary-expression before '}' token
   19 |   }
      |   ^
a.cc:20:9: error: '\U0000201co\U0000201d' was not declared in this scope
   20 | if (x== “o”) {
      |         ^~~
a.cc:22:3: error: expected primary-expression before '}' token
   22 |   }
      |   ^
a.cc:24:13: error: '\U0000201cconsonant\U0000201d' was not declared in this scope
   24 |     cout << “consonant” << endl;
      |             ^~~~~~~~~~~