submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s233403690 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c:; cin >> c;
if (string("aeiou").find(c) == string::npos) {
cout << "consonant";
} else {
cout << "vowel";
}
} | a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before ':' token
5 | char c:; cin >> c;
| ^
a.cc:5:19: error: 'c' was not declared in this scope
5 | char c:; cin >> c;
| ^
|
s680164342 | p03852 | C++ | #include<iostream>
using namespace std;
int main(){
int a;
cin>>a;
if(a=="a")cout<<"vowel"<<endl;
if(a=="e")cout<<"vowel"<<endl;
if(a=="i")cout<<"vowel"<<endl;
if(a=="o")cout<<"vowel"<<endl;
if(a=="u")cout<<"vowel"<<endl;
else cout<<"consonant"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if(a=="a")cout<<"vowel"<<endl;
| ~^~~~~
a.cc:7:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(a=="e")cout<<"vowel"<<endl;
... |
s030023959 | p03852 | C++ | #include<iostream>
using namespace std;
int main(){
int a;
cin>>a;
if(a=="a"||a=="e"||a=="i"||a=="o"||a=="u")cout<<"vowel"<<endl;
else cout<<"consonant"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if(a=="a"||a=="e"||a=="i"||a=="o"||a=="u")cout<<"vowel"<<endl;
| ~^~~~~
a.cc:6:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if(a... |
s536202627 | p03852 | C++ | // ABC049_C
#include <iostream>
#include <string>
using namespace std;
int main () {
// input
string str;
cin >> str;
// calculation
string five, six, seven;
unsigned long len = str.length ();
if (len < 5 ) {
cout << "NO";
return 0 ;
} else if (len == ... | a.cc: In function 'int main()':
a.cc:43:29: error: expected ')' before '!' token
43 | while (str.length() ! = 0 ) {
| ~ ^~
| )
a.cc:43:32: error: expected primary-expression before '=' token
43 | while (str.length() ! = 0 ) {
... |
s611005133 | 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:6:47: error: lvalue required as left operand of assignment
6 | if(s = 'a' || s = 'i' || s = 'u' || s = 'e' || s = 'o'){
| ~~~~^~~~
|
s990897173 | p03852 | C++ | #include<iostream>
#include<cstdio>
using namespace std;
int main(){
char c=getchar();
if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u')printf("vowel\n");
else preintf("consonant\n");
return 0;
} | a.cc: In function 'int main()':
a.cc:9:14: error: 'preintf' was not declared in this scope; did you mean 'printf'?
9 | else preintf("consonant\n");
| ^~~~~~~
| printf
|
s232113245 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main(){
char x;
cin >> x;
if(x=='a'||x=='i'||x=='u'||x=='e'||x=='o')){cout << "vowel" << endl;}
else{cout << "consonant" << endl;}
return 0;
} | a.cc: In function 'int main()':
a.cc:8:45: error: expected primary-expression before ')' token
8 | if(x=='a'||x=='i'||x=='u'||x=='e'||x=='o')){cout << "vowel" << endl;}
| ^
|
s097292462 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
string s;
int main()
{
cin>>s;
if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u')
cout<<"vowel"<<endl;
else
cout<<"consonant"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:9: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
7 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u')
| ~^~~~~
| | |
| | char
| std::string {aka std::__... |
s500957339 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
char a;
cin>>a;
if (a=='a' || a=='e' || a=='i' || a=='u' ||a=='o')
cout<<"vowel"<<endl;
else
cout<<"consonant"<<endl;
return 0;
| a.cc: In function 'int main()':
a.cc:11:14: error: expected '}' at end of input
11 | return 0;
| ^
a.cc:4:1: note: to match this '{'
4 | {
| ^
|
s094886314 | p03852 | C | #include<iostream>
using namespace std;
int main(void)
{
char c;
cin >> c;
if (c == 'a') {
cout << "vowel";
}
else if (c == 'i') {
cout << "vowel";
}
else if (c == 'u') {
cout << "vowel";
}
else if (c == 'e') {
cout << "vowel";
}
else if (c == 'o') {
cout << "vowel";
}
else {
cout << "consonan... | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s057502155 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if (c == 'a') {
cout << "vowel" << endl;
}
else if (c == "i") {
cout << "vowel" << endl;
}
else if (c == "u") {
cout << "vowel" << endl;
}
else if (c == "e") {
cout << "vowel" << endl;
}
else if (... | a.cc: In function 'int main()':
a.cc:10:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
10 | else if (c == "i") {
| ~~^~~~~~
a.cc:13:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
13 | else if (c == "u") {
| ~... |
s718144166 | p03852 | C++ | #include<iostream>
using namespace std;
int main(){
string s;
cin >> s;
if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o'){
cout << "vowel"<< endl;
}else{
cout << "consonant" << endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:10: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
8 | if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o'){
| ~ ^~ ~~~
| | |
| | char
| ... |
s544804395 | p03852 | C++ | #include<iostream>
using namespace std;
int main(){
string s;
cin >> s >> endl;
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:6:14: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>' and '<unresolved overloaded function type>')
6 | cin >> s >> endl;
| ~~~~~~~~~^~~~~~~
In file included from /usr/include/c++/14/iostream:42,
from a.cc:1:
/usr/incl... |
s771011608 | p03852 | C++ | #include<iostream>
using namespace std;
int main(){
string s;
cin >> s >> endl;
if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o'){
cout << "vowel"<< endl;
}else{
cout << "consonant"
}
return 0;
} | a.cc: In function 'int main()':
a.cc:6:14: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>' and '<unresolved overloaded function type>')
6 | cin >> s >> endl;
| ~~~~~~~~~^~~~~~~
In file included from /usr/include/c++/14/iostream:42,
from a.cc:1:
/usr/incl... |
s576859416 | p03852 | C++ | #include<iostream>
using namespace std;
int main(){
string s;
cin << s << endl;
if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o'){
cout << "vowel"<< endl;
}else{
cout << "consonant"
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:9: 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 << s << endl;
| ~~~ ^~ ~
| | |
| | std::string {aka std::__cxx... |
s405997146 | p03852 | C++ | #include<iostream>
using namespace std;
int main(){
string s;
cin << s << endl;
if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o'){
cout << 'vowel'<< endl;
}else{
cout << 'consonant'
}
return 0;
} | a.cc:9:17: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
9 | cout << 'vowel'<< endl;
| ^~~~~~~
a.cc:11:17: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
11 | cout << 'consonant'
| ^~~... |
s629268696 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char c;
cin >> c;
if(c == 'a', 'e', 'i', 'u', 'o'){
cout << "vowel" << endl;
}if else{
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:5: error: expected '(' before 'else'
8 | }if else{
| ^~~~
| (
|
s254144534 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if(c == 'a' || c == 'e' ||c == 'i' || c=='o' || c== u){
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:55: error: 'u' was not declared in this scope
7 | if(c == 'a' || c == 'e' ||c == 'i' || c=='o' || c== u){
| ^
|
s804971306 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if (S == 'a' || S == 'e' || S == 'u' || S == 'i' || S == 'o'){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:9: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
8 | if (S == 'a' || S == 'e' || S == 'u' || S == 'i' || S == 'o'){
| ~ ^~ ~~~
| | |
| | char
| ... |
s798392600 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
char="s";
cin >> s;
if (s.at("a") == "s"){
cout << vowel << endl;
}else{
cout << consonant << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:5:6: error: expected unqualified-id before '=' token
5 | char="s";
| ^
a.cc:6:9: error: 's' was not declared in this scope
6 | cin >> s;
| ^
a.cc:9:11: error: 'vowel' was not declared in this scope
9 | cout << vowel << endl;
| ... |
s518909665 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
char="s";
cin >> s;
if (s.at("a") == "s"){
}
} | a.cc: In function 'int main()':
a.cc:5:6: error: expected unqualified-id before '=' token
5 | char="s";
| ^
a.cc:6:9: error: 's' was not declared in this scope
6 | cin >> s;
| ^
|
s467374633 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string z;
cin >> z;
int A = 0;
for(int i = 0; i < z.zise(); i++){
if(z.at(i) == 'a' || 'i' || 'u'|| 'o'|| 'e'){
A++;
}
}
if(A > 0){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:9:24: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'zise'
9 | for(int i = 0; i < z.zise(); i++){
| ^~~~
|
s182783957 | p03852 | C++ | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main(){
string c;
cin>>c;
(c=="a" || c=="i" || c=="u" ||c=="e" ||c=="o)? cout<<"vowel":cout<<"consonant";
return 0;
}
| a.cc:10:80: warning: missing terminating " character
10 | (c=="a" || c=="i" || c=="u" ||c=="e" ||c=="o)? cout<<"vowel":cout<<"consonant";
| ^
a.cc:10:80: error: missing terminating " character
10 | (c=="a" || c=="i" || c=="u"... |
s482851661 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main() {
char C; cin>>C;
if(C=='a'||C=='i'||C=='u'||C='e'||C='o'){
cout<<"vowel";
}
else{
cout<<"consonant";
}
return 0;
} | a.cc: In function 'int main()':
a.cc:5:37: error: lvalue required as left operand of assignment
5 | if(C=='a'||C=='i'||C=='u'||C='e'||C='o'){
| ~~~^~~
|
s944981156 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char c;
cin>>'c';
if ('c'='a' || 'u' || 'o' || 'I' || 'e' ){
cout<<"vowel"<< endl;
}else{
cout<<"consonant"<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:5:4: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'char')
5 | cin>>'c';
| ~~~^~~~~
| | |
| | char
| std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/14/sstr... |
s369623299 | p03852 | C++ | #include <bits/stdic++.h>
using namespace std::
int main(void){
string s;
cin >> s;
if(s == "a" || s == "i" || s == "u" || s == "e" || s == "o"){
cout << "vowel" << endl;
} else {
cout << "consonant" << endl;
}
} | a.cc:1:10: fatal error: bits/stdic++.h: No such file or directory
1 | #include <bits/stdic++.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
|
s418453263 | p03852 | C++ |
#include<iostream> //这里用这个就行
using namespace std;
int main()
{
char a[5]={'a','e','i','o','u'};
int n; //输入
cin>>n;
for(int i=0;i<5;i++)
if(a[i]==n)cout<<"vowel" //very easy 的元音判断
else cout<<"consonant";
r... | a.cc: In function 'int main()':
a.cc:17:33: error: expected ';' before 'else'
17 | if(a[i]==n)cout<<"vowel" //very easy 的元音判断
| ^
| ;
18 |
19 | else cout<<"consonant";
| ~~~~ ... |
s558659260 | p03852 | C++ | #include<iostream> //这里用这个就行
using namespace std;
int main()
{
char a[5]={a,e,i,o,u};
int n; //输入
cin>>n;
for(int i=0;i<5;i++)
if(a[i]==n)cout<<"vowel" //very easy 的元音判断
else cout<<"consonant";
return 0;
... | a.cc: In function 'int main()':
a.cc:8:16: error: 'e' was not declared in this scope
8 | char a[5]={a,e,i,o,u};
| ^
a.cc:8:18: error: 'i' was not declared in this scope
8 | char a[5]={a,e,i,o,u};
| ^
a.cc:8:20: error: 'o' was not declared in this scope
8 | c... |
s028971034 | p03852 | C++ | #include<regex>
#include<iostream>
using namespace std;
int main()
{
string s;
cin > s;
regex re("a|e|i|o|u");
string out = regex_match(s, re) ? "vowel" : "consonant";
cout << out << endl;
}
| a.cc: In function 'int main()':
a.cc:8: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>'})
8 | cin > s;
| ~~~ ^ ~
| | |
| | std::string {aka std::__cxx11::basic_string<char... |
s890549515 | p03852 | C++ | #include<regex>
#include<iostream>
using namespace std;
int main()
{
string s;
cin > s;
regex re("a|e|i|o|u");
return regex_match(s, re) ? "vowel" : "consonant";
} | a.cc: In function 'int main()':
a.cc:8: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>'})
8 | cin > s;
| ~~~ ^ ~
| | |
| | std::string {aka std::__cxx11::basic_string<char... |
s450515060 | p03852 | Java | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
char c = scan.next();
if (c =="a"||c=="i"||c=="u"||c=="e"||c=="o"){
System.out.println("vowel");
}else{
System.out.println("consonant");
}
}
} | Main.java:5: error: incompatible types: String cannot be converted to char
char c = scan.next();
^
Main.java:6: error: bad operand types for binary operator '=='
if (c =="a"||c=="i"||c=="u"||c=="e"||c=="o"){
^
first type: char
second type: String
Main.java:6: error: ... |
s096079105 | p03852 | C | #include <stdio.h>
int main(){
char c;
scanf("%c", &c);
if(c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){
printf("vowel");
}else{
printf("consonant");
}
return 0;
} | main.c: In function 'main':
main.c:8:17: error: stray '\343' in program
8 | if(c == 'a' ||<U+3000>c == 'e' || c == 'i' || c == 'o' || c == 'u'){
| ^~~~~~~~
|
s679444229 | p03852 | C | #include <stdio.h>
int main(){
char c;
scanf("%c", c);
if(c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){
printf("vowel");
}else{
printf("consonant");
}
return 0;
}
| main.c: In function 'main':
main.c:8:17: error: stray '\343' in program
8 | if(c == 'a' ||<U+3000>c == 'e' || c == 'i' || c == 'o' || c == 'u'){
| ^~~~~~~~
|
s466830105 | p03852 | Java | import java.util.*;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
String str = sc.next();
if(str.equals("[aiueo]")){
System.out.println("vowel");
}else{
System.out.println("consonant");
}
} | Main.java:13: error: reached end of file while parsing
}
^
1 error
|
s763910361 | p03852 | Java | import java.util.*;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
String str = sc.next();
if(str.equals("[aiueo]")){
System.out.println("vowel");
}else{
System.out/println("consonant");
}
} | Main.java:11: error: not a statement
System.out/println("consonant");
^
Main.java:13: error: reached end of file while parsing
}
^
2 errors
|
s981407951 | p03852 | C | #include <stdio.h>
int main(){
char c;
scanf("%s", c);
if(c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){
printf("vowel");
}else{
printf("consonant");
}
return 0;
}
| main.c: In function 'main':
main.c:8:17: error: stray '\343' in program
8 | if(c == 'a' ||<U+3000>c == 'e' || c == 'i' || c == 'o' || c == 'u'){
| ^~~~~~~~
|
s875626786 | p03852 | C | #include <stdio.h>
int main(){
char c;
sacnf("%s", c);
if(c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){
printf("vowel");
}else{
printf("consonant");
}
return 0;
}
| main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'sacnf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
6 | sacnf("%s", c);
| ^~~~~
| scanf
main.c:8:17: error: stray '\343' in program
8 | if(c == 'a' ||<U+3000>c == 'e' || c == 'i' || c == 'o' || c == ... |
s597741649 | 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:10: error: 'C' was not declared in this scope
6 | cin >> C;
| ^
|
s721704335 | p03852 | C++ | #include "pch.h"
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <iomanip>
#include <tuple>
#include <bitset>
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 << "c... | a.cc:1:10: fatal error: pch.h: No such file or directory
1 | #include "pch.h"
| ^~~~~~~
compilation terminated.
|
s786329117 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int (i) = 0; (i) < (n); ++(i))
#define rrep(i,n) for(int (i) = (n) - 1; (i) >= 0; --(i)) //Reversi rep
#define nfor(i,a,b) for(int (i) = (a); (i) < (b); ++(i)) //Natural for
#define rfor(i,a,b) for(int (i) = (b); (i) >= (a); --(i)) //Reversi for
int ma... | a.cc: In function 'int main()':
a.cc:11:9: error: no match for 'operator>>' (operand types are '<unresolved overloaded function type>' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
11 | sin >> c;
| ~~~~^~~~
In file included from /usr/include/c++/14/string:54,
from /usr/in... |
s681025493 | 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: 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 'bool')
7 | if(c == ('a' || 'e' || 'i' || 'o' || 'u')){
| ~ ^~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
... |
s030214332 | 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: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 == 'e' || c == 'i' || c == 'o' || c == 'u'){
| ~ ^~ ~~~
| | |
| | char
| ... |
s534269215 | 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"){
... | a.cc: In function 'int main()':
a.cc:7:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c == "a"){
| ~~^~~~~~
a.cc:10:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
10 | else if(c == "e"){
| ~~^~~~~~
a.cc:13:1... |
s887788029 | p03852 | C++ | #include <bits/stdc++.h>
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;
}
} | 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 == "e" || c == "i" || c == "o" || c == "u"){
| ~~^~~~~~
a.cc:7:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if... |
s753374632 | 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:7:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c == "a" || "e" || "i" || "o" || "u"){
| ~~^~~~~~
|
s545328871 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c ;
if(c=='a')||(c=='e')||(c=='i')||(c=='o')||(c=='u')) {
cout <<"vowel"<< endl;
}
else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:13: error: expected primary-expression before '||' token
7 | if(c=='a')||(c=='e')||(c=='i')||(c=='o')||(c=='u')) {
| ^~
|
s507223606 | 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 <<"vomel"<< endl;
}
else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:13: error: expected primary-expression before '||' token
7 | if(c=='a')||(c=='e')||(c=='i')||(c=='o')||(c=='u')) {
| ^~
|
s052632582 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
ch c;
cin >> c ;
if(c=='a')||(c=='e')||(c=='i')||(c=='o')||(c=='u')) {
cout <<"vomel"<< endl;
}
else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:5:3: error: 'ch' was not declared in this scope
5 | ch c;
| ^~
a.cc:6:10: error: 'c' was not declared in this scope
6 | cin >> c ;
| ^
a.cc:7:13: error: expected primary-expression before '||' token
7 | if(c=='a')||(c=='e')||(c=='i')||(c=='o'... |
s649654640 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main () {
char c;
cin >> c;
string str1, str2;
str1 = "vowel";
str2 = "consonant";
if (c == 'a' || c == 'e' || c == 'i' || C == 'o' || C == 'u') {
cout << str1 << endl;
}
else {
cout << str2 << endl;
}
} | a.cc: In function 'int main()':
a.cc:11:44: error: 'C' was not declared in this scope
11 | if (c == 'a' || c == 'e' || c == 'i' || C == 'o' || C == 'u') {
| ^
|
s703480742 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if((c == 'a') ||(c == 'i') ||(c == 'u') ||(c == 'e') ||(c == 'o')){
cout << "vowel";
}
else{
cout << "consonant";
}
}#include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if((c == 'a') ||(c ... | a.cc:13:2: error: stray '#' in program
13 | }#include <bits/stdc++.h>
| ^
a.cc:13:3: error: 'include' does not name a type
13 | }#include <bits/stdc++.h>
| ^~~~~~~
a.cc:16:5: error: redefinition of 'int main()'
16 | int main() {
| ^~~~
a.cc:4:5: note: 'int main()' previously defined he... |
s653191715 | p03852 | Java | //第 4 問: ABC 087 B - Coinsi (200 点)
/*
* dreamererasereraserdream
erasereraserdream
reraserdream
NO
*/
import java.util.Scanner;
public class ABC049C{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
String S = scan.next();
StringBuilder sb = new StringBuilder();
sb.append(... | Main.java:11: error: class ABC049C is public, should be declared in a file named ABC049C.java
public class ABC049C{
^
1 error
|
s887941411 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char x;
cin>> x;
if (x = a || x= i || x= u || x= e || x= o ) {
cout << "vovel" << endl;
}
else {
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:9: error: 'a' was not declared in this scope
8 | if (x = a || x= i || x= u || x= e || x= o ) {
| ^
a.cc:8:17: error: 'i' was not declared in this scope
8 | if (x = a || x= i || x= u || x= e || x= o ) {
| ^
a.cc:8:25: error: 'u' was not d... |
s189076542 | p03852 | C++ | #include<iostream>
#include<fstream>
#include<algorithm>
#include<cmath>
#include<cstdio>
#include<string>
#include<cstring>
using namespace std;
int a[21]={"bcdfghjklmnpqrstvwxyz"};
int b[5]={"aeiou"};
char x;
int main()
{
x=getchar();
for(int i=0;i<=20;i++)
{
if(a[i]==x){cout<<"vowel\n";exit(0);}
}
for(int i=0... | a.cc:9:12: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
9 | int a[21]={"bcdfghjklmnpqrstvwxyz"};
| ^~~~~~~~~~~~~~~~~~~~~~~
| |
| const char*
a.cc:10:11: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
10 | int b[5]={"... |
s130278116 | p03852 | C++ | #include <set>
#include <map>
#include <list>
#include <queue>
#include <stack>
#include <cmath>
#include <ctime>
#include <cstdio>
#include <vector>
#include <string>
#include <bitset>
#include <cctype>
#include <cstdlib>
#include <cstring>
#include <utility>
#include <numeric>
#include <complex>
#include <sstream>
#i... | a.cc: In function 'int main()':
a.cc:39:8: error: 'c' was not declared in this scope
39 | if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o"){
| ^
|
s759153489 | p03852 | C++ | #include <set>
#include <map>
#include <list>
#include <queue>
#include <stack>
#include <cmath>
#include <ctime>
#include <cstdio>
#include <vector>
#include <string>
#include <bitset>
#include <cctype>
#include <cstdlib>
#include <cstring>
#include <utility>
#include <numeric>
#include <complex>
#include <sstream>
#i... | a.cc: In function 'int main()':
a.cc:38:10: error: 'c' was not declared in this scope
38 | cin>>c;
| ^
|
s983930903 | p03852 | C++ | #include <set>
#include <map>
#include <list>
#include <queue>
#include <stack>
#include <cmath>
#include <ctime>
#include <cstdio>
#include <vector>
#include <string>
#include <bitset>
#include <cctype>
#include <cstdlib>
#include <cstring>
#include <utility>
#include <numeric>
#include <complex>
#include <sstream>
#i... | a.cc: In function 'int main()':
a.cc:38:10: error: 'c' was not declared in this scope
38 | cin<<c;
| ^
|
s430537117 | p03852 | C++ | #include<iostream>
using namespace std;
int main()
{
char a;
int l=strlen(a);
for(int i=1;i<=l;i++){
cin>>a;
if(a=='a'||a=='i'||a=='o'||a=='e'||a=='u' ) cout<<"vowel"<<endl;
return 0;
}
cout<<"consonant"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:11: error: 'strlen' was not declared in this scope
6 | int l=strlen(a);
| ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
1 | #include<iostream>
+++ |+#include <cstring>
2 |... |
s305344348 | p03852 | C++ | #include<iostream>
using namespace std;
int main()
{
char a;
int l=strlen(a);
for(int i=1;i<=l;i++){
cin>>a;
if(a=='a'||a=='i'||a=='o'||a=='e'||a=='u' ) cout<<"vowel"<<endl;
return 0;
}
cout<<"consonant"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:11: error: 'strlen' was not declared in this scope
6 | int l=strlen(a);
| ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
1 | #include<iostream>
+++ |+#include <cstring>
2 |... |
s463976886 | p03852 | C++ | #include<iostream>
using namespace std;
int main()
{
char a;
l=strlen(a);
for(int i=1;i<=l;i++){
cin>>a;
if(a=='a'||a=='i'||a=='o'||a=='e'||a=='u' ) cout<<"vowel"<<endl;
return 0;
}
cout<<"consonant"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:5: error: 'l' was not declared in this scope
6 | l=strlen(a);
| ^
a.cc:6:7: error: 'strlen' was not declared in this scope
6 | l=strlen(a);
| ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding ... |
s237720315 | 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:6:63: warning: missing terminating " character
6 | if(c == 'a'||c == 'i'||c == 'u'||c == 'e'||c == 'o')cout << "vowel
| ^
a.cc:6:63: error: missing terminating " character
6 | if(c == 'a'||c == 'i'||c == 'u'||c == 'e'||c == 'o')cout <<... |
s140494694 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char C;
cin >> C;
if ( C == 'a' || C == 'e' || C == 'i' || C == 'o' || C == 'u' ){
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
} | a.cc: In function 'int main()':
a.cc:12:4: error: expected '}' at end of input
12 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s575605536 | p03852 | C++ | #include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <cmath>
#include <map>
typedef long long ll;
#define rep(i,a,b) for(int i=a;i<b;++i)
#define rrep(i,a,b) for(int i=a;i>=b;--i)
using namespace std;
int N, A;
int x[111];
ll coudp[111][111][5555];
int main()
{
char c;
cin >> ;
if... | a.cc: In function 'int main()':
a.cc:19:16: error: expected primary-expression before ';' token
19 | cin >> ;
| ^
|
s054046561 | 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:7:39: error: lvalue required as left operand of assignment
7 | if(c='a' || c='i' || c='u' || c='e' || c='o'){
| ~~~~^~~~
|
s600065359 | 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:6:6: 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:6: note: candidate: 'operator<<(i... |
s807875400 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
chor c;
sin>>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:5:1: error: 'chor' was not declared in this scope; did you mean 'char'?
5 | chor c;
| ^~~~
| char
a.cc:6:6: error: 'c' was not declared in this scope
6 | sin>>c;
| ^
|
s936750907 | p03852 | C++ | #include<iostream>
#include<cstdio>
using namespace std;
char c;
bool bheck()
{
return c=='a'||c=='i'||c=='u'||c=='e'||c=='o';
}
void solve()
{
if(check(c))puts("vowel");
else puts("consonant");
return ;
}
main()
{
cin.tie(0);
ios::sync_with_stdio(0);
cin>>c;
solve();
return 0;
} | a.cc: In function 'void solve()':
a.cc:11:8: error: 'check' was not declared in this scope; did you mean 'bheck'?
11 | if(check(c))puts("vowel");
| ^~~~~
| bheck
a.cc: At global scope:
a.cc:15:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
15 | main()
... |
s672136810 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
cin >> char 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:5:10: error: expected primary-expression before 'char'
5 | cin >> char a;
| ^~~~
a.cc:6:7: error: 'a' was not declared in this scope
6 | if (a == 'a' || a == 'i' || a == 'u' || a == 'e' || a == 'o')
| ^
|
s143868914 | 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\n”;
}
else
cout << “consonant\n”;
return 0;
} | a.cc:8:11: error: extended character ‘ is not valid in an identifier
8 | if(c == ‘a’ || c == ‘i’ || c == ‘u’ || c == ‘e’ || c == ‘o’){
| ^
a.cc:8:11: error: extended character ’ is not valid in an identifier
a.cc:8:23: error: extended character ‘ is not valid in an identifier
8 | if(c == ‘a’... |
s219262941 | 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:13:32: error: expected ';' before '}' token
13 | cout << "consonant" << endl
| ^
| ;
14 | }
| ~
|
s639708318 | 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' ) {
/* code */
std::cout << "vowel" << '\n';
}
else{
std::cout << "consonant" << '\n';
}
}
| a.cc: In function 'int main()':
a.cc:6:51: error: expected ')' before 'c'
6 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' c == 'u' ) {
| ~ ^~
| )
|
s803159056 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char s;
cin >>s;
if (s = 'a' ||'i'|| 'u'|| 'e'|| 'o'){
cout << "vowel" <<endl;
}
else
cout <<
} | a.cc: In function 'int main()':
a.cc:12:1: error: expected primary-expression before '}' token
12 | }
| ^
|
s831305920 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char s;
cin >>s;
if s =( 'a' ||'i'|| 'u'|| 'e'|| 'o'){
cout << "vowel" <<endl;
}
else
cout << "consonant" <<endl;
} | a.cc: In function 'int main()':
a.cc:7:4: error: expected '(' before 's'
7 | if s =( 'a' ||'i'|| 'u'|| 'e'|| 'o'){
| ^
| (
a.cc:10:1: error: 'else' without a previous 'if'
10 | else
| ^~~~
|
s423343864 | 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:13:28: error: expected '}' at end of input
13 | cout << "consonant" <<endl;
| ^
a.cc:4:11: note: to match this '{'
4 | int main(){
| ^
|
s285113164 | 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:10:9: error: 'vowel' was not declared in this scope
10 | cout << vowel<<endl;
| ^~~~~
a.cc:13:9: error: 'consonant' was not declared in this scope
13 | cout << consonant <<endl;
| ^~~~~~~~~
a.cc:13:26: error: expected '}' at end of input
13 | cou... |
s330577027 | p03852 | C++ | #include <bits/stdc++.h>
using namespase std;
int main() {
| a.cc:3:7: error: expected nested-name-specifier before 'namespase'
3 | using namespase std;
| ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:13: error: expected '}' at end of input
5 | int main() {
| ~^
|
s990484277 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
char c;
cin>>c;
if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){
cout<<"vowel"<<endl;
}else{
cout<<"consonant"<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){
| ~^~~~~
a.cc:7:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c=="a"||c=="e"||c=="i"||c=... |
s677066306 | p03852 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
char c;
cin >> c;
if ((c == "a") || (c=="i")||(c=="u")||(c=="e")||(c=="o")){
cout << "vowel";
return 0;
}
else{
cout << "consonant";
}
return 0;
} | a.cc: In function 'int main()':
a.cc:9:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | if ((c == "a") || (c=="i")||(c=="u")||(c=="e")||(c=="o")){
| ~~^~~~~~
a.cc:9:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | if ... |
s564592971 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char sth;
cin >> sth;
if (sth == 'a', 'i', 'u', 'e', 'o')
cout << "vowel" << endl;
if (sth !== 'a' && sth !== 'i' && sth !== 'u' && sth !== 'e' && sth !== 'o')
cout << "consonant" << endl;
} | a.cc: In function 'int main()':
a.cc:12:11: error: expected primary-expression before '=' token
12 | if (sth !== 'a' && sth !== 'i' && sth !== 'u' && sth !== 'e' && sth !== 'o')
| ^
a.cc:12:26: error: expected primary-expression before '=' token
12 | if (sth !== 'a' && sth !== 'i' && sth !== ... |
s208675654 | 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:11: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
8 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') {
| ~ ^~ ~~~
| | |
| | char
| ... |
s412152850 | p03852 | C++ | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
string c;
cin >> c;
for (int i = 0; i < c.size(); i++) {
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:10:11: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
10 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') {
| ~ ^~ ~~~
| | |
| | char
|... |
s599587148 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
for (int i = 0; i < c.size(); i++) {
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:9:11: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
9 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') {
| ~ ^~ ~~~
| | |
| | char
| ... |
s220958482 | 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:10:10: error: 'vowel' was not declared in this scope
10 | cout << vowel << endl;
| ^~~~~
a.cc:13:9: error: 'consonant' was not declared in this scope
13 | cout << consonant << endl;
| ^~~~~~~~~
|
s536762833 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
char a[5]={'a','e','i','o','u'},k
k=getchar();
for(int i=0;i<5;i++){
if(k==a[i]){
cout<<"vowel"<<endl;
return 0;
}
}
cout<<"consonant"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:5:5: error: expected initializer before 'k'
5 | k=getchar();
| ^
a.cc:7:12: error: 'k' was not declared in this scope
7 | if(k==a[i]){
| ^
|
s326664049 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char x;
cin >> x; // 変数sで入力を一行受け取る
if((x = 'a')||(x = 'e')||(x = 'i')||(x = 'u')||(x ='o')){
cout << "vowel" << endl;
}
else if{
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:11:9: error: expected '(' before '{' token
11 | else if{
| ^
| (
|
s080482358 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char S;
cin >> S;
if (S = 'a'||S = 'e'||S = 'i'||S = 'o'||S = 'u'){
cin << "vowel" << endl;
}
else {
cin << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:40: error: lvalue required as left operand of assignment
8 | if (S = 'a'||S = 'e'||S = 'i'||S = 'o'||S = 'u'){
| ~~~^~~
a.cc:9:8: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and ... |
s871054508 | 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:7:9: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
7 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') {
| ~ ^~ ~~~
| | |
| | char
| std... |
s327176685 | 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:7:9: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
7 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u')
| ~ ^~ ~~~
| | |
| | char
| std::... |
s309422590 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string c;
cin >> c;
if (c == 'a's || c == 'e's || c == 'i's || c == 'o's || c == 'u's)
cout << "vowel" << endl;
else
cout << "consonant" << endl;
} | a.cc: In function 'int main()':
a.cc:7:12: error: unable to find character literal operator 'operator""s' with 'char' argument
7 | if (c == 'a's || c == 'e's || c == 'i's || c == 'o's || c == 'u's)
| ^~~~
a.cc:7:25: error: unable to find character literal operator 'operator""s' with 'char' argume... |
s936677109 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string c;
cin >> c;
if (c == ('a's || 'e's || 'i's || 'o's || 'u's))
cout << "vowel" << endl;
else
cout << "consonant" << endl;
} | a.cc: In function 'int main()':
a.cc:7:13: error: unable to find character literal operator 'operator""s' with 'char' argument
7 | if (c == ('a's || 'e's || 'i's || 'o's || 'u's))
| ^~~~
a.cc:7:21: error: unable to find character literal operator 'operator""s' with 'char' argument
7 | if (... |
s015255955 | p03852 | C++ | #include<iostream>
using namespace std;
int main(void){
char c;
cin >> c;
if((char)c == ‘a’ || (char)c == ‘i’ || (char)c == ‘u’ || (char)c == ‘e’ || (char)c == ‘o’){
cout << “vowel” << endl;
}else{
cout << “consonant” << endl;
}
return 0;
} | a.cc:9:17: error: extended character ‘ is not valid in an identifier
9 | if((char)c == ‘a’ || (char)c == ‘i’ || (char)c == ‘u’ || (char)c == ‘e’ || (char)c == ‘o’){
| ^
a.cc:9:17: error: extended character ’ is not valid in an identifier
a.cc:9:35: error: extended character ‘ is not valid in... |
s322127617 | p03852 | C++ | #include<iostream>
using namespace std;
int main(void){
char c;
cin >> c;
if(c == ‘a’ || c == ‘i’ || c == ‘u’ || c == ‘e’ ||
c == ‘o’){
cout << vowel << endl;
}else{
cout << consonant << endl;
}
return 0;
} | a.cc:9:11: error: extended character ‘ is not valid in an identifier
9 | if(c == ‘a’ || c == ‘i’ || c == ‘u’ || c == ‘e’ ||
| ^
a.cc:9:11: error: extended character ’ is not valid in an identifier
a.cc:9:23: error: extended character ‘ is not valid in an identifier
9 | if(c == ‘a’ || c == ‘i... |
s434301041 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin << c <<endl;
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:5: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'char')
6 | cin << c <<endl;
| ~~~ ^~ ~
| | |
| | char
| std::istream {aka std::basic_istream<char>}
a.cc:6:5: note: candidate: 'operato... |
s219429108 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
if(c=='a'||c=='o'||c=='e'||c=='i'||c=='u'){
cout<<"vowel"<<endl;
}else{
cout<<"consonant"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:7:7: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
7 | if(c=='a'||c=='o'||c=='e'||c=='i'||c=='u'){
| ~^~~~~
| | |
| | char
| std::string {aka std::__cxx11::ba... |
s654511974 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if (c =="a" || c == "i" || c == "u" || c == "e" || c == "o" ){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (c =="a" || c == "i" || c == "u" || c == "e" || c == "o" ){
| ~~^~~~~
a.cc:8:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (c =="a"... |
s193847008 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if (c ="a" || c = "i" || c = "u" || c = "e" || c = "o" ){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:46: error: lvalue required as left operand of assignment
8 | if (c ="a" || c = "i" || c = "u" || c = "e" || c = "o" ){
| ~~~~^~~~
|
s166188958 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if (c ="a" || c = "i" || c = "u" || c = "e" || c = "o" ){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:45: error: lvalue required as left operand of assignment
8 | if (c ="a" || c = "i" || c = "u" || c = "e" || c = "o" ){
| ~~~~^~~~
|
s074212434 | p03852 | C++ | char c;
cin >> c;
if (c ="a" || c = "I" || c = "u" || c = "e" || c = "o" ){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
} | a.cc:2:1: error: 'cin' does not name a type
2 | cin >> c;
| ^~~
a.cc:4:1: error: expected unqualified-id before 'if'
4 | if (c ="a" || c = "I" || c = "u" || c = "e" || c = "o" ){
| ^~
a.cc:8:1: error: expected unqualified-id before 'else'
8 | else{
| ^~~~
|
s694160767 | 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:8:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
8 | if( c == 'a' || 'i' || 'u' || 'e' || 'o' || )
| ~ ^~ ~~~
| | |
| | char
| std::string {aka std::__cx... |
s759283289 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
int c;
cin >> c;
if(c == "a") {
cout << "vowel" << endl;
}
if(c == "i") {
cout << "vowel" << endl;
}
if(c == "u") {
cout << "vowel" << endl;
}
if(c == "e") {
cout << "vowel" << endl;
}
else if {
cout << "co... | a.cc: In function 'int main()':
a.cc:8:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(c == "a") {
| ~~^~~~~~
a.cc:12:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
12 | if(c == "i") {
| ~~^~~~~~
a.cc:16:8: error: I... |
s236270505 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
int c;
cin >> c;
if(c == a) {
cout << "vowel" << endl;
}
if(c == i) {
cout << "vowel" << endl;
}
if(c == u) {
cout << "vowel" << endl;
}
if(c == e) {
cout << "vowel" << endl;
}
else if {
cout << "consonant" << ... | a.cc: In function 'int main()':
a.cc:8:11: error: 'a' was not declared in this scope
8 | if(c == a) {
| ^
a.cc:12:11: error: 'i' was not declared in this scope
12 | if(c == i) {
| ^
a.cc:16:11: error: 'u' was not declared in this scope
16 | if(c == u) {
| ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.