submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s602044942 | 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:13: error: 'a' was not declared in this scope
7 | if ( c == a,e,i,o,u ) {
| ^
a.cc:7:15: error: 'e' was not declared in this scope
7 | if ( c == a,e,i,o,u ) {
| ^
a.cc:7:17: error: 'i' was not declared in this scope
7 | if ( ... |
s738359931 | 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:13: error: 'a' was not declared in this scope
7 | if ( c == a || c == e || c == i || c == o || c == u ) {
| ^
a.cc:7:23: error: 'e' was not declared in this scope
7 | if ( c == a || c == e || c == i || c == o || c == u ) {
| ... |
s855978076 | 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";
else
cout << "consonant"
cout << endl;
} | a.cc: In function 'int main()':
a.cc:11:36: error: expected ';' before 'cout'
11 | cout << "consonant"
| ^
| ;
12 | cout << endl;
| ~~~~
|
s540064811 | 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:25: error: expected primary-expression before '||' token
8 | if (c=='a'||c=='i'==||c=='u'||c=='e'||c=='o'){
| ^~
|
s677690064 | 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:25: error: expected primary-expression before '||' token
8 | if (c=='a'||c=='i'==||c=='u'||c=='e'||c=='o'){
| ^~
a.cc:9:13: error: 'vowel' was not declared in this scope
9 | cout<<vowel<<endl;
| ^~~~~
a.cc:12:13: er... |
s587734958 | 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 << "vowel" << endl;
}
else if (c=="u"){
cout << "vowel" << endl;
}
else if (c=="e"){
cout << "vowel" << endl;
}
else if (c=="o"){
cout... | 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... |
s449824291 | 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 << vowel << endl;
}
else if (c=="u"){
cout << vowel << endl;
}
else if (c=="e"){
cout << vowel << endl;
}
else if (c=="o"){
cout << vowe... | 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:8:13: error: 'vowel' was not declared in this scope
8 | cout << vowel << endl;
| ^~~~~
a.cc:10:13: error: ISO C++ forbids comp... |
s509702269 | 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:24: error: expected primary-expression before ',' token
9 | cout << "vowel" <,endl;
| ^
|
s822102658 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string str;
cin >> str;
if(str.at == 'a'){
cout << "vowel" << endl;
}
else if(str.at == 'i'){
cout << "vowel" << endl;
}
else if(str.at == 'u'){
cout << "vowel" << endl;
}
else if(str.at == 'e'){
cout << "vowel" << endl;
}
... | a.cc: In function 'int main()':
a.cc:8:13: error: invalid operands of types '<unresolved overloaded function type>' and 'char' to binary 'operator=='
8 | if(str.at == 'a'){
| ~~~~~~ ^~ ~~~
| | |
| | char
| <unresolved overloaded function type>
a.cc:1... |
s083159506 | 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:73: error: expected primary-expression before ')' token
8 | if ( c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u' ||)
| ^
|
s984172811 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cin>>s;
if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u'){
cout<<"vowel"<<endl;
}else{
cout<<"consonant"<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:5: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
7 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u'){
| ~^~~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string... |
s163460723 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cin>>s;
if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u'){
cout<<"vowel"<<endl;
}else{
cout<<"consonant"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:7:5: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
7 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u'){
| ~^~~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string... |
s522776654 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
if (c == a || c==e || c==i || c==u || c==o){
cout << "vowel" << endl;
}
else {
cout << "consonant" <<endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:12: error: 'a' was not declared in this scope
8 | if (c == a || c==e || c==i || c==u || c==o){
| ^
a.cc:8:20: error: 'e' was not declared in this scope
8 | if (c == a || c==e || c==i || c==u || c==o){
| ^
a.cc:8:28: error: 'i' ... |
s920266197 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c >> endl;
if (c == a || c==e || c==i || c==u || c==o){
cout << "vowel" << endl;
}
else {
cout << "consonant" <<endl;
}
}
| a.cc: In function 'int main()':
a.cc:6:12: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>' and '<unresolved overloaded function type>')
6 | cin >> c >> endl;
| ~~~~~~~~~^~~~~~~
In file included from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/co... |
s024592079 | 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:15:1: error: expected declaration before '}' token
15 | }
| ^
|
s674742459 | 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:10:14: error: lvalue required as left operand of assignment
10 | if(c=='a'||c='i'||c=='u'||c=='e'||c=='o')
| ~~~~~~^~~
a.cc: At global scope:
a.cc:15:1: error: expected declaration before '}' token
15 | }
| ^
|
s932701225 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string str1;
cin >> str1;
if (str.at(1) == 'a' || str.at(1) == 'i' || str.at(1) == 'u' || str.at(1) == 'e' || str.at(1) == 'o') {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:6: error: 'str' was not declared in this scope; did you mean 'str1'?
8 | if (str.at(1) == 'a' || str.at(1) == 'i' || str.at(1) == 'u' || str.at(1) == 'e' || str.at(1) == 'o') {
| ^~~
| str1
|
s416493523 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char 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... | a.cc:25:1: error: expected declaration before '}' token
25 | }
| ^
|
s578961727 | 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... |
s538515886 | 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: 'C' was not declared in this scope
8 | if(c=='a' || c=='i' || c=='u' || c=='e' || C=='o') {
| ^
|
s291835167 | 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:1:10: fatal error: bits.stdc++.h: No such file or directory
1 | #include <bits.stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s953694593 | p03852 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string c;
cin >> c;
if(c.find == ("a" or "i" or "u" or "e" or "o")){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:13: error: invalid operands of types '<unresolved overloaded function type>' and 'bool' to binary 'operator=='
8 | if(c.find == ("a" or "i" or "u" or "e" or "o")){
| ~~~~~~ ^~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
... |
s900436951 | p03852 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string c;
cin >> c;
if(c == ("a" or "i" or "u" or "e" or "o")){
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 'bool')
8 | if(c == ("a" or "i" or "u" or "e" or "o")){
| ~ ^~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
|... |
s200160600 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char c; //入力
cin >> c;
String boin; //文字列変数
boin = "aiueo";
for(int i=0;i<boin.size();i++){
if(boin.at(i) == c){
cout << "vowel";
} else {
cout << "consonant";
}
}
} | a.cc: In function 'int main()':
a.cc:7:3: error: 'String' was not declared in this scope
7 | String boin; //文字列変数
| ^~~~~~
a.cc:8:3: error: 'boin' was not declared in this scope
8 | boin = "aiueo";
| ^~~~
|
s976894935 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char c; //入力
cin >> c;
string boin; //文字列変数
boin = "aiueo";
for(i=0;i<boin.size();i++){
if(boin.at(i) == c){
cout << "vowel";
} else {
cout << "consonant";
}
}
} | a.cc: In function 'int main()':
a.cc:10:7: error: 'i' was not declared in this scope
10 | for(i=0;i<boin.size();i++){
| ^
|
s646811853 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char c; //入力
cin >> c;
String boin; //文字列変数
boin = "aiueo";
for(i=0;i<boin.size();i++){
if(boin.at(i) == c){
cout << "vowel";
} else {
cout << "consonant";
}
}
} | a.cc: In function 'int main()':
a.cc:7:3: error: 'String' was not declared in this scope
7 | String boin; //文字列変数
| ^~~~~~
a.cc:8:3: error: 'boin' was not declared in this scope
8 | boin = "aiueo";
| ^~~~
a.cc:10:7: error: 'i' was not declared in this scope
10 | for(i=0;i<boin.size();i+... |
s732433006 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
char c;
if(c == 'a'||c == 'e'||c == 'o'||c == 'u'||c == 'i'){
cout << "vowel" << endl;
} else {
cout << "consonant" <<endl;
}
| a.cc: In function 'int main()':
a.cc:11:2: error: expected '}' at end of input
11 | }
| ^
a.cc:5:1: note: to match this '{'
5 | {
| ^
|
s640868149 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
char c;
if(c == 'a'||c == 'e'||c == 'o'||c == 'u'||c == 'i'){
cout << "vowel" << endl;
} else {
cout << consonant <<endl;
} | a.cc: In function 'int main()':
a.cc:10:13: error: 'consonant' was not declared in this scope
10 | cout << consonant <<endl;
| ^~~~~~~~~
a.cc:11:2: error: expected '}' at end of input
11 | }
| ^
a.cc:5:1: note: to match this '{'
5 | {
| ^
|
s761550250 | 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:10: error: 'c' was not declared in this scope
5 | cin>>c;
| ^
|
s507792565 | p03852 | C++ | #include <iostream>
using namespace std;
int main(){
char b;
string a;
cin >> a;
b = a;
if(b=='a' or b =='i' or b=='u' or b=='e' or b=='o'){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:7:5: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char' in assignment
7 | b = a;
| ^
| |
| std::string {aka std::__cxx11::basic_string<char>}
|
s132574408 | p03852 | C++ | #include<iostream>
#include<string>
using namespace std;
int main()
{
string c;
cin >> c;
if((c == 'a') || (c == 'i') || (c == 'y') || (c == 'u') || (c == 'o'))
cout << "vowel";
else cout << "consonant";
return 0;
} | a.cc: In function 'int main()':
a.cc:8:9: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
8 | if((c == 'a') || (c == 'i') || (c == 'y') || (c == 'u') || (c == 'o'))
| ~ ^~ ~~~
| | |
| | char
| ... |
s635293342 | p03852 | C++ | #include<iostream>
#include<string>
using namespace std;
int main()
{
string c;
cin >> c;
if(c == ('a' || 'i' || 'y' || 'u' || 'o'))
cout << "vowel";
else cout << "consonant";
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 'bool')
8 | if(c == ('a' || 'i' || 'y' || 'u' || 'o'))
| ~ ^~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| ... |
s475652590 | 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:23: error: expression cannot be used as a function
8 | if (c =='a')(c=='e')(c=='i')(c=='o')(c=='u')
| ~~~~~~~~^~~~~~~~
|
s502467887 | 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:15: error: expected primary-expression before ',' token
8 | if (c =='a'),(c=='e'),(c=='i'),(c=='o'),(c=='u')
| ^
|
s724477454 | 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:15: error: expected primary-expression before '||' token
8 | if (c =='a')||(c=='e')||(c=='i')||(c=='o')||(c=='u')
| ^~
|
s191179227 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char l;
cin >> l;
if (l=='a' || l=='e' || l=='i' || l=='o' l=='u') {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:43: error: expected ')' before 'l'
8 | if (l=='a' || l=='e' || l=='i' || l=='o' l=='u') {
| ~ ^~
| )
|
s971923693 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char s;
bool judge=true;
cin >> s;
switch(s.at(i)){
case'a':;
case'i':;
case'u':;
case'e':;
case'o':;
default:judge=false;
}
if(judge ==true)
cout << "vowel" << endl;
else cout << "consonant... | a.cc: In function 'int main()':
a.cc:8:14: error: request for member 'at' in 's', which is of non-class type 'char'
8 | switch(s.at(i)){
| ^~
a.cc:8:17: error: 'i' was not declared in this scope
8 | switch(s.at(i)){
| ^
|
s551850281 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char s;
bool judge=true;
cin << s;
switch(s.at(i)){
case'a':;
case'i':;
case'u':;
case'e':;
case'o':;
default:judge=false;
}
if(judge ==true)
cout << "vowel" << endl;
else cout << "consonant... | a.cc: In function 'int main()':
a.cc:7:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'char')
7 | cin << s;
| ~~~ ^~ ~
| | |
| | char
| std::istream {aka std::basic_istream<char>}
a.cc:7:7: note: candidate: 'oper... |
s046588457 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
char ch;
cin>>ch;
if(ch==a || ch==e || ch==i || ch==o || ch==b)
cout<<"vowel"<<endl;
else
cout<<"consonant"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:12: error: 'a' was not declared in this scope
7 | if(ch==a || ch==e || ch==i || ch==o || ch==b)
| ^
a.cc:7:21: error: 'e' was not declared in this scope
7 | if(ch==a || ch==e || ch==i || ch==o || ch==b)
| ^
a.cc:7:30: erro... |
s384917651 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
char a;
cin>>a;
if(ch==a || ch==e || ch==i || ch==o || ch==b)
cout<<"vowel"<<endl;
else
cout<<"consonant"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:6: error: 'ch' was not declared in this scope
7 | if(ch==a || ch==e || ch==i || ch==o || ch==b)
| ^~
a.cc:7:19: error: 'e' was not declared in this scope
7 | if(ch==a || ch==e || ch==i || ch==o || ch==b)
| ^
a.cc:7:28: error: 'i' was ... |
s770250146 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c = 'a';
cin>> c;
if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){
cout << "vowel" <<endl;
}
else{
cout << "constant" <<
}
| a.cc: In function 'int main()':
a.cc:12:3: error: expected primary-expression before '}' token
12 | }
| ^
a.cc:12:4: error: expected '}' at end of input
12 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s068659633 | 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:11: error: 'vowel' was not declared in this scope
8 | cout<<vowel<<endl;
| ^~~~~
a.cc:10:11: error: 'consonant' was not declared in this scope
10 | cout<<consonant<<endl;
| ^~~~~~~~~
|
s392598965 | 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: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... |
s312881295 | 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:6:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
6 | if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u')
| ~^~~~~
| | |
| | char
| std::string {aka std::__cxx11... |
s777981973 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char c;
cin >> c;
bloo flag = false;
if(c == 'a'){
flag = true;
}
else if(c == 'i'){
flag = true;
}
else if(c == 'u'){
flag = true;
}
else if(c == 'e'){
flag = true;
}
else if(c == 'o'){
flag = true;
}
else{
flag = false;
}
if(fl... | a.cc: In function 'int main()':
a.cc:7:9: error: 'bloo' was not declared in this scope
7 | bloo flag = false;
| ^~~~
a.cc:10:17: error: 'flag' was not declared in this scope
10 | flag = true;
| ^~~~
a.cc:13:17: error: 'flag' was not declared in this sco... |
s564238151 | p03852 | C++ | #include <bits/stdc++.h>
using namespace.std;
int main(){
char c;
cin >> c;
bloo flag = false;
if(c == 'a'){
flag = true;
}
else if(c == 'i'){
flag = true;
}
else if(c == 'u'){
flag = true;
}
else if(c == 'e'){
flag = true;
}
else if(c == 'o'){
flag = true;
}
else{
flag = false;
}
if(fl... | a.cc:2:16: error: expected identifier before '.' token
2 | using namespace.std;
| ^
a.cc:2:16: error: expected ';' before '.' token
2 | using namespace.std;
| ^
| ;
a.cc:2:16: error: expected unqualified-id before '.' token
a.cc: In function 'int ma... |
s895721280 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int c;
cin >> c;
if (c == a || e || u || i || o) {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:9:12: error: 'a' was not declared in this scope
9 | if (c == a || e || u || i || o) {
| ^
a.cc:9:17: error: 'e' was not declared in this scope
9 | if (c == a || e || u || i || o) {
| ^
a.cc:9:22: error: 'u' was not declared in this ... |
s736656615 | p03852 | C++ | #include <iostream>
using namespace std;
int main(){
char alpabet = "";
cin >> alpabet;
if(alpabet == 'a' || alpabet == 'i' ||
alpabet == 'u' || alpabet == 'e' || alpabet == 'o'){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:5:18: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
5 | char alpabet = "";
| ^~
| |
| const char*
|
s883725211 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char = s;
if ('s' == 'a'||'s'=='i'||'s'=='u'||'s'=='e'||'s'=='o') cout << "vowel" << endl;
else cout << "constant" << endl;
}
| a.cc: In function 'int main()':
a.cc:5:8: error: expected unqualified-id before '=' token
5 | char = s;
| ^
|
s513710549 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char = s;
if ('s' == 'a'||'s'=='i'||'s'=='u'||'s'=='e'||'s'=='o') cout << "vowel" << endl;
else cout << "constant" << endl;
} | a.cc: In function 'int main()':
a.cc:5:8: error: expected unqualified-id before '=' token
5 | char = s;
| ^
|
s978467942 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char = s;
if ('s' == 'a'||'s'=='i'||'s'=='u'||'s'=='e'||'s'=='o') cout << "vowel";
else cout << "constant";
} | a.cc: In function 'int main()':
a.cc:5:8: error: expected unqualified-id before '=' token
5 | char = s;
| ^
|
s871094371 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
star = s;
if ('s' == 'a'||'s'=='i'||'s'=='u'||'s'=='e'||'s'=='o') cout << "vowel"
else cout << "constant"
} | a.cc: In function 'int main()':
a.cc:5:3: error: 'star' was not declared in this scope
5 | star = s;
| ^~~~
a.cc:5:10: error: 's' was not declared in this scope
5 | star = s;
| ^
a.cc:6:74: error: expected ';' before 'else'
6 | if ('s' == 'a'||'s'=='i'||'s'=='u'||'s'=='e'||'s'==... |
s609800521 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char c;
cin c;
if(c=='a' || c=='e' || c=='i' || c=='u' || c=='o')
cout << "vowel" << endl;
else
cout << "consonant" << endl;
} | a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'c'
6 | cin c;
| ^~
| ;
|
s369816523 | 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: warning: ignoring return value of 'bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
8 | if (c=... |
s441347558 | p03852 | C++ | #include <bits/stdc++.h>
using name 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:2:7: error: expected nested-name-specifier before 'name'
2 | using name std;
| ^~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | cin >> c;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gn... |
s065082553 | p03852 | C++ | vowel = ['a','i','u','e','o']
print('vowel' if input() in vowel else 'consonant') | a.cc:2:7: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
2 | print('vowel' if input() in vowel else 'consonant')
| ^~~~~~~
a.cc:2:40: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
2 | print('vowel' if input() in vowel else 'consona... |
s339448946 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string str = "S";
if (S == 'a' + 'i' + 'u' + 'e' + 'o';
cout << vowel << endl;
else;
cout << consonant << endl;
)
}
| a.cc: In function 'int main()':
a.cc:7:6: error: 'S' was not declared in this scope
7 | if (S == 'a' + 'i' + 'u' + 'e' + 'o';
| ^
a.cc:8:14: error: 'vowel' was not declared in this scope
8 | cout << vowel << endl;
| ^~~~~
a.cc:8:27: error: expected ')' before ';' token
8 ... |
s590746341 | p03852 | C++ | #include <buts/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:1:10: fatal error: buts/stdc++.h: No such file or directory
1 | #include <buts/stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s708463182 | 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:20: error: expected ';' before 'endl'
8 | cout << "vowel" endl;
| ^~~~~
| ;
a.cc:11:24: error: expected ';' before 'endl'
11 | cout << "consonant" endl;
| ^~~~~
| ... |
s303144201 | 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:6: error: expected ';' before 'c'
6 | cin c;
| ^~
| ;
a.cc:8:20: error: expected ';' before 'endl'
8 | cout << "vowel" endl;
| ^~~~~
| ;
a.cc:11:24: error: expected ';' before 'endl'
11 | ... |
s599289620 | 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:6: error: expected ';' before 'c'
6 | cin c;
| ^~
| ;
a.cc:7:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if ( c == "a" || c== "i" ||c == "u" ||c == "e" ||c == "o" ) {
| ~~^~~~~~
a.cc:7:21: erro... |
s526220940 | 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:6:6: error: expected ';' before 'c'
6 | cin c;
| ^~
| ;
a.cc:7:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if ( c == "a" || "i" || "u" || "e" || "o" ) {
| ~~^~~~~~
a.cc:8:20: error: expected ';' ... |
s632939731 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin c;
if ( c == a || i || u || e || o ) {
cout << vowel ;
}
else {
cout << consonant ;
}
} | a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'c'
6 | cin c;
| ^~
| ;
a.cc:7:13: error: 'a' was not declared in this scope
7 | if ( c == a || i || u || e || o ) {
| ^
a.cc:7:18: error: 'i' was not declared in this scope
7 | if ( c == a || ... |
s971770969 | 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:7:24: error: 'C' was not declared in this scope
7 | if(c == "a" || C == "i" || c == "u" || c == "e" || c == "o") {
| ^
|
s911661126 | 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:7:14: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
7 | if(c == 'a' || C == 'i' || c == 'u' || c == 'e' || c == 'o') {
| ~ ^~ ~~~
| | |
| | ... |
s214762301 | p03852 | C | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
char a;
cin>>a;
if(a=='a'||a=='i'||a=='u'||a=='e'||a=='o') cout<<"vowel"<<endl;
else cout<<"consonant"<<endl;
return 0;
}
| main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
1 | #include <bits/stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s222411637 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
char ans;
int main(){
cin>>ans;
if((ans=='a')||(ans=='e')||(ans=='i')||(ans=='o')||(ans=='u')); cout<<"vowel"<<endl;
else cout<<"consonant"<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:9: error: 'else' without a previous 'if'
7 | else cout<<"consonant"<<endl;
| ^~~~
|
s577976472 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for( int i = 0; i < (int)(n); i++ )
int main( void )
{
char c;
cin >> c;
string x = "aiueo";
bool y = false;
rep(i,c.size())
{
if ( c == x.at(i) )
{
y = true;
}
}
if ( y )
... | a.cc: In function 'int main()':
a.cc:12:13: error: request for member 'size' in 'c', which is of non-class type 'char'
12 | rep(i,c.size())
| ^~~~
a.cc:3:44: note: in definition of macro 'rep'
3 | #define rep(i,n) for( int i = 0; i < (int)(n); i++ )
| ... |
s676341351 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for( int = 0; i < (int)(n); i++ )
int main( void )
{
char c;
cin >> c;
string x = "aiueo";
bool y = false;
rep(i,c.size())
{
if ( c == x.at(i) )
{
y = true;
}
}
if ( y )
... | a.cc: In function 'int main()':
a.cc:3:27: error: expected unqualified-id before '=' token
3 | #define rep(i,n) for( int = 0; i < (int)(n); i++ )
| ^
a.cc:12:5: note: in expansion of macro 'rep'
12 | rep(i,c.size())
| ^~~
a.cc:3:27: error: expected ';' before '=' tok... |
s708881425 | 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;
}
}
| a.cc: In function 'int main()':
a.cc:6:12: error: 'a' was not declared in this scope
6 | if(s==a||s==i||s==u||s==e||s==o){
| ^
a.cc:6:18: error: 'i' was not declared in this scope
6 | if(s==a||s==i||s==u||s==e||s==o){
| ^
a.cc:6:24: error: 'u' was not declared i... |
s711133503 | 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;
}
}
| a.cc: In function 'int main()':
a.cc:6:12: error: 'a' was not declared in this scope
6 | if(s==a||s==i||s==u||s==e||s==o){
| ^
a.cc:6:18: error: 'i' was not declared in this scope
6 | if(s==a||s==i||s==u||s==e||s==o){
| ^
a.cc:6:24: error: 'u' was not declared i... |
s891688498 | 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;
}
} | a.cc: In function 'int main()':
a.cc:5:10: error: expected ';' before 'if'
5 | cin>>s
| ^
| ;
6 | if(s==a||s==i||s==u||s==e||s==o){
| ~~
a.cc:9:6: error: 'else' without a previous 'if'
9 | else{
| ^~~~
|
s996305435 | 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:6:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){
| ~^~~~~
a.cc:6:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if(c=="a"||c=="e"||c=="i"||c=... |
s160834567 | 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";
}
} | 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.cc... |
s283862180 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
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:3:1: error: 'main' does not name a type
3 | main{
| ^~~~
|
s076056664 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
int c.at(0);
cin >> c.at(0);
if (c.at(0) == a || e || i || o || U) {
cout << vowel << endl;
}
else {
cout << consonant << endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:8: error: expected initializer before '.' token
8 | int c.at(0);
| ^
a.cc:11:18: error: 'a' was not declared in this scope
11 | if (c.at(0) == a || e || i || o || U) {
| ^
a.cc:11:23: error: 'e' was not declared in this scope
11 | ... |
s264174942 | 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:7:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
7 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
| ~ ^~ ~~~
| | |
| | char
| std::stri... |
s674510115 | 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 {
c = "consonant"
cout << c << endl;
}
}
| a.cc: In function 'int main()':
a.cc:9:8: 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
| std::string {aka st... |
s246321438 | 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: 'a' was not declared in this scope
6 | if((c==a)||(c==i)||(c==u)||(c==e)||(c==o))
| ^
a.cc:6:18: error: 'i' was not declared in this scope
6 | if((c==a)||(c==i)||(c==u)||(c==e)||(c==o))
| ^
a.cc:6:26: error: 'u' was not ... |
s607087739 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define dunk(n) cout << n << endl
int main() {
char c;
cin >> c;
if(c = 'a'||c = 'i'||c = 'u'||c = 'e'||c = 'o')
dunk ("vowel");
else dunk ("consonant");
} | a.cc: In function 'int main()':
a.cc:8:40: error: lvalue required as left operand of assignment
8 | if(c = 'a'||c = 'i'||c = 'u'||c = 'e'||c = 'o')
| ~~~^~~
|
s826218902 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
string x;
cin >> c ;
if(c=='a' || c=='e' || c=='i' || c=='o' || c=='u'){
x = "vowel"}
else{x = "consonant"}
cout << x << endl;
}
| a.cc: In function 'int main()':
a.cc:9:18: error: expected ';' before '}' token
9 | x = "vowel"}
| ^
| ;
a.cc:10:23: error: expected ';' before '}' token
10 | else{x = "consonant"}
| ^
| ;
|
s334701956 | p03852 | C++ | #include <iostream>
using namespace std;
int main()
{
char charecter;
cin >> charecter;
if(charecter == 'a' || charecter == 'o' || charecter == 'u' || charecter == 'e' || character == 'i')
cout << "vowel";
else
cout << "consonant";
return 0;
}
| a.cc: In function 'int main()':
a.cc:10:88: error: 'character' was not declared in this scope; did you mean 'charecter'?
10 | if(charecter == 'a' || charecter == 'o' || charecter == 'u' || charecter == 'e' || character == 'i')
| ... |
s963607148 | 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(b=='e') cout << "vowel" << endl;
else if(b=='o') cout << "vowel" << endl;
else cout <<... | a.cc: In function 'int main()':
a.cc:16:11: error: 'b' was not declared in this scope
16 | else if(b=='e') cout << "vowel" << endl;
| ^
|
s471008614 | p03852 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define rrep(i,n) for(int i = 1; i <= (n); ++i)
#define drep(i,n) for(int i = (n)-1; i >= 0; --i)
#define all(x) (x).begin(),(x).end()
#define SZ(x) ((int)(x).size())
#define bit(n) (1<<(n))
using namespace std;
typedef long long ll;
typedef long d... | a.cc:11:1: error: expected initializer before 'typedef'
11 | typedef vector<int> vi;
| ^~~~~~~
a.cc:13:16: error: 'vi' was not declared in this scope; did you mean 'vl'?
13 | typedef vector<vi> vvi;
| ^~
| vl
a.cc:13:18: error: template argument 1 is invalid
13 |... |
s730316917 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
//main関数の中だけ書き込む
string x;
cin >> x;
if(x=="a" || x=="e" || x=="i" || x=="o" || x=="u"){
cout << vowel;
}else{
cout << consonant;
}
}
| a.cc: In function 'int main()':
a.cc:9:11: error: 'vowel' was not declared in this scope
9 | cout << vowel;
| ^~~~~
a.cc:11:11: error: 'consonant' was not declared in this scope
11 | cout << consonant;
| ^~~~~~~~~
|
s619057733 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
//main関数の中だけ書き込む
string x;
cin >> x;
if(x==a || x==e || x==i || x==o || x==u){
cout << vowel;
}else{
cout << consonant;
}
}
| a.cc: In function 'int main()':
a.cc:8:9: error: 'a' was not declared in this scope
8 | if(x==a || x==e || x==i || x==o || x==u){
| ^
a.cc:8:17: error: 'e' was not declared in this scope
8 | if(x==a || x==e || x==i || x==o || x==u){
| ^
a.cc:8:25: error: 'i' was not decla... |
s188953807 | 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:12: error: 'a' was not declared in this scope
7 | if (c == a||c == i||c == u||c == e||c == o) {
| ^
a.cc:7:20: error: 'i' was not declared in this scope
7 | if (c == a||c == i||c == u||c == e||c == o) {
| ^
a.cc:7:28: error: 'u... |
s036777078 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(void) {
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:9:21: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
9 | cout << "vowel" < endl;
| ~~~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/c++/14/regex:68,
from /usr/incl... |
s388232357 | p03852 | C++ | #include <iostream>
using namespace std;
int main(void) {
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:9:21: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
9 | cout << "vowel" < endl;
| ~~~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/c++/14/string:48,
from /usr/inc... |
s320561514 | p03852 | C++ | #include <iostream>
using namespace std;
int main(void) {
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:9:13: error: 'vowel' was not declared in this scope
9 | cout << vowel < endl;
| ^~~~~
a.cc:10:3: error: expected '}' before 'else'
10 | else
| ^~~~
a.cc:8:55: note: to match this '{'
8 | if (c == 'a'||c == 'e'||c == 'i'||c =='o'||c =='u')... |
s724570055 | p03852 | C++ | #include <iostream>
using namespace std;
int main(void) {
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:9:13: error: 'vowel' was not declared in this scope
9 | cout << vowel < endl;
| ^~~~~
a.cc:11:13: error: 'consonant' was not declared in this scope
11 | cout << consonant << endl;
| ^~~~~~~~~
|
s390296578 | 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: In function 'int main()':
a.cc:11:28: error: expected ';' before '}' token
11 | cout << "consonant"
| ^
| ;
12 | }
| ~
|
s423385139 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char 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 ... | a.cc:7:18: warning: missing terminating " character
7 | cout << vowel" << endl;
| ^
a.cc:7:18: error: missing terminating " character
7 | cout << vowel" << endl;
| ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:13: error: 'vowel' was not declared in this ... |
s257664013 | 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:9:20: error: 'a' was not declared in this scope
9 | if (c == a && c == e && c == i && c == o && c == u)
| ^
a.cc:9:30: error: 'e' was not declared in this scope
9 | if (c == a && c == e && c == i && c == o && c == u)
| ... |
s260064835 | 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:8: error: 'a' was not declared in this scope
8 | if(c=a || i || u || e || o)
| ^
a.cc:8:13: error: 'i' was not declared in this scope
8 | if(c=a || i || u || e || o)
| ^
a.cc:8:18: error: 'u' was not declared in this scope
8 | if(c=... |
s295101154 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char c;
cin>>c;
cout<<("aiueo".find_first_of(c)!=string::npos?"vowel":"consonant")<<endl;
}
| a.cc: In function 'int main()':
a.cc:6:20: error: request for member 'find_first_of' in '"aiueo"', which is of non-class type 'const char [6]'
6 | cout<<("aiueo".find_first_of(c)!=string::npos?"vowel":"consonant")<<endl;
| ^~~~~~~~~~~~~
|
s655478308 | 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\n" );
else
printf( "consonant\n" );
return 0;
} | main.c: In function 'main':
main.c:9:55: error: lvalue required as left operand of assignment
9 | if (c = 'a' || c = 'e' || c = 'i' || c = 'o' || c = 'u' )
| ^
|
s202695198 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
char c;
int main()
{
cin>>c;
strig s="aeiou";
for (int i=0; i<5; i++) {
if (c==s.at(i)) {
cout<<"vowel";
return 0;
}
}
cout<<"consonant";
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:5: error: 'strig' was not declared in this scope
9 | strig s="aeiou";
| ^~~~~
a.cc:11:16: error: 's' was not declared in this scope
11 | if (c==s.at(i)) {
| ^
|
s583963715 | p03852 | C++ | #include <bits/stdc++.h>
#include <stdio.h>
using namespace std;
#define vsort(vec) sort(vec.begin(), vec.end())
#define vreverse(vec) reverse(vec.begin(), vec.end())
using ll =long long;
const ll INF =1001001001;
//最大公約数
ll gcd(ll a, ll b){
if (a%b==0){
return(b);
}else{
return(gcd(b,a%b));
}
}... | a.cc: In function 'll isprime(ll)':
a.cc:33:1: warning: no return statement in function returning non-void [-Wreturn-type]
33 | }
| ^
a.cc: In function 'int main()':
a.cc:77:20: error: lvalue required as left operand of assignment
77 | if(A=='a'||A=='i'||A='u'||A=='e'||A=='o'){
| ~~~~~~~~~~~~~~... |
s362751374 | p03852 | C++ | 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:6:1: 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 '#include <iostream>'
+++ |+#include <iostream>
1 | using namespace std;
a.cc:8:1: error: 'cout' was ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.