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

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

int main() {
  star = s;
  if ('s' == 'a'||'s'=='i'||'s'=='u'||'s'=='e'||'s'=='o') cout << "vowel"
  else cout << "constant"
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'star' was not declared in this scope
    5 |   star = s;
      |   ^~~~
a.cc:5:10: error: 's' was not declared in this scope
    5 |   star = s;
      |          ^
a.cc:6:74: error: expected ';' before 'else'
    6 |   if ('s' == 'a'||'s'=='i'||'s'=='u'||'s'=='e'||'s'=='o') cout << "vowel"
      |                                                                          ^
      |                                                                          ;
    7 |   else cout << "constant"
      |   ~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'c'
    6 |   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:8:8: warning: ignoring return value of 'bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
    8 |   if (c=="a","i","u","e","o"){
      |       ~^~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3772:5: note: declared here
 3772 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
a.cc:9:13: error: 'vowel' was not declared in this scope
    9 |     cout << vowel << endl;
      |             ^~~~~
a.cc:12:13: error: 'consonant' was not declared in this scope
   12 |     cout << consonant << endl;
      |             ^~~~~~~~~
a.cc:13:4: error: expected '}' at end of input
   13 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using name 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:2:7: error: expected nested-name-specifier before 'name'
    2 | using name std;
      |       ^~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> c;
      |   ^~~
      |   std::cin
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:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     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:8:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     cout << "vowel" << endl;
      |                        ^~~~
      |                        std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     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:11:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     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++

vowel = ['a','i','u','e','o']
print('vowel' if input() in vowel else 'consonant')

Compiler output:
a.cc:2:7: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    2 | print('vowel' if input() in vowel else 'consonant')
      |       ^~~~~~~
a.cc:2:40: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
    2 | print('vowel' if input() in vowel else 'consonant')
      |                                        ^~~~~~~~~~~
a.cc:1:1: error: 'vowel' does not name a type
    1 | vowel = ['a','i','u','e','o']
      | ^~~~~
Language: C++

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

int main() {
 string str = "S";

 if (S == 'a' + 'i' + 'u' + 'e' + 'o';
     cout << vowel << endl;
     
 else;
     cout << consonant << endl;
     
     )
}  
 

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: 'S' was not declared in this scope
    7 |  if (S == 'a' + 'i' + 'u' + 'e' + 'o';
      |      ^
a.cc:8:14: error: 'vowel' was not declared in this scope
    8 |      cout << vowel << endl;
      |              ^~~~~
a.cc:8:27: error: expected ')' before ';' token
    8 |      cout << vowel << endl;
      |                           ^
      |                           )
a.cc:7:5: note: to match this '('
    7 |  if (S == 'a' + 'i' + 'u' + 'e' + 'o';
      |     ^
a.cc:11:14: error: 'consonant' was not declared in this scope
   11 |      cout << consonant << endl;
      |              ^~~~~~~~~
a.cc:13:6: error: expected primary-expression before ')' token
   13 |      )
      |      ^
Language: C++

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

int main()
{
  string 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:1:10: fatal error: buts/stdc++.h: No such file or directory
    1 | #include <buts/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
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:8:20: error: expected ';' before 'endl'
    8 |     cout << "vowel" endl;
      |                    ^~~~~
      |                    ;
a.cc:11:24: error: expected ';' before 'endl'
   11 |     cout << "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:6:6: error: expected ';' before 'c'
    6 |   cin c;
      |      ^~
      |      ;
a.cc:8:20: error: expected ';' before 'endl'
    8 |     cout << "vowel" endl;
      |                    ^~~~~
      |                    ;
a.cc:11:24: error: expected ';' before 'endl'
   11 |     cout << "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:6:6: error: expected ';' before 'c'
    6 |   cin c;
      |      ^~
      |      ;
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:21: 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:32: 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:43: 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:54: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if ( c == "a" || c== "i" ||c == "u" ||c == "e" ||c == "o" ) {
      |                                                    ~~^~~~~~
a.cc:8:20: error: expected ';' before 'endl'
    8 |     cout << "vowel" endl;
      |                    ^~~~~
      |                    ;
a.cc:11:24: error: expected ';' before 'endl'
   11 |     cout << "consonant" endl;
      |                        ^~~~~
      |                        ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  char 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:6:6: error: expected ';' before 'c'
    6 |   cin c;
      |      ^~
      |      ;
a.cc:7:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if ( c == "a" || "i" || "u" || "e" || "o" ) {
      |        ~~^~~~~~
a.cc:8:20: error: expected ';' before 'endl'
    8 |     cout << "vowel" endl;
      |                    ^~~~~
      |                    ;
a.cc:11:24: error: expected ';' before 'endl'
   11 |     cout << "consonant" endl;
      |                        ^~~~~
      |                        ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'c'
    6 |   cin c;
      |      ^~
      |      ;
a.cc:7:13: error: 'a' was not declared in this scope
    7 |   if ( c == a || i || u || e || o ) {
      |             ^
a.cc:7:18: error: 'i' was not declared in this scope
    7 |   if ( c == a || i || u || e || o ) {
      |                  ^
a.cc:7:23: error: 'u' was not declared in this scope
    7 |   if ( c == a || i || u || e || o ) {
      |                       ^
a.cc:7:28: error: 'e' was not declared in this scope
    7 |   if ( c == a || i || u || e || o ) {
      |                            ^
a.cc:7:33: error: 'o' was not declared in this scope
    7 |   if ( c == a || i || u || e || o ) {
      |                                 ^
a.cc:8:13: error: 'vowel' was not declared in this scope
    8 |     cout << vowel ;
      |             ^~~~~
a.cc:11:13: error: 'consonant' was not declared in this scope
   11 |     cout << consonant ;
      |             ^~~~~~~~~
Language: C++

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

int main() {
	string 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:24: error: 'C' was not declared in this scope
    7 |         if(c == "a" || C == "i" ||  c == "u" || c == "e" || c == "o") {
      |                        ^
Language: C

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
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:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'else' without a previous 'if'
    7 |         else cout<<"consonant"<<endl;
      |         ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for( int i = 0; i < (int)(n); i++ )

int main( void )
{
    char c;
    cin >> c;
    string x = "aiueo";
    bool y = false;
    
    rep(i,c.size())
    {
        if ( c == x.at(i) )
        {
            y = true;
        }
    }
    
    if ( y )
        cout << "vowel" << endl;
    else
        cout << "consonant" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: request for member 'size' in 'c', which is of non-class type 'char'
   12 |     rep(i,c.size())
      |             ^~~~
a.cc:3:44: note: in definition of macro 'rep'
    3 | #define rep(i,n) for( int i = 0; i < (int)(n); i++ )
      |                                            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for( int = 0; i < (int)(n); i++ )

int main( void )
{
    char c;
    cin >> c;
    string x = "aiueo";
    bool y = false;
    
    rep(i,c.size())
    {
        if ( c == x.at(i) )
        {
            y = true;
        }
    }
    
    if ( y )
        cout << "vowel" << endl;
    else
        cout << "consonant" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:27: error: expected unqualified-id before '=' token
    3 | #define rep(i,n) for( int = 0; i < (int)(n); i++ )
      |                           ^
a.cc:12:5: note: in expansion of macro 'rep'
   12 |     rep(i,c.size())
      |     ^~~
a.cc:3:27: error: expected ';' before '=' token
    3 | #define rep(i,n) for( int = 0; i < (int)(n); i++ )
      |                           ^
a.cc:12:5: note: in expansion of macro 'rep'
   12 |     rep(i,c.size())
      |     ^~~
a.cc:3:27: error: expected primary-expression before '=' token
    3 | #define rep(i,n) for( int = 0; i < (int)(n); i++ )
      |                           ^
a.cc:12:5: note: in expansion of macro 'rep'
   12 |     rep(i,c.size())
      |     ^~~
a.cc:12:9: error: 'i' was not declared in this scope
   12 |     rep(i,c.size())
      |         ^
a.cc:3:32: note: in definition of macro 'rep'
    3 | #define rep(i,n) for( int = 0; i < (int)(n); i++ )
      |                                ^
a.cc:12:13: error: request for member 'size' in 'c', which is of non-class type 'char'
   12 |     rep(i,c.size())
      |             ^~~~
a.cc:3:42: note: in definition of macro 'rep'
    3 | #define rep(i,n) for( int = 0; i < (int)(n); i++ )
      |                                          ^
a.cc:3:44: error: expected ')' before ';' token
    3 | #define rep(i,n) for( int = 0; i < (int)(n); i++ )
      |                     ~                      ^
a.cc:12:5: note: in expansion of macro 'rep'
   12 |     rep(i,c.size())
      |     ^~~
a.cc:12:9: error: 'i' was not declared in this scope
   12 |     rep(i,c.size())
      |         ^
a.cc:3:46: note: in definition of macro 'rep'
    3 | #define rep(i,n) for( int = 0; i < (int)(n); i++ )
      |                                              ^
Language: C++

#include <iostream>
 using namespace std;
 int main(){
  string 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:6:12: error: 'a' was not declared in this scope
    6 |      if(s==a||s==i||s==u||s==e||s==o){
      |            ^
a.cc:6:18: error: 'i' was not declared in this scope
    6 |      if(s==a||s==i||s==u||s==e||s==o){
      |                  ^
a.cc:6:24: error: 'u' was not declared in this scope
    6 |      if(s==a||s==i||s==u||s==e||s==o){
      |                        ^
a.cc:6:30: error: 'e' was not declared in this scope
    6 |      if(s==a||s==i||s==u||s==e||s==o){
      |                              ^
a.cc:6:36: error: 'o' was not declared in this scope
    6 |      if(s==a||s==i||s==u||s==e||s==o){
      |                                    ^
Language: C++

#include <iostream>
 using namespace std;
 int main(){
  string 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:6:12: error: 'a' was not declared in this scope
    6 |      if(s==a||s==i||s==u||s==e||s==o){
      |            ^
a.cc:6:18: error: 'i' was not declared in this scope
    6 |      if(s==a||s==i||s==u||s==e||s==o){
      |                  ^
a.cc:6:24: error: 'u' was not declared in this scope
    6 |      if(s==a||s==i||s==u||s==e||s==o){
      |                        ^
a.cc:6:30: error: 'e' was not declared in this scope
    6 |      if(s==a||s==i||s==u||s==e||s==o){
      |                              ^
a.cc:6:36: error: 'o' was not declared in this scope
    6 |      if(s==a||s==i||s==u||s==e||s==o){
      |                                    ^
Language: C++

#include <iostream>
 using namespace std;
 int main(){
  string 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:5:10: error: expected ';' before 'if'
    5 |    cin>>s
      |          ^
      |          ;
    6 |      if(s==a||s==i||s==u||s==e||s==o){
      |      ~~   
a.cc:9:6: error: 'else' without a previous 'if'
    9 |      else{
      |      ^~~~
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 << "consonant" << endl;}
  }
    
    

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){
      |      ~^~~~~
a.cc:6:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){
      |              ~^~~~~
a.cc:6:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){
      |                      ~^~~~~
a.cc:6:31: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){
      |                              ~^~~~~
a.cc:6:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){
      |                                      ~^~~~~
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";
  }
  else {
	cout << "consonant";
  }


}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'a' was not declared in this scope
    7 |   if (c == a || c == i || c == u || c == e || c == o){
      |            ^
a.cc:7:22: error: 'i' was not declared in this scope
    7 |   if (c == a || c == i || c == u || c == e || c == o){
      |                      ^
a.cc:7:32: error: 'u' was not declared in this scope
    7 |   if (c == a || c == i || c == u || c == e || c == o){
      |                                ^
a.cc:7:42: error: 'e' was not declared in this scope
    7 |   if (c == a || c == i || c == u || c == e || c == o){
      |                                          ^
a.cc:7:52: error: 'o' was not declared in this scope
    7 |   if (c == a || c == i || c == u || c == e || c == o){
      |                                                    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
main{
String 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:3:1: error: 'main' does not name a type
    3 | main{
      | ^~~~
Language: C++

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

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

  int c.at(0);
  cin >> c.at(0);
  
  if (c.at(0) == a || e || i || o || U) {
    cout << vowel << endl;
  }
  
  else {
    cout << consonant << endl;
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected initializer before '.' token
    8 |   int c.at(0);
      |        ^
a.cc:11:18: error: 'a' was not declared in this scope
   11 |   if (c.at(0) == a || e || i || o || U) {
      |                  ^
a.cc:11:23: error: 'e' was not declared in this scope
   11 |   if (c.at(0) == a || e || i || o || U) {
      |                       ^
a.cc:11:28: error: 'i' was not declared in this scope
   11 |   if (c.at(0) == a || e || i || o || U) {
      |                            ^
a.cc:11:33: error: 'o' was not declared in this scope
   11 |   if (c.at(0) == a || e || i || o || U) {
      |                                 ^
a.cc:11:38: error: 'U' was not declared in this scope
   11 |   if (c.at(0) == a || e || i || o || U) {
      |                                      ^
a.cc:12:13: error: 'vowel' was not declared in this scope
   12 |     cout << vowel << endl;
      |             ^~~~~
a.cc:16:13: error: 'consonant' was not declared in this scope
   16 |     cout << 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:6:10: error: 'a' was not declared in this scope
    6 |   if((c==a)||(c==i)||(c==u)||(c==e)||(c==o))
      |          ^
a.cc:6:18: error: 'i' was not declared in this scope
    6 |   if((c==a)||(c==i)||(c==u)||(c==e)||(c==o))
      |                  ^
a.cc:6:26: error: 'u' was not declared in this scope
    6 |   if((c==a)||(c==i)||(c==u)||(c==e)||(c==o))
      |                          ^
a.cc:6:34: error: 'e' was not declared in this scope
    6 |   if((c==a)||(c==i)||(c==u)||(c==e)||(c==o))
      |                                  ^
a.cc:6:42: error: 'o' was not declared in this scope
    6 |   if((c==a)||(c==i)||(c==u)||(c==e)||(c==o))
      |                                          ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:40: error: lvalue required as left operand of assignment
    8 |   if(c = 'a'||c = 'i'||c = 'u'||c = 'e'||c = 'o')
      |                                     ~~~^~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected ';' before '}' token
    9 |       x = "vowel"}
      |                  ^
      |                  ;
a.cc:10:23: error: expected ';' before '}' token
   10 |   else{x = "consonant"}
      |                       ^
      |                       ;
Language: C++

#include <iostream>

using namespace std;

int main()
{
    char charecter;
    cin >> charecter;

    if(charecter == 'a' || charecter == 'o' || charecter == 'u' || charecter == 'e' || character == 'i')
        cout << "vowel";
    else
        cout << "consonant";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:88: error: 'character' was not declared in this scope; did you mean 'charecter'?
   10 |     if(charecter == 'a' || charecter == 'o' || charecter == 'u' || charecter == 'e' || character == 'i')
      |                                                                                        ^~~~~~~~~
      |                                                                                        charecter
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {

  char c;

  cin >> c ;

  if(c=='a') cout << "vowel" << endl;
 
  else if(c=='i') cout << "vowel" << endl;
 
  else if(c=='u') cout << "vowel" << endl;
 
  else if(b=='e') cout << "vowel" << endl;

  else if(b=='o') cout << "vowel" << endl;
 
  else cout << "consonant" << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:11: error: 'b' was not declared in this scope
   16 |   else if(b=='e') cout << "vowel" << endl;
      |           ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define rrep(i,n) for(int i = 1; i <= (n); ++i)
#define drep(i,n) for(int i = (n)-1; i >= 0; --i)
#define all(x) (x).begin(),(x).end()
#define SZ(x) ((int)(x).size())
#define bit(n) (1<<(n))
using namespace std;
typedef long long ll;
typedef long double ld
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<vi> vvi;
typedef vector<bool> vb;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
template < typename T > string tost( const T& n ) { ostringstream stm; stm << n; return stm.str();}
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1;} return 0;}
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1;} return 0;}
int const INF = 1001001001;


int main()
{
cin.tie(0);
ios::sync_with_stdio(false);
char c;
cin >> c;
set<char> st = {'a','i','u','e','o'};
st.insert(c);
if(SZ(st) == 5) puts("vowel");
else puts("consonant");
return 0;
}

Compiler output:
a.cc:11:1: error: expected initializer before 'typedef'
   11 | typedef vector<int> vi;
      | ^~~~~~~
a.cc:13:16: error: 'vi' was not declared in this scope; did you mean 'vl'?
   13 | typedef vector<vi> vvi;
      |                ^~
      |                vl
a.cc:13:18: error: template argument 1 is invalid
   13 | typedef vector<vi> vvi;
      |                  ^
a.cc:13:18: error: template argument 2 is invalid
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
//main関数の中だけ書き込む
  string x;
  cin >> x;
  if(x=="a" || x=="e" || x=="i" || x=="o" || x=="u"){
  cout << vowel;
  }else{
  cout << consonant; 
  }
}


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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
//main関数の中だけ書き込む
  string x;
  cin >> x;
  if(x==a || x==e || x==i || x==o || x==u){
  cout << vowel;
  }else{
  cout << consonant; 
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'a' was not declared in this scope
    8 |   if(x==a || x==e || x==i || x==o || x==u){
      |         ^
a.cc:8:17: error: 'e' was not declared in this scope
    8 |   if(x==a || x==e || x==i || x==o || x==u){
      |                 ^
a.cc:8:25: error: 'i' was not declared in this scope
    8 |   if(x==a || x==e || x==i || x==o || x==u){
      |                         ^
a.cc:8:33: error: 'o' was not declared in this scope
    8 |   if(x==a || x==e || x==i || x==o || x==u){
      |                                 ^
a.cc:8:41: error: 'u' was not declared in this scope
    8 |   if(x==a || x==e || x==i || x==o || x==u){
      |                                         ^
a.cc:9:11: error: 'vowel' was not declared in this scope
    9 |   cout << vowel;
      |           ^~~~~
a.cc:11:11: error: 'consonant' was not declared in this scope
   11 |   cout << consonant;
      |           ^~~~~~~~~
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:12: error: 'a' was not declared in this scope
    7 |   if (c == a||c == i||c == u||c == e||c == o) {
      |            ^
a.cc:7:20: error: 'i' was not declared in this scope
    7 |   if (c == a||c == i||c == u||c == e||c == o) {
      |                    ^
a.cc:7:28: error: 'u' was not declared in this scope
    7 |   if (c == a||c == i||c == u||c == e||c == o) {
      |                            ^
a.cc:7:36: error: 'e' was not declared in this scope
    7 |   if (c == a||c == i||c == u||c == e||c == o) {
      |                                    ^
a.cc:7:44: error: 'o' was not declared in this scope
    7 |   if (c == a||c == i||c == u||c == e||c == o) {
      |                                            ^
Language: C++

#include <iostream>
using namespace std;

int main(void) {
  char c;
  cin >> c;

  if (c == 'a'||c == 'e'||c == 'i'||c =='o'||c =='u') {
    cout << vowel < endl;
  else
    cout << consonant << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'vowel' was not declared in this scope
    9 |     cout << vowel < endl;
      |             ^~~~~
a.cc:10:3: error: expected '}' before 'else'
   10 |   else
      |   ^~~~
a.cc:8:55: note: to match this '{'
    8 |   if (c == 'a'||c == 'e'||c == 'i'||c =='o'||c =='u') {
      |                                                       ^
a.cc:11:13: error: 'consonant' was not declared in this scope
   11 |     cout << consonant << endl;
      |             ^~~~~~~~~
a.cc: At global scope:
a.cc:13:3: error: expected unqualified-id before 'return'
   13 |   return 0;
      |   ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main(void) {
  char c;
  cin >> c;

  if (c == 'a'||c == 'e'||c == 'i'||c =='o'||c =='u')
    cout << vowel < endl;
  else
    cout << consonant << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'vowel' was not declared in this scope
    9 |     cout << vowel < endl;
      |             ^~~~~
a.cc:11:13: error: 'consonant' was not declared in this scope
   11 |     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";
    }
    else {
        cout << "consonant"
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:28: error: expected ';' before '}' token
   11 |         cout << "consonant"
      |                            ^
      |                            ;
   12 |     }
      |     ~
Language: C++

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

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

Compiler output:
a.cc:7:18: warning: missing terminating " character
    7 |     cout << vowel" << endl;
      |                  ^
a.cc:7:18: error: missing terminating " character
    7 |     cout << vowel" << endl;
      |                  ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:13: error: 'vowel' was not declared in this scope
    7 |     cout << vowel" << 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 << "consonant" << endl;
        }

Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: 'a' was not declared in this scope
    9 |           if (c == a && c == e && c == i && c == o && c == u)
      |                    ^
a.cc:9:30: error: 'e' was not declared in this scope
    9 |           if (c == a && c == e && c == i && c == o && c == u)
      |                              ^
a.cc:9:40: error: 'i' was not declared in this scope
    9 |           if (c == a && c == e && c == i && c == o && c == u)
      |                                        ^
a.cc:9:50: error: 'o' was not declared in this scope
    9 |           if (c == a && c == e && c == i && c == o && c == u)
      |                                                  ^
a.cc:9:60: error: 'u' was not declared in this scope
    9 |           if (c == a && c == e && c == i && c == o && c == u)
      |                                                            ^
Language: C++

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

int main(){
  char 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:8:8: error: 'a' was not declared in this scope
    8 |   if(c=a || i || u || e || o)
      |        ^
a.cc:8:13: error: 'i' was not declared in this scope
    8 |   if(c=a || i || u || e || o)
      |             ^
a.cc:8:18: error: 'u' was not declared in this scope
    8 |   if(c=a || i || u || e || o)
      |                  ^
a.cc:8:23: error: 'e' was not declared in this scope
    8 |   if(c=a || i || u || e || o)
      |                       ^
a.cc:8:28: error: 'o' was not declared in this scope
    8 |   if(c=a || i || u || e || o)
      |                            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    char c;
    cin>>c;
    cout<<("aiueo".find_first_of(c)!=string::npos?"vowel":"consonant")<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: request for member 'find_first_of' in '"aiueo"', which is of non-class type 'const char [6]'
    6 |     cout<<("aiueo".find_first_of(c)!=string::npos?"vowel":"consonant")<<endl;
      |                    ^~~~~~~~~~~~~
Language: C

#include <stdio.h>

int main()
{
    char c;
    
    scanf( "%c", &c );

    if (c = 'a' || c = 'e' || c = 'i' || c = 'o' || c = 'u' )
        printf( "vowel\n" );
    else
        printf( "consonant\n" );
        
        return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:55: error: lvalue required as left operand of assignment
    9 |     if (c = 'a' || c = 'e' || c = 'i' || c = 'o' || c = 'u' )
      |                                                       ^
Language: C++

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

char c;

int main()
{
    cin>>c;
    strig s="aeiou";
    for (int i=0; i<5; i++) {
        if (c==s.at(i)) {
            cout<<"vowel";
            return 0;
        }
    }
    cout<<"consonant";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'strig' was not declared in this scope
    9 |     strig s="aeiou";
      |     ^~~~~
a.cc:11:16: error: 's' was not declared in this scope
   11 |         if (c==s.at(i)) {
      |                ^
Language: C++

#include <bits/stdc++.h>
#include <stdio.h>
using namespace std;
#define vsort(vec) sort(vec.begin(), vec.end())
#define vreverse(vec) reverse(vec.begin(), vec.end())
using ll =long long;
const ll INF =1001001001;

//最大公約数
ll gcd(ll a, ll b){
   if (a%b==0){
       return(b);
   }else{
       return(gcd(b,a%b));
   }
}
//最小公倍数
ll lcm(ll a, ll b){
   return a*b/gcd(a,b);
}

//素数判定
ll isprime(ll n){
  bool prime=true;
  for(int i=2;i<n;i++){
    if(n%i==0){
      prime=false; break;
    }
  }
if(prime){cout<<n<<" is prime"<<endl;
         }else{cout<<n<<" is not prime"<<endl;}

}
//階乗　20くらいが限界
ll factorial(ll n){
  ll a=1;ll b=n;
  for(int i=0;i<n;i++){
    a*=b;
    b--;
  }
  return a;
}

//組み合わせ　nCr
ll comb(ll a,ll b){
  ll c;
  c=factorial(a)/(factorial(a-b)*factorial(b));
  return c; 
}




/*10億7。　　　100000007
2*2行列 H*W
vector<vector<int>> vec(H,vector<int>(W));
for(int i=0;i<H;i++){
for(int j=0;j<W;j++){
cin>>vec[i][j];
  }
}

文字列→数列
string S;int A=atoi(S.c_str());
数列→文字列
int A;string S=to_string(A);
数字判定　isdigit(a)
pair宣言　pair<int,int> p(5,7);
ソート　sort(vec.begin(),vec.end());
*/

int main(){
cout<<fixed<<setprecision(10);
//cin.tie(0); ios::sync_with_stdio(false);

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




Compiler output:
a.cc: In function 'll isprime(ll)':
a.cc:33:1: warning: no return statement in function returning non-void [-Wreturn-type]
   33 | }
      | ^
a.cc: In function 'int main()':
a.cc:77:20: error: lvalue required as left operand of assignment
   77 |   if(A=='a'||A=='i'||A='u'||A=='e'||A=='o'){
      |      ~~~~~~~~~~~~~~^~~
Language: C++

using namespace std;

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











return 0;
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | 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:1: error: 'cout' was not declared in this scope
    8 | cout << "vowel";
      | ^~~~
a.cc:8:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:1: error: 'cout' was not declared in this scope
   10 | cout << "consonant";
      | ^~~~
a.cc:10:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

using namespace std;

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











return 0;
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | 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:1: error: 'cout' was not declared in this scope
    8 | cout << "vowel";
      | ^~~~
a.cc:8:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:1: error: 'cout' was not declared in this scope
   10 | cout << "consonant";
      | ^~~~
a.cc:10:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
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";
    else if
    cout << "consonant";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: expected '(' before 'cout'
   12 |     cout << "consonant";
      |     ^~~~
      |     (
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'vowel' was not declared in this scope
    9 |     cout << vowel << endl;
      |             ^~~~~
a.cc:11:13: error: 'consonaut' was not declared in this scope
   11 |     cout << consonaut << endl;
      |             ^~~~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
    char a;
    cin>>a;
    if(a=='a' || a=='e' || a=='i' || a=='o' || a=='u')cout<<"vowel";
    else cout<<"consonant"
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: expected ';' before 'return'
    7 |     else cout<<"consonant"
      |                           ^
      |                           ;
    8 |     return 0;
      |     ~~~~~~
Language: Java

import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String c = sc.next();
        String[] vowel = {"a", "i" , "u" , "e" , "o"};
        for(String a : vowel){
            if(c.equals(a)){
                System.out.pritnln("vowel");
                return;
            }
            
        }
        System.out.println("consonant");
        }        
    }



Compiler output:
Main.java:14: error: cannot find symbol
                System.out.pritnln("vowel");
                          ^
  symbol:   method pritnln(String)
  location: variable out of type PrintStream
1 error
Language: C++

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

int main () {
  char c;
  cin >> c;
  if (str.at(0) != 'a' && str.at(0) != 'e' && str.at(0) != 'i'
      && str.at(0) != 'o' && str.at(0) != 'u') cout << "consonant" << endl;
  else cout << "vowel" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'str' was not declared in this scope; did you mean 'std'?
    7 |   if (str.at(0) != 'a' && str.at(0) != 'e' && str.at(0) != 'i'
      |       ^~~
      |       std
Language: C++

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

int main () {
  char c;
  cin >> c;
  if (str.at(0) != 'a' && str.at(0) != 'e' && str.at(0) != 'i'
      && str.at(0) != 'o' && str.at(0) != 'u') cout << "consonant" << endl;
  else cout << vowel << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'str' was not declared in this scope; did you mean 'std'?
    7 |   if (str.at(0) != 'a' && str.at(0) != 'e' && str.at(0) != 'i'
      |       ^~~
      |       std
a.cc:9:16: error: 'vowel' was not declared in this scope
    9 |   else cout << vowel << endl;
      |                ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
 char c;
  cin>>c;
  for(int i=0;i<5;i++){
  	if("aeiou"s.at(i)==c){
    	cout<<"vowel"<<endl;
      break;
    }
  }
  if("aeiou"s.at(i)!=c){
    	cout<<"constant"<<endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:18: error: 'i' was not declared in this scope
   13 |   if("aeiou"s.at(i)!=c){
      |                  ^
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

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

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

#include <cstdio>
#include <cstring>

int main()
{
	char a;
	a = getchar();
	if (a == 'a' || a == 'e' || a =='i' || a == 'o'|| a == 'u')
	{
		printf("vowel\n");
	}
	else
	{
		printf("consonantconsonant\n")
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:47: error: expected ';' before '}' token
   14 |                 printf("consonantconsonant\n")
      |                                               ^
      |                                               ;
   15 |         }
      |         ~
Language: C

#include<stdio.h>
int main(){
  char str;
  scanf("%c",&str);
  swich(str){
    case ('a'):printf("vowel");
    case ('i'):printf("vowel");
    case ('u'):printf("vowel");
    case ('e'):printf("vowel");
    case ('o'):printf("vowel");
    default:printf("consonant");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'swich' [-Wimplicit-function-declaration]
    5 |   swich(str){
      |   ^~~~~
main.c:5:13: error: expected ';' before '{' token
    5 |   swich(str){
      |             ^
      |             ;
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<<constant<<endl;
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected unqualified-id before '=' token
    5 |   char = c;
      |        ^
a.cc:6:8: error: 'c' was not declared in this scope
    6 |   cin>>c;
      |        ^
a.cc:8:11: error: 'vowel' was not declared in this scope
    8 |     cout<<vowel<<endl;
      |           ^~~~~
a.cc:10:11: error: 'constant' was not declared in this scope; did you mean 'const'?
   10 |     cout<<constant<<endl;
      |           ^~~~~~~~
      |           const
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<<constant<<endl;
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected unqualified-id before '=' token
    5 |   char = c;
      |        ^
a.cc:6:8: error: 'c' was not declared in this scope
    6 |   cin>>c;
      |        ^
a.cc:8:11: error: 'vowel' was not declared in this scope
    8 |     cout<<vowel<<endl;
      |           ^~~~~
a.cc:10:11: error: 'constant' was not declared in this scope; did you mean 'const'?
   10 |     cout<<constant<<endl;
      |           ^~~~~~~~
      |           const
Language: C++

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

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


Compiler output:
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'a' was not declared in this scope
    8 |   if(c == a){
      |           ^
a.cc:11:16: error: 'i' was not declared in this scope
   11 |   else if(c == i){
      |                ^
a.cc:14:16: error: 'u' was not declared in this scope
   14 |   else if(c == u){
      |                ^
a.cc:17:16: error: 'e' was not declared in this scope
   17 |   else if(c == e){
      |                ^
a.cc:20:16: error: 'o' was not declared in this scope
   20 |   else if(c == o){
      |                ^