criyle/codenet-compile-errors huggingface dataset:
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''){
   cont<< 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 'cont'
    8 |   if(S=='a'||S=='i'||S=='u'||S=='e'||S=='o''){
      |                                            ^
      |                                            ;
    9 |    cont<< vowel<<endl;
      |    ~~~~                                     
a.cc:10:2: error: expected primary-expression before '}' token
   10 |  }else{
      |  ^
a.cc:9:23: error: expected ')' before '}' token
    9 |    cont<< 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 | }
      | ^
Language: C++

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

int main() {
	const string vowel = "aiueo";
	char c;
	cin >> c;

	if ( vowel.find(characrer) != string::npos){
        cout << "vowel" << endl;
    } else {
        cout << "consonant" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: 'characrer' was not declared in this scope
    9 |         if ( vowel.find(characrer) != string::npos){
      |                         ^~~~~~~~~
Language: C++

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

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

	if ( "aiueo".find(c) != basic_string::npos) {
		cout << "vowel" << endl;
	} else {
		cout << "consonant" << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: request for member 'find' in '"aiueo"', which is of non-class type 'const char [6]'
    8 |         if ( "aiueo".find(c) != basic_string::npos) {
      |                      ^~~~
a.cc:8:33: error: 'template<class _CharT, class _Traits, class _Alloc> class std::__cxx11::basic_string' used without template arguments
    8 |         if ( "aiueo".find(c) != basic_string::npos) {
      |                                 ^~~~~~~~~~~~
Language: C++

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

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

	if ( "aiueo".find(c) ) {
		cout << "vowel" << endl;
	} else {
		cout << "consonant" << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: request for member 'find' in '"aiueo"', which is of non-class type 'const char [6]'
    8 |         if ( "aiueo".find(c) ) {
      |                      ^~~~
Language: C++

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

int main() {
  char letter;
  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:6:10: error: 'c' was not declared in this scope
    6 |   cin >> c;
      |          ^
Language: C++

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

int main() {
  char 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:8:7: warning: capture of variable 'std::cout' with non-automatic storage duration
    8 |       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:8:11: error: expected ',' before '<<' token
    8 |       cout << "vowel" << endl;
      |           ^~~
      |           ,
a.cc:8:12: error: expected identifier before '<<' token
    8 |       cout << "vowel" << endl;
      |            ^~
a.cc:8:30: error: expected ']' before ';' token
    8 |       cout << "vowel" << endl;
      |                              ^
      |                              ]
a.cc: In lambda function:
a.cc:8:30: error: expected '{' before ';' token
a.cc: In function 'int main()':
a.cc:9:3: error: expected primary-expression before ']' token
    9 |   ]
      |   ^
a.cc:12:3: error: expected primary-expression before ']' token
   12 |   ]
      |   ^
a.cc:15:3: error: expected primary-expression before ']' token
   15 |   ]
      |   ^
a.cc:18:3: error: expected primary-expression before ']' token
   18 |   ]
      |   ^
a.cc:21:3: error: expected primary-expression before ']' token
   21 |   ]
      |   ^
Language: C++

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

int main() {
  char 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 << "constatnt" << endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: warning: capture of variable 'std::cout' with non-automatic storage duration
    8 |       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:8:11: error: expected ',' before '<<' token
    8 |       cout << "vowel" << endl;
      |           ^~~
      |           ,
a.cc:8:12: error: expected identifier before '<<' token
    8 |       cout << "vowel" << endl;
      |            ^~
a.cc:8:30: error: expected ']' before ';' token
    8 |       cout << "vowel" << endl;
      |                              ^
      |                              ]
a.cc: In lambda function:
a.cc:8:30: error: expected '{' before ';' token
a.cc: In function 'int main()':
a.cc:9:3: error: expected primary-expression before ']' token
    9 |   ]
      |   ^
a.cc:12:3: error: expected primary-expression before ']' token
   12 |   ]
      |   ^
a.cc:15:3: error: expected primary-expression before ']' token
   15 |   ]
      |   ^
a.cc:18:3: error: expected primary-expression before ']' token
   18 |   ]
      |   ^
a.cc:21:3: error: expected primary-expression before ']' token
   21 |   ]
      |   ^
Language: C++

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

int main() {
  char 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:7:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |         if(c == "a" || "e" || "i" || "o" || "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"<<endl;
}
else{
cout<<"consonant"<<endl+
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:1: error: expected primary-expression before '}' token
   12 | }
      | ^
Language: C++

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

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


} 

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

#include <stdio.h>

int
main(int argc, char *argv[])
{
  char a;
  char c[5] = {'a', 'i', 'u', 'e', 'o'}
  
  scanf("%c", &a);
  
  for(int i = 0; i < 5; i++){
    if(a == c[i]){
      printf("vowel\n");
    }
    else if(i == 4){
      printf("consonant\n");
    }
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:3: error: expected ',' or ';' before 'scanf'
    9 |   scanf("%c", &a);
      |   ^~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: expected '(' before 'else'
    7 |   if else(a=="u"||a=="e"){cout<<"vowel"<<endl;}
      |      ^~~~
      |      (
a.cc:8:6: error: expected '(' before 'else'
    8 |   if else(a=="o"){cout<<"vowel"<<endl;}
      |      ^~~~
      |      (
a.cc:9:3: error: 'else' without a previous 'if'
    9 |   else{cout<<"consonant"<<endl;}
      |   ^~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <math.h>
#include <stdio.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<"constant"<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:24: error: invalid operands of types 'const char [9]' and '<unresolved overloaded function type>' to binary 'operator<<'
   14 |         cout<"constant"<<endl;
      |              ~~~~~~~~~~^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
string s ;
cin >> s;
if( s ==  "a"  ||  s == "e" || s == "i" || s == "u" || s == "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

c=input()

if c=='a' or c=='i' or c=='u' or c=='e'or c=='o':
    print('vowel')
else:
    print('consonant')


Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | c=input()
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'c' [-Wimplicit-int]
main.c:1:3: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | c=input()
      |   ^~~~~
main.c:1:3: error: initializer element is not constant
main.c:3:1: error: expected ',' or ';' before 'if'
    3 | if c=='a' or c=='i' or c=='u' or c=='e'or c=='o':
      | ^~
main.c:4:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    4 |     print('vowel')
      |           ^~~~~~~
main.c:6:11: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
    6 |     print('consonant')
      |           ^~~~~~~~~~~
Language: C++

int main(){
  char c; cin >> c;
  string v="aeiou";
  for (int i=0; i<5; i++) {
    if (v[i]==c) {
      cout << "vowel" << endl;
      return 0;
    }
  }
  cout << "consonant" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:11: error: 'cin' was not declared in this scope
    2 |   char c; cin >> c;
      |           ^~~
a.cc:3:3: error: 'string' was not declared in this scope
    3 |   string v="aeiou";
      |   ^~~~~~
a.cc:5:9: error: 'v' was not declared in this scope
    5 |     if (v[i]==c) {
      |         ^
a.cc:6:7: error: 'cout' was not declared in this scope
    6 |       cout << "vowel" << endl;
      |       ^~~~
a.cc:6:26: error: 'endl' was not declared in this scope
    6 |       cout << "vowel" << endl;
      |                          ^~~~
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout << "consonant" << endl;
      |   ^~~~
a.cc:10:26: error: 'endl' was not declared in this scope
   10 |   cout << "consonant" << endl;
      |                          ^~~~
Language: C++

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

int main();
  char 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:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin>>c;
      |   ^~~
a.cc:7:3: error: expected unqualified-id before 'if'
    7 |   if(c=="a"){
      |   ^~
a.cc:10:3: error: expected unqualified-id before 'else'
   10 |   else if(c=="e"){
      |   ^~~~
a.cc:13:3: error: expected unqualified-id before 'else'
   13 |   else if(c=="i"){
      |   ^~~~
a.cc:16:3: error: expected unqualified-id before 'else'
   16 |   else if(c=="o"){
      |   ^~~~
a.cc:19:3: error: expected unqualified-id before 'else'
   19 |   else if(c=="u"){
      |   ^~~~
a.cc:22:3: error: expected unqualified-id before 'else'
   22 |   else{
      |   ^~~~
a.cc:26:1: error: expected declaration before '}' token
   26 | }
      | ^
Language: C++

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

int main();
  char 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:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin>>c;
      |   ^~~
a.cc:7:3: error: expected unqualified-id before 'if'
    7 |   if(c==a){
      |   ^~
a.cc:10:3: error: expected unqualified-id before 'else'
   10 |   else if(c==e){
      |   ^~~~
a.cc:13:3: error: expected unqualified-id before 'else'
   13 |   else if(c==i){
      |   ^~~~
a.cc:16:3: error: expected unqualified-id before 'else'
   16 |   else if(c==o){
      |   ^~~~
a.cc:19:3: error: expected unqualified-id before 'else'
   19 |   else if(c==u){
      |   ^~~~
a.cc:22:3: error: expected unqualified-id before 'else'
   22 |   else{
      |   ^~~~
a.cc:26:1: error: expected declaration before '}' token
   26 | }
      | ^
Language: C++

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

int main();
  string 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:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc:5:3: error: 'string' does not name a type; did you mean 'stdin'?
    5 |   string c;
      |   ^~~~~~
      |   stdin
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin>>c;
      |   ^~~
a.cc:7:3: error: expected unqualified-id before 'if'
    7 |   if(c==a){
      |   ^~
a.cc:10:3: error: expected unqualified-id before 'else'
   10 |   else if(c==e){
      |   ^~~~
a.cc:13:3: error: expected unqualified-id before 'else'
   13 |   else if(c==i){
      |   ^~~~
a.cc:16:3: error: expected unqualified-id before 'else'
   16 |   else if(c==o){
      |   ^~~~
a.cc:19:3: error: expected unqualified-id before 'else'
   19 |   else if(c==u){
      |   ^~~~
a.cc:22:3: error: expected unqualified-id before 'else'
   22 |   else{
      |   ^~~~
a.cc:26:1: error: expected declaration before '}' token
   26 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespase 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:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin>>c;
      |   ^~~
a.cc:7:3: error: expected unqualified-id before 'if'
    7 |   if(c==a){
      |   ^~
a.cc:10:3: error: expected unqualified-id before 'else'
   10 |   else if(c==e){
      |   ^~~~
a.cc:13:3: error: expected unqualified-id before 'else'
   13 |   else if(c==i){
      |   ^~~~
a.cc:16:3: error: expected unqualified-id before 'else'
   16 |   else if(c==o){
      |   ^~~~
a.cc:19:3: error: expected unqualified-id before 'else'
   19 |   else if(c==u){
      |   ^~~~
a.cc:22:3: error: expected unqualified-id before 'else'
   22 |   else{
      |   ^~~~
a.cc:26:1: error: expected declaration before '}' token
   26 | }
      | ^
Language: C++

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

int main(){
  cher 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:3: error: 'cher' was not declared in this scope; did you mean 'char'?
    5 |   cher c;
      |   ^~~~
      |   char
a.cc:6:10: error: 'c' was not declared in this scope
    6 |   cin >> c;
      |          ^
Language: C++

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

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


Compiler output:
a.cc:4:12: error: expected initializer before '\U0000ff5b'
    4 | int main() ｛
      |            ^~
a.cc:6:4: error: 'cin' does not name a type
    6 |    cin >> c;
      |    ^~~
a.cc:7:11: error: 'c' was not declared in this scope
    7 |    char x=c. at(0);
      |           ^
a.cc:8:4: error: expected unqualified-id before 'if'
    8 |    if(x=='a' ||x=='e' ||x=='u' ||x=='i' ||x=='o') {
      |    ^~
a.cc:11:4: error: expected unqualified-id before 'else'
   11 |    else{
      |    ^~~~
a.cc:14:1: error: '\U0000ff5d' does not name a type
   14 | ｝
      | ^~
Language: C++

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

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


Compiler output:
a.cc:4:12: error: expected initializer before '\U0000ff5b'
    4 | int main() ｛
      |            ^~
a.cc:6:4: error: 'cin' does not name a type
    6 |    cin>>c;
      |    ^~~
a.cc:7:11: error: 'c' was not declared in this scope
    7 |    char x=c. at(0);
      |           ^
a.cc:8:4: error: expected unqualified-id before 'if'
    8 |    if(x=='a' ||x=='e' ||x=='u' ||x=='i' ||x=='o') {
      |    ^~
a.cc:11:4: error: expected unqualified-id before 'else'
   11 |    else{
      |    ^~~~
a.cc:14:1: error: '\U0000ff5d' does not name a type
   14 | ｝
      | ^~
Language: C++

#include ‹bits/stdc++.h›
using namespace std;

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


Compiler output:
a.cc:1:10: error: extended character ‹ is not valid in an identifier
    1 | #include ‹bits/stdc++.h›
      |          ^
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include ‹bits/stdc++.h›
      |          ^~~~~
a.cc:1:23: error: extended character › is not valid in an identifier
    1 | #include ‹bits/stdc++.h›
      |                       ^
a.cc:4:12: error: expected initializer before '\U0000ff5b'
    4 | int main() ｛
      |            ^~
a.cc:6:4: error: 'cin' does not name a type
    6 |    cin>>c;
      |    ^~~
a.cc:7:11: error: 'c' was not declared in this scope
    7 |    char x=c. at(0);
      |           ^
a.cc:8:4: error: expected unqualified-id before 'if'
    8 |    if(x=='a' ||x=='e' ||x=='u' ||x=='i' ||x=='o') {
      |    ^~
a.cc:11:4: error: expected unqualified-id before 'else'
   11 |    else{
      |    ^~~~
a.cc:14:1: error: '\U0000ff5d' does not name a type
   14 | ｝
      | ^~
Language: C++

#include ‹bits/stdc++.h›
using namespace std;

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

   
｝


Compiler output:
a.cc:1:10: error: extended character ‹ is not valid in an identifier
    1 | #include ‹bits/stdc++.h›
      |          ^
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include ‹bits/stdc++.h›
      |          ^~~~~
a.cc:1:23: error: extended character › is not valid in an identifier
    1 | #include ‹bits/stdc++.h›
      |                       ^
a.cc:4:12: error: expected initializer before '\U0000ff5b'
    4 | int main() ｛
      |            ^~
a.cc:6:4: error: 'cin' does not name a type
    6 |    cin>>c;
      |    ^~~
a.cc:7:11: error: 'c' was not declared in this scope
    7 |    char x=c. at(0);
      |           ^
a.cc:8:4: error: expected unqualified-id before 'if'
    8 |    if(x=='a' ||x=='e' ||x=='u' ||x=='i' ||x=='o') {
      |    ^~
a.cc:11:4: error: expected unqualified-id before 'else'
   11 |    else{
      |    ^~~~
a.cc:16:1: error: '\U0000ff5d' does not name a type
   16 | ｝
      | ^~
Language: C++

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

int main() {
    string c, ans:
    cin >> c;

    if (c == "a" || c == "e" || c == "i" || c == "o" || c == "u") ans = "vowel";
    else ans = "consonant";

    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: found ':' in nested-name-specifier, expected '::'
    5 |     string c, ans:
      |                  ^
      |                  ::
a.cc:5:15: error: 'ans' has not been declared
    5 |     string c, ans:
      |               ^~~
a.cc:6:9: error: qualified-id in declaration before '>>' token
    6 |     cin >> c;
      |         ^~
a.cc:8:67: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |     if (c == "a" || c == "e" || c == "i" || c == "o" || c == "u") ans = "vowel";
      |                                                                   ^~~
      |                                                                   abs
a.cc:9:10: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |     else ans = "consonant";
      |          ^~~
      |          abs
a.cc:11:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |     cout << ans << endl;
      |             ^~~
      |             abs
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:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if ( c == "a" || c == "i" || c == "u" || c == "e" || c == "o" )
      |        ~~^~~~~~
a.cc:8:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if ( c == "a" || c == "i" || c == "u" || c == "e" || c == "o" )
      |                    ~~^~~~~~
a.cc:8:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if ( c == "a" || c == "i" || c == "u" || c == "e" || c == "o" )
      |                                ~~^~~~~~
a.cc:8:46: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if ( c == "a" || c == "i" || c == "u" || c == "e" || c == "o" )
      |                                            ~~^~~~~~
a.cc:8:58: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    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;
  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:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (c == "a"){
      |       ~~^~~~~~
a.cc:11:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   else if (c == "i"){
      |            ~~^~~~~~
a.cc:14:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |   else if (c == "u"){
      |            ~~^~~~~~
a.cc:17:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |   else if (c == "e"){
      |            ~~^~~~~~
a.cc:20:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   20 |   else if (c == "o"){
      |            ~~^~~~~~
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: invalid conversion from 'const char*' to 'char' [-fpermissive]
    8 |   if (c = "a"){
      |           ^~~
      |           |
      |           const char*
a.cc:11:16: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   11 |   else if (c = "i"){
      |                ^~~
      |                |
      |                const char*
a.cc:14:16: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   14 |   else if (c = "u"){
      |                ^~~
      |                |
      |                const char*
a.cc:17:16: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   17 |   else if (c = "e"){
      |                ^~~
      |                |
      |                const char*
a.cc:20:16: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   20 |   else if (c = "o"){
      |                ^~~
      |                |
      |                const char*
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:6:3: error: expected initializer before 'cin'
    6 |   cin >> c;
      |   ^~~
a.cc:8:7: error: 'c' was not declared in this scope
    8 |   if (c = "a"){
      |       ^
Language: C++

int main() {
    string S,T;
    string answer = "";
    vector<string> matcher = vector<string>(4,"");
    matcher[0]="dream";
    matcher[1]="dreamer";
    matcher[2]="erase";
    matcher[3]="eraser";
    T = "";
    vector<string> tmp;
    cin >> S;

    tmp.push_back(T);

    while(!tmp.empty()){
        T = tmp[tmp.size()-1];
        if (T == S){
            answer = "YES";
            break;
        }
        tmp.pop_back();
        for(int j = 0; j < matcher.size(); j++){
            string calc_tmp = T + matcher[j];
            int tmp_size = calc_tmp.size() -1;
            if (T.size() > S.size()){continue;}
            if(S.compare(0,tmp_size,calc_tmp,0,tmp_size) == 0){
                tmp.push_back(calc_tmp);
            }
        }
    }

    if (T == S){
        answer = "YES";
    }else{
        answer = "NO";
    }

    cout << answer << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:5: error: 'string' was not declared in this scope
    2 |     string S,T;
      |     ^~~~~~
a.cc:3:11: error: expected ';' before 'answer'
    3 |     string answer = "";
      |           ^~~~~~~
      |           ;
a.cc:4:5: error: 'vector' was not declared in this scope
    4 |     vector<string> matcher = vector<string>(4,"");
      |     ^~~~~~
a.cc:4:20: error: 'matcher' was not declared in this scope
    4 |     vector<string> matcher = vector<string>(4,"");
      |                    ^~~~~~~
a.cc:9:5: error: 'T' was not declared in this scope
    9 |     T = "";
      |     ^
a.cc:10:20: error: 'tmp' was not declared in this scope
   10 |     vector<string> tmp;
      |                    ^~~
a.cc:11:5: error: 'cin' was not declared in this scope
   11 |     cin >> S;
      |     ^~~
a.cc:11:12: error: 'S' was not declared in this scope
   11 |     cin >> S;
      |            ^
a.cc:18:13: error: 'answer' was not declared in this scope
   18 |             answer = "YES";
      |             ^~~~~~
a.cc:23:19: error: expected ';' before 'calc_tmp'
   23 |             string calc_tmp = T + matcher[j];
      |                   ^~~~~~~~~
      |                   ;
a.cc:24:28: error: 'calc_tmp' was not declared in this scope
   24 |             int tmp_size = calc_tmp.size() -1;
      |                            ^~~~~~~~
a.cc:33:9: error: 'answer' was not declared in this scope
   33 |         answer = "YES";
      |         ^~~~~~
a.cc:35:9: error: 'answer' was not declared in this scope
   35 |         answer = "NO";
      |         ^~~~~~
a.cc:38:5: error: 'cout' was not declared in this scope
   38 |     cout << answer << endl;
      |     ^~~~
a.cc:38:13: error: 'answer' was not declared in this scope
   38 |     cout << answer << endl;
      |             ^~~~~~
a.cc:38:23: error: 'endl' was not declared in this scope
   38 |     cout << answer << endl;
      |                       ^~~~
Language: C++

#include <iostream>
using namespace std;
#include <string>

int main() {
	string c;
	cin >> c;
	
	string aeiou = "aeiou";
	
	if(c.find(aeiou) == ::npos) cout << "consonant";
	else cout << "vowel";

	cout << endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:31: error: '::npos' has not been declared
   11 |         if(c.find(aeiou) == ::npos) cout << "consonant";
      |                               ^~~~
Language: C++

#include <iostream>
using namespace std;
#include <string>

int main() {
	string c;
	cin >> c;
	
	string aeiou = "aeiou;"
	
	if(c.find(aeiou) == ::npos) cout << "consonant";
	else cout << "vowel";

	cout << endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected ',' or ';' before 'if'
   11 |         if(c.find(aeiou) == ::npos) cout << "consonant";
      |         ^~
a.cc:12:9: error: 'else' without a previous 'if'
   12 |         else cout << "vowel";
      |         ^~~~
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:12:9: error: 'consonant' was not declared in this scope
   12 | cout << consonant << endl ;
      |         ^~~~~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: expected primary-expression before ')' token
    9 | else(){
      |      ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'a' was not declared in this scope
    6 | if(Q = a || e || i || o || u  ){
      |        ^
a.cc:6:13: error: 'e' was not declared in this scope
    6 | if(Q = a || e || i || o || u  ){
      |             ^
a.cc:6:18: error: 'i' was not declared in this scope
    6 | if(Q = a || e || i || o || u  ){
      |                  ^
a.cc:6:23: error: 'o' was not declared in this scope
    6 | if(Q = a || e || i || o || u  ){
      |                       ^
a.cc:6:28: error: 'u' was not declared in this scope
    6 | if(Q = a || e || i || o || u  ){
      |                            ^
a.cc:9:6: error: expected primary-expression before ')' token
    9 | else(){
      |      ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'a' was not declared in this scope
    6 | if(Q = a || e|| i || o || u ){
      |        ^
a.cc:6:13: error: 'e' was not declared in this scope
    6 | if(Q = a || e|| i || o || u ){
      |             ^
a.cc:6:17: error: 'i' was not declared in this scope
    6 | if(Q = a || e|| i || o || u ){
      |                 ^
a.cc:6:22: error: 'o' was not declared in this scope
    6 | if(Q = a || e|| i || o || u ){
      |                      ^
a.cc:6:27: error: 'u' was not declared in this scope
    6 | if(Q = a || e|| i || o || u ){
      |                           ^
a.cc:7:9: error: 'vowel' was not declared in this scope
    7 | cout << vowel;
      |         ^~~~~
a.cc:9:6: error: expected primary-expression before ')' token
    9 | else(){
      |      ^
Language: C++

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclide; did you mean #include?
    1 | #inclide <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin >> Q;
      | ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclide <bits/stdc++.h>
a.cc:6:8: error: 'a' was not declared in this scope
    6 | if(Q = a || e|| i || o || u ){
      |        ^
a.cc:6:13: error: 'e' was not declared in this scope
    6 | if(Q = a || e|| i || o || u ){
      |             ^
a.cc:6:17: error: 'i' was not declared in this scope
    6 | if(Q = a || e|| i || o || u ){
      |                 ^
a.cc:6:22: error: 'o' was not declared in this scope
    6 | if(Q = a || e|| i || o || u ){
      |                      ^
a.cc:6:27: error: 'u' was not declared in this scope
    6 | if(Q = a || e|| i || o || u ){
      |                           ^
a.cc:7:1: error: 'cout' was not declared in this scope
    7 | cout << vowel;
      | ^~~~
a.cc:7:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:9: error: 'vowel' was not declared in this scope
    7 | cout << vowel;
      |         ^~~~~
a.cc:9:6: error: expected primary-expression before ')' token
    9 | else(){
      |      ^
Language: C++

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

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>c;
      |   ^~~
a.cc:7:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(c =="a") cout<<"vowel";
      |      ~~^~~~~
a.cc:7:15: error: 'cout' was not declared in this scope
    7 |   if(c =="a") cout<<"vowel";
      |               ^~~~
a.cc:8:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   else if(c =="e") cout<<"vowel";
      |           ~~^~~~~
a.cc:8:20: error: 'cout' was not declared in this scope
    8 |   else if(c =="e") cout<<"vowel";
      |                    ^~~~
a.cc:9:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   else if(c =="i") cout<<"vowel";
      |           ~~^~~~~
a.cc:9:20: error: 'cout' was not declared in this scope
    9 |   else if(c =="i") cout<<"vowel";
      |                    ^~~~
a.cc:10:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   else if(c =="o") cout<<"vowel";
      |           ~~^~~~~
a.cc:10:20: error: 'cout' was not declared in this scope
   10 |   else if(c =="o") cout<<"vowel";
      |                    ^~~~
a.cc:11:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   else if(c =="u") cout<<"vowel";
      |           ~~^~~~~
a.cc:11:20: error: 'cout' was not declared in this scope
   11 |   else if(c =="u") cout<<"vowel";
      |                    ^~~~
a.cc:12:8: error: 'cout' was not declared in this scope
   12 |   else cout << "consonant";
      |        ^~~~
Language: C++

include <bits/stdc++>
using namespace std;

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>c;
      |   ^~~
a.cc:7:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(c =="a") cout<<"vowel";
      |      ~~^~~~~
a.cc:7:15: error: 'cout' was not declared in this scope
    7 |   if(c =="a") cout<<"vowel";
      |               ^~~~
a.cc:8:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   else if(c =="e") cout<<"vowel";
      |           ~~^~~~~
a.cc:8:20: error: 'cout' was not declared in this scope
    8 |   else if(c =="e") cout<<"vowel";
      |                    ^~~~
a.cc:9:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   else if(c =="i") cout<<"vowel";
      |           ~~^~~~~
a.cc:9:20: error: 'cout' was not declared in this scope
    9 |   else if(c =="i") cout<<"vowel";
      |                    ^~~~
a.cc:10:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   else if(c =="o") cout<<"vowel";
      |           ~~^~~~~
a.cc:10:20: error: 'cout' was not declared in this scope
   10 |   else if(c =="o") cout<<"vowel";
      |                    ^~~~
a.cc:11:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   else if(c =="u") cout<<"vowel";
      |           ~~^~~~~
a.cc:11:20: error: 'cout' was not declared in this scope
   11 |   else if(c =="u") cout<<"vowel";
      |                    ^~~~
a.cc:12:8: error: 'cout' was not declared in this scope
   12 |   else cout << "consonant";
      |        ^~~~
Language: C++

include <bits/stdc++>
using namespace std;

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>c;
      |   ^~~
a.cc:7:10: error: 'a' was not declared in this scope
    7 |   if(c ==a) cout<<"vowel";
      |          ^
a.cc:7:13: error: 'cout' was not declared in this scope
    7 |   if(c ==a) cout<<"vowel";
      |             ^~~~
a.cc:8:15: error: 'e' was not declared in this scope
    8 |   else if(c ==e) cout<<"vowel";
      |               ^
a.cc:8:18: error: 'cout' was not declared in this scope
    8 |   else if(c ==e) cout<<"vowel";
      |                  ^~~~
a.cc:9:15: error: 'i' was not declared in this scope
    9 |   else if(c ==i) cout<<"vowel";
      |               ^
a.cc:9:18: error: 'cout' was not declared in this scope
    9 |   else if(c ==i) cout<<"vowel";
      |                  ^~~~
a.cc:10:15: error: 'o' was not declared in this scope
   10 |   else if(c ==o) cout<<"vowel";
      |               ^
a.cc:10:18: error: 'cout' was not declared in this scope
   10 |   else if(c ==o) cout<<"vowel";
      |                  ^~~~
a.cc:11:15: error: 'u' was not declared in this scope
   11 |   else if(c ==u) cout<<"vowel";
      |               ^
a.cc:11:18: error: 'cout' was not declared in this scope
   11 |   else if(c ==u) cout<<"vowel";
      |                  ^~~~
a.cc:12:8: error: 'cout' was not declared in this scope
   12 |   else cout << "consonant";
      |        ^~~~
Language: C++

include <bits/stdc++>
using namespace std;

int main(){
  char c;
  cin>>c;
  if(c in {a,e,i,o,u}) cout<<"vowel";
  else cout << "consonant";
  return 0;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>c;
      |   ^~~
a.cc:7:7: error: expected ')' before 'in'
    7 |   if(c in {a,e,i,o,u}) cout<<"vowel";
      |     ~ ^~~
      |       )
a.cc:7:24: error: 'cout' was not declared in this scope
    7 |   if(c in {a,e,i,o,u}) cout<<"vowel";
      |                        ^~~~
a.cc:8:8: error: 'cout' was not declared in this scope
    8 |   else cout << "consonant";
      |        ^~~~
Language: C++

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

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

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

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

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

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

#define REP(i, n) for(int i = 0;i < n;i++)
#define INF 2e9
#define ll long long
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define ALL(v) v.begin(), v.end()

#include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> P;
typedef pair<ll, ll> LP;

int dy[]={0, 0, 1, -1};
int dx[]={1, -1, 0, 0};

int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    char c; cin >> c;
    if (c == 'a' or c=='e' or c == 'i' or c == 'e' or c == 'o') cout << "vowel" << endl;
  else cout << consonant << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:21:16: error: 'consonant' was not declared in this scope
   21 |   else 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:9:3: error: expected '}' before 'else'
    9 |   else {
      |   ^~~~
a.cc:7:46: note: to match this '{'
    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=='i'||a=='u'||a=='e'||a='o'){
    cout<<"vowel"<<endl;
}
  else{
    cout<<"consonant"<<endl;
  }
}


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

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

int main() {
  char c;
  cin >> c;
  string = S;

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


Compiler output:
a.cc:10:8: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
   10 |     S= 'vowel';
      |        ^~~~~~~
a.cc:13:8: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
   13 |     S= 'consonant';
      |        ^~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:10: error: expected unqualified-id before '=' token
    7 |   string = S;
      |          ^
a.cc:10:5: error: 'S' was not declared in this scope
   10 |     S= 'vowel';
      |     ^
a.cc:13:5: error: 'S' was not declared in this scope
   13 |     S= 'consonant';
      |     ^
a.cc:15:11: error: 'S' was not declared in this scope
   15 |   cout << S << endl;
      |           ^
Language: C++

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

int main(){
  string v=abcde;
  string c;
  cin >> c;
  int count=0;
  
  for(int i=0;i<5;i++){
    if(c == vec.at(i)){
      cout << "vowel" << endl;
      break;
    }
    else{
      count++
    }
  }
  if(count=5){
    cout << "consonant" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: 'abcde' was not declared in this scope
    5 |   string v=abcde;
      |            ^~~~~
a.cc:11:13: error: 'vec' was not declared in this scope
   11 |     if(c == vec.at(i)){
      |             ^~~
a.cc:16:14: error: expected ';' before '}' token
   16 |       count++
      |              ^
      |              ;
   17 |     }
      |     ~
Language: C++

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


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

Compiler output:
a.cc:8:21: warning: multi-character character constant [-Wmultichar]
    8 | if(c == 'a' ||'e' ||' i '|| 'o' || 'u')
      |                     ^~~~~
a.cc:10:2: error: expected unqualified-id before 'else'
   10 | }else{
      |  ^~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
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:8:9: error: 'a' was not declared in this scope
    8 | if(c == a ||c == e ||c == i ||c == o ||c == u)
      |         ^
a.cc:8:18: error: 'e' was not declared in this scope
    8 | if(c == a ||c == e ||c == i ||c == o ||c == u)
      |                  ^
a.cc:8:27: error: 'i' was not declared in this scope
    8 | if(c == a ||c == e ||c == i ||c == o ||c == u)
      |                           ^
a.cc:8:36: error: 'o' was not declared in this scope
    8 | if(c == a ||c == e ||c == i ||c == o ||c == u)
      |                                    ^
a.cc:8:45: error: 'u' was not declared in this scope
    8 | if(c == a ||c == e ||c == i ||c == o ||c == u)
      |                                             ^
a.cc: At global scope:
a.cc:10:2: error: expected unqualified-id before 'else'
   10 | }else{
      |  ^~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^