submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s153434255 | 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: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 (... |
s764084815 | p03852 | 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"){... | 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:1... |
s798159399 | p03852 | 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"){
... | 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"){
... |
s188519263 | p03852 | 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"){
... | 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"){
| ^
|
s058778989 | p03852 | 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[tm... | 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 ... |
s340870502 | 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:9:30: error: lvalue required as left operand of assignment
9 | if(c='a'||c='i'||c='u'||c='e'||c='o')
| ~~~^~~
a.cc:10:5: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [6]')
1... |
s758942718 | p03852 | 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;
} | a.cc: In function 'int main()':
a.cc:11:31: error: '::npos' has not been declared
11 | if(c.find(aeiou) == ::npos) cout << "consonant";
| ^~~~
|
s956481712 | p03852 | 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;
} | 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";
| ^~~~
|
s433184167 | 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:12:9: error: 'consonant' was not declared in this scope
12 | cout << consonant << endl ;
| ^~~~~~~~~
|
s509717124 | p03852 | 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";
}
}
| a.cc: In function 'int main()':
a.cc:9:6: error: expected primary-expression before ')' token
9 | else(){
| ^
|
s176447360 | p03852 | 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";
}
}
| 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 | i... |
s849912471 | p03852 | 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;
}
}
| 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 ... |
s636071649 | p03852 | 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;
}
}
| 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 '<iostr... |
s404496935 | p03852 | 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;
} | 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... |
s358820691 | p03852 | 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;
} | 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")... |
s565310399 | p03852 | 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;
} | 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... |
s958485093 | p03852 | 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;
}
| 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";
| ~ ^~~
... |
s049448219 | p03852 | 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;
} | 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'){
| ~~~^~~~
|
s095690996 | p03852 | 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;
} | 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'){
| ~~~^~~
|
s237424611 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s,ans;
cin >> s;
if( s='a'||s='i'||s='u'||s='e'||s='o'){
ans="vowel";
}
else{
ans="consonant";
}
cout << ans << endl;
} | a.cc: In function 'int main()':
a.cc:7:12: error: no match for 'operator||' (operand types are 'char' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
7 | if( s='a'||s='i'||s='u'||s='e'||s='o'){
| ~~~^~~
| | |
| char std::string {aka std::__cxx11::basic_stri... |
s684637115 | p03852 | 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[... | a.cc: In function 'int main()':
a.cc:21:16: error: 'consonant' was not declared in this scope
21 | else cout << consonant << endl;
| ^~~~~~~~~
|
s530908051 | 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: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'){
| ^
|
s558291373 | p03852 | 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;
}
}
| 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'){
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
|
s292514999 | 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:7:38: error: no match for 'operator||' (operand types are 'bool' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
7 | if(a=="a"||a=="i"||a=="u"||a=="e"||a="o"){
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
| | |
... |
s423158887 | 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:7:9: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
7 | if(a=='a'||a=='i'||a=="u"||a=='e'||a='o'){
| ~^~~~~
| | |
| | char
| std::string {aka std::__... |
s862620495 | 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:7:38: error: no match for 'operator||' (operand types are 'bool' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
7 | if(a=="a"||a=="i"||a=="u"||a=="e"||a="o"){
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
| | |
... |
s088275594 | p03852 | 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;
}
| 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.... |
s579877785 | p03852 | 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;
}
} | 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... |
s191827103 | p03852 | 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;
}
} | 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 | }
| ^
|
s858993481 | 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: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 no... |
s898305575 | p03852 | 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;
}
} | a.cc: In function 'int main()':
a.cc:8:9: error: 'a' was not declared in this scope
8 | if(c == a || e || i || o || u)
| ^
a.cc:8:14: error: 'e' was not declared in this scope
8 | if(c == a || e || i || o || u)
| ^
a.cc:8:19: error: 'i' was not declared in this scope
8 | if(... |
s171813073 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string x;
cin >> x;
if(x=="a"or"i"or"u"or"e"or"o"){
cout << "vowl" << endl;
}
else{
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:29: error: unable to find string literal operator 'operator""or' with 'const char [6]', 'long unsigned int' arguments
7 | if(x=="a"or"i"or"u"or"e"or"o"){
| ^~~
|
s313039488 | p03852 | C++ | puts (gets=~/[aiueo]/ ? "vowel" : "consonant") | a.cc:1:6: error: expected constructor, destructor, or type conversion before '(' token
1 | puts (gets=~/[aiueo]/ ? "vowel" : "consonant")
| ^
|
s550429861 | 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:8: error: 'a' was not declared in this scope
7 | if (c==a||c==i||c==u||c==e||c==o){
| ^
a.cc:7:14: error: 'i' was not declared in this scope
7 | if (c==a||c==i||c==u||c==e||c==o){
| ^
a.cc:7:20: error: 'u' was not declared in this scope
... |
s794230549 | 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:6: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
7 | if (c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){
| ~^~~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_s... |
s728447214 | 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:8: error: 'a' was not declared in this scope
7 | if (c==a||c==i||c==u||c==e||c==o){
| ^
a.cc:7:14: error: 'i' was not declared in this scope
7 | if (c==a||c==i||c==u||c==e||c==o){
| ^
a.cc:7:20: error: 'u' was not declared in this scope
... |
s650115250 | 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{
cou<<t"consonant"<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:8: error: 'a' was not declared in this scope
7 | if (c==a||c==i||c==u||c==e||c==o||){
| ^
a.cc:7:14: error: 'i' was not declared in this scope
7 | if (c==a||c==i||c==u||c==e||c==o||){
| ^
a.cc:7:20: error: 'u' was not declared in this scope
... |
s765461033 | p03852 | 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'){
co... | a.cc: In function 'int main()':
a.cc:8:14: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [6]')
8 | cout >> "vowel" >> endl;
| ~~~~ ^~ ~~~~~~~
| | |
| | const char [6]
| s... |
s324102149 | p03852 | 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"){
co... | a.cc: In function 'int main()':
a.cc:6:13: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'char')
6 | cin << c;
| ~~~ ^~ ~
| | |
| | char
| std::istream {aka std::basic_istream<char>}
a... |
s939516885 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
String x;
cin >> x;
if( x == "a" || "i" || "u" || "e" || "o"){
cout << "vowel" << endl;
}else{
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:5:9: error: 'String' was not declared in this scope
5 | String x;
| ^~~~~~
a.cc:6:16: error: 'x' was not declared in this scope
6 | cin >> x;
| ^
|
s685746291 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
String x;
cin >> x;
if(x == "a" || x == "i" || x == "u" || x == "e" || x == "o"){
cout << "vowel" << endl;
}else{
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:5:9: error: 'String' was not declared in this scope
5 | String x;
| ^~~~~~
a.cc:6:16: error: 'x' was not declared in this scope
6 | cin >> x;
| ^
|
s419279903 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
String x;
cin << x;
if(x == "a" || x == "i" || x == "u" || x == "e" || x == "o"){
cout >> "vowel" >> endl;
}else{
cout >> "consonant" >> endl;
}
}
| a.cc: In function 'int main()':
a.cc:5:9: error: 'String' was not declared in this scope
5 | String x;
| ^~~~~~
a.cc:6:16: error: 'x' was not declared in this scope
6 | cin << x;
| ^
a.cc:8:14: error: no match for 'operator>>' (operand types are 'std::ostream' ... |
s193080362 | 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:5:9: error: 'String' was not declared in this scope
5 | String c;
| ^~~~~~
a.cc:6:16: error: 'c' was not declared in this scope
6 | cin << c;
| ^
a.cc:7:56: error: expected ')' before 'c'
7 | if(c == "a" || c == ... |
s666614230 | 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:5:14: error: expected unqualified-id before 'c'
5 | char 'c';
| ^~~
a.cc:6:16: error: 'c' was not declared in this scope
6 | cin << c;
| ^
a.cc:7:17: error: 'a' was not declared in this scope
7 | if(c == a |... |
s765261303 | p03852 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
String s = scan.next();
if(s.contains("a")||s.contains("i")||
s.contains("u")||
s.contains("e")||s.contains("o")){
System.out.print("vowel");
}... | Main.java:13: error: package SYstem does not exist
SYstem.out.print("consonant");
^
1 error
|
s957439894 | p03852 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
String s = scan.next();
if(s.contains("a")||s.contains("i")||
s.contains("u")||
s.contains("e")||s.contains("o")||){
System.out.print("vowel");
... | Main.java:9: error: illegal start of expression
s.contains("e")||s.contains("o")||){
^
1 error
|
s462437067 | 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:9:9: error: 'vowel' was not declared in this scope
9 | cout << vowel << endl;
| ^~~~~
a.cc:13:9: error: 'consonant' was not declared in this scope
13 | cout << consonant<< endl;
| ^~~~~~~~~
|
s129299774 | 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:9:9: error: 'vowel' was not declared in this scope
9 | cout << vowel << endl;
| ^~~~~
a.cc:11:1: error: expected '}' before 'else'
11 | else{
| ^~~~
a.cc:8:51: note: to match this '{'
8 | if(C=='a' || C=='i' || C=='u' || C=='e' || C=='o'){
| ... |
s854346401 | 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:9:9: error: 'vowel' was not declared in this scope
9 | cout << vowel << endl;
| ^~~~~
a.cc:11:1: error: expected '}' before 'else'
11 | else{
| ^~~~
a.cc:8:51: note: to match this '{'
8 | if(C=='a' || C=='i' || C=='u' || C=='e' || C=='o'){
| ... |
s624815865 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
char C;
cin >> C ;
if (C=='a')
cout <<vowel << endl;
if (C=='i')
cout <<vowel << endl;
if (C=='u')
cout <<vowel << endl;
if (C=='e')
cout <<vowel << endl;
if (C=='o')
cout <<vowel << endl;
else
cout<<consonant <<endl;
}
| a.cc: In function 'int main()':
a.cc:7:8: error: 'vowel' was not declared in this scope
7 | cout <<vowel << endl;
| ^~~~~
a.cc:9:8: error: 'vowel' was not declared in this scope
9 | cout <<vowel << endl;
| ^~~~~
a.cc:11:8: error: 'vowel' was not declared in this scope
11 | cout <<v... |
s577339892 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
char c;
cin>>c;
if(c=='a'||c=='i'||a=='u'||a=='e'||a=='o'){
cout << "vowel";
}else{
cout << "constant";
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:22: error: 'a' was not declared in this scope
7 | if(c=='a'||c=='i'||a=='u'||a=='e'||a=='o'){
| ^
|
s278697258 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
char w;
cin>>w;
if(w=='a'||w=='i'||w=='u'||w=='e'||w=='o'){
cout<<"vowel"<<endl;
}
else{
cout<<consonant<<endl;
}
} | a.cc: In function 'int main()':
a.cc:10:11: error: 'consonant' was not declared in this scope
10 | cout<<consonant<<endl;
| ^~~~~~~~~
|
s763097565 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
char w;
cin>>w;
if(w=='a'||w=='i'||w=='u'||w=='e'||w=='o'){
cout<<"vowel"<<endl;
}
else{
cout<<consonant<<endl;
}
} | a.cc: In function 'int main()':
a.cc:10:11: error: 'consonant' was not declared in this scope
10 | cout<<consonant<<endl;
| ^~~~~~~~~
|
s292227389 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int c;
cin>>c;
if (c=="a") {
cout<<"vowel"<<endl;
}
else if (c=="e") {
cout<<"vowel"<<endl;
}
else if (c=="i") {
cout<<"vowel"<<endl;
}
else if (c=="o") {
cout<<"vowel"<<endl;
}
else if (c=="u") {
cout<<"vowel"<<endl;
... | a.cc: In function 'int main()':
a.cc:7:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if (c=="a") {
| ~^~~~~
a.cc:10:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
10 | else if (c=="e") {
| ~^~~~~
a.cc:13:13: ... |
s060917466 | p03852 | C++ | #include <iostream>
#include <algorithm>
#include <string>
#include <cmath>
#include <ctype.h>
#include <map>
#include <vector>
#include <stdlib.h>
#include <cctype>
#define REP(i,n) for(int i=0;i<(int)n;++i)
#define REP1(j,n) for(int j=0;j<(int)n;++j)
#define REPD(i,n) for(int i=n;i>=0;--i)
#define REPD1(j,n) for(int ... | a.cc: In function 'int main()':
a.cc:29:37: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
29 | cout << "consonant" < endl;
| ~~~~~~~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/c++/14/string:4... |
s430584597 | 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:13: error: 'consonant' was not declared in this scope
11 | cout << consonant << endl;
| ^~~~~~~~~
a.cc:13:2: error: expected '}' at end of input
13 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s205749867 | 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:12:8: error: expected '(' before 'c'
12 | if c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'{
| ^
| (
a.cc:14:7: error: 'else' without a previous 'if'
14 | } else {
| ^~~~
|
s259545790 | 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:12:8: error: expected '(' before 'c'
12 | if c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'{
| ^
| (
a.cc:14:7: error: 'else' without a previous 'if'
14 | } else{
| ^~~~
|
s845164696 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
char c;
cin >> c;
string ans = "consonant";
if (c == 'a' || c == 'e' || c == 'i'
|| c == 'o' || c == 'u' || ) ans = "vowel";
cout << ans << endl;
} | a.cc: In function 'int main()':
a.cc:11:34: error: expected primary-expression before ')' token
11 | || c == 'o' || c == 'u' || ) ans = "vowel";
| ^
|
s659197532 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin>>c;
if(c =='a'){
cout << "vowel" <<endl;
}
if(c =='i'){
cout << "vowel" <<endl;
}
if(c =='u'){
cout << "vowel" <<endl;
}
if(c =='e'){
cout << "vowel" <<endl;
}
if(c =='o'){
cout << "vowel" <<endl;
}
else {
cout << "conso... | a.cc: In function 'int main()':
a.cc:8:14: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
8 | if(c =='a'){
| ~ ^~~~~
| | |
| | char
| std::string {aka std::__cxx11:... |
s146257760 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin>>c;
if(c =='a'){
cout << "vowel" <<endl;
}
if(c =='i'){
cout << "vowel" <<endl;
}
if(c =='u'){
cout << "vowel" <<endl;
}
if(c =='e'){
cout << "vowel" <<endl;
}
if(c =='o'){
cout << "vowel" <<endl;
}
else {
cout << "conso... | a.cc: In function 'int main()':
a.cc:8:14: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
8 | if(c =='a'){
| ~ ^~~~~
| | |
| | char
| std::string {aka std::__cxx11:... |
s338452430 | p03852 | 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;
}
}
| a.cc:10:7: warning: missing terminating " character
10 | cout<<"vowel<<endl;
| ^
a.cc:10:7: error: missing terminating " character
10 | cout<<"vowel<<endl;
| ^~~~~~~~~~~~~
a.cc:12:7: warning: missing terminating " character
12 | cout<<"vowel<<endl;
| ^
a.cc:12:7: error: miss... |
s734294186 | p03852 | Java | bo = ['a', 'i', 'u', 'e', 'o']
if (input() in bo):
print("vowel")
else :
print("consonant") | Main.java:1: error: class, interface, enum, or record expected
bo = ['a', 'i', 'u', 'e', 'o']
^
1 error
|
s253525376 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
dhar 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:5:1: error: 'dhar' was not declared in this scope; did you mean 'char'?
5 | dhar c;
| ^~~~
| char
a.cc:6:10: error: 'c' was not declared in this scope
6 | cin >> c;
| ^
|
s853143510 | p03852 | C++ | #include<string>
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:3: error: 'cin' was not declared in this scope
6 | cin>>s;
| ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
1 | #include<string>
+++ |+#include <iostream>
2 | using namespace std;
a... |
s812742697 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
str x;
cin >> x;
if (x == "a" || x == "e" || x == "i" || x == "o" || x == "u") {
cout << "vowel" << endl;
}
else {
cout << "constant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:5:3: error: 'str' was not declared in this scope; did you mean 'std'?
5 | str x;
| ^~~
| std
a.cc:6:10: error: 'x' was not declared in this scope
6 | cin >> x;
| ^
|
s009422760 | 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:6:31: error: expected ';' before '}' token
6 | else cout<<"consonant"<<endl}
| ^
| ;
|
s500607005 | 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:6:32: error: expected '}' at end of input
6 | else cout<<"consonant"<<endl;
| ^
a.cc:3:11: note: to match this '{'
3 | int main(){
| ^
|
s686891519 | p03852 | C | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#define _CRT_SECURE_NO_WARNINGS
#define TLong long long
int main(int argc, char const *argv[]){
char string[] = "aiueo";
char ch;
scanf("%c",&ch);
for (int i = 0; i < 5; ++i)
{
if(ch == string[i]){
puts("vowel")
... | main.c: In function 'main':
main.c:17:38: error: expected ';' before 'return'
17 | puts("vowel")
| ^
| ;
18 | return 0;
| ~~~~~~
|
s717059008 | p03852 | C | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#define _CRT_SECURE_NO_WARNINGS
#define TLong long long
int main(int argc, char const *argv[]){
char string[] = "aiueo";
char ch;
scanf("%c",&ch);
for (int i = 0; i < 5; ++i)
{
if(ch == string[i]){
puts("Yes")
... | main.c: In function 'main':
main.c:17:36: error: expected ';' before 'return'
17 | puts("Yes")
| ^
| ;
18 | return 0;
| ~~~~~~
|
s077202769 | p03852 | C | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#define _CRT_SECURE_NO_WARNINGS
#define TLong long long
int main(int argc, char const *argv[]){
char string[] = "aiueo";
char ch;
scanf("%c",ch);
for (int i = 0; i < 5; ++i)
{
if(ch == string[i]){
puts("Yes")
... | main.c: In function 'main':
main.c:17:36: error: expected ';' before 'return'
17 | puts("Yes")
| ^
| ;
18 | return 0;
| ~~~~~~
|
s209366282 | p03852 | C++ | #include<iostream>
#include<string>
#include <algorithm>
using namespace std;
int main()
{
string c;
cin >> c;
target_list = "aiueo";
if(target_list.find(c) != string::npos){
cout << "vowel" << endl;
}else{
cout << "consonant" << endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:3: error: 'target_list' was not declared in this scope
9 | target_list = "aiueo";
| ^~~~~~~~~~~
|
s630458700 | 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:11: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){
| ~ ^~ ~~~
| | |
| | char
... |
s335719161 | 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:11: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
7 | if((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')){
| ~ ^~ ~~~
| | |
| | char
... |
s920983605 | 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:6:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if (c == "a" || c == "i" || c == "u" || c == "e" ||c == "o"){
| ~~^~~~~~
a.cc:6:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if (c == "a... |
s629873762 | 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:24: error: invalid operands of types 'const char [10]' and '<unresolved overloaded function type>' to binary 'operator<<'
11 | cout < "consonant" << endl;
| ~~~~~~~~~~~~^~~~~~~
|
s983626091 | 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:11:22: error: expected ';' before '}' token
11 | cout << "consonant"
| ^
| ;
12 | }
| ~
|
s445097182 | p03852 | Java | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String c = sc.nex();
if(c.equals("a") || c.equals("e") || c.equals("i") || c.equals("o") || c.equals("u")) {
System.out.println("vowel");
}else {
Sys... | Main.java:5: error: cannot find symbol
String c = sc.nex();
^
symbol: method nex()
location: variable sc of type Scanner
1 error
|
s924111706 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
#define cinf(n,x) for(int i=0;i<(n);I++) cin >> x[i];
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:8:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
8 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o')
| ~ ^~ ~~~
| | |
| | char
| std::strin... |
s020177309 | 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:1:10: fatal error: bits.stdc++.h: No such file or directory
1 | #include <bits.stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s566573953 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if (S.at(0)='a' ||S.at(0)='e'||S.at(0)='i'||S.at(0)='o'||S.at(0)='u'){
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:7:58: error: lvalue required as left operand of assignment
7 | if (S.at(0)='a' ||S.at(0)='e'||S.at(0)='i'||S.at(0)='o'||S.at(0)='u'){
| ~~~^~~~~~~~~
|
s411701094 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if (S.at(0)='a' || S.at(0)='e'||S.at(0)='i'||S.at(0)='o'||S.at(0)='u'||){
cout << "voel" << endl;
}
else {
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:7:74: error: expected primary-expression before ')' token
7 | if (S.at(0)='a' || S.at(0)='e'||S.at(0)='i'||S.at(0)='o'||S.at(0)='u'||){
| ^
|
s106177580 | 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:12:2: error: expected '}' at end of input
12 | }
| ^
a.cc:4:11: note: to match this '{'
4 | int main(){
| ^
|
s297787956 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
const string vowel="aeiou";
cout << vowel.find(c)==sring::npos ? "vowel":"consonant"<<endl;
}
| a.cc: In function 'int main()':
a.cc:8:24: error: 'sring' has not been declared
8 | cout << vowel.find(c)==sring::npos ? "vowel":"consonant"<<endl;
| ^~~~~
a.cc:8:57: error: invalid operands of types 'const char [10]' and '<unresolved overloaded function type>' to binary 'operator<<'
... |
s251333902 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
const string vowel="aeiou";
cout << vowel.find(c)==sring::npos ? "vowel":"consonant"<<endl;
}
| a.cc: In function 'int main()':
a.cc:8:24: error: 'sring' has not been declared
8 | cout << vowel.find(c)==sring::npos ? "vowel":"consonant"<<endl;
| ^~~~~
a.cc:8:57: error: invalid operands of types 'const char [10]' and '<unresolved overloaded function type>' to binary 'operator<<'
... |
s609641502 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
const string vowel="aeiou";
cout << vowel.find(c)==sring::npos ? "vowel":"consonant"<<endl;
cout << ans << endl;
}
| a.cc: In function 'int main()':
a.cc:8:24: error: 'sring' has not been declared
8 | cout << vowel.find(c)==sring::npos ? "vowel":"consonant"<<endl;
| ^~~~~
a.cc:8:57: error: invalid operands of types 'const char [10]' and '<unresolved overloaded function type>' to binary 'operator<<'
... |
s429389439 | p03852 | C++ | #include <iostream>
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:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
4 | cin >> c;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to sta... |
s520958311 | 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;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:19: error: lvalue required as left operand of assignment
7 | if (c=='a'||c=='e'||c='i'||c=='o'||c=='u'){
| ~~~~~~~~~~~~~~^~~
|
s907422150 | 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: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:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if ( c =="a"||c =... |
s303643695 | 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: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 (... |
s497439416 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
char c;
cin >> c;
char a, i, u, e, o;
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:9:18: error: 'C' was not declared in this scope
9 | if ( c == a || C == i || c == u || c == e || c == o) {
| ^
|
s158943167 | 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:13: error: 'a' was not declared in this scope
8 | if ( c == a || C == i || c == u || c == e || c == o) {
| ^
a.cc:8:18: error: 'C' was not declared in this scope
8 | if ( c == a || C == i || c == u || c == e || c == o) {
| ^
a.c... |
s944063364 | 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:7:43: error: no match for 'operator||' (operand types are 'bool' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
7 | if(s=="a" || s=="i" || s=="u" || s=="e" || s="o"){
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ ~
| | ... |
s903553878 | 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:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(s=="a" || s=="i" || s=="u" || s=="e" || s="o"){
| ~^~~~~
a.cc:7:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(s=="a" || s=="i" ||... |
s718247861 | p03852 | C++ | #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <iomanip>
using namespace std;
int main()
{
string A;
if (A == "a" || A == "i" || A == "u" || A == "e" || A == "o") {
cout << "vowel" << endl;
}
else {
cout << "consonant"
}
} | a.cc: In function 'int main()':
a.cc:15:36: error: expected ';' before '}' token
15 | cout << "consonant"
| ^
| ;
16 | }
| ~
|
s458192465 | p03852 | C | #include <stdio.h>
int main(void){
char s[2];
scanf("%s",s);
if(a[0]=='a'||a[0]=='b'||a[0]=='c'||a[0]=='d'||a[0]=='e'){
printf("vowel");
}
else{
printf("consonant");
}
return 0;
} | main.c: In function 'main':
main.c:5:6: error: 'a' undeclared (first use in this function)
5 | if(a[0]=='a'||a[0]=='b'||a[0]=='c'||a[0]=='d'||a[0]=='e'){
| ^
main.c:5:6: note: each undeclared identifier is reported only once for each function it appears in
|
s373762746 | p03852 | C++ | #include <iostream>
using namespace std;
int main(){
string s;cin>>s;
if(s=='a' or s=='e' or s=='i' or s=='o' or s=='u') cout<<"vowel"<<endl;
else cout<<"consonant"<<endl;
return 0;
} | 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' or s=='e' or s=='i' or s=='o' or s=='u') cout<<"vowel"<<endl;
| ~^~~~~
| | |
| | char
| std::... |
s643138388 | p03852 | C | #include<stdio.h>
int main() {
char a;
scanf("%c",&a);
int q;
int w;
int e;
init o;
if(a=='a'||a=='e'||a=='i'||a=='o'||a=='u')
printf("vowel");
else
printf("consonant");
return 0;
} | main.c: In function 'main':
main.c:8:9: error: unknown type name 'init'; did you mean 'int'?
8 | init o;
| ^~~~
| int
|
s871741982 | p03852 | C++ | #include <iostream>
#include <array>
#include <vector>
#include <iomanip>
#include <string>
#include <cmath>
#include <algorithm>
#include <queue>
#include <map>
#include <set>
using namespace std;
typedef pair<int, int> P;
typedef long long LL;
const LL INF = 1 << 31;
int main()
{
string a[4] = {"dream", "erase"... | a.cc: In function 'int main()':
a.cc:81:6: error: expected '}' at end of input
81 | }
| ^
a.cc:18:1: note: to match this '{'
18 | {
| ^
|
s278472994 | p03852 | C++ | // ABC049_A
#include <iostream>
#include <cstdio>
#include <string>
#include <vector>
#include <iterator> // std::back_inserter()
#include <tuple> // std::tuple std::get
#include <set>
#include <map>
#include <unordered_map>
#include <unordered_set>
#include <algorithm> // std::copy()
#include <functional> // std::... | a.cc: In function 'int main()':
a.cc:46:70: error: expected primary-expression before ')' token
46 | if (ch == 'a' || ch == 'e' ||ch == 'i' ||ch == 'o' ||ch == 'u' ||){
| ^
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.