submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s654690447
p03852
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; } }
a.cc: In function 'int main()': a.cc:8:9: error: 'vowel' was not declared in this scope 8 | cout << vowel << endl; | ^~~~~ a.cc:11:9: error: 'consonant' was not declared in this scope 11 | cout << consonant <<endl; | ^~~~~~~~~
s452866364
p03852
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; } }
a.cc:4:5: error: cannot declare '::main' to be a global variable 4 | int main{ | ^~~~ a.cc:5:1: error: expected primary-expression before 'char' 5 | char c; | ^~~~ a.cc:5:1: error: expected '}' before 'char' a.cc:4:9: note: to match this '{' 4 | int main{ | ^ a.cc:6:1: error: '...
s103702835
p03852
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; } }
a.cc:4:5: error: cannot declare '::main' to be a global variable 4 | int main{ | ^~~~ a.cc:5:1: error: expected primary-expression before 'char' 5 | char c | ^~~~ a.cc:5:1: error: expected '}' before 'char' a.cc:4:9: note: to match this '{' 4 | int main{ | ^ a.cc:10:1: error: e...
s818771365
p03852
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; } }
a.cc:1:10: fatal error: bits.stdc++.h: No such file or directory 1 | #include <bits.stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s911435986
p03852
C++
s = input() b = ["a", "i", "u", "e", "o"] if s in b: print("vowel") else: print('consonant')
a.cc:6:11: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes 6 | print('consonant') | ^~~~~~~~~~~ a.cc:1:1: error: 's' does not name a type 1 | s = input() | ^
s765170033
p03852
C++
#include "bits/stdc++.h" using namespace std; int main() { string C; string A; cin >> C; A = "consonant"; if(C = "a"){ A = "vowel"; } if(C = "i"){ A = "vowel"; } if(C = "u"){ A = "vowel"; } if(C = "e"){ A = "vowel"; } if(C = "o"){ A = "vowel"; } cout << A; re...
a.cc: In function 'int main()': a.cc:9:8: error: could not convert 'C.std::__cxx11::basic_string<char>::operator=(((const char*)"a"))' from 'std::__cxx11::basic_string<char>' to 'bool' 9 | if(C = "a"){ | ~~^~~~~ | | | std::__cxx11::basic_string<char> a.cc:12:10: error: could n...
s115119695
p03852
C++
#include "bits/stdc++.h" using namespace std; int main() { string C; string A; cin >> C; if(C = "a"||"i "||"e"||"u"||"o"){ A = "vowel"; }else{ A = "consonant"; } cout << A; return 0; }
a.cc: In function 'int main()': a.cc:8:8: error: could not convert 'C.std::__cxx11::basic_string<char>::operator=(((int)((char)(((((((const char*)"a") != 0) || (((const char*)"i ") != 0)) || (((const char*)"e") != 0)) || (((const char*)"u") != 0)) || (((const char*)"o") != 0)))))' from 'std::__cxx11::basic_string<char>...
s514814504
p03852
C++
#include "bits/stdc++.h" using namespace std; int main() { string C; string A; cin >> C; if(C = "a"||"i "||"e"||"u"||"o"){ A = "vowel"; }else{ A = "consonant"; } cout << A; return 0; }
a.cc: In function 'int main()': a.cc:8:8: error: could not convert 'C.std::__cxx11::basic_string<char>::operator=(((int)((char)(((((((const char*)"a") != 0) || (((const char*)"i ") != 0)) || (((const char*)"e") != 0)) || (((const char*)"u") != 0)) || (((const char*)"o") != 0)))))' from 'std::__cxx11::basic_string<char>...
s708312308
p03852
C++
#include<iostream> 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";}
a.cc: In function 'int main()': a.cc:6:5: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 6 | if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u") cout<<"vowel"; | ~^~~~~ a.cc:6:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 6 | if(c=="a"||c=="e"||c=...
s024804211
p03852
C++
#include<bits/stdc++.h> using namespace std; #define int long long #define fo(a,b) for(int a=0;a<b;a++) #define Sort(a) sort(a.begin(),a.end()) #define rev(a) reverse(a.begin(),a.end()) #define fi first #define se second #define co(a) cout<<a<<endl #define sz size() #define bgn begin() #define en end() #define pb(a) pu...
a.cc: In function 'int main()': a.cc:196:22: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 196 | cout<<"consonant"<<end; | ~~~~~~~~~~~~~~~~~^~~~~ In file included from /usr/include/c++/14/istream:41, from /usr...
s316296476
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char s ; cin >> s; if (s.at(i) == 'a' || s.at(i) == 'i' || s.at(i) == 'u' || s.at(i) == 'e' s.at(i) == 'o') { cout << "vowel" << endl; } else { cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:7:9: error: request for member 'at' in 's', which is of non-class type 'char' 7 | if (s.at(i) == 'a' || s.at(i) == 'i' || s.at(i) == 'u' || s.at(i) == 'e' s.at(i) == 'o') { | ^~ a.cc:7:12: error: 'i' was not declared in this scope 7 | if (s.at(i) == 'a' || ...
s260239344
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char s ; cin >> s; if (s == 'a' || s == 'i' || s == 'u' || s == 'e' s == 'o') { cout << "vowel" << endl; } else { cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:7:51: error: expected ')' before 's' 7 | if (s == 'a' || s == 'i' || s == 'u' || s == 'e' s == 'o') { | ~ ^~ | )
s753242849
p03852
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; } } // が母音であるとき、vowel と、そうでないとき consonant
a.cc: In function 'int main()': a.cc:8:43: error: 'C' was not declared in this scope 8 | if (c == 'a' || c=='i'||c=='u'||c=='e'||C=='o'){ | ^
s357457401
p03852
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; } } // が母音であるとき、vowel と、そうでないとき consonant
a.cc: In function 'int main()': a.cc:8:9: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 8 | if (c == 'a' || c=='i'||c=='u'||c=='e'||C=='o'){ | ~ ^~ ~~~ | | | | | char | std::string {aka s...
s395197354
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string A; cin >> A; if (A === 'c') cout << "vowel" << endl; else cout << "consontant" << endl; }
a.cc: In function 'int main()': a.cc:8:11: error: expected primary-expression before '=' token 8 | if (A === 'c') cout << "vowel" << endl; | ^
s488993677
p03852
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; }
a.cc:8:9: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes 8 | cout << 'vowel' << endl; | ^~~~~~~ a.cc:11:9: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes 11 | cout << 'consonant' << endl; | ^~~~~~~~~~~ a.cc: In functi...
s281480381
p03852
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; }
a.cc:8:9: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes 8 | cout << 'vowel' << endl; | ^~~~~~~ a.cc:11:9: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes 11 | cout << 'consonant' << endl; | ^~~~~~~~~~~ a.cc: In functi...
s308602540
p03852
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; }
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() { | ^
s941512409
p03852
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; }
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() { | ^
s230259971
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if (c == 'a' or 'i' or 'u' or 'e' or 'o'){ cout << "vowel" << endl; } else { cout << "consonant" <<endl; }
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() { | ^
s183555295
p03852
C++
#include <bits/stdc++.h> using namespace std; char c; int main() { cin >> c; if (c == 'a' or 'i' or 'u' or 'e' or 'o'){ cout << "vowel" << endl; } else { cout << "consonant" <<endl; }
a.cc: In function 'int main()': a.cc:13:2: error: expected '}' at end of input 13 | } | ^ a.cc:6:12: note: to match this '{' 6 | int main() { | ^
s382394281
p03852
C++
#include <bits/stdc++.h> using namespace std; string c; int main() { cin >> c; if (c == 'a' or 'i' or 'u' or 'e' or 'o'){ cout << "vowel" << endl; } else { cout << "consonant" <<endl; } }
a.cc: In function 'int main()': a.cc:8:9: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){ | ~ ^~ ~~~ | | | | | char | std::string {aka std::__...
s071399444
p03852
C++
#include <bits/stdc++.h> using namespace std; string c; int main() { cin >> c; if (c == 'a' or 'i' or 'u' or 'e' or 'o'){ cout << "vowel" << endl; } else { cout << "consonant" <<endl; }
a.cc: In function 'int main()': a.cc:8:9: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){ | ~ ^~ ~~~ | | | | | char | std::string {aka std::__...
s925588347
p03852
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 cout<<"consonant"; }
a.cc: In function 'int main()': a.cc:6:46: error: expected primary-expression before ')' token 6 | if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'||) cout<<"vowel"; | ^
s216772363
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c ; cin >> c ; const string vowel = " aeiou "; cout << vowel.find(c) == string::npos? "vowel":"consonant" << endl ; }
a.cc: In function 'int main()': a.cc:9:31: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'}) 9 | cout << vowel.find(c) == string::npos? "vowe...
s853561111
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c ; cin >> c ; const string vowel = " aeiou "; cout << vowel.find(c) == string :: npos ? " vowel " : " consonant " << endl ; }
a.cc: In function 'int main()': a.cc:9:31: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'}) 9 | cout << vowel.find(c) == string :: npos ? " ...
s048030213
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c ; cin >> c ; const string vowel = " aeiou "; cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ; }
a.cc: In function 'int main()': a.cc:9:36: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'}) 9 | cout << vowel . find ( c ) == string :: npos...
s270814469
p03852
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; } }
a.cc: In function 'int main()': a.cc:11:7: error: 'consonant' was not declared in this scope 11 | cout<<consonant<<endl; | ^~~~~~~~~
s401691490
p03852
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <cmath> #include <cstdlib> #include <iomanip> #include <map> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep1(i, n) for (int i = 1; i < (int)(n) + 1; i++) #define all(vecto) vecto.begin(), vecto.e...
a.cc: In function 'int main()': a.cc:39:10: error: conflicting declaration 'bool a' 39 | bool a; | ^ a.cc:37:10: note: previous declaration as 'char a' 37 | char a; | ^ a.cc:41:9: error: 's' was not declared in this scope 41 | s = true; | ^ a.cc:44:9:...
s750746635
p03852
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <cmath> #include <cstdlib> #include <iomanip> #include <map> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep1(i, n) for (int i = 1; i < (int)(n) + 1; i++) #define all(vecto) vecto.begin(), vecto.e...
a.cc: In function 'int main()': a.cc:38:12: error: 'a' was not declared in this scope 38 | cin >> a; | ^
s833426307
p03852
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <cmath> #include <cstdlib> #include <iomanip> #include <map> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep1(i, n) for (int i = 1; i < (int)(n) + 1; i++) #define all(vecto) vecto.begin(), vecto.e...
a.cc: In function 'int main()': a.cc:39:10: error: conflicting declaration 'bool s' 39 | bool s; | ^ a.cc:37:10: note: previous declaration as 'char s' 37 | char s; | ^
s045741833
p03852
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <cmath> #include <cstdlib> #include <iomanip> #include <map> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep1(i, n) for (int i = 1; i < (int)(n) + 1; i++) #define all(vecto) vecto.begin(), vecto.e...
a.cc: In function 'int main()': a.cc:39:10: error: conflicting declaration 'bool s' 39 | bool s; | ^ a.cc:37:10: note: previous declaration as 'char s' 37 | char s; | ^
s179881147
p03852
C++
#include<iotream> using namespace std; int main() { char a; cin>>a; if(a=='a'||a=='e'||a=='i'||a=='o'||a=='u') cout<<"vowel"<<endl; else cout<<"consonant"<<endl; return 0; }
a.cc:1:9: fatal error: iotream: No such file or directory 1 | #include<iotream> | ^~~~~~~~~ compilation terminated.
s031332833
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if(c == 'a's || c == 'b's || c == 'c's || c == 'd's || c == 'e's) cout << "vowel" << endl; else cout << "consonant" << endl; }
a.cc: In function 'int main()': a.cc:7:9: error: unable to find character literal operator 'operator""s' with 'char' argument 7 | if(c == 'a's || c == 'b's || c == 'c's || c == 'd's || c == 'e's) | ^~~~ a.cc:7:22: error: unable to find character literal operator 'operator""s' with 'char' argument ...
s518537581
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char x; cin >> x; if(x == 'a' || a == 'e' || a == 'i' || a == 'o' || a == 'u') { cout << "vowel" << endl; } else { cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:7:24: error: 'a' was not declared in this scope 7 | if(x == 'a' || a == 'e' || a == 'i' || a == 'o' || a == 'u') { | ^
s377507774
p03852
C++
c = input() li = ["a", "e", "i", "o", "u"] if c in li: print("vowel") else: print("consonant")
a.cc:1:1: error: 'c' does not name a type 1 | c = input() | ^
s490367897
p03852
C++
#include <bits/stdc++.h> using namespace std; template<class T>bool contain(const string& s, const T& v){ reutnr s.find(v) != string::npos; } int main(){ string s; cin >> s; if contain("aiueo", s){ cout << "vowel" << endl; } else{ cout << "vowel" << endl; } }
a.cc: In function 'bool contain(const std::string&, const T&)': a.cc:6:5: error: 'reutnr' was not declared in this scope 6 | reutnr s.find(v) != string::npos; | ^~~~~~ a.cc:7:1: warning: no return statement in function returning non-void [-Wreturn-type] 7 | } | ^ a.cc: In function 'int main(...
s395254741
p03852
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; } }
a.cc: In function 'int main()': a.cc:7:32: error: lvalue required as left operand of assignment 7 | if(c=='a'||c=='i'||c='u'||c='e'||c='o'){ | ~~~^~~
s719841925
p03852
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 }
a.cc: In function 'int main()': a.cc:8:13: error: expected ';' before '}' token 8 | return 0 | ^ | ; 9 | } | ~
s264123212
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(int argc, char const *argv[]) { char S; cin >> S; if(S=='a'||S=='i'||S=='u'||S=='e'||S=='o'){ cout << "vowel" << endl; }else{ cout << "consonant" << endl; } cout << pls+1-mns << endl; return 0; }
a.cc: In function 'int main(int, const char**)': a.cc:13:17: error: 'pls' was not declared in this scope 13 | cout << pls+1-mns << endl; | ^~~ a.cc:13:23: error: 'mns' was not declared in this scope 13 | cout << pls+1-mns << endl; | ^~~
s926889764
p03852
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;
a.cc: In function 'int main()': a.cc:10:29: error: expected '}' at end of input 10 | cout<<"consonant"<<endl; | ^ a.cc:9:8: note: to match this '{' 9 | }else{ | ^ a.cc:10:29: error: expected '}' at end of input 10 | cout<<"consonant"<<endl; | ...
s007952666
p03852
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" } }
a.cc: In function 'int main()': a.cc:10:28: error: expected ';' before '}' token 10 | cout << "consonant" | ^ | ; 11 | } | ~
s607794626
p03852
C++
#include <iostream> using namespace std; int main(){ char set = {'a', 'i', 'u', 'e', 'o'}; char a; cin >> a; for(int i = 0; i < 5; i++){ if(set[i] == a){ cout << "vowel" << endl; return 0; } } cout << "constant" << endl; return 0; }
a.cc: In function 'int main()': a.cc:5:8: error: scalar object 'set' requires one element in initializer 5 | char set = {'a', 'i', 'u', 'e', 'o'}; | ^~~
s001883258
p03852
C++
#include <iostream> using namespace std; int main(){ char set = {'a', 'i', 'u', 'e', 'o'} char a; cin >> a; for(int i = 0; i < 5; i++){ if(set[i] == a){ cout << "vowel" << endl; return 0; } } cout << "constant" << endl; return 0; }
a.cc: In function 'int main()': a.cc:5:8: error: scalar object 'set' requires one element in initializer 5 | char set = {'a', 'i', 'u', 'e', 'o'} | ^~~ a.cc:6:3: error: expected ',' or ';' before 'char' 6 | char a; | ^~~~ a.cc:7:10: error: 'a' was not declared in this scope 7 | c...
s157819023
p03852
C++
#include <iostream> using namespace std; int main(){ char set = {a, i, u, e, o} char a; cin >> a; for(int i = 0; i < 5; i++){ if(set[i] == a){ cout << "vowel" << endl; break; } } return 0; }
a.cc: In function 'int main()': a.cc:5:16: error: 'a' was not declared in this scope 5 | char set = {a, i, u, e, o} | ^ a.cc:5:19: error: 'i' was not declared in this scope 5 | char set = {a, i, u, e, o} | ^ a.cc:5:22: error: 'u' was not declared in this scope ...
s973732730
p03852
C++
#include <bits/stdc++.h> #include <string> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <numeric> using namespace std; int abs(int num){ if (num > 0) return num; else return -num; } int main(){ char A; cin >> A; if(A == 'a' || A == 'i' || A == 'u' || A == 'e' || A == 'o'){...
a.cc: In function 'int main()': a.cc:23:24: error: expected ';' before '}' token 23 | cout << "consonant" | ^ | ; 24 | } | ~
s971082265
p03852
Java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String c = next(); if(c.equals("a") || c.equals("e") || c.equals("i") || c.equals("o") || c.equals("u")){ System.out.println("vowel"); }else{ System.out.println("con...
Main.java:6: error: cannot find symbol String c = next(); ^ symbol: method next() location: class Main 1 error
s323480310
p03852
C++
#include<iostream> #include<cstdio> using namespace std; int main() { int g=getchar(); if(g=='a'||g=='e'||g=='i'||g=='o'||g=='u') cout<<"vowel" else cout<<"consonant"; return 0; }
a.cc: In function 'int main()': a.cc:8:22: error: expected ';' before 'else' 8 | cout<<"vowel" | ^ | ; 9 | else | ~~~~
s178255961
p03852
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;}
a.cc: In function 'int main()': a.cc:9:33: error: expected '}' at end of input 9 | else{cout<<"consonant"<<endl;} | ^ a.cc:3:12: note: to match this '{' 3 | int main() { | ^
s607828320
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string c; cin>>c; if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u'){cout<<"vowel"<<endl;} else{cout<<"consonant"<<endl;}
a.cc: In function 'int main()': a.cc:8:7: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 8 | if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u'){cout<<"vowel"<<endl;} | ~^~~~~ | | | | | char | std::string ...
s288775378
p03852
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; } }
a.cc: In function 'int main()': a.cc:7:9: 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 ...
s937959062
p03852
C++
c=input() if c==a or c==e or c==i or c==o or c==u : print("vowel") else: print("consonant")
a.cc:1:1: error: 'c' does not name a type 1 | c=input() | ^
s180805039
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(void) { char; cin >> c; if (c == 'a' || c == 'e' || c =='i' || c == 'o' || c == 'u') { cout << "vowel" << endl; } else { cout << "consonant" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:5:9: error: declaration does not declare anything [-fpermissive] 5 | char; | ^~~~ a.cc:6:16: error: 'c' was not declared in this scope 6 | cin >> c; | ^
s075144366
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(void) { char ; cin >> c; if (c == 'a' || c == 'e' || c =='i' || c == 'o' || c == 'u') { cout << "vowel" << endl; } else { cout << "consonant" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:5:9: error: declaration does not declare anything [-fpermissive] 5 | char ; | ^~~~ a.cc:6:16: error: 'c' was not declared in this scope 6 | cin >> c; | ^
s750393683
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(void) { char; cin >> c; if (c == 'a' || c == 'e' || c =='i' || c == 'o' || c == 'u') { cout << 'vowel' << endl; } else { cout << "consonant" << endl; } return 0; }
a.cc:9:25: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes 9 | cout << 'vowel' << endl; | ^~~~~~~ a.cc: In function 'int main()': a.cc:5:9: error: declaration does not declare anything [-fpermissive] 5 | char; | ...
s403724656
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(void) { char ; cin >> c; if (c == 'a' || c == 'e' || c =='i' || c == 'o' || c == 'u') { cout << 'vowel' << endl; } else { cout << "consonant" << endl; } return 0; }
a.cc:9:25: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes 9 | cout << 'vowel' << endl; | ^~~~~~~ a.cc: In function 'int main()': a.cc:5:9: error: declaration does not declare anything [-fpermissive] 5 | char ; | ...
s219668975
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(void) { char ; cin >> c; if (c == 'a' || c == 'e' || c =='i' || c == 'o' || c == 'u') { cont << 'vowel' << endl; } else { cout << "consonant" << endl; } return 0; }
a.cc:9:25: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes 9 | cont << 'vowel' << endl; | ^~~~~~~ a.cc: In function 'int main()': a.cc:5:9: error: declaration does not declare anything [-fpermissive] 5 | char ; | ...
s640375012
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(void) { char c; cin >> c; if (c == 'a' || c == 'e' || c =='i' || c == 'o' || c == 'u') { cont << "vowel" << endl; } else { cout << "consonant" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:9:17: error: 'cont' was not declared in this scope; did you mean 'const'? 9 | cont << "vowel" << endl; | ^~~~ | const
s387847323
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(void) { char c; cin >> c+ if (c == 'a' || c == 'e' || c =='i' || c == 'o' || c == 'u') { cont << "vowel" << endl; } else { cout << "consonant" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:8:9: error: expected primary-expression before 'if' 8 | if (c == 'a' || c == 'e' || c =='i' || c == 'o' || c == 'u') { | ^~ a.cc:10:11: error: 'else' without a previous 'if' 10 | } else { | ^~~~
s292750118
p03852
C++
#include<cstdio> #include<iostream> #include<algorithm> #include<string> #include<cstring> using namespace std; char ch; int main() { cin>>ch; if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch==u)cout<<"vowel"; else cout<<"consonant"; return 0; }
a.cc: In function 'int main()': a.cc:12:52: error: 'u' was not declared in this scope 12 | if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch==u)cout<<"vowel"; | ^
s219966626
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char X; cin >> X; if (X = 'a'){ cout << vowel << endl; } if (X = 'i'){ cout << vowel << endl; } if (X = 'u'){ cout << vowel << endl; } if (X = 'e'){ cout << vowel << endl; } if (X = 'o'){ cout << vowe...
a.cc: In function 'int main()': a.cc:8:14: error: 'vowel' was not declared in this scope 8 | cout << vowel << endl; | ^~~~~ a.cc:11:14: error: 'vowel' was not declared in this scope 11 | cout << vowel << endl; | ^~~~~ a.cc:14:14: error: 'vowel' was not declared in ...
s959204770
p03852
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; }
a.cc: In function 'int main()': a.cc:7:48: error: lvalue required as left operand of assignment 7 | if (c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o') | ~~~~^~~~
s903474417
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; int >> c; if (c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o') cout << "vowel" << endl; else cout << "consonant" << endl; }
a.cc: In function 'int main()': a.cc:6:7: error: expected unqualified-id before '>>' token 6 | int >> c; | ^~ a.cc:7:48: error: lvalue required as left operand of assignment 7 | if (c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o') | ~~~~^~~~
s037881474
p03852
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; }
a.cc: In function 'int main()': a.cc:13:4: error: expected '}' at end of input 13 | } | ^ a.cc:4:11: note: to match this '{' 4 | int main(){ | ^
s134210197
p03852
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; } esle { cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:11:3: error: 'esle' was not declared in this scope 11 | esle { | ^~~~
s187977195
p03852
C
#include <stdio.h> int main(void){ char let; int num=0; scanf("%c",let); num=let-"0"; if(num==(49||53||57||63||69)){ printf("vowel"); }else{ printf("consonant"); } return 0; } //
main.c: In function 'main': main.c:6:16: error: invalid operands to binary - (have 'int' and 'char *') 6 | num=let-"0"; | ^ | | | char *
s400805068
p03852
C
#include <stdio.h> int main(void){ char let; scanf("%c",&let); if(false){ printf("vowel"); }else{ printf("consonant"); } return 0; }
main.c: In function 'main': main.c:5:12: error: 'false' undeclared (first use in this function) 5 | if(false){ | ^~~~~ main.c:2:1: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>' 1 | #include <stdio.h> +++ |+#include <stdbool...
s631187895
p03852
C++
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef long double ld; 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; } const long long INF = 1LL << 60; typ...
a.cc: In function 'int main()': a.cc:64:37: error: expected ';' before 'return' 64 | else cout << "consonant" << endl | ^ | ; 65 | 66 | return 0; | ~~~~~~
s103944092
p03852
C++
#include <bits/stdc++.h> using namespace std;int main() { char c; cin >> c; if (c == a || c == b || c == c || c == d || c == e){ cout << "vowel" << endl; } else{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:5:12: error: 'a' was not declared in this scope 5 | if (c == a || c == b || c == c || c == d || c == e){ | ^ a.cc:5:22: error: 'b' was not declared in this scope 5 | if (c == a || c == b || c == c || c == d || c == e){ | ^ a.cc...
s770676360
p03852
C++
#include<bits/stdc++.h> 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; } }
a.cc: In function 'int main()': a.cc:6:7: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 6 | if(s=='a'||s=='i'||s=='u'||s=='e'||s=='o'){ | ~^~~~~ | | | | | char | std::string {aka std::__cxx11::ba...
s554466339
p03852
C++
#include<bits/stdc++.h> using namespace std; int main(){ string a; cin >> a; if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){ cout << "vowel" << endl; } else { cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:9:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){ | ~^~~~~ | | | | | char | std::string {aka st...
s190914839
p03852
C++
#include<bits/stdc++.h> using namespace std; int main(){ string a; cin >> a; if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){ cout << "vowel" << endl; } else { cout << "conslnant" << endl; } }
a.cc: In function 'int main()': a.cc:9:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){ | ~^~~~~ | | | | | char | std::string {aka st...
s683318993
p03852
C++
#include<iostream> int main() { char c; std::cin << c; switch(c) { case 'a': case 'i': case 'u': case 'e': case 'o': std::cout << "vowel"; break; default: std::cout << "consonant"; } }
a.cc: In function 'int main()': a.cc:6:12: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'char') 6 | std::cin << c; | ~~~~~~~~ ^~ ~ | | | | | char | std::istream {aka std::basic_istream<char>} a.cc:6...
s436772376
p03852
C
#include<stdio.h> int main() { char c; int tmp = scanf_s("%c", &c); switch (c) { case 'a': case 'i': case 'u': case 'e': case 'o': printf("voewl"); break; default: printf("consonant"); } }
main.c: In function 'main': main.c:6:19: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration] 6 | int tmp = scanf_s("%c", &c); | ^~~~~~~ | scanf
s575247943
p03852
C++
#include<stdio.h> int main() { char c; scanf_s("%c", &c); switch (c) { case 'a': case 'i': case 'u': case 'e': case 'o': printf("voewl"); break; default: printf("consonant"); } }
a.cc: In function 'int main()': a.cc:6:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'? 6 | scanf_s("%c", &c); | ^~~~~~~ | scanf
s603328314
p03852
C++
#include<stdio.h> void main() { char c; int t = scanf_s("%c", &c); switch (c) { case 'a': case 'i': case 'u': case 'e': case 'o': printf("voewl"); break; default: printf("consonant"); } }
a.cc:3:1: error: '::main' must return 'int' 3 | void main() | ^~~~ a.cc: In function 'int main()': a.cc:6:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'? 6 | int t = scanf_s("%c", &c); | ^~~~~~~ | scanf
s852062295
p03852
C++
#include<stdio.h> void main() { char c; scanf("%c",&c); switch(c) { case 'a': case 'e': case 'i': case 'o': case 'u': printf("voewl"); break; default: printf("consonant"); } }
a.cc:3:1: error: '::main' must return 'int' 3 | void main() | ^~~~
s407080846
p03852
C++
#include<stdio.h> void main() { char c; int tmp = scanf("%c",&c); switch(c) { case 'a': case 'i': case 'u': case 'e': case 'o': printf("voewl"); break; default: printf("consonant"); } }
a.cc:3:1: error: '::main' must return 'int' 3 | void main() | ^~~~
s802573850
p03852
C++
#include<stdio.h> void main() { char c; scanf_s("%c",&c); switch(c) { case 'a': case 'i': case 'u': case 'e': case 'o': printf("voewl"); break; default: printf("consonant"); } }
a.cc:3:1: error: '::main' must return 'int' 3 | void main() | ^~~~ a.cc: In function 'int main()': a.cc:6:3: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'? 6 | scanf_s("%c",&c); | ^~~~~~~ | scanf
s999716852
p03852
C++
#include<stdio.h> void main() { char c; scanf("%c",&c); switch(c) { case 'a': case 'i': case 'u': case 'e': case 'o': printf("voewl"); break; default: printf("consonant"); } }
a.cc:3:1: error: '::main' must return 'int' 3 | void main() | ^~~~
s501775653
p03852
C
#include<stdio.h> void main() { char c; scanf_s("%c",&c); switch(c) { case 'a': case 'i': case 'u': case 'e': case 'o': printf("voewl"); break; default: printf("consonant"); } }
main.c: In function 'main': main.c:6:3: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration] 6 | scanf_s("%c",&c); | ^~~~~~~ | scanf
s338884464
p03852
C
#include<stdio.h> void main() { char c; scanf(%c,&c); switch(c) { case 'a': case 'i': case 'u': case 'e': case 'o': printf("voewl"); break; default: printf("consonant"); } }
main.c: In function 'main': main.c:6:9: error: expected expression before '%' token 6 | scanf(%c,&c); | ^
s761746920
p03852
C++
#include<stdio.h> void main() { char c; scanf("%c",&c); switch(c) { case 'a': case 'i': case 'u': case 'e': case 'o': printf("voewl"); break; default: printf("consonant"); } }
a.cc:3:1: error: '::main' must return 'int' 3 | void main() | ^~~~
s463278130
p03852
C++
#include<stdio.h> void main() { char c; scanf(%c,&c); switch(c) { case 'a': case 'i': case 'u': case 'e': case 'o': printf("voewl"); break; default: printf("consonant"); } }
a.cc:3:1: error: '::main' must return 'int' 3 | void main() | ^~~~ a.cc: In function 'int main()': a.cc:6:9: error: expected primary-expression before '%' token 6 | scanf(%c,&c); | ^
s589824952
p03852
C++
#include<stdio.h> int main(){ char x; scanf("%s",&a); if(x = "a"||"i"||"u"||"e"||"o") printf("vowel"); else printf("consonant"); }
a.cc: In function 'int main()': a.cc:4:15: error: 'a' was not declared in this scope 4 | scanf("%s",&a); | ^
s704631764
p03852
C++
#include<stdio.h> int main(){ char x; scanf("%s",&a); if(x = a||i||u||e||o) printf("vowel"); else printf("consonant"); }
a.cc: In function 'int main()': a.cc:4:15: error: 'a' was not declared in this scope 4 | scanf("%s",&a); | ^ a.cc:5:13: error: 'i' was not declared in this scope 5 | if(x = a||i||u||e||o) printf("vowel"); | ^ a.cc:5:16: error: 'u' was not declared in this scope 5 | ...
s673000610
p03852
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; } } #include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if (c =...
a.cc:17:5: error: redefinition of 'int main()' 17 | int main() { | ^~~~ a.cc:4:5: note: 'int main()' previously defined here 4 | int main() { | ^~~~
s239218453
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if (char == 'a' || char == 'i' || char == 'u' || char == 'e' || char == 'o') { cout << "vowel" << endl; } else { cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:8:16: error: expected unqualified-id before '==' token 8 | if (char == 'a' || char == 'i' || char == 'u' || char == 'e' || char == 'o') { | ^~
s457773733
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if (char == 'a' || char == 'i' || char == 'u' || char == 'e' || char == 'o') { cout << "vowel" << endl; } else { cout << "consonant" << endl; } } }
a.cc: In function 'int main()': a.cc:8:16: error: expected unqualified-id before '==' token 8 | if (char == 'a' || char == 'i' || char == 'u' || char == 'e' || char == 'o') { | ^~ a.cc: At global scope: a.cc:15:1: error: expected declaration before '}' token 15 | } | ^
s142443200
p03852
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;} }
a.cc:8:68: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes 8 | if(c == 'a' ||c == 'i' ||c == 'u' ||c == 'e' ||c == 'o') { cout << 'vowel' << endl; } | ^~~~~~~ a.cc: In function 'int main()': a.cc:9:17: error: '...
s492007440
p03852
C++
#include <bits/stdc++.h> #include <algorithm> #include<string> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(NULL); //string c; char c; cin >> c; if (c == "a" || c == "e" || c == "i" || c == "u" || c == "o") { cout << "vowel" << endl; } else { cout <...
a.cc: In function 'int main()': a.cc:12:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 12 | if (c == "a" || c == "e" || c == "i" || c == "u" || c == "o") { | ~~^~~~~~ a.cc:12:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 12 | ...
s048193311
p03852
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; } } }
a.cc:15:1: error: expected declaration before '}' token 15 | } | ^
s991541778
p03852
C++
#include<iostream> #include<set> using namespace std; int main(){ set<char> s{'a', 'i', 'u', 'e', 'o'}; char ch; cin >> ch; set<char>::iterator it = s.find(ch); if (it = s.end()) cout << "consonant" << endl; else cout << "vowel" << endl; return 0; }
a.cc: In function 'int main()': a.cc:11:10: error: could not convert '(it = s.std::set<char>::end())' from 'std::set<char>::iterator' {aka 'std::_Rb_tree<char, char, std::_Identity<char>, std::less<char>, std::allocator<char> >::const_iterator'} to 'bool' 11 | if (it = s.end()) | ~~~^~~~~~~~~ | ...
s316551967
p03852
C++
#include <bits/stdc++.h> using namespace std; string s; cin >> s; if (s =="a" || s == "e" || s == "i" || s == "o" || s == "u"){ cout << "vowel" << endl; } else { cout << "consonant" << endl; } }
a.cc:5:3: error: 'cin' does not name a type 5 | cin >> s; | ^~~ a.cc:7:3: error: expected unqualified-id before 'if' 7 | if (s =="a" || s == "e" || s == "i" || s == "o" || s == "u"){ | ^~ a.cc:10:3: error: expected unqualified-id before 'else' 10 | else { | ^~~~ a.cc:13:1: error...
s520758067
p03852
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 1; i < S.size(); i++) int main() { string ans; cin >> ans; if(ans == a){ cout << "vowel"<< endl; } if(ans == e){ cout << "vowel"<< endl; } if(ans == i){ cout << "vowel"<< endl; } if(ans == o){ cout << "vowel"<< endl;...
a.cc: In function 'int main()': a.cc:8:13: error: 'a' was not declared in this scope 8 | if(ans == a){ | ^ a.cc:11:13: error: 'e' was not declared in this scope 11 | if(ans == e){ | ^ a.cc:14:13: error: 'i' was not declared in this scope 14 | if(ans == i){ | ...
s591254235
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string 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 << "conso...
a.cc: In function 'int main()': a.cc:7:6: error: could not convert 'C.std::__cxx11::basic_string<char>::operator=(((const char*)"a"))' from 'std::__cxx11::basic_string<char>' to 'bool' 7 | if(C="a"){ | ~^~~~ | | | std::__cxx11::basic_string<char> a.cc:10:11: error: could not convert...
s554217541
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string 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 >> "conson...
a.cc: In function 'int main()': a.cc:6:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 6 | cin << C; | ~~~ ^~ ~ | | | | | std::string {aka std::__cxx11::basic_string...
s552773486
p03852
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; } }
a.cc: In function 'int main()': a.cc:7:27: error: could not convert '((((((void)C.std::__cxx11::basic_string<char>::operator=(((const char*)"a"))), ((void)C.std::__cxx11::basic_string<char>::operator=(((const char*)"i")))), ((void)C.std::__cxx11::basic_string<char>::operator=(((const char*)"u")))), ((void)C.std::__cxx1...
s492951721
p03852
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; } }
a.cc: In function 'int main()': a.cc:11:9: error: 'consonant' was not declared in this scope 11 | cout << consonant << endl; | ^~~~~~~~~
s329503633
p03852
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; } }
a.cc: In function 'int main()': a.cc:7:6: error: 'a' was not declared in this scope 7 | if(C=a,i,u,e,o){ | ^ a.cc:7:8: error: 'i' was not declared in this scope 7 | if(C=a,i,u,e,o){ | ^ a.cc:7:10: error: 'u' was not declared in this scope 7 | if(C=a,i,u,e,o){ | ^ a.cc:...