submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s019300466
p03852
C++
// Example program #include <iostream> #include <string> using namespace std; int main() { int 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:9:32: error: lvalue required as left operand of assignment 9 | if(c="a"||c="e"||c="i"||c="o"||c="u"){cout<<"vowel"<<endl;} | ~~~^~~
s816660891
p03852
C++
// Example program #include <iostream> #include <string> using namespace std; int main() { int 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:9:8: error: 'a' was not declared in this scope 9 | if(c=a||c=e||c=i||c=o||c=u){cout<<"vowel"<<endl;} | ^ a.cc:9:13: error: 'e' was not declared in this scope 9 | if(c=a||c=e||c=i||c=o||c=u){cout<<"vowel"<<endl;} | ^ a.cc:9:18: error: 'i' wa...
s847378378
p03852
C++
#include<iostream> char main() { int c; std::cin >> c; if (c == 'a') { std::cout << "vowel" << std::endl; } else if (c == 'i') { std::cout << "vowel" << std::endl; } else if (c == 'u') { std::cout << "vowel" << std::endl; } else if (c == 'e') { std::cout << "vowel" << std::endl; } else if (c == ...
a.cc:2:1: error: '::main' must return 'int' 2 | char main() { | ^~~~
s989952490
p03852
C++
#include<iostream> char main() { char c; std::cin >> c; if (c == 'a') { std::cout << "vowel" << std::endl; } else if (c == 'i') { std::cout << "vowel" << std::endl; } else if (c == 'u') { std::cout << "vowel" << std::endl; } else if (c == 'e') { std::cout << "vowel" << std::endl; } else if (c ==...
a.cc:2:1: error: '::main' must return 'int' 2 | char main() { | ^~~~
s707178701
p03852
C++
#include<iostream> #include<string> char main() { char c; std::cin >> c; if (c == 'a') { std::cout << "vowel" << std::endl; } else if (c == 'i') { std::cout << "vowel" << std::endl; } else if (c == 'u') { std::cout << "vowel" << std::endl; } else if (c == 'e') { std::cout << "vowel" << std::endl; ...
a.cc:3:1: error: '::main' must return 'int' 3 | char main() { | ^~~~
s036128374
p03852
C++
#include<string> int main(){ std::string c; std::cin >> c; if(c=="o"){ std::cout << "vowel" <<std::endl; } else if(c=="u"){ std::cout << "vowel" <<std::endl; } else if(c=="i"){ std::cout << "vowel" <<std::endl; } else if(c=="e"){ std::cout << "vowel" <<std::endl; } else if(c=="a"){ std::cout << "vo...
a.cc: In function 'int main()': a.cc:5:6: error: 'cin' is not a member of 'std' 5 | std::cin >> c; | ^~~ a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 2 | #include<string> +++ |+#include <iostream> 3 | int main(){ a.cc:7:6...
s367748701
p03852
C++
#include<iostream> #include<string> char main() { char c; std::cin >> c; if (c == 'a') { std::cout << "vowel" << std::endl; } else if (c == 'i') { std::cout << "vowel" << std::endl; } else if (c == 'u') { std::cout << "vowel" << std::endl; } else if (c == 'e') { std::cout << "vowel" << std::endl; ...
a.cc:3:1: error: '::main' must return 'int' 3 | char main() { | ^~~~
s357460235
p03852
C++
#include<string> int main(){ std::string c; std::cin >> c; if(c=="o"){ std::cout << "vowel" <<std::endl; } else if(c=="u"){ std::cout << "vowel" <<std::endl; } else if(c=="i"){ std::cout << "vowel" <<std::endl; } else if(c=="e"){ std::cout << "vowel" <<std::endl; } else if(c=="a"){ std::cout << "vo...
a.cc: In function 'int main()': a.cc:5:6: error: 'cin' is not a member of 'std' 5 | std::cin >> c; | ^~~ a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 2 | #include<string> +++ |+#include <iostream> 3 | int main(){ a.cc:7:6...
s996923401
p03852
C++
#include<iostream> #include<string> char main() { char c; std::cin >> c; if (c == 'a') std::cout << "vowel" << std::endl; if (c == 'i') std::cout << "vowel" << std::endl; if (c == 'u') std::cout << "vowel" << std::endl; if (c == 'e') std::cout << "vowel" << std::endl; if (c == 'o') std::cout << "vowel"...
a.cc:3:1: error: '::main' must return 'int' 3 | char main() { | ^~~~
s127868514
p03852
C++
#include <iostream> #include<string> char main() { char c; std::cin >> c; if (c == 'a', 'i', 'u', 'e', 'o') std::cout << "vowel" << std::endl; else { std::cout << "consonant" << std::endl; } }
a.cc:3:1: error: '::main' must return 'int' 3 | char main() { | ^~~~
s325002091
p03852
C++
#include<iostream> #include<string> int main(){ std::string c; std::cin >> c; if(c=="a"){ std::cout << "vowel" << std::endl; } else if(c=="e"){ std::cout << "vowel" << std::endl; } else if(c=="i"){ std::cout << "vowel" << std::endl; } else if(c=="o"){ ...
a.cc: In function 'int main()': a.cc:18:13: error: 'C' was not declared in this scope 18 | else if(C=="u"){ | ^
s809905741
p03852
C++
#include<iostream> #include<string> int main(){ std::string c; std::cin >> c; if(c=="a"){ std::cout << "vowel" << std::endl; } else if(c=="e"){ std::cout << "vowel" << std::endl; } else if(c=="i"){ std::cout << "vowel" << std::endl; } else if(c=="o"){ ...
a.cc: In function 'int main()': a.cc:18:13: error: 'C' was not declared in this scope 18 | else if(C=="u"){ | ^
s814139962
p03852
C++
#include <bits/stdc++.h> using namespace std; string a; string b = "aiueo"; int c = 0; int i; int main(){ cin>>a; for(i=0;i<5;++i){ if(a == b[i]){ cout<<"vowel"<<endl; c = 1; break; } } if(c == 0){ cout<<"consonant"<<endl; } }
a.cc: In function 'int main()': a.cc:11:10: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}) 11 | if(a == b[i]){ In file included from /usr/include/c++/14/regex:68, ...
s214603928
p03852
C++
#include <bits/stdc++.h> using namespace std; string a; string b = "aiueo"; int c = 0; int main(){ cin>>a; for(i=0;i<5;++i){ if(a == b[i]){ cout<<"vowel"<<endl; c = 1; break; } } if(c == 0){ cout<<"consonant"<<endl; } }
a.cc: In function 'int main()': a.cc:9:7: error: 'i' was not declared in this scope 9 | for(i=0;i<5;++i){ | ^
s527027317
p03852
C++
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String s = scan.next(); char c = s.charAt(0); if (c == 'a' || c == 'b' || c == 'c' ||c == 'd' ||c == 'e') { System.out.println("vowel"); } else System.out.println("consonan...
a.cc:1:1: error: 'import' does not name a type 1 | import java.util.Scanner; | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:3:1: error: expected unqualified-id before 'public' 3 | public class Main { | ^~~~~~
s151041603
p03852
C
#include<stdio.h> int main() { char a; scanf("%c",&Aa); if(Aa =='a' || Aa == 'e' || Aa == 'i' || Aa == 'o' || Aa=='u') { printf("vowel\n"); } else { printf("cosonant\n"); } }
main.c: In function 'main': main.c:5:17: error: 'Aa' undeclared (first use in this function); did you mean 'a'? 5 | scanf("%c",&Aa); | ^~ | a main.c:5:17: note: each undeclared identifier is reported only once for each function it appears in
s565653146
p03852
C
#include<stdio.h> int main() { char a; scanf("%c",&Aa); if(Aa =='a' || Aa == 'e' || Aa == 'i' || Aa == 'o' || Aa=='u') { printf("vowel\n"); } else { printf("consonant\n"); } }
main.c: In function 'main': main.c:5:17: error: 'Aa' undeclared (first use in this function); did you mean 'a'? 5 | scanf("%c",&Aa); | ^~ | a main.c:5:17: note: each undeclared identifier is reported only once for each function it appears in
s690009766
p03852
C++
#include<stdio.h> int main() { char a; scanf("%c",&Aa); if(Aa =='a' || Aa == 'e' || Aa == 'i' || Aa == 'o' || Aa=='u') { printf("vowel\n"); } else { printf("consonant\n"); } }
a.cc: In function 'int main()': a.cc:5:17: error: 'Aa' was not declared in this scope; did you mean 'a'? 5 | scanf("%c",&Aa); | ^~ | a
s488867179
p03852
Java
import java.util.*; public class vowel_cnso { public static void main(String[] args) { Scanner in = new Scanner(System.in); char a = in.next().charAt(0); if(a =='a' || a == 'e' || a == 'i' || a == 'o' || a=='u') { System.out.println("vowel"); } else { System.out.println("consonant"); } ...
Main.java:2: error: class vowel_cnso is public, should be declared in a file named vowel_cnso.java public class vowel_cnso ^ 1 error
s107504635
p03852
C++
#include<iostream> #include<algorithm> #include<vector> #include<string> using namespace std; typedef long long lng; #define UP(i,a,b) for(int i=(a); i<=(b); ++i) #define DOWN(i,b,a) for(int i=(b); i>=(a); --i) #define REP(i,n) UP(i,0,n-1) #define ALL(a) (a).begin(), (a).end() #define UNIQUE(a) a.erase(unique(ALL(a)), ...
a.cc: In function 'int main()': a.cc:31:21: error: expected ';' before '}' token 31 | return 0 | ^ | ; 32 | } | ~
s651132344
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 << "consonan" << 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:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(c=="a" || c=="i" |...
s388614945
p03852
C++
#include <bits/stdc++.h> #include <ctype.h> using namespace std; int main(void){ char c; char v[5] = ['a', 'i', 'u', 'e', 'o']; for(int i = 0; i < 5; i ++){ if(c==v[i]) cout << "vowel" << endl; else continue; } if(i >= 6) cout << "consonant" << endl; return 0; }
a.cc: In function 'int main()': a.cc:7:16: error: expected identifier before 'a' 7 | char v[5] = ['a', 'i', 'u', 'e', 'o']; | ^~~ a.cc:7:19: error: expected ']' before ',' token 7 | char v[5] = ['a', 'i', 'u', 'e', 'o']; | ^ | ] a.cc: In l...
s797840423
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c; cin >> c; if(char c=="a" || char c=="i" || char c=="u" || char c=="e" || char c=="o"){ cout << "vowel" << endl;} else{ cout << "consonan" << endl;} }
a.cc: In function 'int main()': a.cc:7:12: error: expected initializer before '==' token 7 | if(char c=="a" || char c=="i" || char c=="u" || char c=="e" || char c=="o"){ | ^~ a.cc:7:12: error: expected ')' before '==' token 7 | if(char c=="a" || char c=="i" || char c=="u" || char c=="e" || ...
s292886922
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 << "consonan" << 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:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(c=="a" || c=="i" |...
s178012268
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: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' | ~ ^~ ~~~ | | | | | char | std::string {aka std::__cxx11:...
s524024936
p03852
C++
#define<iostream> using namespace std; int main(){ string s;cin>>s; if(s=="a"||s=="i"||s=="u"||s=="e"||s=="o"){ cout<<"vowel"<<endl; }else{ cout<<"consonant"<<endl; } }
a.cc:1:8: error: macro names must be identifiers 1 | #define<iostream> | ^ a.cc: In function 'int main()': a.cc:4:3: error: 'string' was not declared in this scope 4 | string s;cin>>s; | ^~~~~~ a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by addi...
s383587936
p03852
C++
s=input() if s=="a" or s=="i" or s=="u" or s=="e" or s=="o": print("vowel") else: print("consonant")
a.cc:1:1: error: 's' does not name a type 1 | s=input() | ^
s040077818
p03852
C
#include <stdio.h> #include <string.h> void rev(char *s) { int l = strlen(s), i; for (i = 0; i<l / 2; i++) { char t = s[i]; s[i] = s[l - 1 - i]; s[l - 1 - i] = t; } } char T[4][8] = { "dream","dreamer","erase","eraser" }; int main() { int i , c=0, l; char s[100001]; for (i = 0; i<4; i++)rev(T[i]); scanf("%...
main.c: In function 'main': main.c:22:65: error: expected expression before '=' token 22 | if (strncmp(s + c, T[i], strlen(T[i]))!==0) { | ^
s903961953
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { spring 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:3: error: 'spring' was not declared in this scope; did you mean 'sprintf'? 5 | spring c; | ^~~~~~ | sprintf a.cc:6:10: error: 'c' was not declared in this scope 6 | cin >> c; | ^
s317432264
p03852
C++
#include<iostream> #include<algorithm> #include<math.h> #include<set> #include<vector> #include<map> typedef long l typedef long long ll 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:14:7: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes 14 | cout<<'vowel'<<endl; | ^~~~~~~ a.cc:8:1: error: expected initializer before 'typedef' 8 | typedef long long ll | ^~~~~~~ a.cc: In function 'int main()': a.cc:12:1: error: 'cin' was not declared in t...
s089767579
p03852
C
#include<stdio.h> int main(){ char ch=[1]; scanf("%s",ch); if(ch[0]=='a'||ch[0]=='e'||ch[0]=='i'||ch[0]=='o'||ch[0]=='u'){ printf("vowel"); } else{ printf("consonant"); } return 0; }
main.c: In function 'main': main.c:4:9: error: expected expression before '[' token 4 | char ch=[1]; | ^ main.c:6:6: error: subscripted value is neither array nor pointer nor vector 6 | if(ch[0]=='a'||ch[0]=='e'||ch[0]=='i'||ch[0]=='o'||ch[0]=='u'){ | ^ main.c:6:18: error: subscripted v...
s668531028
p03852
C++
#include<iostream> #include<cstring> using namespace std; int main(void) { char str[100]; cin >> str; if (str[0] == "a" || str[0] == "i" || str[0] == "u" || str[0] == "e" || str[0] == "o") { cout << "vowe1" << endl; } else { cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:11:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 11 | if (str[0] == "a" || str[0] == "i" || str[0] == "u" || str[0] == "e" || str[0] == "o") { | ~~~~~~~^~~~~~ a.cc:11:37: error: ISO C++ forbids comparison between pointe...
s100595161
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') { puts("vowel"); } else puts("consonant"); }
a.cc: In function 'int main()': a.cc:6:37: error: lvalue required as left operand of assignment 6 | if (c=='a'||c=='e'||c=='i'||c=='o'||c='u') { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
s018418604
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { int and = 0;string c,v[] = {“a”,”e”,”u”,”I”,”o”};cin >> c; for(int i =0;i< 5;i++){ if(c == v[i]) ans = 1; } if(ans) cout << “vowel “; else cout << “consonant”; }
a.cc:5:31: error: extended character “ is not valid in an identifier 5 | int and = 0;string c,v[] = {“a”,”e”,”u”,”I”,”o”};cin >> c; | ^ a.cc:5:31: error: extended character ” is not valid in an identifier a.cc:5:35: error: extended character ” is not valid in an identifier ...
s249820431
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:5:7: error: expected ';' before 'if' 5 | cin>>c | ^ | ; 6 | if(c=='a','i','u','e','o'){ | ~~ a.cc:10:2: error: expected '}' at end of input 10 | } | ^ a.cc:3:11: note: to match this '{' 3 | int main(){ | ^
s963173469
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:22: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [6]') 8 | cout >> "vowel" >> endl; | ~~~~ ^~ ~~~~~~~ | | | | | ...
s454221908
p03852
C++
#include <iostream> #include <bits/stdc++.h> using namespace std; int main(void){ // Your code here! char c; cin>>c; cout<<a; if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl; else cout<<consonant<<endl; return 0; }
a.cc: In function 'int main()': a.cc:8:9: error: 'a' was not declared in this scope 8 | cout<<a; | ^ a.cc:9:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 9 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl; | ~~^~~~~~ a.cc:9...
s038486407
p03852
C++
#include <iostream> #include <bits/stdc++.h> using namespace std; int main(void){ // Your code here! char c; cin>>c; cout<<a; if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl; else cout<<consonant<<endl; return 0; }
a.cc: In function 'int main()': a.cc:8:9: error: 'a' was not declared in this scope 8 | cout<<a; | ^ a.cc:9:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 9 | if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl; | ~~^~~~~~ a.cc:9...
s620573157
p03852
C++
#include <iostream> #include <bits/stdc++.h> using namespace std; int main(void){ // Your code here! char c; cin>>c; if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl; else cout<<consonant<<endl; return 0; }
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") cout<<vowe1<<endl; | ~~^~~~~~ a.cc:8:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 |...
s145468567
p03852
C++
#include <iostream> #include <bits/stdc++.h> using namespace std; int main(void){ // Your code here! char c; cin>>c; if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl; else cout<<consonant<<endl; return 0; }
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") cout<<vowe1<<endl; | ~~^~~~~~ a.cc:8:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 |...
s932645288
p03852
C++
#include <iostream> #include <bits/stdc++.h> using namespace std; int main(void){ // Your code here! char c; cin>>c; if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl; else cout<<consonant<<endl; return 0; }
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") cout<<vowe1<<endl; | ~~^~~~~~ a.cc:8:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 |...
s176814103
p03852
C++
#include <iostream> #include <bits/stdc++.h> using namespace std; int main(void){ // Your code here! char c; cin>>c; if(c == "a"||c == "i"||c =="u"||c =="e"||c =="o") cout<<vowe1<<endl; else cout<<consonant<<endl; return 0; }
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") cout<<vowe1<<endl; | ~~^~~~~~ a.cc:8:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 |...
s682098384
p03852
C++
#include <iostream> using namespace std; int main(void){ string l; cin >> l; 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; ...
a.cc: In function 'int main()': a.cc:6:8: error: 'c' was not declared in this scope 6 | if(c =="a"){ | ^
s726434618
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" << endl; } else { cout << "constant" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:8:59: error: expected primary-expression before ')' token 8 | if (c == 'a'||c == 'i'||c == 'u'||c == 'e'||c == 'o'||) { | ^
s674627904
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" << end; } return 0; }
a.cc: In function 'int main()': a.cc:11:25: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 11 | cout << "consonant" << end; | ~~~~~~~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/istream:41, fr...
s315892133
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" << end;} return 0; }
a.cc: In function 'int main()': a.cc:11:25: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 11 | cout << "consonant" << end;} | ~~~~~~~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/istream:41, f...
s707511433
p03852
C++
#include <bits/stdc++.h> using namespase std; int main( ) { string C int >> C if (C == a || i || u || e || o ) cout << vowel else cout << consonant }
a.cc:2:7: error: expected nested-name-specifier before 'namespase' 2 | using namespase std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:5:3: error: 'string' was not declared in this scope 5 | string C | ^~~~~~ a.cc:5:3: note: suggested alternatives: In file included from /usr/include...
s864527618
p03852
C++
#include <iostream> using namespace std; int main(void) { char c; cin >> c; if( c=='a' || c=='i' || c=='u' || c=='e' || c=='o' ) cout << vowel; else cout << consonant; cout << endl; return 0; }
a.cc: In function 'int main()': a.cc:7:17: error: 'vowel' was not declared in this scope 7 | cout << vowel; | ^~~~~ a.cc:9:13: error: 'consonant' was not declared in this scope 9 | cout << consonant; | ^~~~~~~~~
s878255649
p03852
C++
#include <iostream> using namespace std; int main(void) { char c; cin >> c; if( c=="a" || c=="i" || c=="u" || c=="e" || c=="o" ) cout << vowel; else cout << consonant; cout << endl; return 0; }
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:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 6 | if( c=="a" || c=="i...
s671245484
p03852
C
#include <iostream> using namespace std; int main(void) { char c; cin >> c; if( c=="a" || c=="i" || c=="u" || c=="e" || c=="o" ) cout << vowel; else cout << consonant; cout << endl; return 0; }
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s968053289
p03852
C++
#include <stdio.h> int main(void){ int i; char c; char s[5] = {"aiueo"}; scanf("%c", &c...
a.cc: In function 'int main()': a.cc:11:18: error: initializer-string for 'char [5]' is too long [-fpermissive] 11 | char s[5] = {"aiueo"}; | ^~~~~~~
s915372423
p03852
C++
#include <bits/stdc++.h> using namespace std; int main () { char s = {"aeiou"}; ‎char n; ‎cin >> n; if (n:s) { cout << "vowel";} else cout << "consonant"; return 0; }
a.cc:9:4: error: extended character ‎ is not valid in an identifier 9 | ‎char n; | ^ a.cc:10:4: error: extended character ‎ is not valid in an identifier 10 | ‎cin >> n; | ^ a.cc: In function 'int main()': a.cc:8:14: error: invalid conversion from 'const char*' to 'char' [-fpermissive] ...
s217468574
p03852
C++
#include <bits/stdc++.h> using namespace std; int main () { string s = {"aeiou"}; ‎string n; ‎cin >> n; if (n:s) { cout << "vowel";} else cout << "consonant"; return 0; }
a.cc:9:4: error: extended character ‎ is not valid in an identifier 9 | ‎string n; | ^ a.cc:10:4: error: extended character ‎ is not valid in an identifier 10 | ‎cin >> n; | ^ a.cc: In function 'int main()': a.cc:9:4: error: '\U0000200estring' was not declared in this scope 9 | ‎st...
s840701922
p03852
C++
#include <bits/stdc++.h> using namespace std; int main () { string s = {"aeiou"}; ‎string n; ‎cin >> n; if (n==s) { cout << "vowel";} else cout << "consonant"; return 0; }
a.cc:9:4: error: extended character ‎ is not valid in an identifier 9 | ‎string n; | ^ a.cc:10:4: error: extended character ‎ is not valid in an identifier 10 | ‎cin >> n; | ^ a.cc: In function 'int main()': a.cc:9:4: error: '\U0000200estring' was not declared in this scope 9 | ‎st...
s250104789
p03852
C++
#include <bits/stdc++.h> using namespace std; int main () { string s = {"aeiou"}; ‎string n; ‎cin >> n; if (n==s) { cout << "vowel"}; else cout << "consonant"; return 0; }
a.cc:9:4: error: extended character ‎ is not valid in an identifier 9 | ‎string n; | ^ a.cc:10:4: error: extended character ‎ is not valid in an identifier 10 | ‎cin >> n; | ^ a.cc: In function 'int main()': a.cc:9:4: error: '\U0000200estring' was not declared in this scope 9 | ‎st...
s735318740
p03852
C++
#include <bits/stdc++.h> using namespace std; int main () { string s = {"aeiou"}; ‎string n; ‎cin >> n; if (n==s[0] ||s[1]||s[2]||s[3]||s[4]) { cout << "vowel"}; else cout << "consonant"; return 0; }
a.cc:9:4: error: extended character ‎ is not valid in an identifier 9 | ‎string n; | ^ a.cc:10:4: error: extended character ‎ is not valid in an identifier 10 | ‎cin >> n; | ^ a.cc: In function 'int main()': a.cc:9:4: error: '\U0000200estring' was not declared in this scope 9 | ‎st...
s504672615
p03852
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String c = sc.next(); char a = c.charAt(0); if(c == 'a'||c=='i'||c=='u'||c=='e'||c=='o')System.out.println("vowel"); else System.out.println("consonant"); } }
Main.java:7: error: bad operand types for binary operator '==' if(c == 'a'||c=='i'||c=='u'||c=='e'||c=='o')System.out.println("vowel"); ^ first type: String second type: char Main.java:7: error: bad operand types for binary operator '==' if(c == 'a'||c=='i'||c=='u'||c=='e'||c=='o')System.out.println("vo...
s743429565
p03852
C++
#include "bits/stdc++.h" using namespace std; typedef long long ll; typedef pair<int, int> pii; typedef pair<ll, ll> pll; const int INF = 1e9; const ll LINF = 1e18; template<class S,class T> ostream &operator << (ostream& out,const pair<S,T>& o){ out << "(" << o.first << "," << o.second << ")"; return out; } /* At...
a.cc: In function 'void solve()': a.cc:30:57: error: no match for 'operator!=' (operand types are 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'std::__cxx11::basic_string<char>::iterator') 30 | void solve(){char c;cin>>c;string s="aiueo";if(s.find(c)!=s.end())cout<<"vowel"<<endl;else c...
s937692197
p03852
C++
#include<iostream> using namespace std; int main(){ int c; cin >> c; if(c == 'a') cout<<"vowel\n"; else if(c == 'i') cout<<"vowel\n"; else if(c == 'u') cout<<"vowel\n"; else if(c == 'e') cout<<"vowel\n"; else if(c == 'o') cout<<"vowel\n"; else if cout <<"consonant\n"; }
a.cc: In function 'int main()': a.cc:13:11: error: expected '(' before 'cout' 13 | else if cout <<"consonant\n"; | ^~~~ | (
s820187338
p03852
C++
#include<iostream> using namespace std; int main(){ int c; cin >> c; if(c == 'a') cout<<"vowel\n"; else if(c == 'i') cout<<"vowel\n"; else if(c == 'u') cout<<"vowel\n"; else if(c == 'e') cout<<"vowel\n"; else if(c == 'o') cout<<"vowel\n"; else cout <<"consonant\n";
a.cc: In function 'int main()': a.cc:13:29: error: expected '}' at end of input 13 | else cout <<"consonant\n"; | ^ a.cc:4:11: note: to match this '{' 4 | int main(){ | ^
s857136632
p03852
C++
#include<iostream> using namespace std; int main(){ char c; cin >> c; if(c == "a") cout<<"vowel\n"; else if(c == "i") cout<<"vowel\n"; else if(c == "u") cout<<"vowel\n"; else if(c == "e") cout<<"vowel\n"; else if(c == "o") cout<<"vowel\n"; else cout <<"consonant\n";
a.cc: In function 'int main()': a.cc:8:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if(c == "a") cout<<"vowel\n"; | ~~^~~~~~ a.cc:9:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 9 | else if(c == "i") cout<<"vowel\n"; ...
s781375447
p03852
C
#include<stdio.h> int main(void) { char str; int i; char scan[]={'a','i','u','e','o'}; scanf("%c",&str); for(i=0;i<5;i++) { if(str==scan[i]) { printf("vowel\n"); break; } else if(i==4&&str!=scan[i]) { printf("consonant\n"); break; } } } ret...
main.c:22:3: error: expected identifier or '(' before 'return' 22 | return 0; | ^~~~~~
s589616493
p03852
C
#include<stdio.h> int main(void) { char str; int i; char scan[]={'a','i','u','e','o'}; scanf("%c",&str); for(i=0;i<5;i++) { if(str==scan[i]) { printf("vowel\n"); break; } else if(i==4&&str!=scan[i]) { printf("consonant\n"); break; } } retur...
main.c: In function 'main': main.c:21:3: error: expected declaration or statement at end of input 21 | return 0; | ^~~~~~
s497930877
p03852
C
#include<stdio.h> int main(void) { char str; int i; char scan[]={a,i,u,e,o}; scanf("%c",&str); for(i=0;i<5;i++) { if(str==scan[i]) { printf("vowel\n"); break; } else if(i==4&&str!=scan[i]) { printf("consonant\n"); break; } } return 0;
main.c: In function 'main': main.c:6:16: error: 'a' undeclared (first use in this function) 6 | char scan[]={a,i,u,e,o}; | ^ main.c:6:16: note: each undeclared identifier is reported only once for each function it appears in main.c:6:20: error: 'u' undeclared (first use in this function) ...
s623390734
p03852
C
#include<stdio.h> int main(){ char c; scanf("%c",&c); if(c='a'||c='i'||c='u'||c='e'||c='o'){ printf("vowel"); } else{ printf("consonant"); } return 0; }
main.c: In function 'main': main.c:5:35: error: lvalue required as left operand of assignment 5 | if(c='a'||c='i'||c='u'||c='e'||c='o'){ | ^
s071883195
p03852
Java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String w = sc.next(); char s = w.charAt(); if(s=='a' || s=='i' || s=='u' || s=='e' || s=='o'){ System.out.println("vowel"); }else{ System.out.println("consonant"); ...
Main.java:6: error: method charAt in class String cannot be applied to given types; char s = w.charAt(); ^ required: int found: no arguments reason: actual and formal argument lists differ in length 1 error
s845330635
p03852
C++
#include<iostream> #include<algorithm> #include<string> #include<vector> #include<math.h> #include<map> #include<functional> #include<queue> 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:13:52: error: expected ')' before '{' token 13 | if((c=='a')||(c=='b')||(c=='c')||(c=='d')||(c=='e'){ | ~ ^ | ) a.cc:18:1: error: expected primary-expression before '}'...
s895777358
p03852
C++
// finish date: 2018/01/10 #include <iostream> #include <cmath> #include <vector> #include <bitset> #include <algorithm> #include <stack> #include <map> #include <climits> using namespace std; #define FOR(i, a, b) for(int i=a;i<b;i++) #define rep(i, n) FOR(i,0,n) #define ll long long bool isExist(char c, string str...
a.cc: In function 'int main()': a.cc:37:28: error: expected ';' before 'return' 37 | }else cout<<"consonant" | ^ | ; ...... 40 | return 0; | ~~~~~~
s015242276
p03852
C++
#include<iostream> #include<math.h> #include<string> #include<algorithm> using namespace std; int main(){ a[]={1,0,0,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0}; char c; cin>>c; int n=c-'a'; if(n)cout<<"vowel"<<endl; else cout<<"consonant"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:8:9: error: 'a' was not declared in this scope 8 | a[]={1,0,0,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0}; | ^ a.cc:8:11: error: expected primary-expression before ']' token 8 | a[]={1,0,0,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0}; ...
s478515552
p03852
C++
#include <iostream> #include <string> int main(){ std::string S; std::cin >> S; if(S=='a' || S=='i' || S=='u' || S=='e' ||S=='o') std::cout << "vowel" << std::endl; else std::cout << "consonant" <<std::endl; }
a.cc: In function 'int main()': a.cc:6:5: 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::basic_...
s342764520
p03852
C++
#include <bits/stdc++.h> using namespace std; struct edge {int /*from,*/to,cost;}; typedef long long ll; typedef pair<int,int> P; typedef pair<pair<int,int>,int> PP; typedef vector<int> VI; typedef vector<long long int> VL; typedef vector<edge> VE; static const int MOD = 1000000007; //static const int INF = 214748364...
a.cc: In function 'int main()': a.cc:42:11: error: 'a' was not declared in this scope 42 | if(c==a || c==i || c==u || c==e || c==o) puts("vowel"); | ^ a.cc:42:19: error: 'i' was not declared in this scope 42 | if(c==a || c==i || c==u || c==e || c==o) puts("vowel"); | ...
s600783655
p03852
C++
#include<iostream> #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; } return 0; }
a.cc: In function 'int main()': a.cc:8:11: error: 'a' was not declared in this scope 8 | if(s==a || s==i || s==u || s==e || s==o) | ^ a.cc:8:19: error: 'i' was not declared in this scope 8 | if(s==a || s==i || s==u || s==e || s==o) | ^ a.cc:8:27: error: 'u' was no...
s672802490
p03852
C++
#include<iostream> #include<string> 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; } return 0; }
a.cc: In function 'int main()': a.cc:8:19: error: 'i' was not declared in this scope 8 | if(a==a || a==i || a==u || a==e || a==o) | ^ a.cc:8:27: error: 'u' was not declared in this scope 8 | if(a==a || a==i || a==u || a==e || a==o) | ^ a.cc:8:35: e...
s970234825
p03852
C++
#include<iostream> #include<string> 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; } return 0; }
a.cc: In function 'int main()': a.cc:7:9: error: expected ';' before 'if' 7 | cin>>a | ^ | ; 8 | if(a==a || a==i || a==u || a==e || a==o) | ~~ a.cc:11:8: error: 'else' without a previous 'if' 11 | }else{ | ^~~~
s435300045
p03852
C++
#include <iostream> #include <string> 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; } el...
a.cc: In function 'int main()': a.cc:9:10: error: 'a' was not declared in this scope 9 | if (c == a) | ^ a.cc:13:15: error: 'i' was not declared in this scope 13 | else if (c == i) | ^ a.cc:17:15: error: 'u' was not declared in this scope 17 | else if (c == u) | ...
s307863580
p03852
C++
#include<bits/stdc++.h> int main() { char s; cin>>s; if(s=='a' || s=='e' || s=='i' || s=='o' || s=='u'){ cout<<"vowel"; } else{ cout<<"consonant"; } }
a.cc: In function 'int main()': a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 5 | cin>>s; | ^~~ | std::cin In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146, from a.cc:1: /usr/include/c++/14/iostream:62...
s576107409
p03852
C
#include<stdio.h> int main() { int c; scanf(%d,&c); if(c==a || c==i || c==u || c==e || c==o){ printf("vowel¥n"); }else{ printf("consonant¥n"); } return 0; }
main.c: In function 'main': main.c:4:7: error: expected expression before '%' token 4 | scanf(%d,&c); | ^ main.c:5:7: error: 'a' undeclared (first use in this function) 5 | if(c==a || | ^ main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in m...
s713466772
p03852
C
#include<stdio.h> int main() { int c; scanf(%d,&c); if(c==a || c==i || c==u || c==e || c==o){ printf("vowel¥n"); }else{ printf("consonant¥n"); } return 0; }
main.c: In function 'main': main.c:4:7: error: expected expression before '%' token 4 | scanf(%d,&c); | ^ main.c:5:7: error: 'a' undeclared (first use in this function) 5 | if(c==a || | ^ main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in m...
s558264323
p03852
C
#include<stdio.h> int main(void) { int c; scanf(%d,&c); if(c==a || c==i || c==u || c==e || c==o){ printf("vowel¥n"); }else{ printf("contest"); } return 0; }
main.c: In function 'main': main.c:4:7: error: expected expression before '%' token 4 | scanf(%d,&c); | ^ main.c:5:7: error: 'a' undeclared (first use in this function) 5 | if(c==a || | ^ main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in m...
s536087603
p03852
C++
#include <iostream> 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; } return 0; }
a.cc: In function 'int main()': a.cc:9:11: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 9 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') { | ~ ^~ ~~~ | | | | | char | ...
s295347163
p03852
C++
include<iostream> 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; return 0; }
a.cc:1:1: error: 'include' does not name a type 1 | include<iostream> | ^~~~~~~ a.cc: In function 'int main()': a.cc:4:9: error: 'string' was not declared in this scope 4 | string a; | ^~~~~~ a.cc:5:9: error: 'cin' was not declared in this scope 5 | cin>>a; | ...
s669520563
p03852
C++
#include<iostream> 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; return 0; }
a.cc: In function 'int main()': a.cc:5:12: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 5 | cin<<a; | ~~~^~~ | | | | | std::string {aka std::__cx...
s227538353
p03852
C++
#include<iostream> #include<cstdio> 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; } return 0; }
a.cc: In function 'int main()': a.cc:7:45: error: lvalue required as left operand of assignment 7 | if(c='a' || c='i' || c='u' || c='e' || c='o'){ | ~~~~^~~~
s298025626
p03852
C++
#include<iostream> #include<cstdio> 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; } return 0; }
a.cc: In function 'int main()': a.cc:7:56: error: expected primary-expression before ')' token 7 | if(c='a' || c='i' || c='u' || c='e' || c='o' ||){ | ^
s569114391
p03852
C++
#include<iostream> 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; return 0; }
a.cc: In function 'int main()': a.cc:5:12: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 5 | cin<<a; | ~~~^~~ | | | | | std::string {aka std::__cx...
s365515449
p03852
C++
a = input() if a == 'a' or a == 'e' or a == 'i' or a == 'o' or a == 'u' : print('vowel') else : print('consonant')
a.cc:3:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes 3 | print('vowel') | ^~~~~~~ a.cc:5:11: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes 5 | print('consonant') | ^~~~~~~~~~~ a.cc:1:1: error: 'a' d...
s639207958
p03852
C++
#include<bits/stdc++.h> #define fi first #define se second #define FO(x, n) for (int x = 0; x < n; ++x) #define FOR(x, a, b) for (int x = a; x < b; ++x) #define RFO(x, n) for (int x = n - 1; x >= 0; --x) #define RFOR(x, a, b) for (int x = b - 1; x >= a; --x) #define FOR_ITER(x, a) for(auto x = a.begin(); x != a.end();...
a.cc: In function 'int main()': a.cc:37:5: error: 'ch' was not declared in this scope 37 | ch a, b, c; | ^~ a.cc:38:12: error: 'a' was not declared in this scope 38 | cin >> a ;//>> b >> c; | ^
s394629334
p03852
C++
using namespace std; #define FOR(i,a,b) for(int i=(a);i<(b);i++) #define RFOR(i,a,b) for (int i=(b)-1;i>=(a);i--) #define REP(i,n) for(int i=0;i<(n);i++) #define RREP(i,n) for (int i=(n)-1;i>=0;i--) #define pb push_back #define PII pair<int,int> #define VS vector<string> #define VI vector<in...
a.cc: In function 'int main()': a.cc:15:5: error: 'string' was not declared in this scope 15 | string s = "aiueo"; | ^~~~~~ a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>' +++ |+#include <string> 1 | using namespace std; a.cc:1...
s501277101
p03852
C++
package main import ( "fmt" ) func main(){ var c string fmt.Scan(&c) if c == "a" || c == "i" || c == "u" || c == "e" || c == "o" { fmt.Println("vowel") } else{ fmt.Println("consonat") } }
a.cc:1:1: error: 'package' does not name a type 1 | package main | ^~~~~~~
s068011313
p03852
C++
include<iostream> #include<string> 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; } return 0; }
a.cc:1:1: error: 'include' does not name a type 1 | include<iostream> | ^~~~~~~ In file included from /usr/include/c++/14/bits/char_traits.h:42, from /usr/include/c++/14/string:42, from a.cc:2: /usr/include/c++/14/bits/postypes.h:68:11: error: 'ptrdiff_t' does not name a type...
s000239623
p03852
C++
#include <bits/stdc++.h> using namespace std; #define ll long long #define vvi vector< vector<int> > #define vi vector<int> #define All(X) X.begin(),X.end() #define FOR(i,a,b) for(int i=(int)(a);i<(int)(b);i++) #define REP(i,n) for(int i=0;i<(int)(n);i++) #define pb push_back #define pii pair<int,int> #define mp make...
a.cc: In function 'int main()': a.cc:26:34: error: expected '}' at end of input 26 | else cout << "consonant" << endl; | ^ a.cc:19:11: note: to match this '{' 19 | int main(){ | ^
s588544908
p03852
Java
import java.util.*; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); String c = sc.next(); if(c.equals("a")||c.equals("i")||c.equals("u")||c.equals("e")||c.equals("o")){ System.out.println("voyel"); } else System.out.pr...
Main.java:12: error: reached end of file while parsing } ^ 1 error
s264965073
p03852
Java
import java.util.*; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); String c = sc.next(); if(c.equals("a")||c.equals("i")||c.equals("u")||c.equals("e")||c.equals("o")){ System.out.println("voyel"); } else System.out.pr...
Main.java:12: error: reached end of file while parsing } ^ 1 error
s705725377
p03852
Java
package spring; import java.io.*; public class A_UOIAUI { public static void main(String[] args) throws java.io.IOException{ int c = System.in.read(); if(c == 'a'||c == 'i'||c == 'u'||c == 'e'||c == 'o'){ System.out.println("vowel"); }else{ System.out.println("consonant"); } } }
Main.java:3: error: class A_UOIAUI is public, should be declared in a file named A_UOIAUI.java public class A_UOIAUI { ^ 1 error
s898554802
p03852
Java
import java.util.*; public class ABC049_A { public static void main(String[] args){ Scanner sc=new Scanner(System.in); String c=sc.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("consonant"); } } }
Main.java:2: error: class ABC049_A is public, should be declared in a file named ABC049_A.java public class ABC049_A { ^ 1 error
s276981849
p03852
Java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String c = sc.next(); if(c.equals ("a") ||c.equals ("i") ||c.equals("u") || c.equals("e") ||c.equals ("o")){ System.out.println("vowel"); else{ ...
Main.java:9: error: 'else' without 'if' else{ ^ 1 error
s466109299
p03852
Java
import java.util.Scanner; public class main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String c = sc.next(); if(c.equals("a") || c.equals("i")|| c.equals("u")|| c.equals("e")|| c.equals("o")) System.out.println("vowel"); else System.out.println("consonant"); } }
Main.java:2: error: class main is public, should be declared in a file named main.java public class main { ^ 1 error
s548174605
p03852
Java
import java.util.Scanner; public class uoiaiuai { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String c = sc.next(); if(c.equals("a") || c.equals("i")|| c.equals("u")|| c.equals("e")|| c.equals("o")) System.out.println("vowel"); else System.out.println("consonant"); }...
Main.java:3: error: class uoiaiuai is public, should be declared in a file named uoiaiuai.java public class uoiaiuai { ^ 1 error
s969505397
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; cout << (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o' ? "vowel" : "consonant" << endl; }
a.cc: In function 'int main()': a.cc:7:93: error: invalid operands of types 'const char [10]' and '<unresolved overloaded function type>' to binary 'operator<<' 7 | cout << (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o' ? "vowel" : "consonant" << endl; | ...
s205735829
p03852
Java
import java.util.Scanner;   public class Main { private static Scanner sc = new Scanner(System.in); public static void main(String[] args) { String s = sc.next(); int e = s.length(); while(true) { if (e==0) { break; } else if (e<5) { System.out.println("NO"); return; }   if (s.substring(...
Main.java:2: error: illegal character: '\u00a0' ? ^ Main.java:15: error: illegal character: '\u00a0' ? ^ Main.java:29: error: illegal character: '\u00a0' ? ^ 3 errors