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

#include <cstdio>
using namespace std;

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

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> ch;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <cstdio>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << "vowel" << endl;
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:24: error: 'endl' was not declared in this scope
    8 |     cout << "vowel" << endl;
      |                        ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <cstdio>
  +++ |+#include <ostream>
    2 | using namespace std;
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << "consonant" << endl;
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:28: error: 'endl' was not declared in this scope
   10 |     cout << "consonant" << endl;
      |                            ^~~~
a.cc:10:28: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

int main(){
  char c;
  cin >> c;
  switch(c){
    case 'a':
    case 'e':
    case 'i':
    case 'o':
    case 'u':
      cout << "vowel" << endl;
      break;
    default;
      cout << "consonant" << endl;
      break;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:12: error: expected ':' before ';' token
   15 |     default;
      |            ^
      |            :
Language: C++

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

int main(){
  char c;
  cin >> c;
  switch(c){
    case 'a':
    case 'e':
    case 'i':
    case 'o':
    case 'u':
      cout << "vowel" << endl;
      break;
    default;
      cout << "consonant" << endl;
      break;
  }
  return 0
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:12: error: expected ':' before ';' token
   15 |     default;
      |            ^
      |            :
a.cc:19:11: error: expected ';' before '}' token
   19 |   return 0
      |           ^
      |           ;
   20 | }
      | ~
Language: C

#include<stdio.h>
int main()
{
	char c;
	scanf_s("%c", &c);
	if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o')
		printf("vome1");
	else
		printf("consonant");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |         scanf_s("%c", &c);
      |         ^~~~~~~
      |         scanf
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"<<endl;
{
    else{
 cout<<"consonant"<<endl;
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: expected '}' before 'else'
   14 |     else{
      |     ^~~~
a.cc:13:1: note: to match this '{'
   13 | {
      | ^
a.cc:14:5: error: expected '}' before 'else'
   14 |     else{
      |     ^~~~
a.cc:11:47: note: to match this '{'
   11 |     if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){
      |                                               ^
Language: C++

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

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

Compiler output:
a.cc:12:9: error: extended character “ is not valid in an identifier
   12 | cout << “consonant” << endl;
      |         ^
a.cc:12:9: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:7:14: error: 'a' was not declared in this scope
    7 |   string v = a, i, u, e, o;
      |              ^
a.cc:8:9: error: could not convert 'x.std::__cxx11::basic_string<char>::operator=(v)' from 'std::__cxx11::basic_string<char>' to 'bool'
    8 |   if ( x=v) {
      |        ~^~
      |         |
      |         std::__cxx11::basic_string<char>
a.cc:12:9: error: '\U0000201cconsonant\U0000201d' was not declared in this scope
   12 | cout << “consonant” << endl;
      |         ^~~~~~~~~~~
Language: C++

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

Compiler output:
a.cc:12:1: error: expected unqualified-id before 'if'
   12 | if( c == 'i' ){
      | ^~
a.cc:14:1: error: expected unqualified-id before 'else'
   14 | else{
      | ^~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
a.cc:17:1: error: expected unqualified-id before 'if'
   17 | if( c == 'u' ){
      | ^~
a.cc:19:1: error: expected unqualified-id before 'else'
   19 | else{
      | ^~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
a.cc:22:1: error: expected unqualified-id before 'if'
   22 | if( c == 'e' ){
      | ^~
a.cc:24:1: error: expected unqualified-id before 'else'
   24 | else{
      | ^~~~
a.cc:26:1: error: expected declaration before '}' token
   26 | }
      | ^
a.cc:27:1: error: expected unqualified-id before 'if'
   27 | if( c == 'o' ){
      | ^~
a.cc:29:1: error: expected unqualified-id before 'else'
   29 | else{
      | ^~~~
a.cc:31:1: error: expected declaration before '}' token
   31 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: expected unqualified-id before 'a'
    5 | char 'a' < c < 'z';
      |      ^~~
a.cc:6:8: error: 'c' was not declared in this scope
    6 | cin >> c;
      |        ^
Language: C++

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

int main() {
  string x;
  cin >> x;
 string y = a, i, u, e, o;

  if (x == y){
cout << "vowel” << endl;
  }
  else{
    cout << “consonant” << endl;
  }
}


Compiler output:
a.cc:10:9: warning: missing terminating " character
   10 | cout << "vowel” << endl;
      |         ^
a.cc:10:9: error: missing terminating " character
   10 | cout << "vowel” << endl;
      |         ^~~~~~~~~~~~~~~~
a.cc:13:13: error: extended character “ is not valid in an identifier
   13 |     cout << “consonant” << endl;
      |             ^
a.cc:13:13: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:7:13: error: 'a' was not declared in this scope
    7 |  string y = a, i, u, e, o;
      |             ^
a.cc:11:3: error: expected primary-expression before '}' token
   11 |   }
      |   ^
a.cc:13:13: error: '\U0000201cconsonant\U0000201d' was not declared in this scope
   13 |     cout << “consonant” << endl;
      |             ^~~~~~~~~~~
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 << "cosonant" << endl;
    }
    return 0;
}


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

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

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

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


Compiler output:
a.cc:8:12: error: extended character “ is not valid in an identifier
    8 |   if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
      |            ^
a.cc:8:12: error: extended character ” is not valid in an identifier
a.cc:8:22: error: extended character ” is not valid in an identifier
    8 |   if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
      |                      ^
a.cc:8:22: error: extended character ” is not valid in an identifier
a.cc:8:32: error: extended character ” is not valid in an identifier
    8 |   if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
      |                                ^
a.cc:8:32: error: extended character ” is not valid in an identifier
a.cc:8:42: error: extended character ” is not valid in an identifier
    8 |   if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
      |                                          ^
a.cc:8:42: error: extended character ” is not valid in an identifier
a.cc:8:52: error: extended character “ is not valid in an identifier
    8 |   if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
      |                                                    ^
a.cc:8:52: error: extended character ” is not valid in an identifier
a.cc:9:13: warning: missing terminating " character
    9 |     cout << "vowel” << endl;
      |             ^
a.cc:9:13: error: missing terminating " character
    9 |     cout << "vowel” << endl;
      |             ^~~~~~~~~~~~~~~~
a.cc:12:14: error: extended character “ is not valid in an identifier
   12 |     count << “consonant” << endl;
      |              ^
a.cc:12:14: 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” || x==”i” || x==”u” || x==”e” ||x== “o”) {
      |            ^~~
a.cc:8:22: error: '\U0000201di\U0000201d' was not declared in this scope
    8 |   if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
      |                      ^~~
a.cc:8:32: error: '\U0000201du\U0000201d' was not declared in this scope
    8 |   if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
      |                                ^~~
a.cc:8:42: error: '\U0000201de\U0000201d' was not declared in this scope
    8 |   if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
      |                                          ^~~
a.cc:8:52: error: '\U0000201co\U0000201d' was not declared in this scope
    8 |   if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
      |                                                    ^~~
a.cc:10:3: error: expected primary-expression before '}' token
   10 |   }
      |   ^
a.cc:12:14: error: '\U0000201cconsonant\U0000201d' was not declared in this scope
   12 |     count << “consonant” << endl;
      |              ^~~~~~~~~~~
Language: C++

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

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

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


Compiler output:
a.cc:8:12: error: extended character “ is not valid in an identifier
    8 |   if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
      |            ^
a.cc:8:12: error: extended character ” is not valid in an identifier
a.cc:8:22: error: extended character ” is not valid in an identifier
    8 |   if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
      |                      ^
a.cc:8:22: error: extended character ” is not valid in an identifier
a.cc:8:32: error: extended character ” is not valid in an identifier
    8 |   if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
      |                                ^
a.cc:8:32: error: extended character ” is not valid in an identifier
a.cc:8:42: error: extended character ” is not valid in an identifier
    8 |   if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
      |                                          ^
a.cc:8:42: error: extended character ” is not valid in an identifier
a.cc:8:52: error: extended character “ is not valid in an identifier
    8 |   if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
      |                                                    ^
a.cc:8:52: error: extended character ” is not valid in an identifier
a.cc:9:13: warning: missing terminating " character
    9 |     cout << "vowel” << endl;
      |             ^
a.cc:9:13: error: missing terminating " character
    9 |     cout << "vowel” << endl;
      |             ^~~~~~~~~~~~~~~~
a.cc:12:14: error: extended character “ is not valid in an identifier
   12 |     count << “consonant” << endl;
      |              ^
a.cc:12:14: 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” || x==”i” || x==”u” || x==”e” ||x== “o”) {
      |            ^~~
a.cc:8:22: error: '\U0000201di\U0000201d' was not declared in this scope
    8 |   if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
      |                      ^~~
a.cc:8:32: error: '\U0000201du\U0000201d' was not declared in this scope
    8 |   if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
      |                                ^~~
a.cc:8:42: error: '\U0000201de\U0000201d' was not declared in this scope
    8 |   if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
      |                                          ^~~
a.cc:8:52: error: '\U0000201co\U0000201d' was not declared in this scope
    8 |   if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
      |                                                    ^~~
a.cc:10:3: error: expected primary-expression before '}' token
   10 |   }
      |   ^
a.cc:12:14: error: '\U0000201cconsonant\U0000201d' was not declared in this scope
   12 |     count << “consonant” << endl;
      |              ^~~~~~~~~~~
Language: C++

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

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

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


Compiler output:
a.cc:8:12: error: extended character “ is not valid in an identifier
    8 |   if (x == “a” || ”i” || ”u” || ”e” || “o”) {
      |            ^
a.cc:8:12: error: extended character ” is not valid in an identifier
a.cc:8:19: error: extended character ” is not valid in an identifier
    8 |   if (x == “a” || ”i” || ”u” || ”e” || “o”) {
      |                   ^
a.cc:8:19: error: extended character ” is not valid in an identifier
a.cc:8:26: error: extended character ” is not valid in an identifier
    8 |   if (x == “a” || ”i” || ”u” || ”e” || “o”) {
      |                          ^
a.cc:8:26: error: extended character ” is not valid in an identifier
a.cc:8:33: error: extended character ” is not valid in an identifier
    8 |   if (x == “a” || ”i” || ”u” || ”e” || “o”) {
      |                                 ^
a.cc:8:33: error: extended character ” is not valid in an identifier
a.cc:8:40: error: extended character “ is not valid in an identifier
    8 |   if (x == “a” || ”i” || ”u” || ”e” || “o”) {
      |                                        ^
a.cc:8:40: error: extended character ” is not valid in an identifier
a.cc:9:13: warning: missing terminating " character
    9 |     cout << "vowel” << endl;
      |             ^
a.cc:9:13: error: missing terminating " character
    9 |     cout << "vowel” << endl;
      |             ^~~~~~~~~~~~~~~~
a.cc:12:14: error: extended character “ is not valid in an identifier
   12 |     count << “consonant” << endl;
      |              ^
a.cc:12:14: 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” || ”i” || ”u” || ”e” || “o”) {
      |            ^~~
a.cc:8:19: error: '\U0000201di\U0000201d' was not declared in this scope
    8 |   if (x == “a” || ”i” || ”u” || ”e” || “o”) {
      |                   ^~~
a.cc:8:26: error: '\U0000201du\U0000201d' was not declared in this scope
    8 |   if (x == “a” || ”i” || ”u” || ”e” || “o”) {
      |                          ^~~
a.cc:8:33: error: '\U0000201de\U0000201d' was not declared in this scope
    8 |   if (x == “a” || ”i” || ”u” || ”e” || “o”) {
      |                                 ^~~
a.cc:8:40: error: '\U0000201co\U0000201d' was not declared in this scope
    8 |   if (x == “a” || ”i” || ”u” || ”e” || “o”) {
      |                                        ^~~
a.cc:10:3: error: expected primary-expression before '}' token
   10 |   }
      |   ^
a.cc:12:14: error: '\U0000201cconsonant\U0000201d' was not declared in this scope
   12 |     count << “consonant” << endl;
      |              ^~~~~~~~~~~
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:7:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(c == "a"||c == "i"||c == "u"||c == "e"||c == "o"){
      |      ~~^~~~~~
a.cc:7:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(c == "a"||c == "i"||c == "u"||c == "e"||c == "o"){
      |                ~~^~~~~~
a.cc:7:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(c == "a"||c == "i"||c == "u"||c == "e"||c == "o"){
      |                          ~~^~~~~~
a.cc:7:38: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(c == "a"||c == "i"||c == "u"||c == "e"||c == "o"){
      |                                    ~~^~~~~~
a.cc:7:48: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(c == "a"||c == "i"||c == "u"||c == "e"||c == "o"){
      |                                              ~~^~~~~~
Language: C++

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

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






Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected '}' before 'else'
    9 |   else {
      |   ^~~~
a.cc:7:65: note: to match this '{'
    7 |   if (a == 'a' || a == 'e' || a == 'i' || a == 'o' || a == 'u') {
      |                                                                 ^
Language: C++

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

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





Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'eise' was not declared in this scope
    9 |   eise {
      |   ^~~~
a.cc:12:2: error: expected '}' at end of input
   12 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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




Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:3: error: 'eise' was not declared in this scope
    9 |   eise {
      |   ^~~~
a.cc:12:2: error: expected '}' at end of input
   12 | }
      |  ^
a.cc:4:13: note: to match this '{'
    4 | void main() {
      |             ^
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:17:1: warning: capture of variable 'std::cout' with non-automatic storage duration
   17 | cout<<"vowel"<<endl;
      | ^~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::ostream std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:17:5: error: expected ',' before '<<' token
   17 | cout<<"vowel"<<endl;
      |     ^~
      |     ,
a.cc:17:5: error: expected identifier before '<<' token
   17 | cout<<"vowel"<<endl;
      |     ^~
a.cc:17:20: error: expected ']' before ';' token
   17 | cout<<"vowel"<<endl;
      |                    ^
      |                    ]
a.cc: In lambda function:
a.cc:17:20: error: expected '{' before ';' token
a.cc: At global scope:
a.cc:18:2: error: expected unqualified-id before 'else'
   18 | }else{
      |  ^~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
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:15:5: error: expected ';' before string constant
   15 | cout"vowel"<<endl;
      |     ^~~~~~~
      |     ;
a.cc:17:1: warning: capture of variable 'std::cout' with non-automatic storage duration
   17 | cout<<"vowel"<<endl;
      | ^~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::ostream std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:17:5: error: expected ',' before '<<' token
   17 | cout<<"vowel"<<endl;
      |     ^~
      |     ,
a.cc:17:5: error: expected identifier before '<<' token
   17 | cout<<"vowel"<<endl;
      |     ^~
a.cc:17:20: error: expected ']' before ';' token
   17 | cout<<"vowel"<<endl;
      |                    ^
      |                    ]
a.cc: In lambda function:
a.cc:17:20: error: expected '{' before ';' token
a.cc: At global scope:
a.cc:18:2: error: expected unqualified-id before 'else'
   18 | }else{
      |  ^~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
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:11:7: warning: missing terminating " character
   11 | cout<<"vowel<<endl;
      |       ^
a.cc:11:7: error: missing terminating " character
   11 | cout<<"vowel<<endl;
      |       ^~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:12:1: error: expected primary-expression before '}' token
   12 | }else if(c == 'i'){
      | ^
a.cc:15:5: error: expected ';' before string constant
   15 | cout"vowel"<<endl;
      |     ^~~~~~~
      |     ;
a.cc:17:1: warning: capture of variable 'std::cout' with non-automatic storage duration
   17 | cout<<vowel<<endl;
      | ^~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::ostream std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:17:5: error: expected ',' before '<<' token
   17 | cout<<vowel<<endl;
      |     ^~
      |     ,
a.cc:17:5: error: expected identifier before '<<' token
   17 | cout<<vowel<<endl;
      |     ^~
a.cc:17:18: error: expected ']' before ';' token
   17 | cout<<vowel<<endl;
      |                  ^
      |                  ]
a.cc: In lambda function:
a.cc:17:18: error: expected '{' before ';' token
a.cc: At global scope:
a.cc:18:2: error: expected unqualified-id before 'else'
   18 | }else{
      |  ^~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
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:9:7: error: 'vowel' was not declared in this scope
    9 | cout<<vowel<<endl;
      |       ^~~~~
a.cc:11:7: error: 'consonant' was not declared in this scope
   11 | cout<<consonant<<endl;
      |       ^~~~~~~~~
Language: C++

#include<stdio.h>
int main(void)
{
	char c;
	
	scanf("%c",&c);
	
	if (c== 'a') {　
		printf("vowel\n");
	}
	else if(c== 'i') {
		printf("vowel\n");
	}
	else if(c== 'u') {
		printf("vowel\n");
	}
	else if(c== 'e') {
		printf("vowel\n");
	}
	else if(c== 'o') {
		printf("vowel\n");
	}
	else {
		printf("consonant\n");
	}
	return 0;
}	

Compiler output:
a.cc:8:23: error: extended character 　 is not valid in an identifier
    8 |         if (c== 'a') {　
      |                       ^
a.cc: In function 'int main()':
a.cc:8:23: error: '\U00003000' was not declared in this scope
    8 |         if (c== 'a') {　
      |                       ^~
Language: C++

#include<stdio.h>
int main(void)
{
	char c;
	
	scanf("%c",&c);
	
	if(c==a) {　
	printf("vowel\n");
	}
	else if(c==i) {
	printf("vowel\n");
	}
	else if(c==u) {
	printf("vowel\n");
	}
	else if(c==e) {
	printf("vowel\n");
	}
	else if(c==o) {
	printf("vowel\n");
	}
	else {
	printf("consonant\n");
	}
	return 0;
}
		

Compiler output:
a.cc:8:19: error: extended character 　 is not valid in an identifier
    8 |         if(c==a) {　
      |                   ^
a.cc: In function 'int main()':
a.cc:8:15: error: 'a' was not declared in this scope
    8 |         if(c==a) {　
      |               ^
a.cc:8:19: error: '\U00003000' was not declared in this scope
    8 |         if(c==a) {　
      |                   ^~
a.cc:11:20: error: 'i' was not declared in this scope
   11 |         else if(c==i) {
      |                    ^
a.cc:14:20: error: 'u' was not declared in this scope
   14 |         else if(c==u) {
      |                    ^
a.cc:17:20: error: 'e' was not declared in this scope
   17 |         else if(c==e) {
      |                    ^
a.cc:20:20: error: 'o' was not declared in this scope
   20 |         else if(c==o) {
      |                    ^
Language: C++

#include<stdio.h>
int main(void)
{
	char c;
	
	scanf("%c",&c);
	
	if(c=='a') {　
	printf("vowel\n");
	}
	else if(c=='i') {
	printf("vowel\n");
	}
	else if(c=='u') {
	printf("vowel\n");
	}
	else if(c=='e') {
	printf("vowel\n");
	}
	else if(c=='o') {
	printf("vowel\n");
	}
	else {
	printf("consonant\n");
	}
	return 0;
}
		

Compiler output:
a.cc:8:21: error: extended character 　 is not valid in an identifier
    8 |         if(c=='a') {　
      |                     ^
a.cc: In function 'int main()':
a.cc:8:21: error: '\U00003000' was not declared in this scope
    8 |         if(c=='a') {　
      |                     ^~
Language: C++

#include<stdio.h>
int main(void)
{
	char s;
	
	scanf("%c",&s);
	
	if(s=='a') {　
	printf("vowel\n");
	}
	else if(s=='i') {
	printf("vowel\n");
	}
	else if(s=='u') {
	printf("vowel\n");
	}
	else if(s=='e') {
	printf("vowel\n");
	}
	else if(s=='o') {
	printf("vowel\n");
	}
	else {
	printf("consonant\n");
	}
	return 0;
}
		

Compiler output:
a.cc:8:21: error: extended character 　 is not valid in an identifier
    8 |         if(s=='a') {　
      |                     ^
a.cc: In function 'int main()':
a.cc:8:21: error: '\U00003000' was not declared in this scope
    8 |         if(s=='a') {　
      |                     ^~
Language: C++

#include<stdio.h>
int main(void)
{
	char s,a,i,u,e,o;
	
	scanf("%c",&s);
	
	if(s=='a') {　
	printf("vowel\n");
	}
	else if(s=='i') {
	printf("vowel\n");
	}
	else if(s=='u') {
	printf("vowel\n");
	}
	else if(s=='e') {
	printf("vowel\n");
	}
	else if(s=='o') {
	printf("vowel\n");
	}
	else {
	printf("consonant\n");
	}
	return 0;
}
		

Compiler output:
a.cc:8:21: error: extended character 　 is not valid in an identifier
    8 |         if(s=='a') {　
      |                     ^
a.cc: In function 'int main()':
a.cc:8:21: error: '\U00003000' was not declared in this scope
    8 |         if(s=='a') {　
      |                     ^~
Language: C++

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

Compiler output:
a.cc:8:19: error: extended character 　 is not valid in an identifier
    8 |         if(s==a) {　
      |                   ^
a.cc: In function 'int main()':
a.cc:8:19: error: '\U00003000' was not declared in this scope
    8 |         if(s==a) {　
      |                   ^~
Language: C++

#include<stdio.h>
int main(void)
{
	char s,a,i,u,e,o;
	
	scanf("%c",s);
	
	if(s==a) {　
	printf("vowel\n");
	}
	else if(s==i) {
	printf("vowel\n");
	}
	else if(s==u) {
	printf("vowel\n");
	}
	else if(s==e) {
	printf("vowel\n");
	}
	else if(s==o) {
	printf("vowel\n");
	}
	else {
	printf("consonant\n");
	}
	return 0;
}
		

Compiler output:
a.cc:8:19: error: extended character 　 is not valid in an identifier
    8 |         if(s==a) {　
      |                   ^
a.cc: In function 'int main()':
a.cc:8:19: error: '\U00003000' was not declared in this scope
    8 |         if(s==a) {　
      |                   ^~
Language: C++

#include<stdio.h>
int main(void)
{
	char s,a,i,u,e,o;
	
	scanf("%c",s);
	
	if(s=='a') {　
	printf("vowel\n");
	}
	else if(s=='i') {
	printf("vowel\n");
	}
	else if(s=='u') {
	printf("vowel\n");
	}
	else if(s=='e') {
	printf("vowel\n");
	}
	else if(s=='o') {
	printf("vowel\n");
	}
	else {
	printf("consonant\n");
	}
	return 0;
}
		

Compiler output:
a.cc:8:21: error: extended character 　 is not valid in an identifier
    8 |         if(s=='a') {　
      |                     ^
a.cc: In function 'int main()':
a.cc:8:21: error: '\U00003000' was not declared in this scope
    8 |         if(s=='a') {　
      |                     ^~
Language: C++

#include<stdio.h>
int main(void)
{
	char s,a,i,u,e,o;
	
	scanf("%c",s);
	
	if(s==a) {　
	printf("vowel\n");
	}
	else if(s=='i') {
	printf("vowel\n");
	}
	else if(s=='u') {
	printf("vowel\n");
	}
	else if(s=='e') {
	printf("vowel\n");
	}
	else if(s=='o') {
	printf("vowel\n");
	}
	else {
	printf("consonant\n");
	}
	return 0;
}
		

Compiler output:
a.cc:8:19: error: extended character 　 is not valid in an identifier
    8 |         if(s==a) {　
      |                   ^
a.cc: In function 'int main()':
a.cc:8:19: error: '\U00003000' was not declared in this scope
    8 |         if(s==a) {　
      |                   ^~
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>

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:14:45: error: expected '}' at end of input
   14 |                 cout << "consonant" << endl;
      |                                             ^
a.cc:8:1: note: to match this '{'
    8 | {
      | ^
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" << 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 == "i" || c == "u" || c == "e" || c == "o")
      |        ~~^~~~~~
a.cc:7:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |     if(c == "a" || c == "i" || c == "u" || c == "e" || c == "o")
      |                    ~~^~~~~~
a.cc:7:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |     if(c == "a" || c == "i" || c == "u" || c == "e" || c == "o")
      |                                ~~^~~~~~
a.cc:7:46: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |     if(c == "a" || c == "i" || c == "u" || c == "e" || c == "o")
      |                                            ~~^~~~~~
a.cc:7:58: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |     if(c == "a" || c == "i" || c == "u" || c == "e" || c == "o")
      |                                                        ~~^~~~~~
Language: C++

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

int main () {
char c;
cin >> c;
if (c == 'a' || c == 'b')
cout << vowel << endl;
if (c == 'c' || c == 'd')
cout  << vowel << endl;
if (c == 'e')
cout  << vowel << endl;
else {cout << consonant << endl;;}
}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'vowel' was not declared in this scope
    8 | cout << vowel << endl;
      |         ^~~~~
a.cc:10:10: error: 'vowel' was not declared in this scope
   10 | cout  << vowel << endl;
      |          ^~~~~
a.cc:12:10: error: 'vowel' was not declared in this scope
   12 | cout  << vowel << endl;
      |          ^~~~~
a.cc:13:15: error: 'consonant' was not declared in this scope
   13 | else {cout << consonant << endl;;}
      |               ^~~~~~~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
  int c;
  cin >> c;
  bool flg = false;
  char check[5] = {'a','i','u','e','o'};
  for(int i = 0; i < 5; ++i){
    if(c == check[i]){
      flg = true;
      break;
    }
  }
  cout << ((flg) ? "vowel" : "consonant" << endl; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:42: error: invalid operands of types 'const char [10]' and '<unresolved overloaded function type>' to binary 'operator<<'
   15 |   cout << ((flg) ? "vowel" : "consonant" << endl;
      |                              ~~~~~~~~~~~~^~~~~~~
a.cc:15:49: error: expected ')' before ';' token
   15 |   cout << ((flg) ? "vowel" : "consonant" << endl;
      |           ~                                     ^
      |                                                 )
Language: C++

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


int main() {
  chr 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:6:3: error: 'chr' was not declared in this scope; did you mean 'char'?
    6 |   chr c;
      |   ^~~
      |   char
a.cc:7:10: error: 'c' was not declared in this scope
    7 |   cin >> c;
      |          ^
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:12:2: error: expected '}' at end of input
   12 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'vowel' was not declared in this scope
    9 |     s = vowel;
      |         ^~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected ',' or ';' before 'char'
    6 |   char a;
      |   ^~~~
a.cc:7:10: error: 'a' was not declared in this scope
    7 |   cin >> a;
      |          ^
a.cc:9:9: error: 'vowel' was not declared in this scope
    9 |     s = vowel;
      |         ^~~~~
Language: C++

#include <iostream>

using namespace std;

int main(void)
{
    char input;

	cin >> input;

	switch(input)
	{
		case 'a'
		case 'i'
		case 'u'
		case 'e'
		case 'o'
		cout << "vowel" << endl;
		break;
	default:
		cout << "consonant" << endl;
		break;
	}

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:25: error: expected ':' before 'case'
   13 |                 case 'a'
      |                         ^
      |                         :
   14 |                 case 'i'
      |                 ~~~~     
a.cc:14:25: error: expected ':' before 'case'
   14 |                 case 'i'
      |                         ^
      |                         :
   15 |                 case 'u'
      |                 ~~~~     
a.cc:15:25: error: expected ':' before 'case'
   15 |                 case 'u'
      |                         ^
      |                         :
   16 |                 case 'e'
      |                 ~~~~     
a.cc:16:25: error: expected ':' before 'case'
   16 |                 case 'e'
      |                         ^
      |                         :
   17 |                 case 'o'
      |                 ~~~~     
a.cc:17:25: error: expected ':' before 'cout'
   17 |                 case 'o'
      |                         ^
      |                         :
   18 |                 cout << "vowel" << endl;
      |                 ~~~~
Language: C++

#include <bits/stdc++.h> //JuniorMonster a.k.a Sho10
#define ll long long
#pragma GCC optimize("O3")
#pragma GCC optimize("Ofast")
#define all(a) (a).begin(), (a).end()
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#define sz size
#define f first
#define s second
#define pb push_back
#define er erase
#define in insert
#define mp make_pair
#define pi pair
#define rc(s) return cout<<s,0
#define mod 1000000007
#define PI 3.14159265359
#define CODE_START  ios_base::sync_with_stdio();cin.tie();cout.tie();
using namespace std;
ll n;
char a;
int32_t main(){
CODE_START;
cin >> a;
if(a=='a'||a=='e'||a=='i'||a[i]=='o'||a[i]=='u'){
    rc("vowel");
}
cout << "consonant";
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:25:30: error: 'i' was not declared in this scope
   25 | if(a=='a'||a=='e'||a=='i'||a[i]=='o'||a[i]=='u'){
      |                              ^
Language: C++

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:5:5: error: 'cin' was not declared in this scope
    5 |     cin >> c;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << "vowel" << endl;
      |         ^~~~
a.cc:8:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:28: error: 'endl' was not declared in this scope
    8 |         cout << "vowel" << endl;
      |                            ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << "consonant" << endl;
      |         ^~~~
a.cc:11:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:32: error: 'endl' was not declared in this scope
   11 |         cout << "consonant" << endl;
      |                                ^~~~
a.cc:11:32: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

int main(void){

  char c;
  cin>>c;

  switch (c) {
    case a:cout<<vowel<<endl; break;
    case e:cout<<vowel<<endl;break;
    case i:cout<<vowel<<endl;break;
    case o:cout<<vowel<<endl;break;
    case u:cout<<vowel<<endl;break;
    default:cout<<consonant<<endl;break;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: 'a' was not declared in this scope
   10 |     case a:cout<<vowel<<endl; break;
      |          ^
a.cc:10:18: error: 'vowel' was not declared in this scope
   10 |     case a:cout<<vowel<<endl; break;
      |                  ^~~~~
a.cc:11:10: error: 'e' was not declared in this scope
   11 |     case e:cout<<vowel<<endl;break;
      |          ^
a.cc:12:10: error: 'i' was not declared in this scope
   12 |     case i:cout<<vowel<<endl;break;
      |          ^
a.cc:13:10: error: 'o' was not declared in this scope
   13 |     case o:cout<<vowel<<endl;break;
      |          ^
a.cc:14:10: error: 'u' was not declared in this scope
   14 |     case u:cout<<vowel<<endl;break;
      |          ^
a.cc:15:19: error: 'consonant' was not declared in this scope
   15 |     default:cout<<consonant<<endl;break;
      |                   ^~~~~~~~~
Language: C++

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

int main(void){

  char c;
  cin>>c;

  switch (c) {
    case 'a':cout<<vowel<<endl; break;
    case 'e':cout<<vowel<<endl;break;
    case 'i':cout<<vowel<<endl;break;
    case 'o':cout<<vowel<<endl;break;
    case 'u':cout<<vowel<<endl;break;
    default:cout<<consonant<<endl;break;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: 'vowel' was not declared in this scope
   10 |     case 'a':cout<<vowel<<endl; break;
      |                    ^~~~~
a.cc:15:19: error: 'consonant' was not declared in this scope
   15 |     default:cout<<consonant<<endl;break;
      |                   ^~~~~~~~~
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;
  }

  return 0;


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

#include<iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:10: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 | {char A; cin >> A;
      |          ^~~
      |          std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |  {cout << "vowel"<<endl;}
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |  {cout << "vowel"<<endl;}
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:7:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 | else{cout << "consonant" << endl;}
      |      ^~~~
      |      std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 | else{cout << "consonant" << endl;}
      |                             ^~~~
      |                             std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
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: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=='a'||S=='i'||S=='u'||S=='e'||S=='o''){
   cout<< vowel<<endl;
 }else{
   cout<<consonant<<endl;
}
}


Compiler output:
a.cc:8:44: warning: missing terminating ' character
    8 |   if(S=='a'||S=='i'||S=='u'||S=='e'||S=='o''){
      |                                            ^
a.cc:8:44: error: missing terminating ' character
    8 |   if(S=='a'||S=='i'||S=='u'||S=='e'||S=='o''){
      |                                            ^~~
a.cc: In function 'int main()':
a.cc:8:44: error: expected ';' before 'cout'
    8 |   if(S=='a'||S=='i'||S=='u'||S=='e'||S=='o''){
      |                                            ^
      |                                            ;
    9 |    cout<< vowel<<endl;
      |    ~~~~                                     
a.cc:10:2: error: expected primary-expression before '}' token
   10 |  }else{
      |  ^
a.cc:9:23: error: expected ')' before '}' token
    9 |    cout<< vowel<<endl;
      |                       ^
      |                       )
   10 |  }else{
      |  ~                     
a.cc:8:5: note: to match this '('
    8 |   if(S=='a'||S=='i'||S=='u'||S=='e'||S=='o''){
      |     ^
a.cc:10:2: error: expected primary-expression before '}' token
   10 |  }else{
      |  ^
a.cc: At global scope:
a.cc:10:3: error: expected unqualified-id before 'else'
   10 |  }else{
      |   ^~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^