Language: C++

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

int main() {
  int and = 0;string c,v[] = {“a”,”e”,”u”,”I”,”o”};cin >> c;
  for(int i =0;i< 5;i++){
    if(c == v[i]) ans = 1;
  }
  if(ans) cout << “vowel “;
  else cout << “consonant”;
}


Compiler output:
a.cc:5:31: error: extended character “ is not valid in an identifier
    5 |   int and = 0;string c,v[] = {“a”,”e”,”u”,”I”,”o”};cin >> c;
      |                               ^
a.cc:5:31: error: extended character ” is not valid in an identifier
a.cc:5:35: error: extended character ” is not valid in an identifier
    5 |   int and = 0;string c,v[] = {“a”,”e”,”u”,”I”,”o”};cin >> c;
      |                                   ^
a.cc:5:35: error: extended character ” is not valid in an identifier
a.cc:5:39: error: extended character ” is not valid in an identifier
    5 |   int and = 0;string c,v[] = {“a”,”e”,”u”,”I”,”o”};cin >> c;
      |                                       ^
a.cc:5:39: error: extended character ” is not valid in an identifier
a.cc:5:43: error: extended character ” is not valid in an identifier
    5 |   int and = 0;string c,v[] = {“a”,”e”,”u”,”I”,”o”};cin >> c;
      |                                           ^
a.cc:5:43: error: extended character ” is not valid in an identifier
a.cc:5:47: error: extended character ” is not valid in an identifier
    5 |   int and = 0;string c,v[] = {“a”,”e”,”u”,”I”,”o”};cin >> c;
      |                                               ^
a.cc:5:47: error: extended character ” is not valid in an identifier
a.cc:9:19: error: extended character “ is not valid in an identifier
    9 |   if(ans) cout << “vowel “;
      |                   ^
a.cc:9:26: error: extended character “ is not valid in an identifier
    9 |   if(ans) cout << “vowel “;
      |                          ^
a.cc:10:16: error: extended character “ is not valid in an identifier
   10 |   else cout << “consonant”;
      |                ^
a.cc:10:16: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:5:11: error: expected unqualified-id before '=' token
    5 |   int and = 0;string c,v[] = {“a”,”e”,”u”,”I”,”o”};cin >> c;
      |           ^
a.cc:5:31: error: '\U0000201ca\U0000201d' was not declared in this scope
    5 |   int and = 0;string c,v[] = {“a”,”e”,”u”,”I”,”o”};cin >> c;
      |                               ^~~
a.cc:5:35: error: '\U0000201de\U0000201d' was not declared in this scope
    5 |   int and = 0;string c,v[] = {“a”,”e”,”u”,”I”,”o”};cin >> c;
      |                                   ^~~
a.cc:5:39: error: '\U0000201du\U0000201d' was not declared in this scope
    5 |   int and = 0;string c,v[] = {“a”,”e”,”u”,”I”,”o”};cin >> c;
      |                                       ^~~
a.cc:5:43: error: '\U0000201dI\U0000201d' was not declared in this scope
    5 |   int and = 0;string c,v[] = {“a”,”e”,”u”,”I”,”o”};cin >> c;
      |                                           ^~~
a.cc:5:47: error: '\U0000201do\U0000201d' was not declared in this scope
    5 |   int and = 0;string c,v[] = {“a”,”e”,”u”,”I”,”o”};cin >> c;
      |                                               ^~~
a.cc:7:19: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |     if(c == v[i]) ans = 1;
      |                   ^~~
      |                   abs
a.cc:9:6: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |   if(ans) cout << “vowel “;
      |      ^~~
      |      abs
a.cc:9:19: error: '\U0000201cvowel' was not declared in this scope
    9 |   if(ans) cout << “vowel “;
      |                   ^~~~~~
a.cc:10:16: error: '\U0000201cconsonant\U0000201d' was not declared in this scope
   10 |   else cout << “consonant”;
      |                ^~~~~~~~~~~