submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s196622340 | p03852 | C++ | C = input()
if C == 'a' or C == 'i' or C == 'u' or C == 'e' or C == 'o':
print("vowel")
else:
print("consonant") | a.cc:1:1: error: 'C' does not name a type
1 | C = input()
| ^
|
s674845207 | 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:11:9: error: 'consonant' was not declared in this scope
11 | cout << consonant << endl;
| ^~~~~~~~~
|
s755398418 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
if (c == 'a'){
cout << "vowel" << endl;
}
if (c == 'i'){
cout << "vowel" << endl;
}
if (c == 'u'){
cout << "vowel" << endl;
}
if (c == 'e'){
cout << "vowel" << endl;
}
if (c == 'o'){
cout... | 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'){
| ~ ^~ ~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
I... |
s665266065 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c >> endl;
if (c == "a" || c == "i" || c == "u" || c == "e" || c == "o") {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:5:12: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>' and '<unresolved overloaded function type>')
5 | cin >> c >> endl;
| ~~~~~~~~~^~~~~~~
In file included from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/co... |
s654168458 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c >> endl;
if (c == "a" || c == "i" || c == "u" || c == "e" || c == "o") {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:5:12: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>' and '<unresolved overloaded function type>')
5 | cin >> c >> endl;
| ~~~~~~~~~^~~~~~~
In file included from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/co... |
s596237324 | 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\n";
else cout << "consonant\n";
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:66: error: expected primary-expression before ')' token
8 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u' ||) cout << "vowel\n";
| ^
|
s544149838 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 1e5;
const int INF = 1e9;
int main() {
char c;
cin >> c;
char arr = {'a', 'e', 'i', 'o', 'u'};
for (char z : arr)
if (c == z)
cout << "vowel", exit(0);
cout << "consonant";
}
| a.cc: In function 'int main()':
a.cc:15:10: error: scalar object 'arr' requires one element in initializer
15 | char arr = {'a', 'e', 'i', 'o', 'u'};
| ^~~
|
s053802753 | p03852 | C++ | #include <iostream>
int main(){char S;std::cin>>S;std::cout<<((S=='a'||S=='i'||S =='u'||S=='e'||S=='o')?"vowel":"consonant")<<endl;} | a.cc: In function 'int main()':
a.cc:2:107: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
2 | int main(){char S;std::cin>>S;std::cout<<((S=='a'||S=='i'||S =='u'||S=='e'||S=='o')?"vowel":"consonant")<<endl;}
| ... |
s149535696 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char c[2];
scanf("%s", s);
if (c[0] == 'a' || c[0] == 'e'|| c[0] == 'i'|| c[0] == 'o' || c[0] == 'u')
puts("vowel");
else
puts("consonant");
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:21: error: 's' was not declared in this scope
7 | scanf("%s", s);
| ^
|
s949314104 | p03852 | C | #include <stdio.h>
int main(void){
char s[1];
scanf("%c",&s);
if(s[0]=='a'||s[0]=='e's[0]=='i's[0]=='u's[0]=='o'){printf("vowel");}
else{printf("consonant");}
return 0;
} | main.c: In function 'main':
main.c:5:26: error: expected ')' before 's'
5 | if(s[0]=='a'||s[0]=='e's[0]=='i's[0]=='u's[0]=='o'){printf("vowel");}
| ~ ^
| )
|
s573465016 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
char a;
int main()
{
cin>>c;
if(c=='a' || c=='e' || c=='i' || c=='o' || c=='u')
cout<<"vowel\n";
else
cout<<"consonant\n";
return 0;
} | a.cc: In function 'int main()':
a.cc:6:10: error: 'c' was not declared in this scope
6 | cin>>c;
| ^
|
s519295227 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
char c;
int main () {
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:13: error: 'a' was not declared in this scope
8 | if ((c == a) || (c == i) || (c == u) || (c == e) || (c == o))
| ^
a.cc:8:25: error: 'i' was not declared in this scope
8 | if ((c == a) || (c == i) || (c == u) || (c == e) || (c == o))
| ... |
s000435947 | p03852 | C++ |
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:4:3: error: 'cin' was not declared in this scope
4 | cin >> c;
| ^~~
a.cc:6:5: error: 'cout' was not declared in this scope
6 | cout << "vowel";
| ^~~~
a.cc:9:5: error: 'cout' was not declared in this scope
9 | cout << "consonant";
| ... |
s476829122 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
char s;
int main()
{
cin>>s;
if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u'){
cout<<"vowel\n";
}else cout<<"consonant\n";z
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:35: error: 'z' was not declared in this scope
9 | }else cout<<"consonant\n";z
| ^
|
s968675875 | p03852 | C++ | #include<iostream>
using namespace std;
#include<vector>
#include<string>
int main(){
sring s = "aioeu";
string c;
cin >> c;
if(s.find(c) != string::npos){
cout << "consonant" << endl;
}
else {
cout << "vowel" << endl;
}
} | a.cc: In function 'int main()':
a.cc:7:3: error: 'sring' was not declared in this scope
7 | sring s = "aioeu";
| ^~~~~
a.cc:10:6: error: 's' was not declared in this scope
10 | if(s.find(c) != string::npos){
| ^
|
s080799827 | p03852 | C++ | #include<iostream>
using namespace std;
#include<vector>
#include<string>
int main(){
sring s = "aioeu";
string c;
cin >> c;
if(s.find(c) != npos){
cout << "consonant" << endl;
}
else {
cout << "vowel" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:3: error: 'sring' was not declared in this scope
7 | sring s = "aioeu";
| ^~~~~
a.cc:10:6: error: 's' was not declared in this scope
10 | if(s.find(c) != npos){
| ^
a.cc:10:19: error: 'npos' was not declared in this scope
10 | if(s.find(c) != npo... |
s523512959 | 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:13:4: error: expected '}' at end of input
13 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s260057228 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c ;
char a == 'a';
char e == 'e';
char i == 'i';
char o == 'o';
char u == 'u';
cin >> c;
if((c == a) || (c == e) || (c == i) || (c == o) || (c == u)){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:10: error: expected initializer before '==' token
7 | char a == 'a';
| ^~
a.cc:8:10: error: expected initializer before '==' token
8 | char e == 'e';
| ^~
a.cc:9:10: error: expected initializer before '==' token
9 | char i == 'i';
... |
s021088962 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string 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:12: error: 'a' was not declared in this scope
7 | if((c == a) || (c == e) || (c == i) || (c == o) || (c == u)){
| ^
a.cc:7:24: error: 'e' was not declared in this scope
7 | if((c == a) || (c == e) || (c == i) || (c == o) || (c == u)){
| ... |
s746774063 | p03852 | C++ | #include <iostream>
#include <cstdlib>
#include <algorithm>
#include <vector>
#include <string>
#include <cmath>
#include <cassert>
#include <functional>
#include <string>
#include <sstream>
#include <cctype>
using namespace std;
int main(){
vector<char> list = {a, i, u, e, o};
char c; cin >> c;
if(find(list.be... | a.cc: In function 'int main()':
a.cc:16:24: error: 'a' was not declared in this scope
16 | vector<char> list = {a, i, u, e, o};
| ^
a.cc:16:27: error: 'i' was not declared in this scope
16 | vector<char> list = {a, i, u, e, o};
| ^
a.cc:16:30: error... |
s450107338 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o' || )
cout << 'vowel'<< endl;
else
cout << 'consonant' << endl;
}
| a.cc:8:13: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
8 | cout << 'vowel'<< endl;
| ^~~~~~~
a.cc:10:13: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
10 | cout << 'consonant' << endl;
| ^~~~~~~~~~... |
s886492920 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
cin >> s
cout << "一行目 " << s << endl;
cout << "二行目 " << t << endl;
} | a.cc: In function 'int main()':
a.cc:6:10: error: 's' was not declared in this scope
6 | cin >> s
| ^
a.cc:9:24: error: 't' was not declared in this scope; did you mean 'tm'?
9 | cout << "二行目 " << t << endl;
| ^
| tm
|
s874865386 | p03852 | C++ | #include <its/stdc++.h>
using Namespace std;
int main(){
string str;
cin >> str;
if(str == "a" || str == "i" || str == "u" || str == "o" || str == "e"){
cout << "vowel" << endl;
} else{
cout << "consonant" << endl;
}
return 0;
} | a.cc:1:10: fatal error: its/stdc++.h: No such file or directory
1 | #include <its/stdc++.h>
| ^~~~~~~~~~~~~~
compilation terminated.
|
s102324588 | p03852 | C++ | #include <its/stdc++.h>
using Namespace std;
int main(){
char chr;
cin >> chr;
if(chr == 'a' || chr == 'i' || chr == 'u' || chr == 'o' || chr == 'e'){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
return 0;
} | a.cc:1:10: fatal error: its/stdc++.h: No such file or directory
1 | #include <its/stdc++.h>
| ^~~~~~~~~~~~~~
compilation terminated.
|
s118797951 | p03852 | C++ | #include <its/stdc++.h>
using Namespace std;
int main(){
char chr;
cin >> chr;
if(chr == 'a' || chr == 'i' || chr == 'u' || chr == 'o' || chr == 'e'){
cout << "vowel" << endl;
else{
cout << "consonant" << endl;
}}
return 0;
}
| a.cc:1:10: fatal error: its/stdc++.h: No such file or directory
1 | #include <its/stdc++.h>
| ^~~~~~~~~~~~~~
compilation terminated.
|
s022097240 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char c;
cin >> c;
if(c == a || c == o || c == e || c == u || c == i){
cout << 'vowel' << endl;
}
else cout << 'coonsonant' << endl;
} | a.cc:8:13: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
8 | cout << 'vowel' << endl;
| ^~~~~~~
a.cc:10:16: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
10 | else cout << 'coonsonant' << endl;
| ^... |
s008714650 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s == "a") {
cout << "vowel" << endl;
}
else if (s == "i") {
cout << "vowel" << endl;
}
else if (s == "u") {
cout << "vowel" << endl;
}
else if (s == "e") {
cout << "vowel" << endl;
}
else if (s == "... | a.cc: In function 'int main()':
a.cc:23:25: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
23 | cout << "consonant" << end;
| ~~~~~~~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/c++/14/istream:41,
fr... |
s293837919 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s == "a") {
cout << vowel << endl;
}
else if (s == "i") {
cout << vowel << endl;
}
else if (s == "u") {
cout << vowel << endl;
}
else if (s == "e") {
cout << vowel << endl;
}
else if (s == "o") {
... | a.cc: In function 'int main()':
a.cc:8:13: error: 'vowel' was not declared in this scope
8 | cout << vowel << endl;
| ^~~~~
a.cc:11:13: error: 'vowel' was not declared in this scope
11 | cout << vowel << endl;
| ^~~~~
a.cc:14:13: error: 'vowel' was not declared in this... |
s047420573 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s.at(1) = "a" || s.at(1) = "e" || s.at(1) = "i" || s.at(1) = "u" || s.at(1) = "o") {
cout << "vowel" << endl;
}
else {
cout << "consonant" << end;
}
}
| a.cc: In function 'int main()':
a.cc:7:72: error: lvalue required as left operand of assignment
7 | if (s.at(1) = "a" || s.at(1) = "e" || s.at(1) = "i" || s.at(1) = "u" || s.at(1) = "o") {
| ~~~~^~~~~~~~~~
a.cc:11:25: error: no match for 'op... |
s322014830 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s.at(1) = "a" || s.at(1) = "e" || s.at(1) = "i" || s.at(1) = "u" || s.at(1) = "o") {
cout << vowel << endl;
}
else {
cout << consonant << end;
}
}
| a.cc: In function 'int main()':
a.cc:7:72: error: lvalue required as left operand of assignment
7 | if (s.at(1) = "a" || s.at(1) = "e" || s.at(1) = "i" || s.at(1) = "u" || s.at(1) = "o") {
| ~~~~^~~~~~~~~~
a.cc:8:13: error: 'vowel' was not d... |
s762799461 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s = "a" || s = "e" || s = "i" || s = "u" || s = "o") {
cout << vowel << endl;
}
else {
cout << consonant << end;
}
} | a.cc: In function 'int main()':
a.cc:7:15: error: no match for 'operator||' (operand types are 'const char [2]' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
7 | if (s = "a" || s = "e" || s = "i" || s = "u" || s = "o") {
| ~~~ ^~ ~
| | |
| | ... |
s951442427 | p03852 | C++ | #include <bits/stdc++.h>
#define r(i,n) for(int i = 0; i<n; i++)
using namespace std;
int main() {
char c;
cin >> c;
if(c=='a'||c=='e'||c=='i'||c=='o'||=='u') cout << "vowel" << endl;
else cout<< "consonant" << endl;
} | a.cc: In function 'int main()':
a.cc:8:38: error: expected primary-expression before '==' token
8 | if(c=='a'||c=='e'||c=='i'||c=='o'||=='u') cout << "vowel" << endl;
| ^~
|
s724582968 | 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:12:13: error: 'consonant' was not declared in this scope
12 | cout << consonant << endl;
| ^~~~~~~~~
|
s374609102 | p03852 | C++ | #include <iostream>
using namespace std;
int main(void){
// Your code here!
char 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:68: error: expected primary-expression before ')' token
6 | if(c == 'a' || c == 'e' || c == 'i' || c == 'u' || c == 'o' || ){
| ^
|
s412506963 | p03852 | C++ | #includee<iostream>
using namespace std;
int main()
{
char a;
cin>>a;
if(a=='a'||a=='e'||a=='i'||a=='o'||a=='u')
cout<<"vowel";
else cout<<"consonant";
return 0;
} | a.cc:1:2: error: invalid preprocessing directive #includee; did you mean #include?
1 | #includee<iostream>
| ^~~~~~~~
| include
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
6 | cin>>a;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in hea... |
s014285523 | 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:48: error: lvalue required as left operand of assignment
7 | if (c = 'a' || c = 'e' || c = 'I' || c = 'o' || c = 'u') {
| ~~~~^~~~
|
s372943502 | 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:12: error: empty character constant
8 | cout << ''vowel" << endl;
| ^~~~~~~
a.cc:8:19: warning: missing terminating " character
8 | cout << ''vowel" << endl;
| ^
a.cc:8:19: error: missing terminating " character
8 | cout << ''vowel" << endl;
| ... |
s489680445 | 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 << ''
}
} | a.cc:8:11: error: empty character constant
8 | cout << ''
| ^~
a.cc: In function 'int main()':
a.cc:7:48: error: lvalue required as left operand of assignment
7 | if (c = 'a' || c = 'e' || c = 'I' || c = 'o' || c = 'u') {
| ~~~~^~~~
a.cc:8:13:... |
s411887954 | 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:12: error: empty character constant
8 | cout << ''vowel" << endl;
| ^~~~~~~
a.cc:8:19: warning: missing terminating " character
8 | cout << ''vowel" << endl;
| ^
a.cc:8:19: error: missing terminating " character
8 | cout << ''vowel" << endl;
| ... |
s837436260 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char a;
cin >> a;
if(a == 'a' || a == 'b' || a == 'c' || a == 'd' || a == 'e' ){
cout << vowel << endl;
}else{
cout << dhwuiahi << 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: 'dhwuiahi' was not declared in this scope
10 | cout << dhwuiahi << endl;
| ^~~~~~~~
|
s163988423 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string input;
cin >> input;
if ( input=='a' || input == 'i' || input == 'u' || input=='e' || input == 'o' ) {
cout << "vowel" << endl;
} else {
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:7:13: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
7 | if ( input=='a' || input == 'i' || input == 'u' || input=='e' || input == 'o' ) {
| ~~~~~^~~~~
| | |
| |... |
s270694104 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string input;
cin >> input;
if (input=='a' || input == 'i' || input == 'u' || input=='e' || input == 'o' ) {
cout << "vowel" << endl;
} else {
cout << ''consonant" << endl;
}
} | a.cc:10:13: error: empty character constant
10 | cout << ''consonant" << endl;
| ^~~~~~~~~~~
a.cc:10:24: warning: missing terminating " character
10 | cout << ''consonant" << endl;
| ^
a.cc:10:24: error: missing terminating " character
10 | cout << ''c... |
s052963604 | p03852 | C++ | #include <iostream>
#include <numeric>
#include <math.h>
#include <algorithm>
#include <float.h>
#include <limits>
#include <vector>
#include <string.h>
#define rep(i,a,n) for(ll int (i) = (a);(i) < (n);(i)++)
#define urep(i,a,n) for(ll int (i) = (a);(i) > (n);(i)--)
#define MOD 1000000007
#define ll long long
#defin... | a.cc: In function 'int main()':
a.cc:49:3: error: expected ',' or ';' before 'char'
49 | char p;
| ^~~~
a.cc:50:8: error: 'p' was not declared in this scope
50 | cin>>p;
| ^
|
s652340182 | 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' ){
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
|
s551589535 | 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:9:68: error: expected primary-expression before ')' token
9 | if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o' ||)
| ^
|
s536712237 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char a;
cin >> a;
if (a == "a" || a == "i" || a == "u" || a == "e" || a == "o")
cout << "vowel" << endl;
else
cout << "consonant" << endl;
} | a.cc: In function 'int main()':
a.cc:8:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (a == "a" || a == "i" || a == "u" || a == "e" || a == "o")
| ~~^~~~~~
a.cc:8:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (a ==... |
s401603417 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char r;
cin >> r >> ;
if (r=='a' || r=='e'|| r=='u' || r=='i' || r=='o'){
cout << 'v' << endl;
}
else {
cout << 'c' << endl;
}
}
| a.cc: In function 'int main()':
a.cc:6:15: error: expected primary-expression before ';' token
6 | cin >> r >> ;
| ^
|
s893874599 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char r;
cin >> r >> ;
if (r=='a' || r=='e'|| r=='u' || r=='i' || r=='o'){
cout << 'v' << endl;
}
else {
cout << 'c' << endl;
}
}
| a.cc: In function 'int main()':
a.cc:6:15: error: expected primary-expression before ';' token
6 | cin >> r >> ;
| ^
|
s486729786 | p03852 | C++ | def yes
puts "vowel"
exit
end
def no
puts "consonant"
exit
end
c = gets
boin = "aiueo"
boin.each_char do |b|
if c[0] == b
yes()
end
end
no() | a.cc:1:1: error: 'def' does not name a type
1 | def yes
| ^~~
|
s126655972 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char A;
cin>>A;
if(A=='a'){
cout<<"vowel"<<endl;
}
ifelse(A=='i'){
cout<<"vowel"<<endl;
}
ifelse(A=='u'){
cout<<"vowel"<<endl;
}
ifelse(A=='e'){
cout<<"vowel"<<endl;
}
ifelse(A=='o'){
cout<<"vowel"<<endl;
}
else{
cout<<"consonant"<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:9:1: error: 'ifelse' was not declared in this scope; did you mean 'sigrelse'?
9 | ifelse(A=='i'){
| ^~~~~~
| sigrelse
a.cc:21:1: error: 'else' without a previous 'if'
21 | else{
| ^~~~
|
s725747444 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char A;
cin>>A;
if(A=='a'){
cout<<"vowel"<<endl;
}
if else(A=='i'){
cout<<"vowel"<<endl;
}
if else(A=='u'){
cout<<"vowel"<<endl;
}
if else(A=='e'){
cout<<"vowel"<<endl;
}
if else(A=='o'){
cout<<"vowel"<<endl;
}
else{
cout<<"consonant"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:9:4: error: expected '(' before 'else'
9 | if else(A=='i'){
| ^~~~
| (
a.cc:12:4: error: expected '(' before 'else'
12 | if else(A=='u'){
| ^~~~
| (
a.cc:15:4: error: expected '(' before 'else'
15 | if else(A=='e'){
| ^~~~
... |
s821283613 | 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:6:7: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
6 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u')
| ~^~~~~
| | |
| | char
| std::string {aka std::__cxx11::bas... |
s355835385 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if(c == 'a'||c=='e'||c=='i'||c=='o'||c=='u'){
cout << "vowel" <<endl;
}
else{
cout << "consonant" <<endl;
} | a.cc: In function 'int main()':
a.cc:12:4: error: expected '}' at end of input
12 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s208645864 | 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:10: 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
| ... |
s198541289 | 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:10: 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
| ... |
s430607347 | 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:10: 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
| ... |
s281918876 | p03852 | C++ | #include<bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < n; i++)
using namespace std;
typedef long long ll;
using Graph =vector<int>;
typedef pair<ll,int> P;
const ll MAX_N=131072;
int bit[MAX_N*2-1];
ll n;
int main(){
string s;
cin >>s;
if(s=="a"||s=="e"||s=="i"||s=="o"||s=="u") cout <<"vowel"<<end;
else... | a.cc: In function 'int main()':
a.cc:15:60: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
15 | if(s=="a"||s=="e"||s=="i"||s=="o"||s=="u") cout <<"vowel"<<end;
| ~~~~~~~~~~~~~~^~~~~
In fi... |
s456383716 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string c;
cin>>c;
regex re("[aouie]");
cout<<(regex_match(c,re)?"vowel":"consonant")<<endl
return 0;
} | a.cc: In function 'int main()':
a.cc:8:54: error: expected ';' before 'return'
8 | cout<<(regex_match(c,re)?"vowel":"consonant")<<endl
| ^
| ;
9 | return 0;
| ~~~~~~ ... |
s401669493 | p03852 | Java | public class Main{public static void main(String[] args){Scanner sc=new Scanner(System.in);System.out.println(sc.next().matches("[aiueo]")?"vowel":"consonant");}} | Main.java:1: error: cannot find symbol
public class Main{public static void main(String[] args){Scanner sc=new Scanner(System.in);System.out.println(sc.next().matches("[aiueo]")?"vowel":"consonant");}}
^
symbol: class Scanner
location: class Main
Main.java:... |
s672467479 | p03852 | C++ | #include<vector>
#include<string>
#include<algorithm>
#include<cmath>
#include<cstdlib>
#include<tuple>
#define int long
using namespace std;
signed 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:12:9: error: 'cin' was not declared in this scope
12 | cin >> A;
| ^~~
a.cc:6:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
5 | #include<cstdlib>
+++ |+#include <iostream>
6 | #inclu... |
s102142731 | p03852 | C++ | #include <iostream>
#include <string>
#include <vector>
using namespace std;
#define REP(i, n) for(int i=0; i<(n); i++)
#define FOR(i, a, n) for(int i=0; i<(n); i++)
int main(){
char s;cin >> s;
char ans = s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o' ? "vowel" : "consonant";
cout << ans << endl;
... | a.cc: In function 'int main()':
a.cc:10:77: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
10 | char ans = s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o' ? "vowel" : "consonant";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~... |
s237598849 | p03852 | C++ | #include <iostream>
#include <string>
#include <vector>
using namespace std;
#define REP(i, n) for(int i=0; i<(n); i++)
#define FOR(i, a, n) for(int i=0; i<(n); i++)
int main(){
string s;cin >> s;
string ans = s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o' ? "vowel" : "consonant";
cout << ans << end... | a.cc: In function 'int main()':
a.cc:10:24: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
10 | string ans = s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o' ? "vowel" : "consonant";
| ~ ^~ ~~~
| ... |
s923201896 | p03852 | Java |
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in); //
String c = sc.nextLine();
if (c.equals("a")) {
System.out.println("vowel");
} else if (c.equals("i")) {
System.out.println("vowel");
} else if (c.equ... | Main.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in); //
^
symbol: class Scanner
location: class Main
Main.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in); //
^
symbol: class Scanner
location: class Main
2 errors
|
s561973203 | p03852 | Java |
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in); //
String c = scan.nextLine();
if (c.equals("a")) {
System.out.println("vowel");
} else if (c.equals("i")) {
System.out.println("vowel");
} else if (c.e... | Main.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in); //
^
symbol: class Scanner
location: class Main
Main.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in); //
^
symbol: class Scanner
location: class Main
Main.java:5... |
s685599301 | p03852 | Java | public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in); //
String c = sc.nextLine(); //
String a = "a";
String e = "e";
String i = "i";
String o = "o";
String u = "u";
if(c == a || c == e || c == i || c == o ||... | Main.java:3: error: cannot find symbol
Scanner sc = new Scanner(System.in); //
^
symbol: class Scanner
location: class Main
Main.java:3: error: cannot find symbol
Scanner sc = new Scanner(System.in); //
^
symbol: class Scanner
location: class Main
2 errors
|
s842825006 | p03852 | Java | public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in); //
String c = sc.nextString(); //
String a = "a";
String e = "e";
String i = "i";
String o = "o";
String u = "u";
if(c == a || c == e || c == i || c == o ... | Main.java:3: error: cannot find symbol
Scanner sc = new Scanner(System.in); //
^
symbol: class Scanner
location: class Main
Main.java:3: error: cannot find symbol
Scanner sc = new Scanner(System.in); //
^
symbol: class Scanner
location: class Main
2 errors
|
s198623055 | p03852 | Java | public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in); //
String c = sc.next(); //
String a = "a";
String e = "e";
String i = "i";
String o = "o";
String u = "u";
if(c == a || c == e || c == i || c == o || c =... | Main.java:3: error: cannot find symbol
Scanner sc = new Scanner(System.in); //
^
symbol: class Scanner
location: class Main
Main.java:3: error: cannot find symbol
Scanner sc = new Scanner(System.in); //
^
symbol: class Scanner
location: class Main
2 errors
|
s126947044 | 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";
}else{
cout <<"consonant"
}
}
| a.cc: In function 'int main()':
a.cc:10:23: error: expected ';' before '}' token
10 | cout <<"consonant"
| ^
| ;
11 | }
| ~
|
s423287899 | p03852 | C++ | #include<cstdio>
int main(){
char c;
scanf("%s", c);
if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o")
printf("vowel");
else
printf("consonant");
return 0;
}
| 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=="i" || c=="u" || c=="e" || c=="o")
| ~^~~~~
a.cc:6:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if(c=="a" || c=="i" ||... |
s757709997 | p03852 | C++ | #include<cstdio>
int main(){
char c;
scanf("%c", c);
if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o")
printf("vowel");
else
printf("consonant");
return 0;
} | 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=="i" || c=="u" || c=="e" || c=="o")
| ~^~~~~
a.cc:6:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if(c=="a" || c=="i" ||... |
s320280956 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main( ) {
char C;
cin >> C;
if(char C == 'a' 'i' 'u' 'e' 'o' ) {
cout << "vowel" << endl;
} else {
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:9:15: error: expected initializer before '==' token
9 | if(char C == 'a' 'i' 'u' 'e' 'o' ) {
| ^~
a.cc:9:14: error: expected ')' before '==' token
9 | if(char C == 'a' 'i' 'u' 'e' 'o' ) {
| ~ ^~~
| )
|
s316493261 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main{
string c, d;
cin>>c;
if(c=="a"||c=="i"||c=="u"||c=="e"||c=="o")
d="vowel";
else d="consonant";
cout<<d<<endl;
}
| a.cc:3:5: error: cannot declare '::main' to be a global variable
3 | int main{
| ^~~~
a.cc:4:10: error: expected primary-expression before 'c'
4 | string c, d;
| ^
a.cc:4:10: error: expected '}' before 'c'
a.cc:3:9: note: to match this '{'
3 | int main{
| ^
a.cc:5:3:... |
s389259783 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main{
char c; string d;
cin>>c;
if(c=='a'|c=='i'|c=='u'|c=='e'|c=='o')
d="vowel";
else d="consonant";
cout<<d<<endl;
}
| a.cc:3:5: error: cannot declare '::main' to be a global variable
3 | int main{
| ^~~~
a.cc:4:3: error: expected primary-expression before 'char'
4 | char c; string d;
| ^~~~
a.cc:4:3: error: expected '}' before 'char'
a.cc:3:9: note: to match this '{'
3 | int main{
| ^
a.cc... |
s050660671 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main{
char c; String d;
cin>>c;
if(c=='a'|c=='i'|c=='u'|c=='e'|c=='o')
d=vowel;
else d=consonant;
cout<<d<<endl;
}
| a.cc:3:5: error: cannot declare '::main' to be a global variable
3 | int main{
| ^~~~
a.cc:4:3: error: expected primary-expression before 'char'
4 | char c; String d;
| ^~~~
a.cc:4:3: error: expected '}' before 'char'
a.cc:3:9: note: to match this '{'
3 | int main{
| ^
a.cc... |
s284696753 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main{
char c; String d;
cin>>c;
if(c==a|c==i|c==u|c==e|c==o)
d=vowel;
else d=consonant;
cout<<d<<endl;
}
| a.cc:3:5: error: cannot declare '::main' to be a global variable
3 | int main{
| ^~~~
a.cc:4:3: error: expected primary-expression before 'char'
4 | char c; String d;
| ^~~~
a.cc:4:3: error: expected '}' before 'char'
a.cc:3:9: note: to match this '{'
3 | int main{
| ^
a.cc... |
s231435040 | p03852 | C++ | include<bits/stdc++.h>
using namespace std;
int main{
char c; String d;
cin>>c;
if(c==a|c==i|c==u|c==e|c==o)
d=vowel;
else d=consonant;
cout<<d<<endl;
}
| a.cc:1:1: error: 'include' does not name a type
1 | include<bits/stdc++.h>
| ^~~~~~~
a.cc:3:5: error: cannot declare '::main' to be a global variable
3 | int main{
| ^~~~
a.cc:4:3: error: expected primary-expression before 'char'
4 | char c; String d;
| ^~~~
a.cc:4:3: error: expect... |
s492168329 | p03852 | C++ | include<bits/stdc++.h>
using namespace std;
int main{
char c; String d;
cin>>c;
if(c==a|c==i|c==u|c==e|c==o)
d=vowel;
else d=consonant;
}
| a.cc:1:1: error: 'include' does not name a type
1 | include<bits/stdc++.h>
| ^~~~~~~
a.cc:3:5: error: cannot declare '::main' to be a global variable
3 | int main{
| ^~~~
a.cc:4:3: error: expected primary-expression before 'char'
4 | char c; String d;
| ^~~~
a.cc:4:3: error: expect... |
s478496556 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
char c;
cin >> c;
if (c == 'a')
cout << "vowel" << endl;
if(c == 'i')
cout << "vowel" << endl;
if(c == 'u')
cout << "vowel" << endl;
if(c == 'e')
cout << "vowel" << endl;
if(c == 'o')
cout << "vowel" << endl;
if !(c == 'a' || c == 'i' || c == 'u' || c == 'e' ||... | a.cc: In function 'int main()':
a.cc:17:4: error: expected '(' before '!' token
17 | if !(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o')
| ^
| (
|
s352032281 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
char c;
cin >> c;
if (c == 'a')
cout << "vowel" << endl;
if(c == 'i')
cout << "vowel" << endl;
if(c == 'u')
cout << "vowel" << endl;
if(c == 'e')
cout << "vowel" << endl;
if(c == 'o')
cout << "vowel" << endl;
else
cout << "consonant" << endl;
}
return 0;
} | a.cc:20:1: error: expected unqualified-id before 'return'
20 | return 0;
| ^~~~~~
a.cc:21:1: error: expected declaration before '}' token
21 | }
| ^
|
s895666748 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
char = c;
cin >> c;
if (c == 'a')
cout << "vowel" << endl;
if(c == 'i')
cout << "vowel" << endl;
if(c == 'u')
cout << "vowel" << endl;
if(c == 'e')
cout << "vowel" << endl;
if(c == 'o')
cout << "vowel" << endl;
else
cout << "consonant" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:5:7: error: expected unqualified-id before '=' token
5 | char = c;
| ^
a.cc:6:8: error: 'c' was not declared in this scope
6 | cin >> c;
| ^
a.cc: At global scope:
a.cc:20:1: error: expected unqualified-id before 'return'
20 | return 0;
| ^... |
s324899110 | p03852 | C++ | #include <bits/stdc++.
using namespace std;
int main()
{
char = c;
cin >> c;
if (c == 'a')
cout << "vowel" << endl;
if(c == 'i')
cout << "vowel" << endl;
if(c == 'u')
cout << "vowel" << endl;
if(c == 'e')
cout << "vowel" << endl;
if(c == 'o')
cout << "vowel" << endl;
else
cout << "consonant" << endl;
}
return 0;
} | a.cc:1:23: error: missing terminating > character
1 | #include <bits/stdc++.
| ^
a.cc:1:10: fatal error: bits/stdc++.: No such file or directory
1 | #include <bits/stdc++.
| ^
compilation terminated.
|
s196540255 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char input;
cin >> input;
if(input == 'a' ||input == 'i' || input == 'u' || input =='e' || input =='o'){
cout << "vowel";
}else{
cout << "consonant";
}
| a.cc: In function 'int main()':
a.cc:11:2: error: expected '}' at end of input
11 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s086979258 | p03852 | C++ | #include<iostream>
using namespace std;
int main(void){
char c;
cin >> c;
if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
cout << "vowel" << endl;
}else{
cout << "consonant" << endl;
}
| a.cc: In function 'int main()':
a.cc:19:2: error: expected '}' at end of input
19 | }
| ^
a.cc:5:15: note: to match this '{'
5 | int main(void){
| ^
|
s757972957 | p03852 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
string str;
cin >> str;
if(str == "a" || str == "i" || str == "u" || str == "e" || str == "o")
cout << "vowel" << endl;
else cout << "consonant" << endl;
return 0;
}
提出情報 | a.cc:17:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' does not name a type
17 | 提出情報
| ^~~~~~~~
|
s154690426 | p03852 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
string str;
cin >> str;
if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){
cout << "vowel" << endl;
}
else{
cout << "consonan... | a.cc: In function 'int main()':
a.cc:13:10: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
13 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){
| ~~~ ^~ ~~~
| | |
| | char
... |
s803120192 | p03852 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <bits/stdc++.h>
using namespace std;
int main()
{
string str;
cin >> str;
if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
retur... | a.cc: In function 'int main()':
a.cc:11:10: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
11 | if (str == 'a' || str == 'e' || str == 'i' || str == 'o' || str == 'u'){
| ~~~ ^~ ~~~
| | |
| | char
... |
s952923629 | p03852 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#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:11:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
11 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){
| ~ ^~ ~~~
| | |
| | char
| std::str... |
s008034426 | p03852 | C++ | #include <iostream>
#include <char>
#include <string>
#include <vector>
#include <algorithm>
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:2:10: fatal error: char: No such file or directory
2 | #include <char>
| ^~~~~~
compilation terminated.
|
s933824001 | p03852 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
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:10:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
10 | if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){
| ~ ^~ ~~~
| | |
| | char
| std::str... |
s542062628 | p03852 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
char c;
cin >> c;
if (c == "a" || c == "e" || c == "i" || c == "o" || c == "u"){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:10:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
10 | if (c == "a" || c == "e" || c == "i" || c == "o" || c == "u"){
| ~~^~~~~~
a.cc:10:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
10 | if (c ==... |
s445754182 | p03852 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
char c;
cin >> c;
if (c == a || c == e || c == i || c == o || c == u){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:10:11: error: 'a' was not declared in this scope
10 | if (c == a || c == e || c == i || c == o || c == u){
| ^
a.cc:10:21: error: 'e' was not declared in this scope
10 | if (c == a || c == e || c == i || c == o || c == u){
| ^
a.cc:1... |
s406600189 | p03852 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
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:10:11: error: 'a' was not declared in this scope
10 | if (c == a || c == e || c == i || c == o || c == u){
| ^
a.cc:10:21: error: 'e' was not declared in this scope
10 | if (c == a || c == e || c == i || c == o || c == u){
| ^
a.cc:1... |
s988803850 | 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: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:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if (c=="a" ||... |
s935428019 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char alpha;
cin >> alpha;
if (alpha == "a" || alpha == "I" || alpha == "u" || alpha == "e" || alpha == "o"){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if (alpha == "a" || alpha == "I" || alpha == "u" || alpha == "e" || alpha == "o"){
| ~~~~~~^~~~~~
a.cc:7:29: error: ISO C++ forbids comparison between pointer and integer [-fperm... |
s970092379 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char alpha;
cin >> alpha;
if (alpha == a || alpha == i || alpha == u || alpha == e || alpha == o){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:16: error: 'a' was not declared in this scope
7 | if (alpha == a || alpha == i || alpha == u || alpha == e || alpha == o){
| ^
a.cc:7:30: error: 'i' was not declared in this scope
7 | if (alpha == a || alpha == i || alpha == u || alpha == e || alph... |
s520966576 | p03852 | C++ | #include <iosteram>
#include <string>
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:1:10: fatal error: iosteram: No such file or directory
1 | #include <iosteram>
| ^~~~~~~~~~
compilation terminated.
|
s533613227 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int C;
cin >> C;
if (C == "a" || C == "e" || C == "i" || C == "o" || C == "u") {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:7: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 ... |
s489239138 | 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 == "a... |
s623071665 | 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" | ... |
s878205090 | 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: 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 == "a"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.