submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s165893952 | p03852 | C++ | #include<iostream>
#include<string>
#include<algorithm>
#include <stdio.h>
#include<iostream>
using namespace std;
int main(){
string s;
cin >>s;
if(a<= s && s<=0)
cout <<"vowel"<<endl;
else cout<<"consonant"<<endl;
}
| a.cc: In function 'int main()':
a.cc:11:4: error: 'a' was not declared in this scope
11 | if(a<= s && s<=0)
| ^
a.cc:11:14: error: no match for 'operator<=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
11 | if(a<= s && s<=0)
| ~^~~
| ... |
s693327480 | 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:8:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (a == "a"||a == "i"||a == "u"||a == "e"||a == "o") {
| ~~^~~~~~
a.cc:8:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (a == "a"||... |
s893986801 | 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:8:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (a == "a"||a == "i"||a == "u"||a == "e"||a == "o") {
| ~~^~~~~~
a.cc:8:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (a == "a"||... |
s734625566 | 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:8:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (a == "a"||a == "i"||a == "u"||a == "e"||a == "o") {
| ~~^~~~~~
a.cc:8:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (a == "a"||... |
s220749035 | 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 << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:9:12: error: 'a' was not declared in this scope
9 | if (c == a || c == i || c == u || c == e || c == o )
| ^
a.cc:9:22: error: 'i' was not declared in this scope
9 | if (c == a || c == i || c == u || c == e || c == o )
| ^
a.cc... |
s207874195 | p03852 | C++ | #include<iostream>
using namespace std;
int main( )
{
int 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:12: error: 'a' was not declared in this scope
9 | if (c == a || c == i || c == u || c == e || c == o)
| ^
a.cc:9:22: error: 'i' was not declared in this scope
9 | if (c == a || c == i || c == u || c == e || c == o)
| ^
a.cc:9... |
s065417426 | p03852 | Java | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class HelloWorld {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String input = br.readLine();
if (input.equals("a") ||input.equals("e")|| input.eq... | Main.java:4: error: class HelloWorld is public, should be declared in a file named HelloWorld.java
public class HelloWorld {
^
1 error
|
s059949631 | p03852 | Java | package intro;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class HelloWorld {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String input = br.readLine();
if (input.equals("a") || input.equals... | Main.java:9: error: illegal character: '\u3000'
if (input.equals("a") ||?input.equals("e" || input.equals("i") || input.equals("o") || input.equals("u")) ){
^
Main.java:9: error: ';' expected
if (input.equals("a") ||?input.equals("e" || input.equals("i") || input.equals("o") || input.eq... |
s125189268 | p03852 | C++ | #include<iostream>
using namespace std;
int main(void)
{
char n;
cin >> n;
switch(n)
{
case a:
case i:
case u:
case e:
case o:
cout << "vowel" << endl;
break;
default:
cout << "consonant" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:10:10: error: 'a' was not declared in this scope
10 | case a:
| ^
a.cc:11:10: error: 'i' was not declared in this scope
11 | case i:
| ^
a.cc:12:10: error: 'u' was not declared in this scope
12 | case u:
| ^
a.cc:13:1... |
s798661909 | 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:8:9: error: extended character ‘ is not valid in an identifier
8 | if(s==‘a’ || s==‘i’ || s==‘u’ || s==‘e’ || s==‘o’){
| ^
a.cc:8:9: error: extended character ’ is not valid in an identifier
a.cc:8:19: error: extended character ‘ is not valid in an identifier
8 | if(s==‘a’ || s==‘i’ || s=... |
s471157899 | p03852 | C++ | #include<iostream>
#include<string>
#include<vector>
#include<iomanip>
#include<algorithm>
#include<queue>
#include<stack>
#include<map>
using namespace std;
#define ll long long
int main(){
char c;
cin >> c;
if(c=='a'|c=='i'|c=='u'|c=='e'|c=='o'|)cout<<"consonant";else cout <<"vowel";
return 0;
}
| a.cc: In function 'int main()':
a.cc:14:43: error: expected primary-expression before ')' token
14 | if(c=='a'|c=='i'|c=='u'|c=='e'|c=='o'|)cout<<"consonant";else cout <<"vowel";
| ^
|
s403788091 | p03852 | C++ | #include<iostream>
#include<string>
#include<vector>
#include<iomanip>
#include<algorithm>
#include<queue>
#include<stack>
#include<map>
using namespace std;
#define ll long long
int main(){
char c;
cin >> c;
if(c=='a'|c=='i'|c=='u'|c=='e'|c=='o'|)cout<<"consonant
";else cout <<"vowel";
return 0;
}
| a.cc:14:50: warning: missing terminating " character
14 | if(c=='a'|c=='i'|c=='u'|c=='e'|c=='o'|)cout<<"consonant
| ^
a.cc:14:50: error: missing terminating " character
14 | if(c=='a'|c=='i'|c=='u'|c=='e'|c=='o'|)cout<<"consonant
| ... |
s520855165 | p03852 | C++ | #include <iostream>
#include <cmath>
#include <string>
#include <typeinfo>
#include <climits>
#include <algorithm>
#include <cctype>
#include <cstring>
#include <stdio.h>
#include <cstdlib>
using namespace std;
int main(){
char a;
cin >> a;
if(a=='a'||a==||'i'||a=='u'||a=='e'||a=='o'){
cout << "vow... | a.cc: In function 'int main()':
a.cc:16:19: error: expected primary-expression before '||' token
16 | if(a=='a'||a==||'i'||a=='u'||a=='e'||a=='o'){
| ^~
|
s802392419 | p03852 | C | #include <stdio.h>
int main(void){
char v = "aiueo", c;
scanf("%c", &c);
int i = 0;
while(v[i]){
if(v[i++] == c){
printf("vowel\n");
return 0;
}
}
printf("consonant\n");
return 0;
}
| main.c: In function 'main':
main.c:4:18: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
4 | char v = "aiueo", c;
| ^~~~~~~
main.c:7:16: error: subscripted value is neither array nor pointer nor vector
7 | while(v[... |
s252033148 | p03852 | C |
#include <stdio.h>
int main()
{ char s[2];
scanf("%c",s);
if(s[0]=='a'||s[0]=='i'||s[0]=='u's[0]=='e'||s[0]=='o'){
printf("vowel");
}else printf("consonant");
return 0;
}
| main.c: In function 'main':
main.c:7:39: error: expected ')' before 's'
7 | if(s[0]=='a'||s[0]=='i'||s[0]=='u's[0]=='e'||s[0]=='o'){
| ~ ^
| )
|
s260164407 | p03852 | C |
#include <stdio.h>
int main()
{ char c[2];
scanf("%c",s);
if(s[0]=='a'||s[0]=='i'||s[0]=='u's[0]=='e'||s[0]=='o'){
printf("vowel");
}else printf("consonant");
return 0;
}
| main.c: In function 'main':
main.c:6:16: error: 's' undeclared (first use in this function)
6 | scanf("%c",s);
| ^
main.c:6:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:39: error: expected ')' before 's'
7 | if(s[0]=='a'||s[0]==... |
s327249500 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
str 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:5:3: error: 'str' was not declared in this scope; did you mean 'std'?
5 | str c;
| ^~~
| std
a.cc:6:10: error: 'c' was not declared in this scope
6 | cin >> c;
| ^
|
s919420155 | p03852 | C++ | #include<iostream>
#include<vector>
#include<algorithm>
#include<string.h>
#include<complex>
using namespace std;
typedef long long int llint
int main(){
char c;
cin >> c;
if (c == 'a' ||
c == 'i' ||
c == 'u' ||
c == 'e' ||
c == 'o'){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
re... | a.cc:8:1: error: expected initializer before 'int'
8 | int main(){
| ^~~
|
s139499028 | 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:8: 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::strin... |
s692793251 | 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\n");
} else {
printf("consonant\n");
}
return 0;
}
| main.c: In function 'main':
main.c:7:17: error: stray '\343' in program
7 | if (c ==<U+3000>'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o') {
| ^~~~~~~~
|
s675783907 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char str = c;
if (str = a, o, u, i, e) {
cout << "vowel" << endl;
} else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:5:14: error: 'c' was not declared in this scope
5 | char str = c;
| ^
a.cc:6:14: error: 'a' was not declared in this scope
6 | if (str = a, o, u, i, e) {
| ^
a.cc:6:17: error: 'o' was not declared in this scope
6 | if (str = ... |
s860010899 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char str = "c";
if (str = a, o, u, i, e) {
cout << "vowel" << endl;
} else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:5:14: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
5 | char str = "c";
| ^~~
| |
| const char*
a.cc:6:14: error: 'a' was not declared in this scope
6 | if (str = a, o, u, i, e) {
| ... |
s115894643 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string str = "c";
if (str = a, o, u, i, e) {
cout << "vowel" << endl;
} else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:6:14: error: 'a' was not declared in this scope
6 | if (str = a, o, u, i, e) {
| ^
a.cc:6:17: error: 'o' was not declared in this scope
6 | if (str = a, o, u, i, e) {
| ^
a.cc:6:20: error: 'u' was not declared in this scope
... |
s517547243 | p03852 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(void){
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 | a.cc:15:2: error: 'a' does not name a type
15 | }a
| ^
|
s461011222 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string C;
cin >> C;
if (C == "a") {
cout << vowel << endl;
}
else if (C == "e") {
cout << vowel << endl;
}
else if (C == "i") {
cout << vowel << endl;
}
else if (C == "u") {
cout << vowel << endl;
}
else if (C == "o"... | a.cc: In function 'int main()':
a.cc:10:13: error: 'vowel' was not declared in this scope
10 | cout << vowel << endl;
| ^~~~~
a.cc:13:13: error: 'vowel' was not declared in this scope
13 | cout << vowel << endl;
| ^~~~~
a.cc:16:13: error: 'vowel' was not declared in thi... |
s518279779 | p03852 | C | #include<stdio.h>
char c;
int main(){
c=getchar();
if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'||){
printf("vowel\n");
}else{
printf("consonant\n");
}
}
| main.c: In function 'main':
main.c:5:46: error: expected expression before ')' token
5 | if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'||){
| ^
|
s934990422 | p03852 | C++ | #include <bits/stdc++.h>
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:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin >> c;
| ^~~
| 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:18: note: 'std:... |
s112406070 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
string ans = "consonant";
if (c == "a" or c == "e" or c == "i" or c == "o" or c == "u"){
ans ="vowel";
}
cout << ans << endl;
| a.cc: In function 'int main()':
a.cc:11:23: error: expected '}' at end of input
11 | cout << ans << endl;
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s695267346 | p03852 | C++ | #include<iostream>
using namespeace std;
int main(){
char str;
cin >> a;
if (str==a,i,u,e,o)
cout << "vowel" << endl;
else
cout << "consonant" << endl;
return 0;
} | a.cc:2:7: error: expected nested-name-specifier before 'namespeace'
2 | using namespeace std;
| ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin >> a;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/inc... |
s110916673 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
cout << “vowel” <<endl;
}
else{
cout << “consonant ” << endl;
}
}
| a.cc:8:9: error: extended character ‘ is not valid in an identifier
8 | if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
| ^
a.cc:8:9: error: extended character ’ is not valid in an identifier
a.cc:8:17: error: extended character ‘ is not valid in an identifier
8 | if(c==‘a’||c==‘i’||c==‘u’||c==‘e’... |
s669845711 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
cout << “vowel” <<endl;
}
else{
cout << “consonant ” << endl;
}
}
| a.cc:8:9: error: extended character ‘ is not valid in an identifier
8 | if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
| ^
a.cc:8:9: error: extended character ’ is not valid in an identifier
a.cc:8:17: error: extended character ‘ is not valid in an identifier
8 | if(c==‘a’||c==‘i’||c==‘u’||c==‘e’... |
s317598311 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin << c;
string v = "aeiou";
int f=0;
for (int i=0; i<5; i++) {
if (c == v.at(i)) {
f=1;
break;
}
}
if (f==1)
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 << c;
| ~~~ ^~ ~
| | |
| | char
| std::istream {aka std::basic_istream<char>}
a.cc:6:7: note: candidate: 'oper... |
s247444323 | p03852 | C++ | c = input().rstrip()
print('vowel' if c in 'aeiou' else 'consonant')
| a.cc:2:7: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
2 | print('vowel' if c in 'aeiou' else 'consonant')
| ^~~~~~~
a.cc:2:23: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
2 | print('vowel' if c in 'aeiou' else 'consonant')
... |
s930092807 | 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;
} | a.cc:1:2: error: invalid preprocessing directive #Include; did you mean #include?
1 | #Include <iostream>
| ^~~~~~~
| include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
6 | cin >> s;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostre... |
s273153494 | p03852 | C++ | #include <iostream>
#include <string>
using namespace std;
int main() {
char c;
cin >> c;
const string vowel = "aeiou";
vowel.find(c) == string::npos ? (cout << "vowel") : (cout << "consonant")
return 0;
} | a.cc: In function 'int main()':
a.cc:9:77: error: expected ';' before 'return'
9 | vowel.find(c) == string::npos ? (cout << "vowel") : (cout << "consonant")
| ^
| ... |
s678740084 | p03852 | C++ | #include <iostream>
#include <string>
using namespace std;
int main() {
char c;
cin >> c;
const string vowel = "aeiou";
vowel.find(c) == string::npos ? (cout << "vowel";) : (cout << "consonant";)
return 0;
} | a.cc: In function 'int main()':
a.cc:9:52: error: expected ')' before ';' token
9 | vowel.find(c) == string::npos ? (cout << "vowel";) : (cout << "consonant";)
| ~ ^
| )
a.cc:9:52: error: expected ':' ... |
s982115616 | p03852 | C++ | #include <iostream>
#include <string>
using namespace std;
int main() {
char c;
cin >> c;
const string vowel = "aeiou";
cout << vowel.find(c) == string::npos ? "vowel" : "consonant" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:25: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'})
9 | cout << vowel.find(c) == string::npos ? "vowel" : ... |
s726054328 | p03852 | C++ | #include <iostream>
#include <string>
using namespace std;
int main() {
char c ;
cin >> c ;
const string vowel = " aeiou ";
cout << vowel.find(c) == string :: npos ? " vowel " : " consonant " << endl ;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:25: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'})
9 | cout << vowel.find(c) == string :: npos ? " vowel ... |
s422340777 | p03852 | C++ | #include <iostream>
#include <string>
using namespace std;
int main() {
char c ;
cin >> c ;
const string vowel = " aeiou ";
cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
return 0;
} | a.cc: In function 'int main()':
a.cc:9: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'})
9 | cout << vowel . find ( c ) == string :: npos ? " v... |
s105436168 | 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:46: error: lvalue required as left operand of assignment
7 | if (c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o')
| ~~~~^~~~
|
s305402269 | p03852 | C | #include <stdio.h>
int main(void)
{
char c;
scanf("%c", &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:8:12: warning: missing terminating " character
8 | printf("vowel\n\");
| ^
main.c:8:12: error: missing terminating " character
8 | printf("vowel\n\");
| ^~~~~~~~~~~~
main.c:9:12: error: expected expression before '}' token
9 | ... |
s967120602 | p03852 | C | #include<stdio.h>
intmain(){
char c[2];
scanf("%s", c);
if(c[0] == 'a' || c[0] == 'i' || c[0] == 'u' || c[0] == 'e' || c[0] == 'o'){
printf("vowel\n");
} else {
printf("consonant\n");
}
return 0;
} | main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
3 | intmain(){
| ^~~~~~~
|
s487667339 | p03852 | C++ | #include<bits/stdc++.h>
#include<string>
#include<algorithm>
#include<vector>
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:10:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
10 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ~ ^~ ~~~
| | |
| | char
| std::str... |
s472807620 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c ;
cin >> c ;
const string vowel = " aeiou ";
cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
// ここにプログラムを追記
}
| a.cc: In function 'int main()':
a.cc:8:32: 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 ? "... |
s144186045 | 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:12:2: error: expected '}' at end of input
12 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s670563515 | 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:66: error: expected primary-expression before '<' token
7 | if(s== 'a'||s=='i'||s=='u'||s=='e'||s=='o'){cout<<"vowel"<<<endl;}
| ^
|
s169514918 | 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 if {
cout <<"consonant"<<endl;
}
// ここにプログラムを追記
}
| a.cc: In function 'int main()':
a.cc:7:65: error: expected primary-expression before '<' token
7 | if(s== 'a'||s=='i'||s=='u'||s=='e'||s=='o')cout<<"vowel"<<<endl;
| ^
a.cc:8:15: error: expected '(' before '{' token
8 | else if {
... |
s798431154 | 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 if cout <<'consonant'<<endl;
// ここにプログラムを追記
}
| a.cc:8:16: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
8 | else if cout <<'consonant'<<endl;
| ^~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:60: error: expected primary-expression before '<' token
7 | if(s== 'a'||s=='i'||s=='u'||s=='e'||s=='o')cout... |
s216999842 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string A;
cin >> A;
if (A=='a'||A=='e'||A=='i'||A=='o'||A=='u'){
cout << "vowel" << endl;}
else {
cout << "consonant" << endl;}
}
| a.cc: In function 'int main()':
a.cc:7:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
7 | if (A=='a'||A=='e'||A=='i'||A=='o'||A=='u'){
| ~^~~~~
| | |
| | char
| std::string {aka std::__cxx1... |
s975471985 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string A;
cin >> A;
if (A==a||A==e||A==i||A==o||A==u){
cout << "vowel" << endl;}
else {
cout << "consonant" << endl;}
}
| a.cc: In function 'int main()':
a.cc:7:10: error: 'a' was not declared in this scope
7 | if (A==a||A==e||A==i||A==o||A==u){
| ^
a.cc:7:16: error: 'e' was not declared in this scope
7 | if (A==a||A==e||A==i||A==o||A==u){
| ^
a.cc:7:22: error: 'i' was not declared in this s... |
s192317584 | p03852 | C++ | include<iostream>
int main(){
char c;
std::cin>>c;
std::cout<<(c^97&&c^101&&c^105&&c^111&&c^117?"consonant":"vowel");
} | a.cc:1:1: error: 'include' does not name a type
1 | include<iostream>
| ^~~~~~~
|
s692169398 | p03852 | C++ | #include<bits/stdc++.h>
using namespace sdt;
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"... | a.cc:2:17: error: 'sdt' is not a namespace-name
2 | using namespace sdt;
| ^~~
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 >> a;
| ^~~
| std::cin
In file included from /usr/inclu... |
s855760309 | p03852 | C++ | #include<iostream>
#include<string>
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 << "consonaut" << endl;
}
} | a.cc: In function 'int main()':
a.cc:7:16: error: no match for 'operator||' (operand types are 'char' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
7 | if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
| ~~~ ^~ ~
| | |
| char std::st... |
s492038112 | p03852 | C++ | #include<iostream>
#include<string>
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 << "consonaut" << endl;
}
} | a.cc: In function 'int main()':
a.cc:7:10: 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
| ... |
s679856039 | p03852 | C++ | #include<iostream>
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 << "consonaut" << endl;
}
} | a.cc: In function 'int main()':
a.cc:6:10: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
6 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ~ ^~ ~~~
| | |
| | char
| ... |
s553774708 | p03852 | C++ | #include<iostream>
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 << "consonaut" << endl;
}
} | a.cc: In function 'int main()':
a.cc:6:16: error: no match for 'operator||' (operand types are 'char' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
6 | if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o'){
| ~~~ ^~ ~
| | |
| char std::st... |
s747584628 | p03852 | C++ | #include<iostream>
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 << "consonaut" << endl;
}
} | a.cc: In function 'int main()':
a.cc:6:10: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
6 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ~ ^~ ~~~
| | |
| | char
| ... |
s216341918 | 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:8:12: error: 'a' was not declared in this scope
8 | if (c == a,i,u,e,o) {
| ^
a.cc:8:14: error: 'i' was not declared in this scope
8 | if (c == a,i,u,e,o) {
| ^
a.cc:8:16: error: 'u' was not declared in this scope
8 | if (c == a,... |
s291480349 | 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;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
7 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') cout << "vowel" << endl;
| ~ ^~ ~~~
| | |
| | cha... |
s973731934 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string 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:5:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
5 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o') {
| ~ ^~ ~~~
| | |
| | char
| std::str... |
s332117674 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
strin 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:4:3: error: 'strin' was not declared in this scope; did you mean 'stdin'?
4 | strin s;
| ^~~~~
| stdin
a.cc:5:6: error: 's' was not declared in this scope
5 | if(s == "a" || s == "i" || s == "u" || s == "e" || s == "o") {
| ^
|
s311807587 | 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:8:10: error: 'a' was not declared in this scope
8 | if (c==a,i,u,e,o) {
| ^
a.cc:8:12: error: 'i' was not declared in this scope
8 | if (c==a,i,u,e,o) {
| ^
a.cc:8:14: error: 'u' was not declared in this scope
8 | if (c==a,i,u,e,o) {... |
s940050719 | 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:8:10: error: 'a' was not declared in this scope
8 | if (c==a,i,u,e,o) {
| ^
a.cc:8:12: error: 'i' was not declared in this scope
8 | if (c==a,i,u,e,o) {
| ^
a.cc:8:14: error: 'u' was not declared in this scope
8 | if (c==a,i,u,e,o) {... |
s460315370 | p03852 | C++ | #include <cstdio>
int main()
{
char C;
scanf("%c",&C);
if(C=='a'||C=='i'||C=='u'||C=='e'||C=='o'&&'a'<=&&'z'>=C){
printf("vowel");}
else{
printf("consonat");}
return 0;} | a.cc: In function 'int main()':
a.cc:8:59: error: expected identifier before 'z'
8 | if(C=='a'||C=='i'||C=='u'||C=='e'||C=='o'&&'a'<=&&'z'>=C){
| ^~~
a.cc:8:59: error: expected ')' before 'z'
8 | if(C=='a'||C=='i'||C=='u'||C=='e'||C... |
s092748947 | p03852 | C++ | #include <cstdio>
int main()
{
char X;
scanf("%c",&X);
if(X=='a'||X=='i'||X=='u'||X=='e'||X=='o'){
printf("vowel");}
else{
printf("consonat");}
r | a.cc: In function 'int main()':
a.cc:12:9: error: 'r' was not declared in this scope
12 | r
| ^
a.cc:12:10: error: expected '}' at end of input
12 | r
| ^
a.cc:4:1: note: to match this '{'
4 | {
| ^
|
s044375997 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef unsigned long long ull;
int main(){
char c;
cin>>c;
if(c=='a'||c=='e'||c=='i'||c=='o'||c='u'){
cout<<"vowel";
}
else cout<<"consonant";
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:42: error: lvalue required as left operand of assignment
9 | if(c=='a'||c=='e'||c=='i'||c=='o'||c='u'){
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
|
s069589715 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef unsigned long long ull;
int main(){
char c;
cin>>c;
if(c=='a'||c=='e'||c=='i'||c=='o'||c='u'){
cout<<"vowel";
}
else cout<<"consonant";
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:42: error: lvalue required as left operand of assignment
9 | if(c=='a'||c=='e'||c=='i'||c=='o'||c='u'){
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
|
s597461146 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s;
cin>>s;
switch(s){
case "a":
case "i":
case "u":
case "e":
case "o":
cout<<"vowel"<<endl;
break;
default:
cout<<"consonant"<<endl;
}... | a.cc: In function 'int main()':
a.cc:8:16: error: switch quantity not an integer
8 | switch(s){
| ^
|
s559031737 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char a;
int >>a;
if(a == 'a'|| a == 'e'|| a == 'i'|| a == 'u'|| a == 'o') cout << "vowel" << endl;
else cout << "consonant" << endl;
} | a.cc: In function 'int main()':
a.cc:6:7: error: expected unqualified-id before '>>' token
6 | int >>a;
| ^~
|
s340377634 | p03852 | C++ | #include<stdio.h>
#include<stdlib.h>
int main(){
int c,a,e,i,o,u;
scanf("%c",&c);
if(c=getchar()=a,e,i,o,u){
printf("vowel");
}else{
printf("consonant");
}
system("pause");
} | a.cc: In function 'int main()':
a.cc:6:21: error: lvalue required as left operand of assignment
6 | if(c=getchar()=a,e,i,o,u){
| ~~~~~~~^~
|
s429566744 | p03852 | C | #include <stdio.h>
int main() {
char c;
scanf ("%c",&c);
if (c==a) {
printf("vowel\n");
} else if (c==e) {
printf ("vowel\n");
} else if (c==i) {
printf ("vowel\n") ;
} else if (c==o) {
printf("vowel\n"); }
else if (c==u) {
printf("vowel\n");
} else {
printf ("consonant\n");
}
return 0;
}... | main.c: In function 'main':
main.c:6:16: error: 'a' undeclared (first use in this function)
6 | if (c==a) {
| ^
main.c:6:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:23: error: 'e' undeclared (first use in this function)
8 | ... |
s821991073 | p03852 | C | #include <stdio.h>
int main() {
char c;
scanf ("%c",&c);
if (c=='a') {
printf("vowel\n");
} else if (c=='e') {
printf ("vowel\n");
} else if (c=='i') {
printf ("vowel\n") ;
} else if (c=='o') {
printf("vowel\n"); }
else if (c=='u') {
printf("vowel\n");
} else {
printf ("consonant\n");
}
re... | main.c: In function 'main':
main.c:12:19: error: expected '(' before '\U0000ff08c'
12 | } else if (c=='o') {
| ^~~
| (
main.c:12:19: error: '\U0000ff08c' undeclared (first use in this function)
12 | } else if (c=='o') {
| ^~~
... |
s121039222 | p03852 | Java | import java.util.*;
public class Vowel {
public static void main(String[] args) {
// TODO 自动生成的方法存根
Scanner sc=new Scanner(System.in);
String c=sc.nextLine();
switch(c) {
case "a":
System.out.println("vowel");
break;
case "e":
System.out.println("vowel");
break;
... | Main.java:2: error: class Vowel is public, should be declared in a file named Vowel.java
public class Vowel {
^
1 error
|
s639102139 | p03852 | Java | import java.util.*;
public class Vowel {
public static void main(String[] args) {
// TODO 自动生成的方法存根
Scanner sc=new Scanner(System.in);
String c=sc.nextLine();
switch(c) {
case "a":
System.out.println("vowel");
break;
case "e":
System.out.println("vowel");
break;
... | Main.java:2: error: class Vowel is public, should be declared in a file named Vowel.java
public class Vowel {
^
1 error
|
s774166435 | p03852 | C++ | #include<bits/stdc++.h>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:1:30: warning: extra tokens at end of #include directive
1 | #include<bits/stdc++.h>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:1:9: fatal error: bits/stdc++.h>... |
s595240973 | p03852 | C++ | #include<iostream>
using namespace std;
int main()
{
char n;
cin>>n;
if(n==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:11: error: 'a' was not declared in this scope
7 | if(n==a||a==e||a==i||a==o||a==u)
| ^
a.cc:7:17: error: 'e' was not declared in this scope
7 | if(n==a||a==e||a==i||a==o||a==u)
| ^
a.cc:7:23: error: 'i' was not declared in this... |
s578011262 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
char a[5]={'a','e','i','o','u'};
int main(){
char c;
c=putchar();
for(int i=0;i<5;i++){
if(c==a[i]){
cout<<"vowel"<<endl;
return 0;
}
}
cout<<"consonant"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:14: error: too few arguments to function 'int putchar(int)'
6 | c=putchar();
| ~~~~~~~^~
In file included from /usr/include/c++/14/cstdio:42,
from /usr/include/c++/14/ext/string_conversions.h:45,
from /usr/include/c++/14/bits/b... |
s763197178 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
char a[5]={'a','e','i','o','u');
int main(){
char c;
c=putchar();
for(int i=0;i<5;i++){
if(c==a[i]){
cout<<"vowel"<<endl;
return 0;
}
}
cout<<"consonant"<<endl;
return 0;
} | a.cc:3:31: error: expected '}' before ')' token
3 | char a[5]={'a','e','i','o','u');
| ~ ^
a.cc:3:31: error: expected ',' or ';' before ')' token
a.cc: In function 'int main()':
a.cc:6:14: error: too few arguments to function 'int putchar(int)'
6 | c=putchar();
| ... |
s740625683 | p03852 | C++ | #include<iostream>
using namespace std;
int main()
{
char a;
cin>>a;
if(a=='a'||a=='o'||a=='i'||a='u'||a='e')
cout<<"vowel";
else
cout<<"consonant";
} | a.cc: In function 'int main()':
a.cc:7:37: error: lvalue required as left operand of assignment
7 | if(a=='a'||a=='o'||a=='i'||a='u'||a='e')
| ~~~^~~
|
s735224690 | p03852 | C++ | #include<iostream>
using namespace std;
int main(){
int A;
cin>>A;
if(A==a||A==b||A==c||A==d||A==e){
cout<<"vowel"<<endl;
}
else{
cout<<"consonant"<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:6:9: error: 'a' was not declared in this scope
6 | if(A==a||A==b||A==c||A==d||A==e){
| ^
a.cc:6:15: error: 'b' was not declared in this scope
6 | if(A==a||A==b||A==c||A==d||A==e){
| ^
a.cc:6:21: error: 'c' was not declared in this scope
... |
s139256717 | 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:7:7: error: extended character ‘ is not valid in an identifier
7 | if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘o’){
| ^
a.cc:7:7: error: extended character ’ is not valid in an identifier
a.cc:7:15: error: extended character ‘ is not valid in an identifier
7 | if(c==‘a’||c==‘i’||c==‘u’||c==‘e’||c==‘... |
s348820909 | p03852 | C | #include<stdio.h>
int main(){
char c;
scanf("%c",&c);
if(c=='a'||c=='i'||c=='u'||c=='e'||c=='a'||c=='o')puts("vowel");
else put("consonant");
return 0;
} | main.c: In function 'main':
main.c:7:6: error: implicit declaration of function 'put'; did you mean 'puts'? [-Wimplicit-function-declaration]
7 | else put("consonant");
| ^~~
| puts
|
s665560948 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >>s;
switch(s) {
case 'a':
case 'i':
case 'u':
case 'e':
case 'o':
cout << "vowel" << endl;
break;
default:
cout << "consonant" << endl;
}
}
| a.cc:15:10: error: extended character is not valid in an identifier
15 | cout << "consonant" << endl;
| ^
a.cc: In function 'int main()':
a.cc:6:10: error: switch quantity not an integer
6 | switch(s) {
| ^
a.cc:15:10: error: '\U00003000' was not declared in this scope
15 |... |
s468252236 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >>s;
switch(s) {
case 'a':
case 'i':
case 'u':
case 'e':
case 'o':
cout << 'vowel' << endl;
break;
default:
cout << 'consonant' << endl;
}
} | a.cc:12:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
12 | cout << 'vowel' << endl;
| ^~~~~~~
a.cc:15:10: error: extended character is not valid in an identifier
15 | cout << 'consonant' << endl;
| ^
a.cc:15:12: warning: multi-character l... |
s170158356 | p03852 | C++ | #include <iostream>
#include <string>
using namespace std;
string divide[4] = {"dream", "dreamer", "erase", "eraser"};
bool dp[100010];
int main() {
string S;
cin >> S;
dp[0] = 1;
for(int i = 0; i < S.size(); ++i){
for(string s : divide){
if(S.substr(i, s.size()) == s){ // うまく切... | a.cc: In function 'int main()':
a.cc:16:36: error: 'd' was not declared in this scope
16 | dp[i + s.size()] = d[i];
| ^
|
s927196433 | 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') {
} | a.cc: In function 'int main()':
a.cc:13:2: error: expected '}' at end of input
13 | }
| ^
a.cc:5:1: note: to match this '{'
5 | {
| ^
|
s798985265 | p03852 | Java | import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
char c = sc.next().charAt(0);
char vowels = new char[]{'a','i','u','e','o'};
for(char v:vowels) if(c==v){
System.out.println("vowel");
... | Main.java:8: error: incompatible types: char[] cannot be converted to char
char vowels = new char[]{'a','i','u','e','o'};
^
Main.java:9: error: for-each not applicable to expression type
for(char v:vowels) if(c==v){
^
required: array or java.lang.Iterable
fou... |
s644951429 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
char A;
cin>>A;
if (A=='a'||A=='e'||A=='i'||A='i'||A=='o'||A=='u'){
cout<<"vowel"<<endl;
}
else{
cout<<"consonant"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:7:29: error: lvalue required as left operand of assignment
7 | if (A=='a'||A=='e'||A=='i'||A='i'||A=='o'||A=='u'){
| ~~~~~~~~~~~~~~~~~~~~~~^~~
|
s063502319 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
chat A;
cin>>A;
if (A=='a'||A=='e'||A=='i'||A='i'||A=='o'||A=='u'){
cout<<"vowel"<<endl;
}
else{
cout<<"consonant"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:5:1: error: 'chat' was not declared in this scope; did you mean 'char'?
5 | chat A;
| ^~~~
| char
a.cc:6:6: error: 'A' was not declared in this scope
6 | cin>>A;
| ^
|
s892363958 | p03852 | C++ | #include <iostream>
using namespace std;
int main(){
char c;
cin>>c;
if(c=='a' || 'i' || 'u' || 'e' || 'o'){
cout<<"vowel"<<endl;
else
cout<<"consonant"<<endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:3: error: expected '}' before 'else'
8 | else
| ^~~~
a.cc:6:41: note: to match this '{'
6 | if(c=='a' || 'i' || 'u' || 'e' || 'o'){
| ^
a.cc: At global scope:
a.cc:11:3: error: expected unqualified-id before 'return... |
s033304357 | p03852 | C++ | #include <iostream>
using namespace std;
int main(){
char c;
cin>>c;
if(c=='a' || 'i' || 'u' || 'e' || 'o')
cout<<"vowel"<<endl;
else
cout<<"consonant"<<endl;
}
return 0;
}
| a.cc:11:3: error: expected unqualified-id before 'return'
11 | return 0;
| ^~~~~~
a.cc:12:1: error: expected declaration before '}' token
12 | }
| ^
|
s090765685 | p03852 | C++ | #include <iostream>
using namespace std;
int main(){
char c;
cin>>c;
if(c=='a' || 'i' || 'u' || 'e' || 'o')
cout<<vowel<<endl;
else
cout<<consonant<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:11: error: 'vowel' was not declared in this scope
7 | cout<<vowel<<endl;
| ^~~~~
a.cc:9:11: error: 'consonant' was not declared in this scope
9 | cout<<consonant<<endl;
| ^~~~~~~~~
a.cc: At global scope:
a.cc:11:3: error: expected un... |
s720303613 | p03852 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String s=sc.next();
if(s.contains(a)||s.contains(i)||s.contains(u)||s.contains(e)||s.contains(o)){
System.out.println("vowel");
}else{System.out.println("consonant");}
}} | Main.java:6: error: cannot find symbol
if(s.contains(a)||s.contains(i)||s.contains(u)||s.contains(e)||s.contains(o)){
^
symbol: variable a
location: class Main
Main.java:6: error: cannot find symbol
if(s.contains(a)||s.contains(i)||s.contains(u)||s.contains(e)||s.contains(o)){
... |
s692282414 | p03852 | C++ | #include <iostream>
using namespace std;
int main()
{
char c;
cin >> c;
if(c == 'a' || c == 'i' || c == 'e' || c == 'u' || c == 'o'){
cout << "vowel" << endl;
}else{
cout << "consonant" << endl;
}
cout << ans << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:13:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
13 | cout << ans << endl;
| ^~~
| abs
|
s078538534 | 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<<"cousonant"<<endl;}
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:6: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){cout<<"vowel"<<endl;}
| ~^~~~~
a.cc:6:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if(c=="a"||... |
s307091258 | 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<<"cousonant"<<endl;}
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:8: error: 'a' was not declared in this scope
6 | if(c==a||c==e||c==i||c==o||c==u){cout<<"vowel"<<endl;}
| ^
a.cc:6:14: error: 'e' was not declared in this scope
6 | if(c==a||c==e||c==i||c==o||c==u){cout<<"vowel"<<endl;}
| ^
a.cc:6:20: erro... |
s425603324 | 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<<"cousonant"<<endl;}
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:8: error: 'a' was not declared in this scope
7 | if(c==a||c==e||c==i||c==o||c==u){cout<<"vowel"<<endl;}
| ^
a.cc:7:14: error: 'e' was not declared in this scope
7 | if(c==a||c==e||c==i||c==o||c==u){cout<<"vowel"<<endl;}
| ^
a.cc:7:20: erro... |
s057357983 | p03852 | C++ | // Example program
#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<<"vowel"<<endl;}
else{cout<<"consonant"<<endl;}
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){cout<<"vowel"<<endl;}
| ~^~~~~
a.cc:8:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(c=="a... |
s101219984 | 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:8:32: error: lvalue required as left operand of assignment
8 | if(c="a"||c="e"||c="i"||c="o"||c="u"){cout<<"vowel"<<endl;}
| ~~~^~~
|
s859935927 | 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:8:32: error: lvalue required as left operand of assignment
8 | if(c="a"||c="e"||c="i"||c="o"||c="u"){cout<<"vowel"<<endl;}
| ~~~^~~
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.