submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s932016128 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin << c;
if (c == a || c == i || c == u || c == e || c == o) {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:6: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... |
s639846112 | p03852 | C++ | #include <iostream>
using namespace std;
int main()
{
char c; cin >> c;
char arr[] = {'a', 'e', 'i', 'o', 'u'};
for(int i = 0; i < 5; ++i) {
if(c == arr[i]) {
cout << "vowel";
return 0;
}
cout << "consonant";
return 0;
} | a.cc: In function 'int main()':
a.cc:15:2: error: expected '}' at end of input
15 | }
| ^
a.cc:5:1: note: to match this '{'
5 | {
| ^
|
s422999499 | p03852 | C++ | #include <iostream>
using namespace std;
int main()
{
char c; cin >> c;
char arr[] = {'a', 'e', 'i', 'o', 'u'};
for(int i == 0; i < 5; ++i) {
if(c == arr[i]) {
cout << "vowel";
return 0;
}
cout << "consonant";
return 0;
} | a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before '==' token
8 | for(int i == 0; i < 5; ++i) {
| ^~~
| ;
a.cc:8:13: error: expected primary-expression before '==' token
8 | for(int i == 0; i < 5; ++i) {
| ^~
a.cc:8:24: error: expected '... |
s028681359 | p03852 | C++ | #include <iostream>
using namespace std;
int main()
{
char c; cin >> c;
char arr = {'a', 'e', 'i', 'o', 'u'};
for(int i == 0; i < 5; ++i) {
if(c == arr[i]) {
cout << "vowel";
return 0;
}
cout << "consonant";
return 0;
} | a.cc: In function 'int main()':
a.cc:7:8: error: scalar object 'arr' requires one element in initializer
7 | char arr = {'a', 'e', 'i', 'o', 'u'};
| ^~~
a.cc:8:12: error: expected ';' before '==' token
8 | for(int i == 0; i < 5; ++i) {
| ^~~
| ;
a.cc:8:13: erro... |
s062848118 | 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 << consonate << endl;
} | a.cc: In function 'int main()':
a.cc:9:13: error: 'vowel' was not declared in this scope
9 | cout << vowel << endl;
| ^~~~~
a.cc:11:13: error: 'consonate' was not declared in this scope
11 | cout << consonate << endl;
| ^~~~~~~~~
|
s478949194 | p03852 | C++ | #include <iostream>
#include <stdio.h>
#include <string.h>
#include <algorithm>
#include <allocators>
#include <array>
#include <cfloat>
using namespace std;
int main (){
char c;
cin >> c;
if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u')
cout << "vowel";
}else
{
cout << "consonant";
}
} | a.cc:5:10: fatal error: allocators: No such file or directory
5 | #include <allocators>
| ^~~~~~~~~~~~
compilation terminated.
|
s943976857 | p03852 | C++ | #include <iostream>
#include <stdio.h>
#include <string.h>
#include <algorithm>
#include <allocators>
#include <array>
#include <cfloat>
using namespace std;
int main (){
char c;
cin >> c;
if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u')
cout << "vowel";
}else
{
cout << "consonant";
} | a.cc:5:10: fatal error: allocators: No such file or directory
5 | #include <allocators>
| ^~~~~~~~~~~~
compilation terminated.
|
s809931920 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if( s==a || s==b || s==c || s==d || s==e){
cout << vowel << endl;
}
else {
cout << consonant << endl;
}
}
}
| a.cc: In function 'int main()':
a.cc:8:12: error: 'a' was not declared in this scope
8 | if( s==a || s==b || s==c || s==d || s==e){
| ^
a.cc:8:20: error: 'b' was not declared in this scope
8 | if( s==a || s==b || s==c || s==d || s==e){
| ^
a.cc:8:28: error: 'c' ... |
s292730156 | p03852 | C++ | #include <cstdio>
using namespace std;
int main() {
char ch;
cin >> ch;
if(ch == 'a' || ch == 'i' || ch == 'u' || ch == 'e' || ch == 'o') {
cout << "vowel" << endl;
} else {
cout << "consonant" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
6 | cin >> ch;
| ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
1 | #include <cstdio>
+++ |+#include <iostream>
2 | using namespace st... |
s478420172 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char c;
cin >> c;
switch(c){
case 'a':
case 'e':
case 'i':
case 'o':
case 'u':
cout << "vowel" << endl;
break;
default;
cout << "consonant" << endl;
break;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:15:12: error: expected ':' before ';' token
15 | default;
| ^
| :
|
s436687167 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char c;
cin >> c;
switch(c){
case 'a':
case 'e':
case 'i':
case 'o':
case 'u':
cout << "vowel" << endl;
break;
default;
cout << "consonant" << endl;
break;
}
return 0
}
| a.cc: In function 'int main()':
a.cc:15:12: error: expected ':' before ';' token
15 | default;
| ^
| :
a.cc:19:11: error: expected ';' before '}' token
19 | return 0
| ^
| ;
20 | }
| ~
|
s526485458 | p03852 | C | #include<stdio.h>
int main()
{
char c;
scanf_s("%c", &c);
if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o')
printf("vome1");
else
printf("consonant");
return 0;
} | main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
5 | scanf_s("%c", &c);
| ^~~~~~~
| scanf
|
s205071447 | p03852 | C | #include<stdio.h>
int main()
{
char c;
scanf_s("%c", &c);
if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o')
printf("vome1");
else
printf("consonant");
return 0;
} | main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
5 | scanf_s("%c", &c);
| ^~~~~~~
| scanf
|
s364589916 | p03852 | C | #include<stdio.h>
int main()
{
char c;
scanf_s("%c", &c);
if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o')
printf("vome1");
else
printf("consonant");
return 0;
} | main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
5 | scanf_s("%c", &c);
| ^~~~~~~
| scanf
|
s147981401 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
string c;
cin >> c;
if (c = "a" || c = "e" || c = "i" || c = "o" || c = "u"){
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:15: error: no match for 'operator||' (operand types are 'const char [2]' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
8 | if (c = "a" || c = "e" || c = "i" || c = "o" || c = "u"){
| ~~~ ^~ ~
| | |
| | s... |
s939626927 | 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:14:5: error: expected '}' before 'else'
14 | else{
| ^~~~
a.cc:13:1: note: to match this '{'
13 | {
| ^
a.cc:14:5: error: expected '}' before 'else'
14 | else{
| ^~~~
a.cc:11:47: note: to match this '{'
11 | if(c=='a'||c=='i'||c=='u'... |
s517539466 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string x;
cin >> x;
string v = a, i, u, e, o;
if ( x=v) {
cout << "vowel" << endl;
}
else {
cout << “consonant” << endl;
}
} | a.cc:12:9: error: extended character “ is not valid in an identifier
12 | cout << “consonant” << endl;
| ^
a.cc:12:9: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:7:14: error: 'a' was not declared in this scope
7 | string v = a, i, u, e, o;
... |
s099539712 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if( c == 'a' ){
cout << "vowel";}
else{
cout << "consonant";}
}
if( c == 'i' ){
cout << "vowel";}
else{
cout << "consonant";}
}
if( c == 'u' ){
cout << "vowel";}
else{
cout << "consonant";}
}
if( c == 'e' ){
cout << "vowel";}
else{
cout << "... | a.cc:12:1: error: expected unqualified-id before 'if'
12 | if( c == 'i' ){
| ^~
a.cc:14:1: error: expected unqualified-id before 'else'
14 | else{
| ^~~~
a.cc:16:1: error: expected declaration before '}' token
16 | }
| ^
a.cc:17:1: error: expected unqualified-id before 'if'
17 | if( c == '... |
s778765458 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char 'a' < c < 'z';
cin >> c;
if( c == 'a' ){
cout << "vowel";}
if( c == 'i' ){
cout << "vowel";}
if( c == 'u' ){
cout << "vowel";}
if( c == 'e' ){
cout << "vowel";}
if( c == 'o' ){
cout << "vowel";}
else{
cout << "consonant";}
} | a.cc: In function 'int main()':
a.cc:5:6: error: expected unqualified-id before 'a'
5 | char 'a' < c < 'z';
| ^~~
a.cc:6:8: error: 'c' was not declared in this scope
6 | cin >> c;
| ^
|
s505636447 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string x;
cin >> x;
string y = a, i, u, e, o;
if (x == y){
cout << "vowel” << endl;
}
else{
cout << “consonant” << endl;
}
}
| a.cc:10:9: warning: missing terminating " character
10 | cout << "vowel” << endl;
| ^
a.cc:10:9: error: missing terminating " character
10 | cout << "vowel” << endl;
| ^~~~~~~~~~~~~~~~
a.cc:13:13: error: extended character “ is not valid in an identifier
13 | cout << “consonant”... |
s342813080 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string x;
cin >> x;
if (x == “a”){
cout << "vowel” << endl;
}
if (x==”i”){
cout << "vowel” << endl;
}
if (x==”u”){
cout << "vowel” << endl;
}
if (x==”e”){
cout << "vowel” << endl;
}
if (x== “o”) {
cout << "vowel” << endl;
}
else{
cou... | a.cc:8:12: error: extended character “ is not valid in an identifier
8 | if (x == “a”){
| ^
a.cc:8:12: error: extended character ” is not valid in an identifier
a.cc:9:9: warning: missing terminating " character
9 | cout << "vowel” << endl;
| ^
a.cc:9:9: error: missing terminati... |
s993539629 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
char c;
cin >> c;
if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == u)
{
cout << "vowel" << endl;
}
else
{
cout << "cosonant" << endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:62: error: 'u' was not declared in this scope
8 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == u)
| ^
|
s246129431 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string x;
cin >> x;
if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
cout << "vowel” << endl;
}
else{
count << “consonant” << endl;
}
}
| a.cc:8:12: error: extended character “ is not valid in an identifier
8 | if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
| ^
a.cc:8:12: error: extended character ” is not valid in an identifier
a.cc:8:22: error: extended character ” is not valid in an identifier
8 | if (x == “a” || ... |
s944371079 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
cout << "vowel” << endl;
}
else{
count << “consonant” << endl;
}
}
| a.cc:8:12: error: extended character “ is not valid in an identifier
8 | if (x == “a” || x==”i” || x==”u” || x==”e” ||x== “o”) {
| ^
a.cc:8:12: error: extended character ” is not valid in an identifier
a.cc:8:22: error: extended character ” is not valid in an identifier
8 | if (x == “a” || ... |
s484026627 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
if (x == “a” || ”i” || ”u” || ”e” || “o”) {
cout << "vowel” << endl;
}
else{
count << “consonant” << endl;
}
}
| a.cc:8:12: error: extended character “ is not valid in an identifier
8 | if (x == “a” || ”i” || ”u” || ”e” || “o”) {
| ^
a.cc:8:12: error: extended character ” is not valid in an identifier
a.cc:8:19: error: extended character ” is not valid in an identifier
8 | if (x == “a” || ”i” || ”u” |... |
s903703280 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string a,b;
cin << a << b;
cout << "A" << b.at(0) << "C" << 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 'std::string' {aka 'std::__cxx11::basic_string<char>'})
6 | cin << a << b;
| ~~~ ^~ ~
| | |
| | std::string {aka std::__cxx11::basic_s... |
s800795710 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
char c;
cin >> c;
if(c == "a"||c == "i"||c == "u"||c == "e"||c == "o"){
cout << "vowel" << endl;
}
else cout << "consonant" << endl;
} | a.cc: In function 'int main()':
a.cc:7:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c == "a"||c == "i"||c == "u"||c == "e"||c == "o"){
| ~~^~~~~~
a.cc:7:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c == "a"||c ==... |
s416781799 | 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" << endl;
else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:9:3: error: expected '}' before 'else'
9 | else {
| ^~~~
a.cc:7:65: note: to match this '{'
7 | if (a == 'a' || a == 'e' || a == 'i' || a == 'o' || a == 'u') {
| ^
|
s803666456 | 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" << endl;
eise {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:9:3: error: 'eise' was not declared in this scope
9 | eise {
| ^~~~
a.cc:12:2: error: expected '}' at end of input
12 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s147963856 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
void main() {
char a;
cin >> a;
if (a == 'a' || a == 'e' || a == 'i' || a == 'o' || a == 'u') {
cout << "vowel" << endl;
eise {
cout << "consonant" << endl;
}
}
| a.cc:4:1: error: '::main' must return 'int'
4 | void main() {
| ^~~~
a.cc: In function 'int main()':
a.cc:9:3: error: 'eise' was not declared in this scope
9 | eise {
| ^~~~
a.cc:12:2: error: expected '}' at end of input
12 | }
| ^
a.cc:4:13: note: to match this '{'
4 | void main()... |
s783255135 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int c ;
cin >> c;
if(c =='a'){
cout<<"vowel"<<endl;
}else if(c == 'e'){
cout<<"vowel"<<endl;
}else if(c == 'i'){
cout<<"vowel"<<endl;
}else if(c == 'o'){
cout<<"vowel"<<endl;
}else if(c == 'u')[
cout<<"vowel"<<endl;
}else{
cout<<"consonant"<<e... | a.cc: In function 'int main()':
a.cc:17:1: warning: capture of variable 'std::cout' with non-automatic storage duration
17 | cout<<"vowel"<<endl;
| ^~~~
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:63:18: note: 'std::os... |
s620945702 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int c ;
cin >> c;
if(c =='a'){
cout<<"vowel"<<endl;
}else if(c == 'e'){
cout<<"vowel"<<endl;
}else if(c == 'i'){
cout<<"vowel"<<endl;
}else if(c== 'o'){
cout"vowel"<<endl;
}else if(c=='u')[
cout<<"vowel"<<endl;
}else{
cout<<"consonant"<<endl;
... | a.cc: In function 'int main()':
a.cc:15:5: error: expected ';' before string constant
15 | cout"vowel"<<endl;
| ^~~~~~~
| ;
a.cc:17:1: warning: capture of variable 'std::cout' with non-automatic storage duration
17 | cout<<"vowel"<<endl;
| ^~~~
In file included from /usr/include/x86_64-l... |
s993528895 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int c ;
cin >> c;
if(c =='a'){
cout<<"vowel"<<endl;
}else if(c == 'e'){
cout<<"vowel<<endl;
}else if(c == 'i'){
cout<<"vowel"<<endl;
}else if(c== 'o'){
cout"vowel"<<endl;
}else if(c=='u')[
cout<<vowel<<endl;
}else{
cout<<"consonant"<<endl;
}... | a.cc:11:7: warning: missing terminating " character
11 | cout<<"vowel<<endl;
| ^
a.cc:11:7: error: missing terminating " character
11 | cout<<"vowel<<endl;
| ^~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:12:1: error: expected primary-expression before '}' token
12 | }else if(c == '... |
s646476608 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int 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:9:7: error: 'vowel' was not declared in this scope
9 | cout<<vowel<<endl;
| ^~~~~
a.cc:11:7: error: 'consonant' was not declared in this scope
11 | cout<<consonant<<endl;
| ^~~~~~~~~
|
s603962810 | p03852 | C++ | #include<stdio.h>
int main(void)
{
char c;
scanf("%c",&c);
if (c== 'a') {
printf("vowel\n");
}
else if(c== 'i') {
printf("vowel\n");
}
else if(c== 'u') {
printf("vowel\n");
}
else if(c== 'e') {
printf("vowel\n");
}
else if(c== 'o') {
printf("vowel\n");
}
else {
printf("consonant\n");
}
r... | a.cc:8:23: error: extended character is not valid in an identifier
8 | if (c== 'a') {
| ^
a.cc: In function 'int main()':
a.cc:8:23: error: '\U00003000' was not declared in this scope
8 | if (c== 'a') {
| ^~
|
s237762428 | p03852 | C++ | #include<stdio.h>
int main(void)
{
char c;
scanf("%c",&c);
if(c==a) {
printf("vowel\n");
}
else if(c==i) {
printf("vowel\n");
}
else if(c==u) {
printf("vowel\n");
}
else if(c==e) {
printf("vowel\n");
}
else if(c==o) {
printf("vowel\n");
}
else {
printf("consonant\n");
}
return 0;
}
| a.cc:8:19: error: extended character is not valid in an identifier
8 | if(c==a) {
| ^
a.cc: In function 'int main()':
a.cc:8:15: error: 'a' was not declared in this scope
8 | if(c==a) {
| ^
a.cc:8:19: error: '\U00003000' was not declared in this sc... |
s561854244 | p03852 | C++ | #include<stdio.h>
int main(void)
{
char c;
scanf("%c",&c);
if(c=='a') {
printf("vowel\n");
}
else if(c=='i') {
printf("vowel\n");
}
else if(c=='u') {
printf("vowel\n");
}
else if(c=='e') {
printf("vowel\n");
}
else if(c=='o') {
printf("vowel\n");
}
else {
printf("consonant\n");
}
return 0;
}
... | a.cc:8:21: error: extended character is not valid in an identifier
8 | if(c=='a') {
| ^
a.cc: In function 'int main()':
a.cc:8:21: error: '\U00003000' was not declared in this scope
8 | if(c=='a') {
| ^~
|
s221659597 | p03852 | C++ | #include<stdio.h>
int main(void)
{
char s;
scanf("%c",&s);
if(s=='a') {
printf("vowel\n");
}
else if(s=='i') {
printf("vowel\n");
}
else if(s=='u') {
printf("vowel\n");
}
else if(s=='e') {
printf("vowel\n");
}
else if(s=='o') {
printf("vowel\n");
}
else {
printf("consonant\n");
}
return 0;
}
... | a.cc:8:21: error: extended character is not valid in an identifier
8 | if(s=='a') {
| ^
a.cc: In function 'int main()':
a.cc:8:21: error: '\U00003000' was not declared in this scope
8 | if(s=='a') {
| ^~
|
s648726159 | p03852 | C++ | #include<stdio.h>
int main(void)
{
char s;
scanf("%c",&s);
if(s=='a') {
printf("vowel\n");
}
else if(s=='i') {
printf("vowel\n");
}
else if(s=='u') {
printf("vowel\n");
}
else if(s=='e') {
printf("vowel\n");
}
else if(s=='o') {
printf("vowel\n");
}
else {
printf("consonant\n");
}
return 0;
}
... | a.cc:8:21: error: extended character is not valid in an identifier
8 | if(s=='a') {
| ^
a.cc: In function 'int main()':
a.cc:8:21: error: '\U00003000' was not declared in this scope
8 | if(s=='a') {
| ^~
|
s319444450 | p03852 | C++ | #include<stdio.h>
int main(void)
{
char s,a,i,u,e,o;
scanf("%c",&s);
if(s=='a') {
printf("vowel\n");
}
else if(s=='i') {
printf("vowel\n");
}
else if(s=='u') {
printf("vowel\n");
}
else if(s=='e') {
printf("vowel\n");
}
else if(s=='o') {
printf("vowel\n");
}
else {
printf("consonant\n");
}
ret... | a.cc:8:21: error: extended character is not valid in an identifier
8 | if(s=='a') {
| ^
a.cc: In function 'int main()':
a.cc:8:21: error: '\U00003000' was not declared in this scope
8 | if(s=='a') {
| ^~
|
s523445312 | p03852 | C++ | #include<stdio.h>
int main(void)
{
char s,a,i,u,e,o;
scanf("%c",&s);
if(s==a) {
printf("vowel\n");
}
else if(s==i) {
printf("vowel\n");
}
else if(s==u) {
printf("vowel\n");
}
else if(s==e) {
printf("vowel\n");
}
else if(s==o) {
printf("vowel\n");
}
else {
printf("consonant\n");
}
return 0;
}
... | a.cc:8:19: error: extended character is not valid in an identifier
8 | if(s==a) {
| ^
a.cc: In function 'int main()':
a.cc:8:19: error: '\U00003000' was not declared in this scope
8 | if(s==a) {
| ^~
|
s454458344 | p03852 | C++ | #include<stdio.h>
int main(void)
{
char s,a,i,u,e,o;
scanf("%c",s);
if(s==a) {
printf("vowel\n");
}
else if(s==i) {
printf("vowel\n");
}
else if(s==u) {
printf("vowel\n");
}
else if(s==e) {
printf("vowel\n");
}
else if(s==o) {
printf("vowel\n");
}
else {
printf("consonant\n");
}
return 0;
}
| a.cc:8:19: error: extended character is not valid in an identifier
8 | if(s==a) {
| ^
a.cc: In function 'int main()':
a.cc:8:19: error: '\U00003000' was not declared in this scope
8 | if(s==a) {
| ^~
|
s859956968 | p03852 | C++ | #include<stdio.h>
int main(void)
{
char s,a,i,u,e,o;
scanf("%c",s);
if(s=='a') {
printf("vowel\n");
}
else if(s=='i') {
printf("vowel\n");
}
else if(s=='u') {
printf("vowel\n");
}
else if(s=='e') {
printf("vowel\n");
}
else if(s=='o') {
printf("vowel\n");
}
else {
printf("consonant\n");
}
retu... | a.cc:8:21: error: extended character is not valid in an identifier
8 | if(s=='a') {
| ^
a.cc: In function 'int main()':
a.cc:8:21: error: '\U00003000' was not declared in this scope
8 | if(s=='a') {
| ^~
|
s253214255 | p03852 | C++ | #include<stdio.h>
int main(void)
{
char s,a,i,u,e,o;
scanf("%c",s);
if(s==a) {
printf("vowel\n");
}
else if(s=='i') {
printf("vowel\n");
}
else if(s=='u') {
printf("vowel\n");
}
else if(s=='e') {
printf("vowel\n");
}
else if(s=='o') {
printf("vowel\n");
}
else {
printf("consonant\n");
}
return... | a.cc:8:19: error: extended character is not valid in an identifier
8 | if(s==a) {
| ^
a.cc: In function 'int main()':
a.cc:8:19: error: '\U00003000' was not declared in this scope
8 | if(s==a) {
| ^~
|
s404673006 | p03852 | C++ | #include <iostream>
#include <algorithm>
#include <vector>
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:14:45: error: expected '}' at end of input
14 | cout << "consonant" << endl;
| ^
a.cc:8:1: note: to match this '{'
8 | {
| ^
|
s776084174 | 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:7:10: 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:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(... |
s823861333 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
char c;
cin >> c;
if (c == 'a' || c == 'b')
cout << vowel << endl;
if (c == 'c' || c == 'd')
cout << vowel << endl;
if (c == 'e')
cout << vowel << endl;
else {cout << consonant << endl;;}
}
| a.cc: In function 'int main()':
a.cc:8:9: error: 'vowel' was not declared in this scope
8 | cout << vowel << endl;
| ^~~~~
a.cc:10:10: error: 'vowel' was not declared in this scope
10 | cout << vowel << endl;
| ^~~~~
a.cc:12:10: error: 'vowel' was not declared in this scope
12 | ... |
s339269033 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
int main(){
string a;
cin>>a;
if(a=='a'||a=='i'){
if(a=='u'||a=='e'||a=='o'){
cout<<"vowel"<<endl;
} }else{
cout<<"consonant"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:8:7: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
8 | if(a=='a'||a=='i'){
| ~^~~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In fil... |
s217070796 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
int main(){
string a;
cin>>a;
if(a=='a'||a=='i'||a=='u'||a=='e'||a=='o'){
cout<<"vowel"<<endl;
}else{
cout<<"consonant"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:8:7: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
8 | if(a=='a'||a=='i'||a=='u'||a=='e'||a=='o'){
| ~^~~~~
| | |
| | char
| std::string {aka std::__cxx11::ba... |
s983653150 | p03852 | C++ | #include <iostream>
using namespace std;
int main(){
int c;
cin >> c;
bool flg = false;
char check[5] = {'a','i','u','e','o'};
for(int i = 0; i < 5; ++i){
if(c == check[i]){
flg = true;
break;
}
}
cout << ((flg) ? "vowel" : "consonant" << endl;
} | a.cc: In function 'int main()':
a.cc:15:42: error: invalid operands of types 'const char [10]' and '<unresolved overloaded function type>' to binary 'operator<<'
15 | cout << ((flg) ? "vowel" : "consonant" << endl;
| ~~~~~~~~~~~~^~~~~~~
a.cc:15:49: error: expected ')' before ';' ... |
s289885838 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
chr c;
cin >> c;
if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
// ここにプログラムを追記
}
| a.cc: In function 'int main()':
a.cc:6:3: error: 'chr' was not declared in this scope; did you mean 'char'?
6 | chr c;
| ^~~
| char
a.cc:7:10: error: 'c' was not declared in this scope
7 | cin >> c;
| ^
|
s449791663 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
if(c == "a" || "i" || "u" || "e" || "o"){
cout << "vowel" <<endl;
}
else{
cout << "consonant" <<endl;
}
| a.cc: In function 'int main()':
a.cc:12:2: error: expected '}' at end of input
12 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s224786527 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s = "consonant";
char a;
cin >> a;
if(a=='a'||a=='e'||a=='i'||a=='o'||a=='u')
s = vowel;
cout << s << endl;
}
| a.cc: In function 'int main()':
a.cc:9:9: error: 'vowel' was not declared in this scope
9 | s = vowel;
| ^~~~~
|
s150055787 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s = "consonant";
char a;
cin >> a;
if(a=='a'||a=='e'||a=='i'||a=='o'||a=='u')
s = vowel;
cout << s << endl;
}
| a.cc: In function 'int main()':
a.cc:9:9: error: 'vowel' was not declared in this scope
9 | s = vowel;
| ^~~~~
|
s298468936 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s = "consonant"
char a;
cin >> a;
if(a=='a'||a=='e'||a=='i'||a=='o'||a=='u')
s = vowel;
cout << s << endl;
} | a.cc: In function 'int main()':
a.cc:6:3: error: expected ',' or ';' before 'char'
6 | char a;
| ^~~~
a.cc:7:10: error: 'a' was not declared in this scope
7 | cin >> a;
| ^
a.cc:9:9: error: 'vowel' was not declared in this scope
9 | s = vowel;
| ^~~~~
|
s448243606 | 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";
}else{cout<<"consonant";
}
}
| a.cc: In function 'int main()':
a.cc:7:5: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
7 | if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){
| ~^~~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string... |
s028983451 | p03852 | C++ | #include <iostream>
using namespace std;
int main(void)
{
char input;
cin >> input;
switch(input)
{
case 'a'
case 'i'
case 'u'
case 'e'
case 'o'
cout << "vowel" << endl;
break;
default:
cout << "consonant" << endl;
break;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:13:25: error: expected ':' before 'case'
13 | case 'a'
| ^
| :
14 | case 'i'
| ~~~~
a.cc:14:25: error: expected ':' before 'case'
14 | case... |
s535501712 | p03852 | C++ | #include <bits/stdc++.h> //JuniorMonster a.k.a Sho10
#define ll long long
#pragma GCC optimize("O3")
#pragma GCC optimize("Ofast")
#define all(a) (a).begin(), (a).end()
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#define sz size
#define f first
#define s second
#define pb push_back
#de... | a.cc: In function 'int32_t main()':
a.cc:25:30: error: 'i' was not declared in this scope
25 | if(a=='a'||a=='e'||a=='i'||a[i]=='o'||a[i]=='u'){
| ^
|
s826764492 | p03852 | C++ | 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:5:5: error: 'cin' was not declared in this scope
5 | cin >> c;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
+++ |+#include <iostream>
1 | using namespace std;
a.cc:8:9: error: 'co... |
s544259518 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(void){
char c;
cin>>c;
switch (c) {
case a:cout<<vowel<<endl; break;
case e:cout<<vowel<<endl;break;
case i:cout<<vowel<<endl;break;
case o:cout<<vowel<<endl;break;
case u:cout<<vowel<<endl;break;
default:cout<<consonant<<endl;break;... | a.cc: In function 'int main()':
a.cc:10:10: error: 'a' was not declared in this scope
10 | case a:cout<<vowel<<endl; break;
| ^
a.cc:10:18: error: 'vowel' was not declared in this scope
10 | case a:cout<<vowel<<endl; break;
| ^~~~~
a.cc:11:10: error: 'e' was not decla... |
s222924477 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(void){
char c;
cin>>c;
switch (c) {
case 'a':cout<<vowel<<endl; break;
case 'e':cout<<vowel<<endl;break;
case 'i':cout<<vowel<<endl;break;
case 'o':cout<<vowel<<endl;break;
case 'u':cout<<vowel<<endl;break;
default:cout<<consonant<<e... | a.cc: In function 'int main()':
a.cc:10:20: error: 'vowel' was not declared in this scope
10 | case 'a':cout<<vowel<<endl; break;
| ^~~~~
a.cc:15:19: error: 'consonant' was not declared in this scope
15 | default:cout<<consonant<<endl;break;
| ^~~~~~~~~
|
s770155245 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(void){
char c;
cin>>c>>endl;
switch (c) {
case 'a':cout<<vowel<<endl; break;
case 'e':cout<<vowel<<endl;break;
case 'i':cout<<vowel<<endl;break;
case 'o':cout<<vowel<<endl;break;
case 'u':cout<<vowel<<endl;break;
default:cout<<conson... | a.cc: In function 'int main()':
a.cc:7:9: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>' and '<unresolved overloaded function type>')
7 | cin>>c>>endl;
| ~~~~~~^~~~~~
In file included from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,... |
s994551933 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(void){
char c;
cin<<c<<endl;
switch (c) {
case 'a':cout<<vowel<<endl; break;
case 'e':cout<<vowel<<endl;break;
case 'i':cout<<vowel<<endl;break;
case 'o':cout<<vowel<<endl;break;
case 'u':cout<<vowel<<endl;break;
default:cout<<conson... | a.cc: In function 'int main()':
a.cc:7:6: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'char')
7 | cin<<c<<endl;
| ~~~^~~
| | |
| | char
| std::istream {aka std::basic_istream<char>}
a.cc:7:6: note: candidate: 'operat... |
s541610238 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(void){
string c;
cin<<c<<endl;
switch (c) {
case 'a':cout<<vowel<<endl; break;
case 'e':cout<<vowel<<endl;break;
case 'i':cout<<vowel<<endl;break;
case 'o':cout<<vowel<<endl;break;
case 'u':cout<<vowel<<endl;break;
default:cout<<cons... | a.cc: In function 'int main()':
a.cc:7:6: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
7 | cin<<c<<endl;
| ~~~^~~
| | |
| | std::string {aka std::__cxx11::basic_string<c... |
s576082608 | 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;
}
return 0;
| a.cc: In function 'int main()':
a.cc:14:12: error: expected '}' at end of input
14 | return 0;
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s279698084 | p03852 | C++ | #include<iostream>
int main()
{char 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:4:10: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
4 | {char A; cin >> A;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ... |
s352232351 | 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:9:11: error: 'vowel' was not declared in this scope
9 | cout<< vowel<<endl;
| ^~~~~
a.cc:11:10: error: 'consonant' was not declared in this scope
11 | cout<<consonant<<endl;
| ^~~~~~~~~
|
s825240196 | 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:44: warning: missing terminating ' character
8 | if(S=='a'||S=='i'||S=='u'||S=='e'||S=='o''){
| ^
a.cc:8:44: error: missing terminating ' character
8 | if(S=='a'||S=='i'||S=='u'||S=='e'||S=='o''){
| ^~~
... |
s709541190 | 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''){
cont<< vowel<<endl;
}else{
cout<<consonant<<endl;
}
}
| a.cc:8:44: warning: missing terminating ' character
8 | if(S=='a'||S=='i'||S=='u'||S=='e'||S=='o''){
| ^
a.cc:8:44: error: missing terminating ' character
8 | if(S=='a'||S=='i'||S=='u'||S=='e'||S=='o''){
| ^~~
... |
s301315773 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
const string vowel = "aiueo";
char c;
cin >> c;
if ( vowel.find(characrer) != string::npos){
cout << "vowel" << endl;
} else {
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:9:25: error: 'characrer' was not declared in this scope
9 | if ( vowel.find(characrer) != string::npos){
| ^~~~~~~~~
|
s739674085 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
const string vowel = "aiueo";
char c;
cin >> c;
cout << vowel.find(c) == -1 ? "consonant" : "vowel" << endl;
} | a.cc: In function 'int main()':
a.cc:9:31: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} and 'int')
9 | cout << vowel.find(c) == -1 ? "consonant" : "vowel" << endl;
| ~~~~~~~~~~~~~~~~~~~~~ ^~ ~~
| ... |
s093644354 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
const string vowel = "aiueo";
char c;
cin >> c;
cout << vowel.find(c) == string::npos ? "vowel" : "consonant" << endl;
} | a.cc: In function 'int main()':
a.cc:9:31: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'})
9 | cout << vowel.find(c) == string::npos ? "vow... |
s176696889 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if ( "aiueo".find(c) != basic_string::npos) {
cout << "vowel" << endl;
} else {
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:22: error: request for member 'find' in '"aiueo"', which is of non-class type 'const char [6]'
8 | if ( "aiueo".find(c) != basic_string::npos) {
| ^~~~
a.cc:8:33: error: 'template<class _CharT, class _Traits, class _Alloc> class std::__cxx11:... |
s868788424 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if ( "aiueo".find(c) ) {
cout << "vowel" << endl;
} else {
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:22: error: request for member 'find' in '"aiueo"', which is of non-class type 'const char [6]'
8 | if ( "aiueo".find(c) ) {
| ^~~~
|
s266696729 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char letter;
cin >> c;
if (c = 'a', 'e', 'i', 'o', 'u') {
cout << "vowel" << endl;
} else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:6:10: error: 'c' was not declared in this scope
6 | cin >> c;
| ^
|
s839140200 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if (c == 'a')[
cout << "vowel" << endl;
]
else if (c == 'e')[
cout << "vowel" << endl;
]
else if (c == 'i')[
cout << "vowel" << endl;
]
else if (c == 'o')[
cout << "vowel" << endl;
]
else if (c ... | a.cc: In function 'int main()':
a.cc:8:7: warning: capture of variable 'std::cout' with non-automatic storage duration
8 | cout << "vowel" << endl;
| ^~~~
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:63:18:... |
s421282715 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if (c == 'a')[
cout << "vowel" << endl;
]
else if (c == 'e')[
cout << "vowel" << endl;
]
else if (c == 'i')[
cout << "vowel" << endl;
]
else if (c == 'o')[
cout << "vowel" << endl;
]
else if (c ... | a.cc: In function 'int main()':
a.cc:8:7: warning: capture of variable 'std::cout' with non-automatic storage duration
8 | cout << "vowel" << endl;
| ^~~~
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:63:18:... |
s193054804 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if(c == "a" || "e" || "i" || "o" || "u") {
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c == "a" || "e" || "i" || "o" || "u") {
| ~~^~~~~~
|
s839659682 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
if(c == 'a'||'e'||'i'||'o'||'u') {
cout << 'vowel' << endl;
}
else{
cout << 'consonant' << endl;
}
}
| a.cc:8:25: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
8 | cout << 'vowel' << endl;
| ^~~~~~~
a.cc:11:25: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
11 | cout << 'consonant' <<... |
s238390048 | 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:12:1: error: expected primary-expression before '}' token
12 | }
| ^
|
s373966486 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string str;
cin >> str ;
if (str == "a" || str == "i"||
str =="u" || str == "e"|| str=="o")
cout << "vowel"<< endl;
else {
cout << "consonant"<<endl;
}
}
} | a.cc:16:1: error: expected declaration before '}' token
16 | }
| ^
|
s293592060 | p03852 | C | #include <stdio.h>
int
main(int argc, char *argv[])
{
char a;
char c[5] = {'a', 'i', 'u', 'e', 'o'}
scanf("%c", &a);
for(int i = 0; i < 5; i++){
if(a == c[i]){
printf("vowel\n");
}
else if(i == 4){
printf("consonant\n");
}
}
return 0;
} | main.c: In function 'main':
main.c:9:3: error: expected ',' or ';' before 'scanf'
9 | scanf("%c", &a);
| ^~~~~
|
s260762691 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a; cin>>a;
if(a=="a"||a=="i"){cout<<"vowel"<<endl;}
if else(a=="u"||a=="e"){cout<<"vowel"<<endl;}
if else(a=="o"){cout<<"vowel"<<endl;}
else{cout<<"consonant"<<endl;}
} | a.cc: In function 'int main()':
a.cc:7:6: error: expected '(' before 'else'
7 | if else(a=="u"||a=="e"){cout<<"vowel"<<endl;}
| ^~~~
| (
a.cc:8:6: error: expected '(' before 'else'
8 | if else(a=="o"){cout<<"vowel"<<endl;}
| ^~~~
| (
a.cc:9:3: error: 'else' withou... |
s448030612 | p03852 | C++ | #include <iostream>
#include <algorithm>
#include <math.h>
#include <stdio.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<"constant"<<endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:14:24: error: invalid operands of types 'const char [9]' and '<unresolved overloaded function type>' to binary 'operator<<'
14 | cout<"constant"<<endl;
| ~~~~~~~~~~^~~~~~
|
s548554923 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s ;
cin >> s;
if( s == "a" || s == "e" || s == "i" || s == "u" || 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() {
| ^
|
s603024933 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s ;
cin >> s;
if( s == "a" || s == "e" || s == "i" || s == "u" || 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() {
| ^
|
s473286883 | p03852 | C | c=input()
if c=='a' or c=='i' or c=='u' or c=='e'or c=='o':
print('vowel')
else:
print('consonant')
| main.c:1:1: warning: data definition has no type or storage class
1 | c=input()
| ^
main.c:1:1: error: type defaults to 'int' in declaration of 'c' [-Wimplicit-int]
main.c:1:3: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
1 | c=input()
| ^~~~~
main.c:1:3: error... |
s505441034 | p03852 | C++ | int main(){
char c; cin >> c;
string v="aeiou";
for (int i=0; i<5; i++) {
if (v[i]==c) {
cout << "vowel" << endl;
return 0;
}
}
cout << "consonant" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:2:11: error: 'cin' was not declared in this scope
2 | char c; cin >> c;
| ^~~
a.cc:3:3: error: 'string' was not declared in this scope
3 | string v="aeiou";
| ^~~~~~
a.cc:5:9: error: 'v' was not declared in this scope
5 | if (v[i]==c) {
... |
s501189280 | p03852 | C++ | #include <bits/stdc++.h>
using namespase std;
int main();
char c;
cin>>c;
if(c=="a"){
cout<<"vowel"<<endl;
}
else if(c=="e"){
cout<<"vowel"<<endl;
}
else if(c=="i"){
cout<<"vowel"<<endl;
}
else if(c=="o"){
cout<<"vowel"<<endl;
}
else if(c=="u"){
cout<<"vowel"<<endl;
}
else{
... | a.cc:2:7: error: expected nested-name-specifier before 'namespase'
2 | using namespase std;
| ^~~~~~~~~
a.cc:6:3: error: 'cin' does not name a type
6 | cin>>c;
| ^~~
a.cc:7:3: error: expected unqualified-id before 'if'
7 | if(c=="a"){
| ^~
a.cc:10:3: error: expected unqualifi... |
s173534236 | p03852 | C++ | #include <bits/stdc++.h>
using namespase std;
int main();
char c;
cin>>c;
if(c==a){
cout<<"vowel"<<endl;
}
else if(c==e){
cout<<"vowel"<<endl;
}
else if(c==i){
cout<<"vowel"<<endl;
}
else if(c==o){
cout<<"vowel"<<endl;
}
else if(c==u){
cout<<"vowel"<<endl;
}
else{
cout<<"con... | a.cc:2:7: error: expected nested-name-specifier before 'namespase'
2 | using namespase std;
| ^~~~~~~~~
a.cc:6:3: error: 'cin' does not name a type
6 | cin>>c;
| ^~~
a.cc:7:3: error: expected unqualified-id before 'if'
7 | if(c==a){
| ^~
a.cc:10:3: error: expected unqualified... |
s668832553 | p03852 | C++ | #include <bits/stdc++.h>
using namespase 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==o){
cout<<"vowel"<<endl;
}
else if(c==u){
cout<<"vowel"<<endl;
}
else{
cout<<"c... | a.cc:2:7: error: expected nested-name-specifier before 'namespase'
2 | using namespase std;
| ^~~~~~~~~
a.cc:5:3: error: 'string' does not name a type; did you mean 'stdin'?
5 | string c;
| ^~~~~~
| stdin
a.cc:6:3: error: 'cin' does not name a type
6 | cin>>c;
| ^~~
a... |
s040726106 | p03852 | C++ | #include <bits/stdc++.h>
using namespase std;
int main();
int c;
cin>>c;
if(c==a){
cout<<"vowel"<<endl;
}
else if(c==e){
cout<<"vowel"<<endl;
}
else if(c==i){
cout<<"vowel"<<endl;
}
else if(c==o){
cout<<"vowel"<<endl;
}
else if(c==u){
cout<<"vowel"<<endl;
}
else{
cout<<"cons... | a.cc:2:7: error: expected nested-name-specifier before 'namespase'
2 | using namespase std;
| ^~~~~~~~~
a.cc:6:3: error: 'cin' does not name a type
6 | cin>>c;
| ^~~
a.cc:7:3: error: expected unqualified-id before 'if'
7 | if(c==a){
| ^~
a.cc:10:3: error: expected unqualified... |
s989601037 | p03852 | C++ | #include "bits/stdc++.h"
using namespace std;
int main(void){
string ans;
char s[1];
cin << s;
if (s[0]=='a'||s[0]=='i'||s[0]=='u'||s[0]=='e'||s[0]=='o')
ans = "vowel";
else
ans = "consonant";
cout << ans << 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 [1]')
6 | cin << s;
| ~~~ ^~ ~
| | |
| | char [1]
| std::istream {aka std::basic_istream<char>}
In file included from /u... |
s512375905 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
cher 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: 'cher' was not declared in this scope; did you mean 'char'?
5 | cher c;
| ^~~~
| char
a.cc:6:10: error: 'c' was not declared in this scope
6 | cin >> c;
| ^
|
s344606598 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
char x=c. at(0);
if(x=='a' ||x=='e' ||x=='u' ||x=='i' ||x=='o') {
cout<<"vowe1" <<endl;
}
else{
cout<<"consonant"<<endl;
}
}
| a.cc:4:12: error: expected initializer before '\U0000ff5b'
4 | int main() {
| ^~
a.cc:6:4: error: 'cin' does not name a type
6 | cin >> c;
| ^~~
a.cc:7:11: error: 'c' was not declared in this scope
7 | char x=c. at(0);
| ^
a.cc:8:4: error: expected unqualified... |
s463148000 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin>>c;
char x=c. at(0);
if(x=='a' ||x=='e' ||x=='u' ||x=='i' ||x=='o') {
cout<<"vowe1" <<endl;
}
else{
cout<<"consonant"<<endl;
}
}
| a.cc:4:12: error: expected initializer before '\U0000ff5b'
4 | int main() {
| ^~
a.cc:6:4: error: 'cin' does not name a type
6 | cin>>c;
| ^~~
a.cc:7:11: error: 'c' was not declared in this scope
7 | char x=c. at(0);
| ^
a.cc:8:4: error: expected unqualified-i... |
s747672040 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin>>c;
char x=c. at(0);
if(x=='a' ||x=='e' ||x=='u' ||x=='i' ||x=='o') {
cout<<"vowe1" <<endl;
}
else{
cout<<"consonant"<<endl;
}
}
| a.cc:4:12: error: expected initializer before '\U0000ff5b'
4 | int main() {
| ^~
a.cc:6:4: error: 'cin' does not name a type
6 | cin>>c;
| ^~~
a.cc:7:11: error: 'c' was not declared in this scope
7 | char x=c. at(0);
| ^
a.cc:8:4: error: expected unqualified-i... |
s171734060 | p03852 | C++ | #include ‹bits/stdc++.h›
using namespace std;
int main() {
string c;
cin>>c;
char x=c. at(0);
if(x=='a' ||x=='e' ||x=='u' ||x=='i' ||x=='o') {
cout<<"vowe1" <<endl;
}
else{
cout<<"consonant"<<endl;
}
}
| a.cc:1:10: error: extended character ‹ is not valid in an identifier
1 | #include ‹bits/stdc++.h›
| ^
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
1 | #include ‹bits/stdc++.h›
| ^~~~~
a.cc:1:23: error: extended character › is not valid in an identifier
1 | #inclu... |
s088924036 | p03852 | C++ | #include ‹bits/stdc++.h›
using namespace std;
int main() {
string c;
cin>>c;
char x=c. at(0);
if(x=='a' ||x=='e' ||x=='u' ||x=='i' ||x=='o') {
cout<<"vowe1" <<endl;
}
else{
cout<<"consonant"<<endl;
}
}
| a.cc:1:10: error: extended character ‹ is not valid in an identifier
1 | #include ‹bits/stdc++.h›
| ^
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
1 | #include ‹bits/stdc++.h›
| ^~~~~
a.cc:1:23: error: extended character › is not valid in an identifier
1 | #inclu... |
s390081862 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c, ans:
cin >> c;
if (c == "a" || c == "e" || c == "i" || c == "o" || c == "u") ans = "vowel";
else ans = "consonant";
cout << ans << endl;
} | a.cc: In function 'int main()':
a.cc:5:18: error: found ':' in nested-name-specifier, expected '::'
5 | string c, ans:
| ^
| ::
a.cc:5:15: error: 'ans' has not been declared
5 | string c, ans:
| ^~~
a.cc:6:9: error: qualified-id in declar... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.