submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s058842847
p03852
C++
using namespace std; int main() { char c; cin >> c; if(c == 'a' || c == 'i' || c== 'u' || c == 'e' || c == 'o') cout << "vowel"; else cout << "consonant"; return 0; }
a.cc: In function 'int main()': a.cc:6:1: error: 'cin' was not declared in this scope 6 | cin >> c; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | using namespace std; a.cc:8:1: error: 'cout' was ...
s389375105
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 if cout << "consonant"; return 0; }
a.cc: In function 'int main()': a.cc:12:5: error: expected '(' before 'cout' 12 | cout << "consonant"; | ^~~~ | (
s673220455
p03852
C++
#include<bits/stdc++.h> using namespace std; int main(){ char c; cin >> c; if((c == 'a')||(c == 'o')||(c == 'i')||(c == 'u')||(c == 'e')||(c == 'o')){ cout << vowel << endl; }else{ cout << consonaut << endl; } }
a.cc: In function 'int main()': a.cc:9:13: error: 'vowel' was not declared in this scope 9 | cout << vowel << endl; | ^~~~~ a.cc:11:13: error: 'consonaut' was not declared in this scope 11 | cout << consonaut << endl; | ^~~~~~~~~
s660215621
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:7:27: error: expected ';' before 'return' 7 | else cout<<"consonant" | ^ | ; 8 | return 0; | ~~~~~~
s297686713
p03852
Java
import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; import java.util.List; import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String c = sc.next(); String[] vowel = {"a", "i" , "u" , "e" , "o"}...
Main.java:14: error: cannot find symbol System.out.pritnln("vowel"); ^ symbol: method pritnln(String) location: variable out of type PrintStream 1 error
s321110316
p03852
C++
#include <bits/stdc++.h> using namespace std; int main () { char c; cin >> c; if (str.at(0) != 'a' && str.at(0) != 'e' && str.at(0) != 'i' && str.at(0) != 'o' && str.at(0) != 'u') cout << "consonant" << endl; else cout << "vowel" << endl; }
a.cc: In function 'int main()': a.cc:7:7: error: 'str' was not declared in this scope; did you mean 'std'? 7 | if (str.at(0) != 'a' && str.at(0) != 'e' && str.at(0) != 'i' | ^~~ | std
s437309883
p03852
C++
#include <bits/stdc++.h> using namespace std; int main () { char c; cin >> c; if (str.at(0) != 'a' && str.at(0) != 'e' && str.at(0) != 'i' && str.at(0) != 'o' && str.at(0) != 'u') cout << "consonant" << endl; else cout << vowel << endl; }
a.cc: In function 'int main()': a.cc:7:7: error: 'str' was not declared in this scope; did you mean 'std'? 7 | if (str.at(0) != 'a' && str.at(0) != 'e' && str.at(0) != 'i' | ^~~ | std a.cc:9:16: error: 'vowel' was not declared in this scope 9 | else cout << vowel << endl; | ...
s903875148
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c; cin>>c; for(int i=0;i<5;i++){ if("aeiou"s.at(i)==c){ cout<<"vowel"<<endl; break; } } if("aeiou"s.at(i)!=c){ cout<<"constant"<<endl; }
a.cc: In function 'int main()': a.cc:13:18: error: 'i' was not declared in this scope 13 | if("aeiou"s.at(i)!=c){ | ^ a.cc:16:2: error: expected '}' at end of input 16 | } | ^ a.cc:4:11: note: to match this '{' 4 | int main(){ | ^
s769426137
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c; cin>>c; if(a=='a'||'e'||'i'||'o'||'u'){ cout<<"vowel"<<endl; } else{ cout<<"consonant"<<endl; } }
a.cc: In function 'int main()': a.cc:7:6: error: 'a' was not declared in this scope 7 | if(a=='a'||'e'||'i'||'o'||'u'){ | ^
s590364019
p03852
C++
#include <cstdio> #include <cstring> int main() { char a; a = getchar(); if (a == 'a' || a == 'e' || a =='i' || a == 'o'|| a == 'u') { printf("vowel\n"); } else { printf("consonantconsonant\n") } return 0; }
a.cc: In function 'int main()': a.cc:14:47: error: expected ';' before '}' token 14 | printf("consonantconsonant\n") | ^ | ; 15 | } | ~ ...
s322861148
p03852
C
#include<stdio.h> int main(){ char str; scanf("%c",&str); swich(str){ case ('a'):printf("vowel"); case ('i'):printf("vowel"); case ('u'):printf("vowel"); case ('e'):printf("vowel"); case ('o'):printf("vowel"); default:printf("consonant"); } return 0; }
main.c: In function 'main': main.c:5:3: error: implicit declaration of function 'swich' [-Wimplicit-function-declaration] 5 | swich(str){ | ^~~~~ main.c:5:13: error: expected ';' before '{' token 5 | swich(str){ | ^ | ;
s867243528
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<<constant<<endl; } }
a.cc: In function 'int main()': a.cc:5:8: error: expected unqualified-id before '=' token 5 | char = c; | ^ a.cc:6:8: error: 'c' was not declared in this scope 6 | cin>>c; | ^ a.cc:8:11: error: 'vowel' was not declared in this scope 8 | cout<<vowel<<endl; | ...
s171490959
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<<constant<<endl; } }
a.cc: In function 'int main()': a.cc:5:8: error: expected unqualified-id before '=' token 5 | char = c; | ^ a.cc:6:8: error: 'c' was not declared in this scope 6 | cin>>c; | ^ a.cc:8:11: error: 'vowel' was not declared in this scope 8 | cout<<vowel<<endl; | ...
s999423657
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { int one,m; char S; cin >> S; if (S=='a') cout << "vowel" << endl; else if (S=='i') cout << "vowel" << endl; else if (S=='u') cout << "vowel" << endl; else if (S=='e') cout << "vowel" << endl; else if (S=='o') cout << "vow...
a.cc:22:1: error: expected declaration before '}' token 22 | } | ^
s369977869
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 << "...
a.cc: In function 'int main()': a.cc:8:11: error: 'a' was not declared in this scope 8 | if(c == a){ | ^ a.cc:11:16: error: 'i' was not declared in this scope 11 | else if(c == i){ | ^ a.cc:14:16: error: 'u' was not declared in this scope 14 | else if(c == u){ ...
s441903518
p03852
C++
#include <iostream> using namespace std; int main() { string s; cin>>s; if((s=="a")||(s=="o")||(s=="u")||(s="e")||(s=="i")) cout << ("vowel"); else cout<< ("consonante"); return 0; }
a.cc: In function 'int main()': a.cc:9:36: error: no match for 'operator||' (operand types are 'bool' and 'std::__cxx11::basic_string<char>') 9 | if((s=="a")||(s=="o")||(s=="u")||(s="e")||(s=="i")) cout << ("vowel"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ | | ...
s249254161
p03852
C++
#include<iostream> 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; } return 0; }
a.cc: In function 'int main()': a.cc:7:11: error: 'a' was not declared in this scope 7 | if(s == a || s == i || s == u || s == e || s == o){ | ^ a.cc:7:21: error: 'i' was not declared in this scope 7 | if(s == a || s == i || s == u || s == e || s == o){ | ^ a.cc:7:3...
s204228076
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:9:7: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 9 | if(c=='a' || c=='i' || c=='u' || c=='e' || c=='o'){ | ~^~~~~ | | | | | char | std::string {aka std::__c...
s726320987
p03852
C++
#include<stdio.h> #include<math.h> #include<limits.h> #include<assert.h> #include<stdbool.h> #include<stddef.h> #include<stdint.h> #include<string.h> #include<unistd.h> #include<stdlib.h> #include<ctype.h> #include<time.h> int main(){ char c; scanf("%c",c); c=tolower(c); if(c=='a'||c=='e'||c=='i'|| c=='o'|| c=='u')? ...
a.cc: In function 'int main()': a.cc:16:45: error: expected primary-expression before '?' token 16 | if(c=='a'||c=='e'||c=='i'|| c=='o'|| c=='u')? | ^ a.cc:17:20: error: expected ':' before ';' token 17 | printf("vowel"); | ^ | ...
s915335166
p03852
C++
#include<stdio.h> #include<math.h> int main(){ char c; scanf("%c",c); c=tolower(c); printf((c=='a'||c=='e'||c=='i'|| c=='o'|| c=='u')?"vowel":"consonant"); return 0;}
a.cc: In function 'int main()': a.cc:7:3: error: 'tolower' was not declared in this scope; did you mean 'totalorder'? 7 | c=tolower(c); | ^~~~~~~ | totalorder
s847732855
p03852
C++
#include<stdio.h> #include<math.h> #include<limits.h> #include<assert.h> #include<stdbool.h> #include<stddef.h> #include<stdint.h> #include<string.h> #include<unistd.h> #include<stdlib.h> #include<cstdio.h> #include<cstdlib.h> #include<ctype.h> #include<time.h> int main(){ char c; scanf("%c",c); c=tolower(c); printf((c...
a.cc:11:9: fatal error: cstdio.h: No such file or directory 11 | #include<cstdio.h> | ^~~~~~~~~~ compilation terminated.
s137820643
p03852
C++
#include<stdio.h> #include<math.h> #include<limits.h> #include<assert.h> #include<stdbool.h> #include<stddef.h> #include<stdint.h> #include<string.h> #include<unistd.h> #include<stdlib.h> #include<cstdio.h> #include<cstdlib.h> #include<ctype.h> #include<time.h> int main(){ char c; scanf("%c",c); printf((c=='a'||c=='e'|...
a.cc:11:9: fatal error: cstdio.h: No such file or directory 11 | #include<cstdio.h> | ^~~~~~~~~~ compilation terminated.
s858492620
p03852
C++
#include<iostream> using namespace std; int main(){ char c ; cin >> c ; if(c == 'a' || c == 'e' || c== 'i' || c == 'u' || c== 'o' ) cout << "vowel "<< endl ; else cout << "consonant " << endl ; return 0;
a.cc: In function 'int main()': a.cc:10:10: error: expected '}' at end of input 10 | return 0; | ^ a.cc:3:11: note: to match this '{' 3 | int main(){ | ^
s528763701
p03852
C++
#include<iostream> using namespace std; int main(){ char c ; cin >> c ; if(c = 'a' || c = 'e' || c= 'i' || c = 'u' || c= 'o' ) cout << " vowel "<< endl ; else cout << "consonant " << endl ; return 0; }
a.cc: In function 'int main()': a.cc:6:44: error: lvalue required as left operand of assignment 6 | if(c = 'a' || c = 'e' || c= 'i' || c = 'u' || c= 'o' ) | ~~~~^~~~
s015422650
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string str = "Hello"; 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:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 11 | if(c == "a" || c=="i" || c== "u" || c=="e" ||c=="o"){ | ~~^~~~~~ a.cc:11:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 11 | if(c == "a" || ...
s116287928
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string c; cin >> c; if (c.at(0) == 'a') { cout << "vowel" << endl; } elseif (c.at(0) == 'i') { cout << "vowel" << endl; } elseif (c.at(0) == 'u') { cout << "vowel" << endl; } elseif (c.at(0) == 'e') { cout << "vowel...
a.cc: In function 'int main()': a.cc:11:5: error: 'elseif' was not declared in this scope 11 | elseif (c.at(0) == 'i') { | ^~~~~~ a.cc:23:4: error: 'else' without a previous 'if' 23 | else | ^~~~ a.cc: At global scope: a.cc:33:1: error: expected declaration before '}' token 33 | } ...
s077724910
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string c; cin >> c; if (c.at(0) == 'a') { cout << vowel << endl; } elseif (c.at(0) == 'i') { cout << vowel << endl; } elseif (c.at(0) == 'u') { cout << vowel << endl; } elseif (c.at(0) == 'e') { cout << vowel << end...
a.cc: In function 'int main()': a.cc:9:11: error: 'vowel' was not declared in this scope 9 | cout << vowel << endl; | ^~~~~ a.cc:11:5: error: 'elseif' was not declared in this scope 11 | elseif (c.at(0) == 'i') { | ^~~~~~ a.cc:23:4: error: 'else' without a previous 'if' 23 | ...
s019444709
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string c; cin >> c; if (S.at(0) == 'a') { cout << vowel << endl; } elseif (S.at(0) == 'i') { cout << vowel << endl; } elseif (S.at(0) == 'u') { cout << vowel << endl; } elseif (S.at(0) == 'e') { cout << vowel << end...
a.cc: In function 'int main()': a.cc:8:9: error: 'S' was not declared in this scope 8 | if (S.at(0) == 'a') { | ^ a.cc:9:11: error: 'vowel' was not declared in this scope 9 | cout << vowel << endl; | ^~~~~ a.cc:11:13: error: 'S' was not declared in this scope 11 | else...
s807628535
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c; cin >> N; if(c=='a','i','u','e','o'){ cout << "vowel"; } cout << "consonant"; }
a.cc: In function 'int main()': a.cc:7:8: error: 'N' was not declared in this scope 7 | cin >> N; | ^
s588065512
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c; cin >> N; if(c==a,i,u,e,o){ cout << "vowel"; } cout << "consonant"; }
a.cc: In function 'int main()': a.cc:7:8: error: 'N' was not declared in this scope 7 | cin >> N; | ^ a.cc:9:9: error: 'a' was not declared in this scope 9 | if(c==a,i,u,e,o){ | ^ a.cc:9:11: error: 'i' was not declared in this scope 9 | if(c==a,i,u,e,o){ | ^ a....
s385673764
p03852
C++
#include <iostream> using namespace std; int main() { char alplabetchar; cin>>alplabetchar; if(alplabetchar=='e'or alplabetchar=='0'or alplabetchar=='a'or alplabetchar=='i'or alplabetchar=='u') cout<< "vowel\n"; else cout<<"consonant\n"; return 0; }
a.cc: In function 'int main()': a.cc:7:22: error: unable to find character literal operator 'operator""or' with 'char' argument 7 | if(alplabetchar=='e'or alplabetchar=='0'or alplabetchar=='a'or alplabetchar=='i'or alplabetchar=='u') | ^~~~~ a.cc:7:27: error: expected ')' before 'alpl...
s442993669
p03852
C++
#include <iostream> #include <string> using namespace std; int main() { string c;cin>>c; if(c=="a" &&c=="u"&&c=="e"&&c=="o"&&c=="i"{ cout<<"vowel";} else cout<<"consonant"; return 0; }
a.cc: In function 'int main()': a.cc:7:43: error: expected ';' before '{' token 7 | if(c=="a" &&c=="u"&&c=="e"&&c=="o"&&c=="i"{ | ^ | ; a.cc:9:1: error: expected primary-expression before 'else' 9 | else cout<<"conso...
s039447633
p03852
C++
#include <iostream> #include <string> using namespace std; int main() { string c;cin>>c; if(c=="a" &&c=="u"&&c=="e"&&c=="o"&&c=="i"; cout<<"vowel";} else cout<<"consonant"; return 0; }
a.cc: In function 'int main()': a.cc:8:14: error: expected ')' before ';' token 8 | cout<<"vowel";} | ^ | ) a.cc:7:3: note: to match this '(' 7 | if(c=="a" &&c=="u"&&c=="e"&&c=="o"&&c=="i"; | ^ a.cc: At global scope: a.cc:9:1: error: expected unqualified-id before '...
s427478048
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; if(S == "a" || S == "b" || S == "c" || S == "d" || S == "e"){ cout << "vowel" << endl; }else{ cout << "consonant" << endl; }
a.cc: In function 'int main()': a.cc:11:2: error: expected '}' at end of input 11 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s835915444
p03852
C++
p
a.cc:1:1: error: 'p' does not name a type 1 | p | ^
s358987005
p03852
C++
#include <iostream> 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:8:30: 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'}) 8 | cout << vowel . find ( c ) == string :: npos ? " v...
s875899105
p03852
C++
#include <iostream> using namespace std; char c; cin >> c; int main() { if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o') { cout << "vowel" << endl; } else { cout << "consonant" << endl; } }
a.cc:5:1: error: 'cin' does not name a type 5 | cin >> c; | ^~~
s703265019
p03852
C++
#include <iostream> using namespace std; char c; cin >> c; int main() { if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o') { cout << 'vowel' << endl; } else { cout << 'consonant' << endl; } }
a.cc:9:10: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes 9 | cout << 'vowel' << endl; | ^~~~~~~ a.cc:12:9: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes 12 | cout << 'consonant' << endl; | ^~~~~~~~~~~ a.cc:5:1: er...
s432542553
p03852
C++
#include <iostream> using namespace std; char c; cin >> c; int main() { char a,i,u,e,o; cin >> 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:5:1: error: 'cin' does not name a type 5 | cin >> c; | ^~~ a.cc: In function 'int main()': a.cc:11:10: error: 'vowel' was not declared in this scope 11 | cout << vowel << endl; | ^~~~~ a.cc:14:9: error: 'consonant' was not declared in this scope 14 | cout << consonant << endl; ...
s888688363
p03852
C++
#include <iostream> using namespace std; char c; cin >> c; int main() { if (c == a || c == i || c == u || c == e || c == o) { cout << vowel << endl; } else { cout << consonant << endl; } }
a.cc:5:1: error: 'cin' does not name a type 5 | cin >> c; | ^~~ a.cc: In function 'int main()': a.cc:8:10: error: 'a' was not declared in this scope 8 | if (c == a || c == i || c == u || c == e || c == o) { | ^ a.cc:8:20: error: 'i' was not declared in this scope 8 | if (c == a || c == ...
s878248090
p03852
C++
#include <iostream> using namespace std; int c; cin >> c; int main() { if (c == a || c == i || c == u || c == e || c == o) { cout << vowel << endl; } else { cout << consonant << endl; } }
a.cc:5:1: error: 'cin' does not name a type 5 | cin >> c; | ^~~ a.cc: In function 'int main()': a.cc:8:10: error: 'a' was not declared in this scope 8 | if (c == a || c == i || c == u || c == e || c == o) { | ^ a.cc:8:20: error: 'i' was not declared in this scope 8 | if (c == a || c == ...
s601059700
p03852
C++
#include <iostream> using namespace std; int main() { char c; cin >>C; if(c=='a'|| c=='e' || c=='u'|| c=='i' || c=='o'){ cout<<"vowel"; } else { cout<<"constant"; } return 0; }
a.cc: In function 'int main()': a.cc:8:8: error: 'C' was not declared in this scope 8 | cin >>C; | ^
s286222612
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char B; cin << B; if(B == 'a' || B == 'i' || B == 'u' || B == 'e' || B == '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::istream' {aka 'std::basic_istream<char>'} and 'char') 6 | cin << B; | ~~~ ^~ ~ | | | | | char | std::istream {aka std::basic_istream<char>} a.cc:6:7: note: candidate: 'oper...
s902620691
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char B cin << B; if(B == 'a' || B == 'i' || B == 'u' || B == 'e' || B == 'o'){ cout << "vowel" <<endl; } else{ cout << "consonant" <<endl; } }
a.cc: In function 'int main()': a.cc:6:3: error: expected initializer before 'cin' 6 | cin << B; | ^~~ a.cc:7:6: error: 'B' was not declared in this scope 7 | if(B == 'a' || B == 'i' || B == 'u' || B == 'e' || B == 'o'){ | ^
s775872367
p03852
C++
#include <iostream> 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;...
a.cc:4:1: error: expected unqualified-id before '{' token 4 | { | ^
s736161542
p03852
C++
#include <iostream> using namespace std; int main() { string x ; cout <<"please enter the letter " << endl; cin >> x ; if { x == "a" || x == "e" || x == "i" || x == "o" || x == "o" endl; cout << "vowel" << endl; else cout << "consonant" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:11:7: error: expected '(' before '{' token 11 | if { | ^ | (
s604493159
p03852
C++
#include<bits/stdc++.h> using namespace std; int main() { char a; cin >> a; if(a=='a')cout << "vowel" <<endl; else if(a=='i')cout << "vowel" <<endl; else if(a=='u')cout << "vowel" <<endl; else if(a=='e')cout << "vowel" <<endl; else if(a=='o')cout << "vowel" <<endl; else cout << consonant << endl; ...
a.cc: In function 'int main()': a.cc:13:16: error: 'consonant' was not declared in this scope 13 | else cout << consonant << endl; | ^~~~~~~~~
s328389459
p03852
C++
#include<bits/stdc++.h> using namespace std; int main() { char a; cin >> a; if(a='a')cout << "vowel" <<endl; if(a='i')cout << "vowel" <<endl; if(a='u')cout << "vowel" <<endl; if(a='e')cout << "vowel" <<endl; if(a='o')cout << "vowel" <<endl; else cout << consonant << endl; }
a.cc: In function 'int main()': a.cc:13:16: error: 'consonant' was not declared in this scope 13 | else cout << consonant << endl; | ^~~~~~~~~
s043912508
p03852
C++
#include<iostream> #include<string> using namespace std; int main(){ string a; cin >> a; cout << ((a == "a" || a == "i" || a == "u" || a == "e" || a == "o") ? "vowel":"consonant") << endl;
a.cc: In function 'int main()': a.cc:7:102: error: expected '}' at end of input 7 | cout << ((a == "a" || a == "i" || a == "u" || a == "e" || a == "o") ? "vowel":"consonant") << endl; | ^ a.cc:4:11: note: to...
s275813141
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:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(c== "a" || c== "i" || c=="u" || c=="e" || c=="o"){ | ~^~~~~~ a.cc:7:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(c== "a" || c== ...
s715178276
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:10: error: 'a' was not declared in this scope 7 | if(c== a || c== i || c==u || c==e || c==o){ | ^ a.cc:7:19: error: 'i' was not declared in this scope 7 | if(c== a || c== i || c==u || c==e || c==o){ | ^ a.cc:7:27: error: 'u' was n...
s629228847
p03852
C++
#include<bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if(c=="a" || c=="i" || c=="u" || e=="e" || c=="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(c=="a" || c=="i" || c=="u" || e=="e" || c=="o"){ | ~^~~~~ a.cc:7:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(c=="a" || c=="i" |...
s764252209
p03852
C++
char c; cin >> c; const string vowel = "aeiou"; cout << vowel.find(c) == string::npos? "vowel" :"consonant" << endl;
a.cc:2:1: error: 'cin' does not name a type 2 | cin >> c; | ^~~ a.cc:3:7: error: 'string' does not name a type 3 | const string vowel = "aeiou"; | ^~~~~~ a.cc:4:1: error: 'cout' does not name a type 4 | cout << vowel.find(c) == string::npos? "vowel" :"consonant" << endl; | ^~~~
s903455461
p03852
C++
char c; cin >> c; const string vowel = "aeiou"; cout << vowel.find(c) == string::npos? "consonant" << endl;
a.cc:2:1: error: 'cin' does not name a type 2 | cin >> c; | ^~~ a.cc:3:7: error: 'string' does not name a type 3 | const string vowel = "aeiou"; | ^~~~~~ a.cc:4:1: error: 'cout' does not name a type 4 | cout << vowel.find(c) == string::npos? "consonant" << endl; | ^~~~
s228158498
p03852
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { char n; cin >> n; if (n == "a" || n == "i" || n == "u" || n == "e" || n == "o") { cout << "vowel" << endl; } else { cout << "consona...
a.cc: In function 'int main()': a.cc:9:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 9 | if (n == "a" || n == "i" || n == "u" || n == "e" || n == "o") { | ~~^~~~~~ a.cc:9:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 9 |...
s890617410
p03852
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { char n; cin >> n; if (n == a || n == i || n == u || n == e || n == o) { cout << "vowel" << endl; } else { cout << "consonant" << end...
a.cc: In function 'int main()': a.cc:9:16: error: 'a' was not declared in this scope 9 | if (n == a || n == i || n == u || n == e || n == o) { | ^ a.cc:9:26: error: 'i' was not declared in this scope 9 | if (n == a || n == i || n == u || n == e || n == o) { | ...
s865813709
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if(c=='a'||c=='i') cout<< "vowel"<< endl; else if(c=='u'||c=='e') cout<< "vowel"<< endl; else if(c=='o') cout<<"vowel"<< endl; else cout << "consonant" <<ensl; }
a.cc: In function 'int main()': a.cc:15:27: error: 'ensl' was not declared in this scope 15 | cout << "consonant" <<ensl; | ^~~~
s024992491
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if(c=='a'||c=='i') cout<< vowel<< endl; else if(c=='u'||c=='e') cout<< vowel<< endl; else if(c=='o') cout<<vowel<< endl; else cout << consonant <<ensl; }
a.cc: In function 'int main()': a.cc:9:12: error: 'vowel' was not declared in this scope 9 | cout<< vowel<< endl; | ^~~~~ a.cc:11:12: error: 'vowel' was not declared in this scope 11 | cout<< vowel<< endl; | ^~~~~ a.cc:13:11: error: 'vowel' was not declared in this scope...
s655646589
p03852
C++
#include<cstdio> using namespace std; int main() { char a; cin>>a; if(a=='a'||a=='e'||a=='i'||a=='o'||a=='u') printf("vowel"); else printf("consonant"); return 0; }
a.cc: In function 'int main()': a.cc:6:1: error: 'cin' was not declared in this scope 6 | cin>>a; | ^~~ a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 1 | #include<cstdio> +++ |+#include <iostream> 2 | using namespace std;
s177828741
p03852
C++
#include <iostream> using namespace std; int main(){ char = c; cin >> c; if(c == ('a' || 'e' || 'i' || 'o' || 'u')){ cout << "consonant" << endl; } else{ cout << "vowel" << endl; } }
a.cc: In function 'int main()': a.cc:6:10: error: expected unqualified-id before '=' token 6 | char = c; | ^ a.cc:7:12: error: 'c' was not declared in this scope 7 | cin >> c; | ^
s028093823
p03852
C++
#include <iostream> using namespace std; int main(){ char = c; cin >> c; if(c == ('a' || 'e' || 'i' || 'o' || 'u'){ cout << "consonant" << endl; } else{ cout << "vowel" << endl; } }
a.cc: In function 'int main()': a.cc:6:10: error: expected unqualified-id before '=' token 6 | char = c; | ^ a.cc:7:12: error: 'c' was not declared in this scope 7 | cin >> c; | ^ a.cc:8:46: error: expected ')' before '{' token 8 | if(c == ('a' || 'e' || 'i' || 'o...
s362995860
p03852
C++
#include <iostream> 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:46: error: expected ')' before '{' token 8 | if(c == ('a' || 'e' || 'i' || 'o' || 'u'){ | ~ ^ | ) a.cc:14:1: error: expected primary-expression before '}' token 14 | } ...
s755349365
p03852
C++
#include <iostream> 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:6:10: error: expected unqualified-id before '=' token 6 | char = c; | ^ a.cc:7:12: error: 'c' was not declared in this scope 7 | cin >> c; | ^
s426666152
p03852
C++
#include <iostream> 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:6:10: error: expected unqualified-id before '=' token 6 | char = c; | ^ a.cc:7:12: error: 'c' was not declared in this scope 7 | cin >> c; | ^
s423007388
p03852
C++
#include <iostream> 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:6:10: error: expected unqualified-id before '=' token 6 | char = c; | ^ a.cc:7:12: error: 'c' was not declared in this scope 7 | cin >> c; | ^
s748598899
p03852
C++
#include <iostream> using namespace std; int main(){ char = c; string vowel[] = {"a", "e", "i", "o", "u"}; cin >> c; if(c == vowel[]){ cout << "vowel" << endl; } else{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:6:10: error: expected unqualified-id before '=' token 6 | char = c; | ^ a.cc:8:12: error: 'c' was not declared in this scope 8 | cin >> c; | ^ a.cc:9:19: error: expected primary-expression before ']' token 9 | if(c == vowel[]){...
s508751752
p03852
C++
#include <iostream> using namespace std; int main(){ char = c; string vowel = ["a", "e", "i", "o", "u"]; cin >> c; if(c == vowel){ cout << "vowel" << endl; } else{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:6:10: error: expected unqualified-id before '=' token 6 | char = c; | ^ a.cc:7:21: error: expected identifier before string constant 7 | string vowel = ["a", "e", "i", "o", "u"]; | ^~~ a.cc:7:24: error: expected ']' before ','...
s876635217
p03852
C++
#include <iostream> using namespace std; int main(){ char = c; string vowel = "a", "e", "i", "o", "u"; cin >> c; if(c == vowel){ cout << "vowel" << endl; } else{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:6:10: error: expected unqualified-id before '=' token 6 | char = c; | ^ a.cc:7:25: error: expected unqualified-id before string constant 7 | string vowel = "a", "e", "i", "o", "u"; | ^~~ a.cc:8:12: error: 'c' was not decla...
s445727639
p03852
C++
#include <iostream> using namespace std; int main(){ char = c; char vowel = "a", "e", "i", "o", "u"; cin >> c; if(c == vowel){ cout << "vowel" << endl; } else{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:6:10: error: expected unqualified-id before '=' token 6 | char = c; | ^ a.cc:7:18: error: invalid conversion from 'const char*' to 'char' [-fpermissive] 7 | char vowel = "a", "e", "i", "o", "u"; | ^~~ | | ...
s456607436
p03852
C++
#include <iostream> using namespace std; int main() { string ch; cin>>ch; if (ch=='a' or ch=='o' or ch=='e'or ch=='i' or ch=='u'){ cout<<"vowel. "; } else { cout<<"consonant."; } return 0; }
a.cc: In function 'int main()': a.cc:9:9: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 9 | if (ch=='a' or ch=='o' or ch=='e'or ch=='i' or ch=='u'){ | ~~^~~~~ | | | | | char | std::string {...
s647016502
p03852
C++
#include <iostream> using namespace std; int main() { char ch; cin>>ch; if (ch=='a' or ch=='o' or ch=='e'or ch=='i' or ch=='u'){ cout<<"vowel. "; } else { cout<<"consonant."; } return 0; }
a.cc: In function 'int main()': a.cc:9:33: error: unable to find character literal operator 'operator""or' with 'char' argument 9 | if (ch=='a' or ch=='o' or ch=='e'or ch=='i' or ch=='u'){ | ^~~~~ a.cc:9:38: error: expected ')' before 'ch' 9 | if (ch=='a' or ch=='o' or ...
s676327920
p03852
C++
#include <iostream> using namespace std; int main() { char str; cin>>str; if (str=='a' or str=='o' or str=='e'or str=='i' or str=='u'){ cout<<"vowel. "; } else { cout<<"consonant."; } return 0; }
a.cc: In function 'int main()': a.cc:9:36: error: unable to find character literal operator 'operator""or' with 'char' argument 9 | if (str=='a' or str=='o' or str=='e'or str=='i' or str=='u'){ | ^~~~~ a.cc:9:41: error: expected ')' before 'str' 9 | if (str=='a' or s...
s147848473
p03852
C++
#include <iostream> using namespace std; int main() { char str; cin>>str; if (str=='a' or str=='o' or str=='e'or str=='i' or str=='u'){ cout<<"vowel. "; } else { cout<<"consonant."; } return 0; }
a.cc: In function 'int main()': a.cc:9:36: error: unable to find character literal operator 'operator""or' with 'char' argument 9 | if (str=='a' or str=='o' or str=='e'or str=='i' or str=='u'){ | ^~~~~ a.cc:9:41: error: expected ')' before 'str' 9 | if (str=='a' or s...
s789974169
p03852
C++
#include <iostream> using namespace std; int main() { char str; cin>>str; if (str=='a' or str=='o' or str=='e'or str=='i' or str=='u'){ cout<<"vouel"; } else { cout<<"constant"; } return 0; }
a.cc: In function 'int main()': a.cc:9:36: error: unable to find character literal operator 'operator""or' with 'char' argument 9 | if (str=='a' or str=='o' or str=='e'or str=='i' or str=='u'){ | ^~~~~ a.cc:9:41: error: expected ')' before 'str' 9 | if (str=='a' or s...
s024738492
p03852
C++
#include <iostream> #include <string> using namespace std; char x; char z[]={'a','e','u','i','o'}; int main(){ cin>>x; int c=0; for(int i=0;i<=4;i++) { if (z[i] == x) { c += 1 } } if(c>0){ cout<<"vowel"<<endl; } else{ cout<<"consonant"<<endl; } }
a.cc: In function 'int main()': a.cc:11:19: error: expected ';' before '}' token 11 | c += 1 | ^ | ; 12 | } | ~
s269233785
p03852
C++
#include <iostream> using namespace std; int main() { char a; cin>> a; if (a=='a' || a=="u") {cout<<"vowel";} else{cout<<"cons" ;} }
a.cc: In function 'int main()': a.cc:6:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 6 | if (a=='a' || a=="u") | ~^~~~~
s975403738
p03852
C++
#include <iostream> using namespace std; int main() { char letter; cin>>letter; if(asd=='a' || asd=='e' || letter=='i' || letter == 'u' || letter == 'o'){ cout<<"vowel"<<endl; } else{ cout<<"consonant"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:9:6: error: 'asd' was not declared in this scope 9 | if(asd=='a' || asd=='e' || letter=='i' || letter == 'u' || letter == 'o'){ | ^~~
s735407842
p03852
C++
#include <iostream> using namespace std; int main() { char letter; cin>>letter; if(letter=='a'|| etter=='e'||letter=='i '||letter =='u'||letter =='o'){ cout<<"vowel"; } else{ cout<<"consonant"; } return 0; }
a.cc:9:40: warning: multi-character character constant [-Wmultichar] 9 | if(letter=='a'|| etter=='e'||letter=='i '||letter =='u'||letter =='o'){ | ^~~~ a.cc: In function 'int main()': a.cc:9:20: error: 'etter' was not declared in this scope; did you mean 'letter'? ...
s085840340
p03852
C++
#include <iostream> using namespace std; int main () { char c ; cin>> c; if ( c=="o" || c=="i "|| c=="e" || c=="a" || c=="u") cout<< "vowel"<< endl; else cout<< "consonant"<< endl; return 0 ; }
a.cc: In function 'int main()': a.cc:7:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if ( c=="o" || c=="i "|| c=="e" || c=="a" || c=="u") | ~^~~~~ a.cc:7:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if ( c=="o" || c=="i "||...
s393604712
p03852
C++
#include <iostream> using namespace std; int main () { char c,o,i,e,a,u ; string vowel, consonant ; cin>> c; if ( c==o || c==i || c==e || c==a || c==u) cout<< vowel<< endl; else cout<< consonant<< endl; return 0 }
a.cc: In function 'int main()': a.cc:12:9: error: expected ';' before '}' token 12 | return 0 | ^ | ; 13 | } | ~
s689895526
p03852
C++
#include <iostream> using namespace std; int main () { char c,o,i,e,a,u ; cin>> c; if ( c==o || c==i || c==e || c==a || c==u) cout<< vowel<< endl; else cout<< consonant<< endl; }
a.cc: In function 'int main()': a.cc:8:12: error: 'vowel' was not declared in this scope 8 | cout<< vowel<< endl; | ^~~~~ a.cc:10:8: error: 'consonant' was not declared in this scope 10 | cout<< consonant<< endl; | ^~~~~~~~~
s441447099
p03852
C++
#include <iostream> using namespace std; int main() { char c; cin>> c; if ( c==o || c==e || c==i || c==u || c==a ) cout<<vowel<<endl; else cout<<consonant<<endl; }
a.cc: In function 'int main()': a.cc:7:9: error: 'o' was not declared in this scope 7 | if ( c==o || c==e || c==i || c==u || c==a ) | ^ a.cc:7:17: error: 'e' was not declared in this scope 7 | if ( c==o || c==e || c==i || c==u || c==a ) | ^ a.cc:7:25: error: 'i' was not decla...
s264045661
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:5: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if(c=="a"||"e"||"i"||"o"||"u"){ | ~^~~~~
s701806668
p03852
C++
#include <iostream> int main() { string a ; cin >> a ; if (a == "a" || a == "e" || a == "o" || a == "i" || a == "u") { cout << "vowel" << endl; } else { cout << "consonant" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:4:9: error: 'string' was not declared in this scope 4 | string a ; | ^~~~~~ a.cc:4:9: note: suggested alternatives: In file included from /usr/include/c++/14/iosfwd:41, from /usr/include/c++/14/ios:40, from /usr/include/c++...
s302447250
p03852
Java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int hight = sc.nextInt(); int wide = sc.nextInt(); for (int i = 0; i < hight; i++) { String output = sc.next(); System.out.print("\n" + output); System.out.print("\n" + output); } sc.close(); } }
Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s548055132
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c, a, e, i, o, u; 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:13: error: 'vowel' was not declared in this scope 8 | cout << vowel << endl; | ^~~~~ a.cc:11:13: error: 'consonant' was not declared in this scope 11 | cout << consonant << endl; | ^~~~~~~~~
s116358845
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c, a, e, i, o, u; 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:13: error: 'vowel' was not declared in this scope 8 | cout << vowel << endl; | ^~~~~ a.cc:11:13: error: 'consonant' was not declared in this scope 11 | cout << consonant << endl; | ^~~~~~~~~
s653635567
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:7:9: error: 'a' was not declared in this scope 7 | if (c=a||e||i||o||u) { | ^ a.cc:7:12: error: 'e' was not declared in this scope 7 | if (c=a||e||i||o||u) { | ^ a.cc:7:15: error: 'i' was not declared in this scope 7 | if (c=a||e||i||...
s657537364
p03852
Java
import java.util.Arrays; import java.util.List; import java.util.Scanner; public class MainA { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String input = sc.next(); String ans; String [] vowel = {"a", "e", "i", "o", "u"}; List<String> aa = Arrays.asList(vowel); if (aa.co...
Main.java:5: error: class MainA is public, should be declared in a file named MainA.java public class MainA { ^ 1 error
s732705024
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: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=='i' || c=='u' || c=='e' || c=='o') | ~^~~~~ | | | | | char | std::string {aka std::__cx...
s314986610
p03852
C++
#include <iostream> #include<string> using namespace std; int main() { char c; cin>>c; if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u') cout << "is vowel" ; else cout<<"is constant"; return 0;
a.cc: In function 'int main()': a.cc:14:14: error: expected '}' at end of input 14 | return 0; | ^ a.cc:7:1: note: to match this '{' 7 | { | ^
s842495446
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==0) cout<<'vowel'<<endl; else cout<<'consonant'<<endl; }
a.cc:7:7: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes 7 | cout<<'vowel'<<endl; | ^~~~~~~ a.cc:9:7: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes 9 | cout<<'consonant'<<endl; | ^~~~~~~~~~~ a.cc: In function 'int main(...
s536763332
p03852
Java
package welcome; import java.util.Scanner; public class hello { public static void main(String[] args) { Scanner input=new Scanner(System.in); char x=input.next().charAt(0); if(x=='a'||x=='e'||x=='i'||x=='o'||x=='u') {System.out.println("vowel");} else {System.out.println("consonant");} } }
Main.java:3: error: class hello is public, should be declared in a file named hello.java public class hello { ^ 1 error
s730309757
p03852
Java
package JUOIAUAI; import java.util.Scanner; public class JUOIAUAI { public static void main(String[] args) { Scanner read =new Scanner (System.in); char x; x=read.next().charAt(0); if(x=='a'||x=='o'||x=='u'||x=='e'||x=='i') { System.out.println("vowel"); } else { System.out.println("consonant");} } ...
Main.java:5: error: class JUOIAUAI is public, should be declared in a file named JUOIAUAI.java public class JUOIAUAI { ^ 1 error
s527880979
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char x; cin >> x if ( x == 'a', 'e', 'i', 'o', 'u' ) { cout << "vowel" << endl; } else if ( x != 'a', 'e', 'i', 'o', 'u' ) { cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:6:11: error: expected ';' before 'if' 6 | cin >> x | ^ | ; 7 | if ( x == 'a', 'e', 'i', 'o', 'u' ) { | ~~ a.cc:10:3: error: 'else' without a previous 'if' 10 | else if ( x != 'a', 'e', 'i', 'o', 'u' ) { | ^~~~...
s926054665
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 << endl; } else { cout << consonant <<endl; } return 0; }
a.cc: In function 'int main()': a.cc:10:17: error: 'vowel' was not declared in this scope 10 | cout << vowel << endl; | ^~~~~ a.cc:13:17: error: 'consonant' was not declared in this scope 13 | cout << consonant <<endl; | ^~~~~~~~~
s336302209
p03852
C++
#include <bits/stdc++.h> using namespace std; #define pp pair<int,int> #define rep(i,n) for(int (i)=0;(i)<(n);(i)++) #define ll long long #define ld long double #define all(a) (a).begin(),(a).end() #define mk make_pair ll MOD=1000000007; ll mod=998244353; int inf=1000001000; ll INF=1e18+5; int main() { char a; ci...
a.cc: In function 'int main()': a.cc:19:27: error: expected ';' before 'endl' 19 | else cout << "consonant" endl; | ^~~~~ | ;
s879284281
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; | ^~~~~~~~~
s249672961
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:30: error: lvalue required as left operand of assignment 7 | if(c='a'||c='i'||c='u'||c='e'||c='o'){ | ~~~^~~ a.cc:8:9: error: 'vowel' was not declared in this scope 8 | cout << vowel << endl; | ^~~~~ a.cc:11:9: error: 'consonan...
s705413116
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:10:6: error: expected primary-expression before ')' token 10 | else(){ | ^