submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s714525871 | 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 << "constant";
}
| a.cc: In function 'int main()':
a.cc:7:9: error: 'a' was not declared in this scope
7 | if(c==a||i||u||e||o)
| ^
a.cc:7:12: error: 'i' was not declared in this scope
7 | if(c==a||i||u||e||o)
| ^
a.cc:7:15: error: 'u' was not declared in this scope
7 | if(c==a||i||u||e||o... |
s331181196 | 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;
}
... | main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
1 | #include <bits/stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s338019821 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char s;
cin >> s;
if(s=='a' || S=='i' || S=='u' || S=='e' || S=='o'){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:7:16: error: 'S' was not declared in this scope
7 | if(s=='a' || S=='i' || S=='u' || S=='e' || S=='o'){
| ^
|
s909614486 | 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 << "vowel" << endl;
else
cou... | a.cc: In function 'int main()':
a.cc:8:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
8 | if(c == 'a')
| ~ ^~ ~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file... |
s398259123 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c; // 変数sで入力を一行受け取る
if (c = "a") {
cout << "vowel" << endl;
}
else if (c = "e") {
cout << "vowel" << endl;
}
else if (c = "i") {
cout << "vowel" << endl;
}
else if (c = "o") {
cout << "vowel" << endl;
}
... | a.cc: In function 'int main()':
a.cc:8:9: error: could not convert 'c.std::__cxx11::basic_string<char>::operator=(((const char*)"a"))' from 'std::__cxx11::basic_string<char>' to 'bool'
8 | if (c = "a") {
| ~~^~~~~
| |
| std::__cxx11::basic_string<char>
a.cc:11:14: error: co... |
s604835231 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
getline(c); // 変数sで入力を一行受け取る
if (c = "a") {
cout << "vowel" << endl;
}
else if (c = "e") {
cout << "vowel" << endl;
}
else if (c = "i") {
cout << "vowel" << endl;
}
else if (c = "o") {
cout << "vowel" << endl;
}... | a.cc: In function 'int main()':
a.cc:6:10: error: no matching function for call to 'getline(std::string&)'
6 | getline(c); // 変数sで入力を一行受け取る
| ~~~~~~~^~~
In file included from /usr/include/c++/14/string:55,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux... |
s076552089 | 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:11: error: 'vowel' was not declared in this scope
8 | cout << vowel << endl;
| ^~~~~
a.cc:11:13: error: 'consonant' was not declared in this scope
11 | cout << consonant << endl;
| ^~~~~~~~~
a.cc:12:2: error: expected '}' at end of in... |
s346505560 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, srt, end) for (long long i = (srt); i < (long long)(end); i++)
#define VL vector<ll>
#define VS vector<string>
#define VB vector<bool>
#define VP vector<pair<ll,ll>>
#define VVL vector<vector<ll>>
#define VVP vector<vector<pair<ll,ll>>>
... | a.cc: In function 'int main()':
a.cc:18:27: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'})
18 | cout << vowel.find(c) == string::npos ? "vowel"... |
s362098972 | 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:15: error: lvalue required as left operand of assignment
8 | if ( a=='a' || a=-'i' || a=='u' || a=='e' || a=='o' )
| ~~~~~~~^~~~
|
s779900514 | 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:11:3: error: expected '}' before 'else'
11 | else{
| ^~~~
a.cc:8:65: note: to match this '{'
8 | if( c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u' ){
| ^
a.cc:14:2: error: expected '}... |
s555264422 | 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:15: error: 'C' was not declared in this scope
7 | if (c=='a'||C=='e'||C=='i'||C=='o'||C=='u'){
| ^
|
s048096196 | 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: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;
| ^~~~~~~~~
|
s509252031 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char a;
cin >> a;
>> a;
// ここにプログラムを追記
if (a == 'a' || a == 'i' || a == 'u' || a == 'e' || a == 'o') {
cout << vowel << endl;
}
else {
cout << consonant << endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:5: error: expected primary-expression before '>>' token
7 | >> a;
| ^~
a.cc:10:13: error: 'vowel' was not declared in this scope
10 | cout << vowel << endl;
| ^~~~~
a.cc:13:13: error: 'consonant' was not declared in this scope
13 | ... |
s046350795 | 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:6:3: error: expected initializer before 'cin'
6 | cin
| ^~~
a.cc:9:7: error: 'a' was not declared in this scope
9 | if (a == 'a' || a == 'i' || a == 'u' || a == 'e' || a == 'o') {
| ^
a.cc:10:13: error: 'vowel' was not declared in this scope
10 | ... |
s761548088 | 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:13: error: lvalue required as left operand of assignment
8 | if(c=='a' || c='i' || c=='u'||c=='e'||c=='o'){
| ~~~~~~~^~~~
|
s126576441 | 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:13: error: no match for 'operator||' (operand types are 'bool' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
8 | if(c=="a" || c="i" || c=="u"||c=="e"||c=="o"){
| ~~~~~~ ^~ ~
| | |
| bool std::string {aka std::__cxx1... |
s488892328 | 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:16: error: 'C' was not declared in this scope
8 | if(c=="a" || C="i" || c=="u"||c=="e"||c=="o"){
| ^
|
s482753566 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if(S == a || i || u || e || o ){
cout << "vowel"<<endl;
}
else{
cout << "consonant" <<endl;
}
} | a.cc: In function 'int main()':
a.cc:7:13: error: 'a' was not declared in this scope
7 | if(S == a || i || u || e || o ){
| ^
a.cc:7:18: error: 'i' was not declared in this scope
7 | if(S == a || i || u || e || o ){
| ^
a.cc:7:23: error: 'u' was not declared in t... |
s649556320 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if(S="a"||"i"||"u"||"e"||"o";){
cout << "vowel"<<endl;
}
else{
cout << "consonant" <<endl;
}
} | a.cc: In function 'int main()':
a.cc:7:34: error: expected primary-expression before ')' token
7 | if(S="a"||"i"||"u"||"e"||"o";){
| ^
|
s130601180 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if(S="a"||"i"||"u"||"e"||"o"){
cout << "vowel"<<endl;
}
else{
cout << "consonant" <<endl;
}
} | a.cc: In function 'int main()':
a.cc:7:9: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((int)((char)(((((((const char*)"a") != 0) || (((const char*)"i") != 0)) || (((const char*)"u") != 0)) || (((const char*)"e") != 0)) || (((const char*)"o") != 0)))))' from 'std::__cxx11::basic_string<char>'... |
s839296759 | p03852 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string data="aiueo";
char d;
cin>>d;
if(data.find(d)!=nops){
cout<<"vowel";
}
else{
cout<<"consonant";
}
} | a.cc: In function 'int main()':
a.cc:11:20: error: 'nops' was not declared in this scope
11 | if(data.find(d)!=nops){
| ^~~~
|
s833542145 | p03852 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
vector<char> data;
data.push_back('a');
data.push_back('i');
data.push_back('u');
data.push_back('e');
data.push_back('o');
char c;
cin>>c;
if(data[find(data.begin(),data.end(),c)]==c){
cout<<"vowel";
... | a.cc: In function 'int main()':
a.cc:16:10: error: no match for 'operator[]' (operand types are 'std::vector<char>' and '__gnu_cxx::__normal_iterator<char*, std::vector<char> >')
16 | if(data[find(data.begin(),data.end(),c)]==c){
| ^
In file included from /usr/include/c++/14/vector:66,
... |
s130007133 | p03852 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
vector<char> data;
data.push_back('a');
data.push_back('i');
data.push_back('u');
data.push_back('e');
data.push_back('o');
char c;
cin>>c;
auto s= find(data.begin(),data.end(),c);
if(type_info(s)==int){
... | a.cc: In function 'int main()':
a.cc:17:17: error: no matching function for call to 'std::type_info::type_info(__gnu_cxx::__normal_iterator<char*, std::vector<char> >&)'
17 | if(type_info(s)==int){
| ^
In file included from /usr/include/c++/14/bits/exception_ptr.h:37,
from /u... |
s346513578 | p03852 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
vector<char> data;
data.push_back('a');
data.push_back('i');
data.push_back('u');
data.push_back('e');
data.push_back('o');
char c;
cin>>c;
auto s= find(data.begin(),data.end(),c);
if(type_info(s)=="int")... | a.cc: In function 'int main()':
a.cc:17:17: error: no matching function for call to 'std::type_info::type_info(__gnu_cxx::__normal_iterator<char*, std::vector<char> >&)'
17 | if(type_info(s)=="int"){
| ^
In file included from /usr/include/c++/14/bits/exception_ptr.h:37,
from ... |
s448738541 | p03852 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
vector<char> data;
data.push_back('a');
data.push_back('i');
data.push_back('u');
data.push_back('e');
data.push_back('o');
char c;
cin>>c;
auto s= find(data.begin(),data.end(),c);
if(s=="last"){
cout... | a.cc: In function 'int main()':
a.cc:17:7: error: no match for 'operator==' (operand types are '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' and 'const char [5]')
17 | if(s=="last"){
| ~^~~~~~~~
| | |
| | const char [5]
| __gnu_cxx::__normal_iterator<char*,... |
s342130925 | p03852 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
vector<char> data;
data.push_back('a');
data.push_back('i');
data.push_back('u');
data.push_back('e');
data.push_back('o');
char c;
cin>>c;
if(find(data.begin(),data.end(),c)=="last"){
cout<<"consona... | a.cc: In function 'int main()':
a.cc:17:37: error: no match for 'operator==' (operand types are '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' and 'const char [5]')
17 | if(find(data.begin(),data.end(),c)=="last"){
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
| | ... |
s015381500 | p03852 | C++ | #include <iostream>
#include <map>
using namespace std;
int main(){
map<char,int> a;
a['a']=1;
a['b']=1;
a['c']=1;
a['d']=1;
a['e']=1;
char data;
cin>>data;
if(a.contains(data)){
cout<<"consonant";
}
else{
cout<<"vowel";
}
} | a.cc: In function 'int main()':
a.cc:15:8: error: 'class std::map<char, int>' has no member named 'contains'
15 | if(a.contains(data)){
| ^~~~~~~~
|
s804510695 | p03852 | C++ | #include <iostream>
#include <map>
using namespace std;
int main(){
map<char,int> a;
a['a']=1;
a['b']=1;
a['c']=1;
a['d']=1;
a['e']=1;
char data;
cin>>data;
if(a.contains(data)){
cout<<"consonant";
}
else{
cout<<"vowel";
}
} | a.cc: In function 'int main()':
a.cc:15:8: error: 'class std::map<char, int>' has no member named 'contains'
15 | if(a.contains(data)){
| ^~~~~~~~
|
s076383746 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if (c == 'a'){
cout << "vowel" << endl;
}
if (c == 'b'){
cout << "vowel" << endl;
}
if (c == 'c'){
cout << "vowel" << endl;
}
if (c == 'd'){
cout << "vowel" << endl;
}
if (c == 'e'){
cout << "vowel" <... | a.cc: In function 'int main()':
a.cc:22:16: error: 'consonant' was not declared in this scope
22 | else cout << consonant << endl;
| ^~~~~~~~~
|
s793295879 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
if (c = 'a' || c = 'i' || c = 'e' || c = 'u' || c = 'o') {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:15: error: no match for 'operator||' (operand types are 'char' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
8 | if (c = 'a' || c = 'i' || c = 'e' || c = 'u' || c = 'o') {
| ~~~ ^~ ~
| | |
| char std::strin... |
s316927930 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
if (c == 'a' || c == 'i' || c == 'e' || c == 'u' || c == 'o') {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:9: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
8 | if (c == 'a' || c == 'i' || c == 'e' || c == 'u' || c == 'o') {
| ~ ^~ ~~~
| | |
| | char
| std... |
s418080186 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
string c ;
cin >> c;
if ( c = 'a','e','i','u','o'){
cout << vewel << endl;
}
if else {
cout << consonant << endl;
}
// ここにプログラムを追記
}
| a.cc: In function 'int main()':
a.cc:9:13: error: 'vewel' was not declared in this scope
9 | cout << vewel << endl;
| ^~~~~
a.cc:11:6: error: expected '(' before 'else'
11 | if else {
| ^~~~
| (
|
s621811893 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
string c ;
cin >> c;
if ( c == 'a','e','i','u','o'){
cout << vewel << endl;
}
if 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','e','i','u','o'){
| ~ ^~ ~~~
| | |
| | char
| std::string {aka std::__cxx11:... |
s260408863 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
string c ;
cin << c;
if ( c == 'a','e','i','u','o'){
cout >> vewel >> endl;
}
if else {
cout >> consonant >> endl;
}
// ここにプログラムを追記
}
| a.cc: In function 'int main()':
a.cc:6:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
6 | cin << c;
| ~~~ ^~ ~
| | |
| | std::string {aka std::__cxx11::basic_string... |
s036027103 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c ;
cin << c;
if ( c == a,e,i,u,o){
cout >> vewel >> endl;
}
if else {
cout >> consonant >> endl;
}
// ここにプログラムを追記
}
| a.cc: In function 'int main()':
a.cc:6:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'char')
6 | cin << c;
| ~~~ ^~ ~
| | |
| | char
| std::istream {aka std::basic_istream<char>}
a.cc:6:7: note: candidate: 'oper... |
s294255780 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main {
string c ;
cin << c ;
if ( c.at(0) == 'a','i','u','e','o'){
cout >> vewel >> endl;
}
if else {
cout >> consonant >> endl;
}
// ここにプログラムを追記
}
| a.cc:4:5: error: cannot declare '::main' to be a global variable
4 | int main {
| ^~~~
a.cc:5:10: error: expected primary-expression before 'c'
5 | string c ;
| ^
a.cc:5:10: error: expected '}' before 'c'
a.cc:4:10: note: to match this '{'
4 | int main {
| ^
a.cc:6:... |
s589508197 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main {
char c ;
cin << c;
if ( c == a,e,i,u,o){
cout >> vewel >> endl;
}
if else {
cout >> consonant >> endl;
}
// ここにプログラムを追記
} | a.cc:4:5: error: cannot declare '::main' to be a global variable
4 | int main {
| ^~~~
a.cc:5:3: error: expected primary-expression before 'char'
5 | char c ;
| ^~~~
a.cc:5:3: error: expected '}' before 'char'
a.cc:4:10: note: to match this '{'
4 | int main {
| ^
a.cc:6:3:... |
s619421936 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin>>c;
if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o"){
cout<<"vowel"<<endl;
}else{
cout<<"consonant"<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o"){
| ~^~~~~
a.cc:7:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c=="a" || c=="i" |... |
s203371699 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin>>c;
if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o"){
cout<<"vowel"<<endl;
}else{
cout<<"consonant"<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o"){
| ~^~~~~
a.cc:7:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c=="a" || c=="i" |... |
s499285387 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
const string vowel = " aeiou ";
cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
} | a.cc: In function 'int main()':
a.cc:8:28: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'})
8 | cout << vowel . find ( c ) == string :: npos ? " vow... |
s689745911 | p03852 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
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 << "vo... | a.cc: In function 'int main()':
a.cc:10:9: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
10 | if (s == 'a') cout << "vowel" << endl;
| ~ ^~ ~~~
| | |
| | char
| std::string {aka std::__cxx... |
s772389424 | p03852 | C++ | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
using ll = long long;
int main() {
char N,K;// N人とK種類
cin >> N ;
if(N = 'a' ||N = 'i' ||N = 'u' ||N = 'e' ||N = 'o' ){
cout << "vowel" << endl;
}else{
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:10:43: error: lvalue required as left operand of assignment
10 | if(N = 'a' ||N = 'i' ||N = 'u' ||N = 'e' ||N = 'o' ){
| ~~~~^~~
|
s334313184 | 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;
return 0;
} | 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: 'consonant' was not declared in this scope
11 | cout << consonant << endl;
| ^~~~~~~~~
|
s665712492 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if (S == 'a' or S == 'i' or S == 'u' or S == 'e' or S == 'o' ){
cout << "vowel"<<endl;
}else{
cout << "constant" <<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 (S == 'a' or S == 'i' or S == 'u' or S == 'e' or S == 'o' ){
| ~ ^~ ~~~
| | |
| | char
| std... |
s750035656 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c=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:16: error: expected unqualified-id before 'i'
7 | if(c='a','e'.'i','o','u'){
| ^~~
a.cc:7:16: error: expected ')' before 'i'
7 | if(c='a','e'.'i','o','u'){
| ~ ^~~
| )
a.cc:9:3: error: expected '}' before 'el... |
s907222462 | p03852 | C++ | #Include <bits/stdc++.h>
using namespace std;
int main(){
char a;
cin >> a;
if(a=='a'||a=='e'||a=='i'||a=='o'||a=='u'){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
}
| a.cc:1:2: error: invalid preprocessing directive #Include; did you mean #include?
1 | #Include <bits/stdc++.h>
| ^~~~~~~
| include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
6 | cin >> a;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<i... |
s418593058 | 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:47: error: lvalue required as left operand of assignment
7 | if(c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o') cout << "vowel" << endl;
| ~~~~^~~~
|
s438700786 | p03852 | C++ | #inlcude <iostream>
#include <string>
using namespace std;
int main() {
char c;
cin >> c;
if (c == 'a'||c == 'i'||c == 'u'||c == 'e'||c == 'o') {
cout << "vowel" << endl;
} else {
cout << "consonant" << endl;
}
return 0;
}
| a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
1 | #inlcude <iostream>
| ^~~~~~~
| include
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
7 | cin >> c;
| ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostre... |
s415856815 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
char c ;
cin >> c ;
const string vowel = " aeiou ";
cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
} | a.cc: In function 'int main()':
a.cc:7:28: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'})
7 | cout << vowel . find ( c ) == string :: npos ? " vow... |
s060570613 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define PI 3.14159265358979323846
constexpr int INF = numeric_limits<int>::max() / 2;
constexpr long long INFL = numeric_limits<long long>::max() / 2;
constexpr int MOD = 1000000007;
using Graph = vector<vector<int>>;
... | a.cc: In function 'int main()':
a.cc:18:38: error: lvalue required as left operand of assignment
18 | if(c=='a'||c=='i'||c=='u'||c=='e'||c='o'){
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
|
s162717941 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
char c;
cin >> c;
const string vowel = "aeiou";
cout << vowel.find(c) == string :: npos ? "vowel" : "consonant" << endl;
} | a.cc: In function 'int main()':
a.cc:7:23: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'})
7 | cout << vowel.find(c) == string :: npos ? "vowel" : ... |
s112336197 | p03852 | C++ | char c;
cin >> c;
const string vowel = "aeiou";
cout << vowel.find(c) == string :: npos ? "vowel" : "consonant" << endl;
| a.cc:2:1: error: 'cin' does not name a type
2 | cin >> c;
| ^~~
a.cc:3:7: error: 'string' does not name a type
3 | const string vowel = "aeiou";
| ^~~~~~
a.cc:4:1: error: 'cout' does not name a type
4 | cout << vowel.find(c) == string :: npos ? "vowel" : "consonant" << endl;
| ^~~~
|
s856803842 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
String anser;
if(c == 'a'){
anser = "vowel";
}
else if(c == 'i'){
anser = "vowel";
}
else if(c == 'u'){
anser = "vowel";
}
else if(c == 'e'){
anser = "vowel";
}
else if(c == 'o'){
anser = "vowel";
}e... | a.cc: In function 'int main()':
a.cc:7:3: error: 'String' was not declared in this scope
7 | String anser;
| ^~~~~~
a.cc:10:5: error: 'anser' was not declared in this scope; did you mean 'assert'?
10 | anser = "vowel";
| ^~~~~
| assert
a.cc:13:5: error: 'anser' was not declared ... |
s535608832 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
string anser;
if(c == "a"){
anser = vowel;
}
else if(c == "i"){
anser = vowel;
}
else if(c == "u"){
anser = vowel;
}
else if(c == "e"){
anser = vowel;
}
else if(c == "o"){
anser = vowel;
}else {
... | a.cc: In function 'int main()':
a.cc:11:13: error: 'vowel' was not declared in this scope
11 | anser = vowel;
| ^~~~~
a.cc:14:13: error: 'vowel' was not declared in this scope
14 | anser = vowel;
| ^~~~~
a.cc:17:17: error: 'vowel' was not declared in this scope
17 | ... |
s616569099 | 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:50: error: expected ')' before 'c'
8 | if ( c =='a' || c == 'i' || c == 'u' || c== 'e'
| ~ ^
| )
9 | c == || 'o' ){
| ~ ... |
s498830248 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin>>c;
if(c=='a'){
cout<<"vowel"
}
else if(c=='i'){
cout<<"vowel"
}
else if(c=='u'){
cout<<"vowel"
}
elseif(c=='e'){
cout<<"vowel"
}
else if(c=='o'){
cout<<"vowel"
}
else{
cout<<"consonant"
}
}
| a.cc: In function 'int main()':
a.cc:9:16: error: expected ';' before '}' token
9 | cout<<"vowel"
| ^
| ;
10 | }
| ~
a.cc:12:16: error: expected ';' before '}' token
12 | cout<<"vowel"
| ^
| ;
13 ... |
s498542957 | 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:8:10: error: 'a' was not declared in this scope
8 | if(c==(a|i|u|e|o)){
| ^
a.cc:8:12: error: 'i' was not declared in this scope
8 | if(c==(a|i|u|e|o)){
| ^
a.cc:8:14: error: 'u' was not declared in this scope
8 | if(c==(a|i|u|e|o)){... |
s412563126 | 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:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){
| ~^~~~~
a.cc:7:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(c=="a"||c=="e"||c=="i"||c=... |
s185359544 | 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:7: 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::string {aka std::__cxx11::ba... |
s024257943 | 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:15:1: error: expected declaration before '}' token
15 | }
| ^
|
s984715573 | p03852 | Java | c.charAt(0)=='a'|| | Main.java:1: error: class, interface, enum, or record expected
c.charAt(0)=='a'||
^
1 error
|
s673099120 | 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:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (c=="a" || c=="e" || c=="i" || c=="o" || c=="u") {
| ~^~~~~
a.cc:8:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (c=="a" || c=="... |
s383442498 | 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:12: error: 'a' was not declared in this scope
8 | if (c == a || c==e || c==i || c==o || c==u) {
| ^
a.cc:8:20: error: 'e' was not declared in this scope
8 | if (c == a || c==e || c==i || c==o || c==u) {
| ^
a.cc:8:28: error: 'i... |
s798625094 | 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:13: error: 'a' was not declared in this scope
8 | if ( c == a, e, i, o, u){
| ^
a.cc:8:16: error: 'e' was not declared in this scope
8 | if ( c == a, e, i, o, u){
| ^
a.cc:8:19: error: 'i' was not declared in this scope
8 | ... |
s713105017 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char S;
cin >> S;
// ここにプログラムを追記
if(S == a || S == i || S == u || S == e || S == o) {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:9:11: error: 'a' was not declared in this scope
9 | if(S == a || S == i || S == u || S == e || S == o) {
| ^
a.cc:9:21: error: 'i' was not declared in this scope
9 | if(S == a || S == i || S == u || S == e || S == o) {
| ^
a.cc:9... |
s657342807 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char S;
cin >> S;
// ここにプログラムを追記
if(S = a || S = i || S = u || S = e || S = o) {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:9:10: error: 'a' was not declared in this scope
9 | if(S = a || S = i || S = u || S = e || S = o) {
| ^
a.cc:9:19: error: 'i' was not declared in this scope
9 | if(S = a || S = i || S = u || S = e || S = o) {
| ^
a.cc:9:28: error: '... |
s973549754 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if (c == a || c == e) {
cout << "vowel" << endl;
}
else if (c == i && c == o) {
cout << "vowel" << endl;
}
else if (c == u ) {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:12: error: 'a' was not declared in this scope
8 | if (c == a || c == e) {
| ^
a.cc:8:22: error: 'e' was not declared in this scope
8 | if (c == a || c == e) {
| ^
a.cc:12:17: error: 'i' was not declared in this scope
12 | ... |
s978205133 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < n; i++)
#define rep1(i, n) for(int i = 1; i < n+1; i++)
#define sort(A) sort(A.begin(),A.end())
#define reverse(A) reverse(A.begin(),A.end())
#define vecmin(A) *min_element(A.begin(),A.end())
#define vecmax(A) *max_element(A.begin(),A.en... | a.cc: In function 'int main()':
a.cc:21:16: error: 'consonant' was not declared in this scope
21 | else cout << consonant << endl;
| ^~~~~~~~~
|
s390955427 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if (c == a || c == e) {
cout << "vowel" << endl;
}
else if (c == i && c == o) {
cout << "vowel" << endl;
}
else if (c == u ) {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:12: error: 'a' was not declared in this scope
8 | if (c == a || c == e) {
| ^
a.cc:8:22: error: 'e' was not declared in this scope
8 | if (c == a || c == e) {
| ^
a.cc:12:17: error: 'i' was not declared in this scope
12 | ... |
s661517584 | p03852 | C++ | #include<iostream>
using namespace std;
int main(){
char c;
cin >> c;
if(c=='a'||c=='e'||c=='i'||c=='o'||a=='u'){
cout << "vowel" <<endl;
}else{
cout << "consonant"
}
} | a.cc: In function 'int main()':
a.cc:7:38: error: 'a' was not declared in this scope
7 | if(c=='a'||c=='e'||c=='i'||c=='o'||a=='u'){
| ^
a.cc:10:24: error: expected ';' before '}' token
10 | cout << "consonant"
| ^
| ... |
s763444060 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
//定義一覧
char C;
if(C == 'a' or C == 'e' or C == 'i' or C == 'o' or C == 'u' C == 'A' or C == 'E' or C == 'I' or C == 'O' or C == 'U'){
cout << "vowel" << endl;
}else{
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:62: error: expected ')' before 'C'
8 | if(C == 'a' or C == 'e' or C == 'i' or C == 'o' or C == 'u' C == 'A' or C == 'E' or C == 'I' or C == 'O' or C == 'U'){
| ~ ^~
| ... |
s472239177 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int c;
cin >> c;
if( c == 'a'|| c== 'i' || c == 'u' || c =='e' || c == 'o' ){
cout << vowel << endl ;
}
else { cout << consonant << endl ;} | a.cc: In function 'int main()':
a.cc:12:15: error: 'vowel' was not declared in this scope
12 | cout << vowel << endl ;
| ^~~~~
a.cc:16:18: error: 'consonant' was not declared in this scope
16 | else { cout << consonant << endl ;}
| ^~~~~~~~~
a.cc:16:38: error: ex... |
s655518849 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c ;
cin >> c ;
string vowel = " aeiou ";
cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
} | a.cc: In function 'int main()':
a.cc:8:28: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'})
8 | cout << vowel . find ( c ) == string :: npos ? " vow... |
s731093705 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char s;
cin >> s;
if ( s == "a" || s == "i" || s == "u" || s == "e" || s == "o") {
cout << "vowel" << endl;
} else {
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if ( s == "a" || s == "i" || s == "u" || s == "e" || s == "o") {
| ~~^~~~~~
a.cc:8:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if... |
s296486396 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
const string vowel = "aeiou";
string result;
for (int i = 0; i < vowel.size(); i++) {
if (c == vowel.at(i)) {
result = "vowel";
break;
}
else {
result = "consonant"
}
}
cout << result << ... | a.cc: In function 'int main()':
a.cc:16:27: error: expected ';' before '}' token
16 | result = "consonant"
| ^
| ;
17 | }
| ~
|
s917561142 | 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:8:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){
| ~^~~~~
a.cc:8:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (c=="... |
s768022781 | 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 << "voewl" << endl;
}
else {
cout << consonant << endl;
}
}
| a.cc: In function 'int main()':
a.cc:11:13: error: 'consonant' was not declared in this scope
11 | cout << consonant << endl;
| ^~~~~~~~~
|
s247307825 | 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: 'a' was not declared in this scope
8 | if (c==a || C==i || c==u || c==e || C==o ) {
| ^
a.cc:8:15: error: 'C' was not declared in this scope
8 | if (c==a || C==i || c==u || c==e || C==o ) {
| ^
a.cc:8:18: error: 'i' was not... |
s282272683 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string 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 << "vo... | a.cc: In function 'int main()':
a.cc:6:9: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
6 | if (c == 'a') {
| ~ ^~ ~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
... |
s330960997 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
if (c == a) {
cout << vowel << endl;
}else if (c == 'i') {
cout << vowel << endl;
}else if (c == 'u') {
cout << vowel << endl;
}else if (c == 'e') {
cout << vowel << endl;
}else if (c == 'o') {
cout << vowel << endl... | a.cc: In function 'int main()':
a.cc:6:12: error: 'a' was not declared in this scope
6 | if (c == a) {
| ^
a.cc:7:13: error: 'vowel' was not declared in this scope
7 | cout << vowel << endl;
| ^~~~~
a.cc:8:16: error: no match for 'operator==' (operand types are 'std::str... |
s344282365 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
if (c == a) {
cout << vowel << endl;
}else if (c == i) {
cout << vowel << endl;
}else if (c == u) {
cout << vowel << endl;
}else if (c == e) {
cout << vowel << endl;
}else if (c == o) {
cout << vowel << endl;
}els... | a.cc: In function 'int main()':
a.cc:6:12: error: 'a' was not declared in this scope
6 | if (c == a) {
| ^
a.cc:7:13: error: 'vowel' was not declared in this scope
7 | cout << vowel << endl;
| ^~~~~
a.cc:8:19: error: 'i' was not declared in this scope
8 | }else if... |
s282119783 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> c;
string a, e, i, o, u;
if (c == 'a') {
cout << 'vowel' << endl;
}
else if (c == 'e') {
cout << 'vowel' << endl;
}
else if (c == 'i') {
cout << 'vowel' << endl;
}
else if (c == 'o') {
cout <<... | a.cc:11:13: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
11 | cout << 'vowel' << endl;
| ^~~~~~~
a.cc:15:13: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
15 | cout << 'vowel' << endl;
| ^~~~~~~
a.cc... |
s506681971 | p03852 | C++ | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include<set>
#include<map>
using namespace std;
int main() {
char a;
cin >> a;
if(a == "a" || a == "e" || a == "o" || a == "i" || a == "u"){
cout << "wovel";
}
else
{
cout << "consona... | a.cc: In function 'int main()':
a.cc:14:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
14 | if(a == "a" || a == "e" || a == "o" || a == "i" || a == "u"){
| ~~^~~~~~
a.cc:14:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
14 | ... |
s950496538 | p03852 | C++ | consonant | a.cc:1:1: error: 'consonant' does not name a type
1 | consonant
| ^~~~~~~~~
|
s859331260 | 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::... |
s700275046 | 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:9: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
7 | if (c == 'a' || 'e' || 'i' || 'o' || 'u'){
| ~ ^~ ~~~
| | |
| | char
| std::string {aka std::__... |
s071689523 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char S;
cin >> S;
if(S = 'a' || S = 'i' || S = 'u' || S = 'e' || S = 'o'){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:47: error: lvalue required as left operand of assignment
8 | if(S = 'a' || S = 'i' || S = 'u' || S = 'e' || S = 'o'){
| ~~~~^~~~
|
s154500617 | p03852 | C++ | #include <bits/stdc++.h>
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:8:14: error: no match for 'operator||' (operand types are 'char' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
8 | if(S = 'a' || S = 'i' || S = 'u' || S = 'e' || S = 'o'){
| ~~~ ^~ ~
| | |
| char std::string {ak... |
s959768856 | 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:8: 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') cout<<"vowel"<<endl;
| ~^~~~~
| | |
| | char
| std::str... |
s290591680 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int A;
cin >> A;
if (A == "a"||A == "i"||A == "u"||A == "e"||A == "o")
{
cout << "a" << endl;
}
else
{
cout<<"consonant"<<endl;
}
}
#include <bits/stdc++.h>
using namespace std;
int main() {
int c;
cin >> c;
if (c == 'a' ||... | 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:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (A == "a"||A ... |
s156090180 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int A;
cin >> A;
if (A == "a"||A == "i"||A == "u"||A == "e"||A == "o")
{
cout << "a" << 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:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (A == "a"||A ... |
s960869252 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int A;
cin >> A;
if (A== "a"||A== "i"||A== "u"||A== "e"||A== "o")
{
cout << "a" << endl;
}
else
{
cout<<"consonant"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:8:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (A== "a"||A== "i"||A== "u"||A== "e"||A== "o")
| ~^~~~~~
a.cc:8:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (A== "a"||A== "i"||... |
s098656599 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int A;
cin >> A;
if (A=="a"||A=="i"||A=="u"||A=="e"||A=="o")
{
cout << "a" << endl;
}
else
{
cout<<"consonant"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:8:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (A=="a"||A=="i"||A=="u"||A=="e"||A=="o")
| ~^~~~~
a.cc:8:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (A=="a"||A=="i"||A=="u"||... |
s989323597 | p03852 | C++ | using namespace std;
int main() {
int A;
cin >> A;
if (A=="a"||A=="i"||A=="u"||A=="e"||A=="o")
{
cout << "a" << endl;
}
else
{
cout<<"consonant"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
5 | cin >> A;
| ^~~
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:7:8: error: ISO C++ for... |
s153083223 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
if ( c = 'a' ) {
cout << "vowel" << endl;
}
else if ( c = 'e' ) {
cout << "vowel" << endl;
}
else if ( c = 'i' ) {
cout << "vowel" << endl;
}
else if ( c = 'o' ) {
cout << "vowel" << endl;
}
... | a.cc: In function 'int main()':
a.cc:24:4: error: expected '}' at end of input
24 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s794695996 | 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;
}
... | a.cc: In function 'int main()':
a.cc:24:2: error: expected '}' at end of input
24 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s788915200 | 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;
}
... | a.cc: In function 'int main()':
a.cc:24:4: error: expected '}' at end of input
24 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s155638089 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){char t;cin<<t;if(t=='a'||t=='i'||t=='u'||t=='e'||t=='o')cout<<"vowel"<<endl;else cout<<"consonant"<<endl;} | a.cc: In function 'int main()':
a.cc:3:22: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'char')
3 | int main(){char t;cin<<t;if(t=='a'||t=='i'||t=='u'||t=='e'||t=='o')cout<<"vowel"<<endl;else cout<<"consonant"<<endl;}
| ~~~^~~
... |
s346971513 | 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:9:22: error: expected ';' before '}' token
9 | cout<<"consonant"
| ^
| ;
10 | }
| ~
|
s694224407 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef vector<long long> vll;
int main()
{
ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
string s;
cin>>s;
if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u')
{
cout<<"vowel"<<endl;
}
else
{
... | a.cc: In function 'int main()':
a.cc:12:7: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
12 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u')
| ~^~~~~
| | |
| | char
| std::string {aka std::__cxx11::ba... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.