submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s116089441 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char x;
cin >> x;
if (x = 'a' || x = 'e' || x = 'i' || x = 'o' || x = 'u') {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:9:48: error: lvalue required as left operand of assignment
9 | if (x = 'a' || x = 'e' || x = 'i' || x = 'o' || x = 'u') {
| ~~~~^~~~
|
s521206509 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
cher 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: 'cher' was not declared in this scope; did you mean 'char'?
7 | cher c;
| ^~~~
| char
a.cc:9:16: error: 'c' was not declared in this scope
9 | cin >> c ;
| ^
|
s819697880 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char x ;
cin >> x ;
if (x == 'a' || x == 'e' || x == 'i' || x == 'o' || x == 'u' ){
cout >> "vowel" >> endl;
}else cout >> "consonant" >> endl;
} | a.cc: In function 'int main()':
a.cc:8:10: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [6]')
8 | cout >> "vowel" >> endl;
| ~~~~ ^~ ~~~~~~~
| | |
| | const char [6]
| std::ostream {aka std... |
s465907515 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char x ;
cin >> x ;
if (x == 'a' || x == 'e' || x == 'i' || x == 'o' || x == 'u' ){
cout >> "vowel" >> endl;
}else cout >> "consonant" >> endl; | a.cc: In function 'int main()':
a.cc:8:10: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [6]')
8 | cout >> "vowel" >> endl;
| ~~~~ ^~ ~~~~~~~
| | |
| | const char [6]
| std::ostream {aka std... |
s270566323 | p03852 | C++ |
//#include <tourist>
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> p;
const int INF = 1e9;
const ll LINF = ll(1e18);
const int MOD = 1000000007;
const int dx[4] = {0, 1, 0, -1}, dy[4] = {-1, 0, 1, 0};
const int Dx[8] = {0, 1, 1, 1, 0, -1, -1, -1}, Dy[8] = {-1, -1, 0, 1, 1, 1,... | a.cc:63:24: error: stray '\' in program
63 | cout<<"consonant<<"\n";
| ^
a.cc:63:26: warning: missing terminating " character
63 | cout<<"consonant<<"\n";
| ^
a.cc:63:26: error: missing terminating " character
63 | cout<<"consonant<<"\n";
... |
s354298352 | p03852 | C++ | define PI 3.14159265359
typedef long long ll;
//
int main(){
char c;
cin>>c;
if(c=='a'||'i'||'u'||'e'||'o'){
cout<<"vowel"<<endl;}else{
cout<<"consonant"<<endl; }
}
| a.cc:1:1: error: 'define' does not name a type
1 | define PI 3.14159265359
| ^~~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
7 | cin>>c;
| ^~~
a.cc:10:5: error: 'cout' was not declared in this scope
10 | cout<<"vowel"<<endl;}else{
| ... |
s190693804 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<(n); i++)
#define FOR(i,a,b) for(int i=a; i<=b; i++)
#define all(v) v.begin(), v.end()
#define F first
#define S second
#define INF 1000000000000
#define MOD 10000007
#define PI 3.14159265359
typedef long long ll;
//
int main(){
char... | a.cc: In function 'int main()':
a.cc:19:11: error: 'vowel' was not declared in this scope
19 | cout<<vowel<<endl;}else{
| ^~~~~
a.cc:20:10: error: 'consonant' was not declared in this scope
20 | cout<<consonant<<endl; }
| ^~~~~~~~~
|
s380877246 | p03852 | C++ | #pinclude <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<(n); i++)
#define FOR(i,a,b) for(int i=a; i<=b; i++)
#define all(v) v.begin(), v.end()
#define F first
#define S second
#define INF 1000000000000
#define MOD 10000007
#define PI 3.14159265359
typedef long long ll;
//
int main(){
cha... | a.cc:1:2: error: invalid preprocessing directive #pinclude; did you mean #include?
1 | #pinclude <bits/stdc++.h>
| ^~~~~~~~
| include
a.cc: In function 'int main()':
a.cc:16:5: error: 'cin' was not declared in this scope
16 | cin>>c;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in head... |
s950152160 | 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:8:13: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
8 | cout << 'vowel' << endl;
| ^~~~~~~
a.cc:11:13: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
11 | cout << 'consonant' << endl ;
| ^~~~~~~~... |
s859878858 | 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:8:13: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
8 | cout >> 'vowel' >> endl;
| ^~~~~~~
a.cc:11:13: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
11 | cout >> 'consonant' >> endl ;
| ^~~~~~~~... |
s747451207 | 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:9: 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:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if (c =... |
s755407428 | 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:9: 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:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if (c =... |
s797432672 | 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:9: 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:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if (c ==... |
s573145939 | p03852 | C++ | #include<iostream>
using namespace std;
#include<string>
int main(){
string c;
cin>>c;
if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){
cout<<"vowel"<<endl;}
else
cout<<"consonant"<<endl;
} | a.cc: In function 'int main()':
a.cc:8:7: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
8 | if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){
| ~^~~~~
| | |
| | char
| std::string {aka std::__cxx11::ba... |
s915403669 | p03852 | C++ | #include<iostream>
using namespace std;
#include<string>
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:7: 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::__cxx11::basic_string<c... |
s851348204 | p03852 | C++ | #include<iostream>
using namespace std;
#include<string>
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:7: 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::__cxx11::basic_string<char>... |
s729972624 | p03852 | C++ | #include<iostream>
using namespace std;
#include<string>
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:9: error: 'a' was not declared in this scope
8 | if(c==a,i,u,e,o){
| ^
a.cc:8:11: error: 'i' was not declared in this scope
8 | if(c==a,i,u,e,o){
| ^
a.cc:8:13: error: 'u' was not declared in this scope
8 | if(c==a,i,u,e,o){
| ... |
s221455439 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
if ( c == "a"){
cout << "vowel" << endl;
}
if else ( c == "e"){
cout << "vowel" << endl;
}
if else( c == "i"){
cout << "vowel" << endl;
}
if else( c == "o"){
cout << "vowel" << endl;
}
if el... | a.cc: In function 'int main()':
a.cc:13:6: error: expected '(' before 'else'
13 | if else ( c == "e"){
| ^~~~
| (
a.cc:17:6: error: expected '(' before 'else'
17 | if else( c == "i"){
| ^~~~
| (
a.cc:21:6: error: expected '(' before 'else'
21 | if else( c == "o... |
s066913455 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
//入力と出力用の宣言
string A;
char s;
//初期条件
s='E'
A="error"
//入力部
cin >> s;
//判定部
if(s=='a'||'i'||'u'||'e'||'o'){
A="vowel";
}
else{
A="consonant";
}
//出力部
cout << s << endl;
}
| a.cc: In function 'int main()':
a.cc:10:8: error: expected ';' before 'A'
10 | s='E'
| ^
| ;
11 | A="error"
| ~
|
s273940757 | p03852 | C++ | q | a.cc:1:1: error: 'q' does not name a type
1 | q
| ^
|
s856541139 | 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 << voewl << endl;
}
| a.cc: In function 'int main()':
a.cc:7:12: error: 'a' was not declared in this scope
7 | if (c == a || c == i || c == u || c == e || c == o) {
| ^
a.cc:7:22: error: 'i' was not declared in this scope
7 | if (c == a || c == i || c == u || c == e || c == o) {
| ^
a.... |
s160464529 | p03852 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String name = sc.next();
System.out.println(name.match("[aiueo]")?"vowel":"consonant");
}
} | Main.java:7: error: cannot find symbol
System.out.println(name.match("[aiueo]")?"vowel":"consonant");
^
symbol: method match(String)
location: variable name of type String
1 error
|
s912911853 | p03852 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String name = sc.next();
System.out.println(name.match("[aiueo]")?:"vowel":"consonant");
}
} | Main.java:7: error: illegal start of expression
System.out.println(name.match("[aiueo]")?:"vowel":"consonant");
^
Main.java:7: error: ')' or ',' expected
System.out.println(name.match("[aiueo]")?:"vowel":"consonant");
... |
s925516746 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
string str = "aiueo";
string ans = "consonant";
cin >> c;
for(int i = 0; i < str.size(); i++){
if(c == str.at(i)){
ans = "vowel"
break;
}
}
cout << ans << endl;
} | a.cc: In function 'int main()':
a.cc:13:20: error: expected ';' before 'break'
13 | ans = "vowel"
| ^
| ;
14 | break;
| ~~~~~
|
s901860705 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
int a;
a = 0
cin >> c;
if(c=='a'){
cout << "vowel" <<endl;
a++;
}
if(c=='i'){
cout << "vowel" <<endl;
a++;
}
if(c=='u'){
cout << "vowel" <<endl;
a++;
}
if(c=='e'){
cout << "vowel" <<endl;
a++;
}... | a.cc: In function 'int main()':
a.cc:7:8: error: expected ';' before 'cin'
7 | a = 0
| ^
| ;
8 | cin >> c;
| ~~~
|
s098210676 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
int a;
a = 0
cin >> c;
if(c=='a'){
cout << vowel <<endl;
a++;
}
if(c=='i'){
cout << vowel <<endl;
a++;
}
if(c=='u'){
cout << vowel <<endl;
a++;
}
if(c=='e'){
cout << vowel <<endl;
a++;
}
if(c==... | a.cc: In function 'int main()':
a.cc:7:8: error: expected ';' before 'cin'
7 | a = 0
| ^
| ;
8 | cin >> c;
| ~~~
a.cc:10:13: error: 'vowel' was not declared in this scope
10 | cout << vowel <<endl;
| ^~~~~
a.cc:14:13: error: 'vowel' was not decla... |
s822309759 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
char c;
cin >> c;
if (c==a || e || i || o || u) {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:12: error: 'a' was not declared in this scope
8 | if (c==a || e || i || o || u) {
| ^
a.cc:8:17: error: 'e' was not declared in this scope
8 | if (c==a || e || i || o || u) {
| ^
a.cc:8:22: error: 'i' was not declared in this ... |
s326150851 | 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:9:13: error: 'vowel' was not declared in this scope
9 | cout << vowel << endl;
| ^~~~~
a.cc:10:16: error: 'consonant' was not declared in this scope
10 | else cout << consonant << endl;
| ^~~~~~~~~
|
s726402215 | p03852 | Java |
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String a = sc.next();
String judbe = "consonant";
if(a == "a" || a == "i" || a == "u" || a == "e" || a == "o"){
judge = "vowel";
}
... | Main.java:11: error: cannot find symbol
judge = "vowel";
^
symbol: variable judge
location: class Main
Main.java:13: error: cannot find symbol
System.out.println(judge);
^
symbol: variable judge
location: class Main
2 errors
|
s978959373 | p03852 | Java |
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
char a = (char) sc.next();
String judbe = "consonant";
if(a == 'a' || a == 'i' || a == 'u' || a == 'e' || a == 'o'){
judge = "vowel";
}
... | Main.java:8: error: incompatible types: String cannot be converted to char
char a = (char) sc.next();
^
Main.java:11: error: cannot find symbol
judge = "vowel";
^
symbol: variable judge
location: class Main
Main.java:13: error: cannot find symbol
... |
s601386648 | p03852 | Java |
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
char a = sc.next();
String judbe = "consonant";
if(a == 'a' || a == 'i' || a == 'u' || a == 'e' || a == 'o'){
judge = "vowel";
}
... | Main.java:8: error: incompatible types: String cannot be converted to char
char a = sc.next();
^
Main.java:11: error: cannot find symbol
judge = "vowel";
^
symbol: variable judge
location: class Main
Main.java:13: error: cannot find symbol
System.out... |
s987500701 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin>>c;
while (int i==0){
if(c=='a'){
cout<<"vowel"<<endl;
}
if(c=='i'){
cout<<"vowel"<<endl;
}
if(c=='u'){
cout<<"vowel"<<endl;
}
if(c=='e'){
cout<<"vowel"<<endl;
}
if(c=='o'){
cout<<"vowel"<<endl;
}
e... | a.cc: In function 'int main()':
a.cc:7:15: error: expected initializer before '==' token
7 | while (int i==0){
| ^~
a.cc:7:15: error: expected ')' before '==' token
7 | while (int i==0){
| ~ ^~
| )
a.cc:7:15: error: expected primary-expression before... |
s284398788 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if (c=='a'or c=='e'or c=='u'or c=='e'or c=='o'){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:16: error: unable to find character literal operator 'operator""or' with 'char' argument
8 | if (c=='a'or c=='e'or c=='u'or c=='e'or c=='o'){
| ^~~~~
a.cc:8:21: error: expected ')' before 'c'
8 | if (c=='a'or c=='e'or c=='u'or c=='e'or ... |
s859216669 | p03852 | C++ | #include <iostream>
#include <cmath>
#include <algorithm>
using namespace std;
int main()
{
string c;
cin>>c;
if(c=="a"|| c=="e "||c=="i"||c=="o"||c=="u")
{
cout<<"vowel";
else
{
cout<<"consonant";
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:13:1: error: expected '}' before 'else'
13 | else
| ^~~~
a.cc:11:1: note: to match this '{'
11 | {
| ^
|
s846369085 | p03852 | C++ | #define <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:1:9: error: macro names must be identifiers
1 | #define <bits/stdc++.h>
| ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
6 | cin >> c;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#in... |
s048523596 | 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:36: error: expected '}' at end of input
8 | else cout << "consonant" << endl;
| ^
a.cc:4:11: note: to match this '{'
4 | int main(){
| ^
|
s042709480 | p03852 | C++ | #include <bits/stdc++.h>
#include <vector>
#include <algorithm>
#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:10:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
10 | if (c=="a"||c=="i"||c=="u"||c=="e"||c=="o") {
| ~^~~~~
a.cc:10:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
10 | if (c=="a"||c=="i"||c=="... |
s713959241 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char m;
cin >> m;
if(m=="a"||"i"||"u"||"e"||"o"){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if(m=="a"||"i"||"u"||"e"||"o"){
| ~^~~~~
|
s848381898 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string m;
cin >> m;
string i=m.at(i);
if(m(i)=="a"||"i"||"u"||"e"||"o"){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:18: error: no matching function for call to 'std::__cxx11::basic_string<char>::at(std::string&)'
8 | string i=m.at(i);
| ~~~~^~~
In file included from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bitset:52,
fr... |
s844104554 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string m;
cin >> m;
int i=m.at(i);
if(m(i)=="a"||"i"||"u"||"e"||"o"){
cout << "vowel" << endl;
}
else if(){
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:9:9: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int&)'
9 | if(m(i)=="a"||"i"||"u"||"e"||"o"){
| ~^~~
a.cc:13:13: error: expected primary-expression before ')' token
13 | else if(){
| ^
|
s856472486 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string m;
cin >> m;
if(m(i)=="a"||"i"||"u"||"e"||"o"){
cout << "vowel" << endl;
}
else if{
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:10: error: 'i' was not declared in this scope
8 | if(m(i)=="a"||"i"||"u"||"e"||"o"){
| ^
a.cc:12:12: error: expected '(' before '{' token
12 | else if{
| ^
| (
|
s185942650 | p03852 | C | #include<stdio.h>
#include<string.h>
int main(){
//char S[];
//scanf("%s",S);
fgets(S);
int length = strlen(S);
int i,frag = 0;
for(i = 0; i < length; i++){
if(S[i] == 'd' && S[i + 1] == 'r' && S[i + 2] == 'e' && S[i + 3] == 'a' && S[i + 4] == 'm'){
if(S[i + 5] == 'e' && S[i + 6] == 'r'){
i += 6;
} e... | main.c: In function 'main':
main.c:7:15: error: 'S' undeclared (first use in this function)
7 | fgets(S);
| ^
main.c:7:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:9: error: too few arguments to function 'fgets'
7 | fgets... |
s379717162 | p03852 | Java | import java.util.Scanner;
//import java.util.Arrays;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
Srting c = scan.next();
String str = "consonant";
switch(c){
case "a":
case "i":
case "u":
case "e":
case "o":
str = "vowel";
}
System.out.prin... | Main.java:6: error: cannot find symbol
Srting c = scan.next();
^
symbol: class Srting
location: class Main
1 error
|
s726654414 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char s;
cin >> s;
if (s=='a'||s=='i'||s=='u'||s=='e'||s=='o'){
cout << "vowel" << endl;
}else if{
cout << "consonant" << endl;
} | a.cc: In function 'int main()':
a.cc:10:11: error: expected '(' before '{' token
10 | }else if{
| ^
| (
a.cc:12:2: error: expected '}' at end of input
12 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s107470688 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c ;
cin >> c;
if (c[0] = 'a' || c[0] = 'i' || c[0] = 'u' || c[0] = 'e' || c[0] = 'o') {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:60: error: lvalue required as left operand of assignment
7 | if (c[0] = 'a' || c[0] = 'i' || c[0] = 'u' || c[0] = 'e' || c[0] = 'o') {
|
s669126694 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c ;
cin >> c;
if (c[0] = 'a' || c[0] = 'i' || c[0] = 'u' || c[0] = 'e' || c[0] = 'o') {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:60: error: lvalue required as left operand of assignment
7 | if (c[0] = 'a' || c[0] = 'i' || c[0] = 'u' || c[0] = 'e' || c[0] = 'o') {
|
s094750500 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
if (c.at(0) == 'a'||c.at(0) == 'i'||c.at(0)=='u'||c.at(0)=='e'||c.at(0)=='o'){
cout << "vowel"<< endl;}
else{
cout << "consonant" << endl;}
}
} | a.cc:13:1: error: expected declaration before '}' token
13 | }
| ^
|
s668198484 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if(c || "a" || "i" || "u" || "e" || "o" ||){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:45: error: expected primary-expression before ')' token
8 | if(c || "a" || "i" || "u" || "e" || "o" ||){
| ^
|
s259399691 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o') {
cout << "vowel" << endl;
} else {
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:11: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
8 | if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o') {
| ~ ^~ ~~~
| | |
| | char
| ... |
s687470253 | p03852 | C++ | /**
* author: moririn_cocoa
**/
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <cmath>
#include <vector>
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_map>
#include <queue>
#include <ctime>
#include <cassert>
#include <complex>
#include <stri... | a.cc: In function 'int main()':
a.cc:32:16: error: 'a' was not declared in this scope
32 | if ( hy9r == a || hy9r == i || hy9r == u || hy9r == e || hy9r == o ) {
| ^
a.cc:32:29: error: 'i' was not declared in this scope
32 | if ( hy9r == a || hy9r == i || hy9r == u || hy9r == e || hy9r ==... |
s021333402 | p03852 | Java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class main {
public static void main(String[] args) throws IOException {
try (BufferedReader br = new BufferedReader(
new InputStreamReader(System.in))) {
String in = br.readLine();
System.out.println(in.e... | Main.java:5: error: class main is public, should be declared in a file named main.java
public class main {
^
1 error
|
s001852835 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if (c='a'||c='e'||c='u'||c='i'||c='o'){
cout << "vowel" << endl;
}else{
cout << "costant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:7:33: error: lvalue required as left operand of assignment
7 | if (c='a'||c='e'||c='u'||c='i'||c='o'){
| ~~~^~~
|
s375414298 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin>>c;
if( c=="a"){
cout<<"vowel"<<endl;
}
else if( c=="i"){
cout<<"vowel"<<endl;
}
else if( c=="u"){
cout<<"vowel"<<endl;
}
else if( c=="e"){
cout<<"vowel"<<endl;
}
else if( c=="o"){
cout<<"vowel"<<endl;... | a.cc: In function 'int main()':
a.cc:24:11: error: 'consonant' was not declared in this scope
24 | cout<<consonant<<endl;
| ^~~~~~~~~
|
s431297615 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if(c=="a"&&c=="i"&&c=="u"&&c=="e"&&c=="o"){
cout << "vowel" <<endl;
}
else{
cout << "consonant" <<endl;
}
} | a.cc: In function 'int main()':
a.cc:7:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c=="a"&&c=="i"&&c=="u"&&c=="e"&&c=="o"){
| ~^~~~~
a.cc:7:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c=="a"&&c=="i"&&c=="u"&&c=... |
s700656689 | 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:9: error: 'a' was not declared in this scope
7 | if(c==a&&c==i&&c==u&&c==e&&c==o){
| ^
a.cc:7:15: error: 'i' was not declared in this scope
7 | if(c==a&&c==i&&c==u&&c==e&&c==o){
| ^
a.cc:7:21: error: 'u' was not declared in this scope
... |
s571747741 | 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:10:13: error: 'vowel' was not declared in this scope
10 | cout << vowel << endl;
| ^~~~~
a.cc:12:13: error: 'consonant' was not declared in this scope
12 | cout << consonant << endl;
| ^~~~~~~~~
|
s292040690 | 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:11: error: expected primary-expression before ')' token
12 | else () {
| ^
|
s851069048 | 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 if () {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:12:14: error: expected primary-expression before ')' token
12 | else if () {
| ^
|
s385015207 | 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 if () {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:12:14: error: expected primary-expression before ')' token
12 | else if () {
| ^
|
s346258117 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
string a = "a";
string e = "e";
string i = "i";
string o = "o";
string u = "u";
cin>>s;
if(s.at(0) == a || e || o || i || u){
cout<<"vowel";
}else{
cout<<"consonant";
}
}
| a.cc: In function 'int main()':
a.cc:12:14: error: no match for 'operator==' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
12 | if(s.at(0) == a || e || o || i || u){
| ~~~~~~~ ^~ ~
| ... |
s423910257 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin>>s;
if(s.at(0)== "a" || "e" || "i" || "o" || "u"){
cout<<"vowel";
}else{
cout<<"consonant";
}
}
| a.cc: In function 'int main()':
a.cc:7:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(s.at(0)== "a" || "e" || "i" || "o" || "u"){
| ~~~~~~~^~~~~~
|
s332825510 | 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:22: error: 'C' was not declared in this scope
7 | if(c=='a'||c=='i'||C=='u'||c=='e'||c=='o') cout << "vowel" << endl;
| ^
|
s591067719 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int C;
cin >> C;
if (C=="a"){
cout << "vowel" <<endl;
}
else if (C=="i"){
cout << "vowal" <<endl;
}
else if (C=="u"){
cout << "vowal" <<endl;
}
else if (C=="e"){
cout << "vowal" <<endl;
}
else if (C=="o"){
cout << "vo... | a.cc: In function 'int main()':
a.cc:7:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if (C=="a"){
| ~^~~~~
a.cc:10:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
10 | else if (C=="i"){
| ~^~~~~
a.cc:13:13: er... |
s153758025 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
cher C;
cin >> C;
if (C=='a'){
cout << "vowel" <<endl;
}
else if (C=='i'){
cout << "vowal" <<endl;
}
else if (C=='u'){
cout << "vowal" <<endl;
}
else if (C=='e'){
cout << "vowal" <<endl;
}
else if (C=='o'){
cout << "v... | 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;
| ^
|
s832975548 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
cher C;
cin >> C;
if (C==a){
cout << "vowel" <<endl;
}
else if (C==i){
cout << "vowal" <<endl;
}
else if (C==u){
cout << "vowal" <<endl;
}
else if (C==e){
cout << "vowal" <<endl;
}
else if (C==o){
cout << "vowal" <<en... | 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;
| ^
a.cc:7:10: error: 'a' was not declared in this scope
7 | if (C==a... |
s435984165 | 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:9:9: error: expected primary-expression before ')' token
9 | else ()
| ^
|
s046110759 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char a;
cin >>a;
if(a=='a' || a=='i' || a=='u' ||a =='e' ||a='o'){cout <<"vowel"<<endl;}
else{cout<<"consonant"<<endl;}
}
| a.cc: In function 'int main()':
a.cc:7:41: error: lvalue required as left operand of assignment
7 | if(a=='a' || a=='i' || a=='u' ||a =='e' ||a='o'){cout <<"vowel"<<endl;}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
|
s215544768 | p03852 | C | #include <stdio.h>
int main()
{
char ch;
scanf("%c", &ch);
if (ch == 'a' || ch ==a 'e' || ch == 'i' || ch == 'o' || ch == 'u')
{
printf("vowel\n");
}
else
{
printf("consonant\n");
}
return 0;
}
| main.c: In function 'main':
main.c:9:27: error: 'a' undeclared (first use in this function)
9 | if (ch == 'a' || ch ==a 'e' || ch == 'i' || ch == 'o' || ch == 'u')
| ^
main.c:9:27: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:28:... |
s077193402 | p03852 | C++ | #include <stdc++.h>
using namespace std;
int main(){
string s;
cin>>s;
if (s=="a" || s=="i" || s=="e" || s=="u" || s=="o"){
cout<<"vowel"<<endl;
}
else{
cout<<"consonant"<<endl;
}
} | a.cc:1:10: fatal error: stdc++.h: No such file or directory
1 | #include <stdc++.h>
| ^~~~~~~~~~
compilation terminated.
|
s400440480 | p03852 | C++ | #include<bits\stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie();
char aj;
cin>>aj;
if(aj=='a'||aj=='e'||aj=='i'||aj=='o'||aj=='u')
cout<<"Since"<<" "<< aj<<" " <<"is a vowel, print vowel."<<endl;
else
cout<<"consonant"<<endl;
return 0;
}
| a.cc:1:9: fatal error: bits\stdc++.h: No such file or directory
1 | #include<bits\stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s931709807 | p03852 | C++ | #include<bits\stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie();
char aj;
cin>>aj;
if(aj=='a'||aj=='e'||aj=='i'||aj=='o'||aj=='u')
cout<<"Since"<<" "<< aj<<" " <<"is a vowel, print vowel."<<endl;
else
cout<<"consonant"<<endl;
return 0;
}
| a.cc:1:9: fatal error: bits\stdc++.h: No such file or directory
1 | #include<bits\stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s644418640 | p03852 | C++ | #include<bits\stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie();
char aj;
cin>>aj;
if(aj=='a'||aj=='e'||aj=='i'||aj=='o'||aj=='u')
cout<<"Since"<<" "<< aj<<" " <<"is a vowel, print vowel."<<endl;
else
cout<<"consonant"<<endl;
return 0;
}
| a.cc:1:9: fatal error: bits\stdc++.h: No such file or directory
1 | #include<bits\stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s173509376 | p03852 | C++ | #include<bits\stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie();
char aj;
cin>>aj;
if(aj=='a'||aj=='e'||aj=='i'||aj=='o'||aj=='u')
cout<<"Since"<<" "<< aj<<" " <<"is a vowel, print vowel."<<endl;
else
cout<<"consonant"<<endl;
}
| a.cc:1:9: fatal error: bits\stdc++.h: No such file or directory
1 | #include<bits\stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s938919243 | 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 << "... | a.cc: In function 'int main()':
a.cc:8:11: error: 'a' was not declared in this scope
8 | if(c == a){
| ^
a.cc:11:16: error: 'e' was not declared in this scope
11 | else if(c == e){
| ^
a.cc:14:16: error: 'i' was not declared in this scope
14 | else if(c == i){
... |
s207011757 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int c;
cin >> c >> endl;
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){
c... | a.cc: In function 'int main()':
a.cc:6:12: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and '<unresolved overloaded function type>')
6 | cin >> c >> endl;
| ~~~~~~~~~^~~~~~~
In file included from /usr/include/c++/14/sstream... |
s295348761 | 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:52: error: lvalue required as left operand of assignment
7 | if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c = 'o')
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
|
s181076075 | p03852 | C++ | #include<iostream>
using namespace std;
int main(){
char c;
cin>>c;
if(c=="a")
cout<<"vowel"<<endl;
else if(c=="i")
cout<<"vowel"<<endl;
else if(c=="u")
cout<<"vowel"<<endl;
else if(c=="e")
cout<<"vowel"<<endl;
else if(c=="o")
cout<<"vowel"<<endl;
else
cout<<"consonant"<<endl;
} | a.cc: In function 'int main()':
a.cc:6:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if(c=="a")
| ~^~~~~
a.cc:8:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | else if(c=="i")
| ~^~~~~
a.cc:10:12: error: IS... |
s679098252 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
sin >> 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:6: error: invalid operands of types '<unresolved overloaded function type>' and 'char' to binary 'operator>>'
6 | sin >> c;
| ~~~~^~~~
|
s538286368 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char A;
cin >> A;
if(A == "a" || "i" || "u" || "e" || "o" ){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:9:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | if(A == "a" || "i" || "u" || "e" || "o" ){
| ~~^~~~~~
|
s932763760 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string A;
cin >> A;
if( A == "a" || "i" || "u" || "e" || "o" ){
cout << "vowel" << endl;
}
else if{
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:15:10: error: expected '(' before '{' token
15 | else if{
| ^
| (
|
s423400588 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char A;
cin >> A;
if(A == a || b || c || d || e ){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:9:11: error: 'a' was not declared in this scope
9 | if(A == a || b || c || d || e ){
| ^
a.cc:9:16: error: 'b' was not declared in this scope
9 | if(A == a || b || c || d || e ){
| ^
a.cc:9:21: error: 'c' was not declared in this scop... |
s430146630 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char A;
cin >> A;
if(A == "a" || "b" || "c" || "d" || "e" ){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:9:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | if(A == "a" || "b" || "c" || "d" || "e" ){
| ~~^~~~~~
|
s307712399 | p03852 | C++ | #include<iostream>
using namespace std;
int main(){
char s;
cin>>s;
const string vowel="aeiou";
cout<<vowel.find(s)==string::npos ? "vowel":"consonant"<<endl;
}
| a.cc: In function 'int main()':
a.cc:7:22: 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'})
7 | cout<<vowel.find(s)==string::npos ? "vowel":"conso... |
s089961597 | p03852 | C++ | #include<iostream>
using namespace std;
int main(){
char s;
cin>>s;
const string vowel="aeiou";
cout<<vowel.find(c)==string::npos ? "vowel":"consonant"<<endl;
} | a.cc: In function 'int main()':
a.cc:7:20: error: 'c' was not declared in this scope
7 | cout<<vowel.find(c)==string::npos ? "vowel":"consonant"<<endl;
| ^
a.cc:7:58: error: invalid operands of types 'const char [10]' and '<unresolved overloaded function type>' to binary 'operator<<'
... |
s085142567 | 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:8:13: error: 'vowel' was not declared in this scope
8 | cout << vowel << endl;
| ^~~~~
a.cc:10:13: error: 'consonant' was not declared in this scope
10 | cout << consonant << endl;
| ^~~~~~~~~
|
s710678558 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
bool vowel = false;
for (int i = 0; i < 5; i++) {
if
"aiueo"s.at(i) == c {
cout << "vowel" << endl;
vowel = true;
}
}
if (vowel == false) {
cout << "constant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:13:7: error: expected '(' before user-defined string literal
13 | "aiueo"s.at(i) == c {
| ^~~~~~~~
| (
|
s972829428 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string 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:13: error: expected primary-expression before '||' token
6 | if(c=="a")||(c=="i")||(c=="u")||(c=="e")||(c=="o")
| ^~
a.cc: At global scope:
a.cc:9:1: error: expected unqualified-id before 'else'
9 | else {
| ^~~~
a.cc:12:1: error: expected declara... |
s360361613 | 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;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
8 | if(c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u')
| ~ ^~ ~~~
| | |
| | char
| std::strin... |
s750869001 | 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'
else
{
cout << 'consonant'
}
} | a.cc:9:13: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
9 | cout << 'vowel'
| ^~~~~~~
a.cc:12:13: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
12 | cout << 'consonant'
| ^~~~~~~~~~~
a.cc: In functi... |
s839063322 | p03852 | C++ | #include <iostream>
using namespace std;,
char ans[5]={'a','b','c','d','e'};
int main(){
string c;
cin>>c;
for(int i=0;i<5;i++){
if(c[0]==ans[i]){
cout<<"vowel"<<endl;
return 0;
}
}
cout<<"consonant"<<endl;
return 0;
}
| a.cc:3:21: error: expected unqualified-id before ',' token
3 | using namespace std;,
| ^
a.cc:5:1: error: expected unqualified-id before 'char'
5 | char ans[5]={'a','b','c','d','e'};
| ^~~~
a.cc: In function 'int main()':
a.cc:11:14: error: 'ans' was not declared in this scope; d... |
s602391154 | 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:7:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c == "a"||"i"||"u"||"e"||"o"){
| ~~^~~~~~
|
s492774733 | 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:7:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c=="a"||"i"||"u"||"e"||"o"){
| ~^~~~~
|
s836968264 | 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:5:8: error: expected unqualified-id before '=' token
5 | char = c;
| ^
a.cc:6:10: error: 'c' was not declared in this scope
6 | cin >> c;
| ^
|
s861191518 | p03852 | C++ | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
string c;
cin >> c;
if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o')cout << "vowel" << endl;
else cout << "consonant" << endl;
} | a.cc: In function 'int main()':
a.cc:8:15: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
8 | if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o')cout << "vowel" << endl;
| ~ ^~ ~~~
| | |
... |
s990781701 | 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:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c == "... |
s802805729 | 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:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c == "a" || c=... |
s704182612 | 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:3: error: expected '}' before 'else'
10 | else cout << "consonant" << endl;
| ^~~~
a.cc:8:37: note: to match this '{'
8 | if (c == 'a', 'i', 'u', 'e', 'o') {
| ^
a.cc: At global scope:
a.cc:12:1: error: expected declara... |
s843842386 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if (c.at(0) == 'a', 'i', 'u', 'e', 'o') {
cout << "vowel" << endl;
}
else cout << "consonant" << endl;
} | a.cc: In function 'int main()':
a.cc:8:9: error: request for member 'at' in 'c', which is of non-class type 'char'
8 | if (c.at(0) == 'a', 'i', 'u', 'e', 'o') {
| ^~
|
s503307905 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if (c.at(0) == a, i, u, e, o) {
cout << "vowel" << endl;
}
else cout << "consonant" << endl;
} | a.cc: In function 'int main()':
a.cc:8:9: error: request for member 'at' in 'c', which is of non-class type 'char'
8 | if (c.at(0) == a, i, u, e, o) {
| ^~
a.cc:8:18: error: 'a' was not declared in this scope
8 | if (c.at(0) == a, i, u, e, o) {
| ^
a.cc:8:21: error: 'i' ... |
s414090990 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char 'c';
cin >> 'c';
if ('c'.at(0) == a, i, u, e, o) {
cout << "vowel" << endl;
}
else cout << "consonant" << endl;
} | a.cc: In function 'int main()':
a.cc:5:8: error: expected unqualified-id before 'c'
5 | char 'c';
| ^~~
a.cc:6:7: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'char')
6 | cin >> 'c';
| ~~~ ^~ ~~~
| | |
| | ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.