submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3 values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s654690447 | 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:9: error: 'vowel' was not declared in this scope
8 | cout << vowel << endl;
| ^~~~~
a.cc:11:9: error: 'consonant' was not declared in this scope
11 | cout << consonant <<endl;
| ^~~~~~~~~
|
s452866364 | 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:4:5: error: cannot declare '::main' to be a global variable
4 | int main{
| ^~~~
a.cc:5:1: error: expected primary-expression before 'char'
5 | char c;
| ^~~~
a.cc:5:1: error: expected '}' before 'char'
a.cc:4:9: note: to match this '{'
4 | int main{
| ^
a.cc:6:1: error: 'cin' does not name a type
6 | cin >> c;
| ^~~
a.cc:7:1: error: expected unqualified-id before 'if'
7 | if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){
| ^~
a.cc:10:1: error: expected unqualified-id before 'else'
10 | else{
| ^~~~
a.cc:13:1: error: expected declaration before '}' token
13 | }
| ^
|
s103702835 | 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:4:5: error: cannot declare '::main' to be a global variable
4 | int main{
| ^~~~
a.cc:5:1: error: expected primary-expression before 'char'
5 | char c
| ^~~~
a.cc:5:1: error: expected '}' before 'char'
a.cc:4:9: note: to match this '{'
4 | int main{
| ^
a.cc:10:1: error: expected unqualified-id before 'else'
10 | else{
| ^~~~
a.cc:13:1: error: expected declaration before '}' token
13 | }
| ^
|
s818771365 | p03852 | C++ | #include <bits.stdc++.h>
using namespace std;
int main{
char c
cin >> c
if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){
cout << vowel << endl;
}
else{
cout << consonant <<endl;
}
} | a.cc:1:10: fatal error: bits.stdc++.h: No such file or directory
1 | #include <bits.stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s911435986 | p03852 | C++ | s = input()
b = ["a", "i", "u", "e", "o"]
if s in b:
print("vowel")
else:
print('consonant')
| a.cc:6:11: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
6 | print('consonant')
| ^~~~~~~~~~~
a.cc:1:1: error: 's' does not name a type
1 | s = input()
| ^
|
s765170033 | p03852 | C++ | #include "bits/stdc++.h"
using namespace std;
int main() {
string C;
string A;
cin >> C;
A = "consonant";
if(C = "a"){
A = "vowel";
}
if(C = "i"){
A = "vowel";
} if(C = "u"){
A = "vowel";
} if(C = "e"){
A = "vowel";
}
if(C = "o"){
A = "vowel";
}
cout << A;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:8: error: could not convert 'C.std::__cxx11::basic_string<char>::operator=(((const char*)"a"))' from 'std::__cxx11::basic_string<char>' to 'bool'
9 | if(C = "a"){
| ~~^~~~~
| |
| std::__cxx11::basic_string<char>
a.cc:12:10: error: could not convert 'C.std::__cxx11::basic_string<char>::operator=(((const char*)"i"))' from 'std::__cxx11::basic_string<char>' to 'bool'
12 | if(C = "i"){
| ~~^~~~~
| |
| std::__cxx11::basic_string<char>
a.cc:14:11: error: could not convert 'C.std::__cxx11::basic_string<char>::operator=(((const char*)"u"))' from 'std::__cxx11::basic_string<char>' to 'bool'
14 | } if(C = "u"){
| ~~^~~~~
| |
| std::__cxx11::basic_string<char>
a.cc:16:11: error: could not convert 'C.std::__cxx11::basic_string<char>::operator=(((const char*)"e"))' from 'std::__cxx11::basic_string<char>' to 'bool'
16 | } if(C = "e"){
| ~~^~~~~
| |
| std::__cxx11::basic_string<char>
a.cc:19:10: error: could not convert 'C.std::__cxx11::basic_string<char>::operator=(((const char*)"o"))' from 'std::__cxx11::basic_string<char>' to 'bool'
19 | if(C = "o"){
| ~~^~~~~
| |
| std::__cxx11::basic_string<char>
|
s115119695 | p03852 | C++ | #include "bits/stdc++.h"
using namespace std;
int main() {
string C;
string A;
cin >> C;
if(C = "a"||"i "||"e"||"u"||"o"){
A = "vowel";
}else{
A = "consonant";
}
cout << A;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:8: error: could not convert 'C.std::__cxx11::basic_string<char>::operator=(((int)((char)(((((((const char*)"a") != 0) || (((const char*)"i ") != 0)) || (((const char*)"e") != 0)) || (((const char*)"u") != 0)) || (((const char*)"o") != 0)))))' from 'std::__cxx11::basic_string<char>' to 'bool'
8 | if(C = "a"||"i "||"e"||"u"||"o"){
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| std::__cxx11::basic_string<char>
|
s514814504 | p03852 | C++ | #include "bits/stdc++.h"
using namespace std;
int main() {
string C;
string A;
cin >> C;
if(C = "a"||"i "||"e"||"u"||"o"){
A = "vowel";
}else{
A = "consonant";
}
cout << A;
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:8: error: could not convert 'C.std::__cxx11::basic_string<char>::operator=(((int)((char)(((((((const char*)"a") != 0) || (((const char*)"i ") != 0)) || (((const char*)"e") != 0)) || (((const char*)"u") != 0)) || (((const char*)"o") != 0)))))' from 'std::__cxx11::basic_string<char>' to 'bool'
8 | if(C = "a"||"i "||"e"||"u"||"o"){
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| std::__cxx11::basic_string<char>
|
s708312308 | p03852 | C++ | #include<iostream>
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:6:5: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u") cout<<"vowel";
| ~^~~~~
a.cc:6:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u") cout<<"vowel";
| ~^~~~~
a.cc:6:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u") cout<<"vowel";
| ~^~~~~
a.cc:6:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u") cout<<"vowel";
| ~^~~~~
a.cc:6:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u") cout<<"vowel";
| ~^~~~~
|
s024804211 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
#define int long long
#define fo(a,b) for(int a=0;a<b;a++)
#define Sort(a) sort(a.begin(),a.end())
#define rev(a) reverse(a.begin(),a.end())
#define fi first
#define se second
#define co(a) cout<<a<<endl
#define sz size()
#define bgn begin()
#define en end()
#define pb(a) push_back(a)
#define pp() pop_back()
#define V vector
#define P pair
#define V2(a,b,c) V<V<int>> a(b,V<int>(c))
#define V2a(a,b,c,d) V<V<int>> a(b,V<int>(c,d))
#define incin(a) int a; cin>>a
#define yuko(a) setprecision(a)
#define uni(a) a.erase(unique(a.begin(),a.end()),a.end())
//#define min min<int>
//#define max max<int>
template<class T>
void cou(vector<vector<T>> a){
int b=a.size();
int c=a[0].size();
fo(i,b){
fo(j,c){
cout<<a[i][j];
if(j==c-1)
cout<<endl;
else
cout<<' ';
}
}
}
/*template<>
void cou(vector<vector<char>> a){
int b=a.size();
int c=a[0].size();
fo(i,b){
fo(j,c){
cout<<a[i][j];
if(j==c-1)
cout<<endl;
else
cout<<' ';
}
}
}*/
int wari(int a,int b) {
if(a%b==0)
return a/b;
else
return a/b+1;
}
int keta(int a){
double b=a;
b=log10(b);
int c=b;
return c+1;
}
int souwa(int a){
return a*(a+1)/2;
}
/*int lcm(int a,int b){
int d=a,e=b,f;
if(a<b)
swap(a,b);
int c,m=1;
while(m){
c=a%b;
if(c==0){
f=b;
m--;
}
else{
a=b;
b=c;
}
}
return d*e/f;
}
int gcm(int a,int b){
int d=a,e=b,f;
if(a<b)
swap(a,b);
int c,m=1;
while(m){
c=a%b;
if(c==0){
f=b;
m--;
}
else{
a=b;
b=c;
}
}
return f;
}*/
bool prime(int a){
if(a<2)
return false;
else if(a==2)
return true;
else if(a%2==0)
return false;
double b=sqrt(a);
for(int i=3;i<=b;i+=2){
if(a%i==0){
return false;
}
}
return true;
}
struct Union{
vector<int> par;
Union(int a){
par= vector<int>(a,-1);
}
int find(int a){
if(par[a]<0)
return a;
else
return par[a]=find(par[a]);
}
bool same(int a,int b){
return find(a)==find(b);
}
int Size(int a){
return -par[find(a)];
}
void unite(int a,int b){
a=find(a);
b=find(b);
if(a==b)
return;
if(Size(b)>Size(a))
swap<int>(a,b);
par[a]+=par[b];
par[b]=a;
}
};
int ketas(int a){
string b=to_string(a);
int c=0;
fo(i,keta(a)){
c+=b[i]-'0';
}
return c;
}
int gcm(int a,int b){
if(b==0)
return a;
return gcm(b,a%b);
}
int lcm(int a,int b){
return a/gcm(a,b)*b;
}
/*struct aa{
vector<int> gt;
aa(int n){
gt= vector<int>(n, 1);
}
void c(V<int> d,int b){
if(d[b]==0){
gt[d[b]-1]++;
gt[gt.sz-1]++;
}
else{
gt[d[b]-1]++;
c(d,d[d[b]]-1);
}
}
void cok(int a){
cout<<gt[a-1]<<endl;
fo(i,a-1)
cout<<gt[i]<<endl;
}
};
*/
/*struct dfs(){
*/
signed main(){
char c;
cin>>c;
if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u'){
cout<<"vowel"<<endl;
}
else
cout<<"consonant"<<end;
}
| a.cc: In function 'int main()':
a.cc:196:22: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
196 | cout<<"consonant"<<end;
| ~~~~~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/14/istream:41,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127,
from a.cc:1:
/usr/include/c++/14/ostream:116:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ostream_type& (*)(__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
116 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ^~~~~~~~
/usr/include/c++/14/ostream:116:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)' {aka 'std::basic_ostream<char>& (*)(std::basic_ostream<char>&)'}
116 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:125:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; __ios_type = std::basic_ios<char>]'
125 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/usr/include/c++/14/ostream:125:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'}
125 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:135:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
135 | operator<<(ios_base& (*__pf) (ios_base&))
| ^~~~~~~~
/usr/include/c++/14/ostream:135:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::ios_base& (*)(std::ios_base&)'
135 | operator<<(ios_base& (*__pf) (ios_base&))
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:174:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
174 | operator<<(long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:174:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int'
174 | operator<<(long __n)
| ~~~~~^~~
/usr/include/c++/14/ostream:178:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
178 | operator<<(unsigned long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:178:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int'
178 | operator<<(unsigned long __n)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:182:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
182 | operator<<(bool __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:182:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'bool'
182 | operator<<(bool __n)
| ~~~~~^~~
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:96:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]'
96 | basic_ostream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:97:22: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short int'
97 | operator<<(short __n)
| ~~~~~~^~~
/usr/include/c++/14/ostream:189:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
189 | operator<<(unsigned short __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:189:33: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short unsigned int'
189 | operator<<(unsigned short __n)
| ~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/ostream.tcc:110:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]'
110 | basic_ostream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:111:20: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int'
111 | operator<<(int __n)
| ~~~~^~~
/usr/include/c++/14/ostream:200:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
200 | operator<<(unsigned int __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:200:31: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'unsigned int'
200 | operator<<(unsigned int __n)
| ~~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:211:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
211 | operator<<(long long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:211:28: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int'
211 | operator<<(long long __n)
| ~~~~~~~~~~^~~
/usr/include/c++/14/ostream:215:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
215 | operator<<(unsigned long long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:215:37: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long unsigned int'
215 | operator<<(unsigned long long __n)
| ~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:231:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
231 | operator<<(double __f)
| ^~~~~~~~
/usr/include/c++/14/ostream:231:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'double'
231 | operator<<(double __f)
| ~~~~~~~^~~
/usr/include/c++/14/ostream:235:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
235 | operator<<(float __f)
| ^~~~~~~~
/usr/include/c++/14/ostream:235:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float'
235 | operator<<(float __f)
| ~~~~~~^~~
/usr/include/c++/14/ostream:243:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
243 | operator<<(long double __f)
| ^~~~~~~~
/usr/include/c++/14/ostream:243:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long double'
243 | operator<<(long double __f)
| ~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:301:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
301 | operator<<(const void* __p)
| ^~~~~~~~
/usr/include/c++/14/ostream:301:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const void*'
301 | operator<<(const void* __p)
| ~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:306:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::nullptr_t) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; std::nullptr_t = std::nullptr_t]'
3 |
s316296476 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char s ;
cin >> s;
if (s.at(i) == 'a' || s.at(i) == 'i' || s.at(i) == 'u' || s.at(i) == 'e' s.at(i) == 'o') {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:9: error: request for member 'at' in 's', which is of non-class type 'char'
7 | if (s.at(i) == 'a' || s.at(i) == 'i' || s.at(i) == 'u' || s.at(i) == 'e' s.at(i) == 'o') {
| ^~
a.cc:7:12: error: 'i' was not declared in this scope
7 | if (s.at(i) == 'a' || s.at(i) == 'i' || s.at(i) == 'u' || s.at(i) == 'e' s.at(i) == 'o') {
| ^
a.cc:7:27: error: request for member 'at' in 's', which is of non-class type 'char'
7 | if (s.at(i) == 'a' || s.at(i) == 'i' || s.at(i) == 'u' || s.at(i) == 'e' s.at(i) == 'o') {
| ^~
a.cc:7:45: error: request for member 'at' in 's', which is of non-class type 'char'
7 | if (s.at(i) == 'a' || s.at(i) == 'i' || s.at(i) == 'u' || s.at(i) == 'e' s.at(i) == 'o') {
| ^~
a.cc:7:63: error: request for member 'at' in 's', which is of non-class type 'char'
7 | if (s.at(i) == 'a' || s.at(i) == 'i' || s.at(i) == 'u' || s.at(i) == 'e' s.at(i) == 'o') {
| ^~
a.cc:7:75: error: expected ')' before 's'
7 | if (s.at(i) == 'a' || s.at(i) == 'i' || s.at(i) == 'u' || s.at(i) == 'e' s.at(i) == 'o') {
| ~ ^~
| )
|
s260239344 | 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:51: error: expected ')' before 's'
7 | if (s == 'a' || s == 'i' || s == 'u' || s == 'e' s == 'o') {
| ~ ^~
| )
|
s753242849 | 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;
}
}
// が母音であるとき、vowel と、そうでないとき consonant
| a.cc: In function 'int main()':
a.cc:8:43: error: 'C' was not declared in this scope
8 | if (c == 'a' || c=='i'||c=='u'||c=='e'||C=='o'){
| ^
|
s357457401 | 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;
}
}
// が母音であるとき、vowel と、そうでないとき consonant | 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=='u'||c=='e'||C=='o'){
| ~ ^~ ~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if (c == 'a' || c=='i'||c=='u'||c=='e'||C=='o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if (c == 'a' || c=='i'||c=='u'||c=='e'||C=='o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if (c == 'a' || c=='i'||c=='u'||c=='e'||C=='o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if (c == 'a' || c=='i'||c=='u'||c=='e'||C=='o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if (c == 'a' || c=='i'||c=='u'||c=='e'||C=='o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if (c == 'a' || c=='i'||c=='u'||c=='e'||C=='o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if (c == 'a' || c=='i'||c=='u'||c=='e'||C=='o'){
| ^~~
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
8 | if (c == 'a' || c=='i'||c=='u'||c=='e'||C=='o'){
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
8 | if (c == 'a' || c=='i'||c=='u'||c=='e'||C=='o'){
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | if (c == 'a' || c=='i'||c=='u'||c=='e'||C=='o'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | if (c == 'a' || c=='i'||c=='u'||c=='e'||C=='o'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | if (c == 'a' || c=='i'||c=='u'||c=='e'||C=='o'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | if (c == 'a' || c=='i'||c=='u'||c=='e'||C=='o'){
| ^~~
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
8 | if (c == 'a' || c=='i'||c=='u'||c=='e'||C=='o'){
| ^~~
In file included from /usr/include/c++/14/string:43:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
8 | if (c == 'a' || c=='i'||c=='u'||c=='e'||C=='o'){
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_Char |
s395197354 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string A;
cin >> A;
if (A === 'c') cout << "vowel" << endl;
else cout << "consontant" << endl;
}
| a.cc: In function 'int main()':
a.cc:8:11: error: expected primary-expression before '=' token
8 | if (A === 'c') cout << "vowel" << endl;
| ^
|
s488993677 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if (c == 'a' || 'i' || 'u' || 'e' || 'o'){
cout << 'vowel' << endl;
}
else {
cout << 'consonant' << endl;
}
| a.cc:8:9: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
8 | cout << 'vowel' << endl;
| ^~~~~~~
a.cc:11:9: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
11 | cout << 'consonant' << endl;
| ^~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:12:2: error: expected '}' at end of input
12 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s281480381 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if (c == 'a' || 'i' || 'u' || 'e' || 'o'){
cout << 'vowel' << endl;
}
else {
cout << 'consonant' << endl;
}
| a.cc:8:9: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
8 | cout << 'vowel' << endl;
| ^~~~~~~
a.cc:11:9: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
11 | cout << 'consonant' << endl;
| ^~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:12:2: error: expected '}' at end of input
12 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s308602540 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if (c == 'a' || 'i' || 'u' || 'e' || 'o'){
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
| a.cc: In function 'int main()':
a.cc:12:2: error: expected '}' at end of input
12 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s941512409 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if (c == 'a' || 'i' || 'u' || 'e' || 'o'){
cout << "vowel" << endl;
}
else {
cout << "consonant" <<endl;
}
| a.cc: In function 'int main()':
a.cc:12:2: error: expected '}' at end of input
12 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s230259971 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
cout << "vowel" << endl;
}
else {
cout << "consonant" <<endl;
}
| a.cc: In function 'int main()':
a.cc:12:2: error: expected '}' at end of input
12 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s183555295 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
char c;
int main() {
cin >> c;
if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
cout << "vowel" << endl;
}
else {
cout << "consonant" <<endl;
}
| a.cc: In function 'int main()':
a.cc:13:2: error: expected '}' at end of input
13 | }
| ^
a.cc:6:12: note: to match this '{'
6 | int main() {
| ^
|
s382394281 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
string c;
int main() {
cin >> c;
if (c == 'a' or 'i' or 'u' or 'e' or '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' or 'i' or 'u' or 'e' or 'o'){
| ~ ^~ ~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
| ^~~
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
| ^~~
In file included from /usr/include/c++/14/string:43:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
629 | operator==(bas |
s071399444 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
string c;
int main() {
cin >> c;
if (c == 'a' or 'i' or 'u' or 'e' or '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' or 'i' or 'u' or 'e' or 'o'){
| ~ ^~ ~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
| ^~~
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
| ^~~
In file included from /usr/include/c++/14/string:43:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:8:12: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
8 | if (c == 'a' or 'i' or 'u' or 'e' or 'o'){
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
629 | operator==(bas |
s925588347 | p03852 | C++ | #include<iostream>
using namespace std;
int main(){
char c;
cin>>c;
if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'||) cout<<"vowel";
else cout<<"consonant";
}
| a.cc: In function 'int main()':
a.cc:6:46: error: expected primary-expression before ')' token
6 | if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'||) cout<<"vowel";
| ^
|
s216772363 | 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:9:31: 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'})
9 | cout << vowel.find(c) == string::npos? "vowel":"consonant" << endl ;
| ~~~~~~~~~~~~~~~~~~~~~ ^~ ~~~~~~~~~~~~
| | |
| | const std::__cxx11::basic_string<char>::size_type {aka const long unsigned int}
| std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}
a.cc:9:31: note: candidate: 'operator==(int, std::__cxx11::basic_string<char>::size_type {aka long unsigned int})' (built-in)
9 | cout << vowel.find(c) == string::npos? "vowel":"consonant" << endl ;
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
a.cc:9:31: note: no known conversion for argument 1 from 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} to 'int'
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:9:42: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | cout << vowel.find(c) == string::npos? "vowel":"consonant" << endl ;
| ^~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:9:42: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
9 | cout << vowel.find(c) == string::npos? "vowel":"consonant" << endl ;
| ^~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:9:42: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | cout << vowel.find(c) == string::npos? "vowel":"consonant" << endl ;
| ^~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:9:42: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'}
9 | cout << vowel.find(c) == string::npos? "vowel":"consonant" << endl ;
| ^~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:9:42: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | cout << vowel.find(c) == string::npos? "vowel":"consonant" << endl ;
| ^~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:9:42: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'}
9 | cout << vowel.find(c) == string::npos? "vowel":"consonant" << endl ;
| ^~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:9:42: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | cout << vowel.find(c) == string::npos? "vowel":"consonant" << endl ;
| ^~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:9:42: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
9 | cout << vowel.find(c) == string::npos? "vowel":"consonant" << endl ;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:9:42: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::pair<_T1, _T2>'
9 | cout << vowel.find(c) == string::npos? "vowel":"consonant" << endl ;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:9:42: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
9 | cout << vowel.find(c) == string::npos? "vowel":"consonant" << endl ;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:9:42: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
9 | cout << vowel.find(c) == string::npos? "vowel":"consonant" << endl ;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:9:42: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
9 | cout << vowel.find(c) == string::npos? "vowel":"consonant" << endl ;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:9:42: note: 'std::basic_ostream<char>::__os |
s853561111 | 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:9:31: 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'})
9 | cout << vowel.find(c) == string :: npos ? " vowel " : " consonant " << endl ;
| ~~~~~~~~~~~~~~~~~~~~~ ^~ ~~~~~~~~~~~~~~
| | |
| | const std::__cxx11::basic_string<char>::size_type {aka const long unsigned int}
| std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}
a.cc:9:31: note: candidate: 'operator==(int, std::__cxx11::basic_string<char>::size_type {aka long unsigned int})' (built-in)
9 | cout << vowel.find(c) == string :: npos ? " vowel " : " consonant " << endl ;
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
a.cc:9:31: note: no known conversion for argument 1 from 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} to 'int'
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:9:44: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | cout << vowel.find(c) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:9:44: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
9 | cout << vowel.find(c) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:9:44: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | cout << vowel.find(c) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:9:44: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'}
9 | cout << vowel.find(c) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:9:44: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | cout << vowel.find(c) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:9:44: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'}
9 | cout << vowel.find(c) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:9:44: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | cout << vowel.find(c) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:9:44: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
9 | cout << vowel.find(c) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:9:44: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::pair<_T1, _T2>'
9 | cout << vowel.find(c) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:9:44: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
9 | cout << vowel.find(c) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:9:44: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
9 | cout << vowel.find(c) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:9:44: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
9 | cout << vowel.find(c) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~ |
s048030213 | 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:9:36: 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'})
9 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ ~~~~~~~~~~~~~~
| | |
| | const std::__cxx11::basic_string<char>::size_type {aka const long unsigned int}
| std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}
a.cc:9:36: note: candidate: 'operator==(int, std::__cxx11::basic_string<char>::size_type {aka long unsigned int})' (built-in)
9 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
a.cc:9:36: note: no known conversion for argument 1 from 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} to 'int'
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:9:49: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:9:49: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
9 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:9:49: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:9:49: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'}
9 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:9:49: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:9:49: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'}
9 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:9:49: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:9:49: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
9 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:9:49: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::pair<_T1, _T2>'
9 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:9:49: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
9 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:9:49: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
9 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:9:49: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
9 | cout << vowel . find ( c ) == string :: npos ? " vowel " : " consonant " << endl ;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator |
s270814469 | 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:11:7: error: 'consonant' was not declared in this scope
11 | cout<<consonant<<endl;
| ^~~~~~~~~
|
s401691490 | p03852 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <iomanip>
#include <map>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep1(i, n) for (int i = 1; i < (int)(n) + 1; i++)
#define all(vecto) vecto.begin(), vecto.end()
#define max3(a, b, c) max(a, max(b, c))
#define min3(a, b, c) min(a, min(b, c))
typedef long long ll;
void ans(bool qus)
{
if (qus == true)
cout << "vowel" << endl;
else
cout << "consonant" << endl;
}
void Ans(bool qust)
{
if (qust == true)
cout << "YES" << endl;
else
cout << "NO" << endl;
}
//ACしてくれ頼む
int main(){
char a;
cin >> a;
bool a;
if(a=='a' || a=='i'){
s = true;
}
else if(a=='u' || a=='e'){
s = true;
}
else if(a=='e'){
s = true;
}
else
{
s = false;
}
ans(s);
}
| a.cc: In function 'int main()':
a.cc:39:10: error: conflicting declaration 'bool a'
39 | bool a;
| ^
a.cc:37:10: note: previous declaration as 'char a'
37 | char a;
| ^
a.cc:41:9: error: 's' was not declared in this scope
41 | s = true;
| ^
a.cc:44:9: error: 's' was not declared in this scope
44 | s = true;
| ^
a.cc:47:9: error: 's' was not declared in this scope
47 | s = true;
| ^
a.cc:51:9: error: 's' was not declared in this scope
51 | s = false;
| ^
a.cc:53:9: error: 's' was not declared in this scope
53 | ans(s);
| ^
|
s750746635 | p03852 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <iomanip>
#include <map>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep1(i, n) for (int i = 1; i < (int)(n) + 1; i++)
#define all(vecto) vecto.begin(), vecto.end()
#define max3(a, b, c) max(a, max(b, c))
#define min3(a, b, c) min(a, min(b, c))
typedef long long ll;
void ans(bool qus)
{
if (qus == true)
cout << "vowel" << endl;
else
cout << "consonant" << endl;
}
void Ans(bool qust)
{
if (qust == true)
cout << "YES" << endl;
else
cout << "NO" << endl;
}
//ACしてくれ頼む
int main(){
char s;
cin >> a;
bool a;
if(a=='a' || a=='i'){
s = true;
}
else if(a=='u' || a=='e'){
s = true;
}
else if(a=='e'){
s = true;
}
else
{
s = false;
}
ans(s);
}
| a.cc: In function 'int main()':
a.cc:38:12: error: 'a' was not declared in this scope
38 | cin >> a;
| ^
|
s833426307 | p03852 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <iomanip>
#include <map>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep1(i, n) for (int i = 1; i < (int)(n) + 1; i++)
#define all(vecto) vecto.begin(), vecto.end()
#define max3(a, b, c) max(a, max(b, c))
#define min3(a, b, c) min(a, min(b, c))
typedef long long ll;
void ans(bool qus)
{
if (qus == true)
cout << "vowel" << endl;
else
cout << "consonant" << endl;
}
void Ans(bool qust)
{
if (qust == true)
cout << "YES" << endl;
else
cout << "NO" << endl;
}
//ACしてくれ頼む
int main(){
char s;
cin >> s;
bool s;
if(s=='a' || s=='i'){
s = true;
}
else if(s=='u' || s=='e'){
s = true;
}
else if(s=='o'){
s = true;
}
else
{
s = false;
}
ans(s);
}
| a.cc: In function 'int main()':
a.cc:39:10: error: conflicting declaration 'bool s'
39 | bool s;
| ^
a.cc:37:10: note: previous declaration as 'char s'
37 | char s;
| ^
|
s045741833 | p03852 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <iomanip>
#include <map>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep1(i, n) for (int i = 1; i < (int)(n) + 1; i++)
#define all(vecto) vecto.begin(), vecto.end()
#define max3(a, b, c) max(a, max(b, c))
#define min3(a, b, c) min(a, min(b, c))
typedef long long ll;
void ans(bool qus)
{
if (qus == true)
cout << "vowel" << endl;
else
cout << "consonant" << endl;
}
void Ans(bool qust)
{
if (qust == true)
cout << "YES" << endl;
else
cout << "NO" << endl;
}
//ACしてくれ頼む
int main(){
char s;
cin >> s;
bool s;
if(s=='a' || s=='i'){
s = true;
}
else if(s=='u' || s=='e'){
s = true;
}
else if(s=='e'){
s = true;
}
else
{
s = false;
}
ans(s);
}
| a.cc: In function 'int main()':
a.cc:39:10: error: conflicting declaration 'bool s'
39 | bool s;
| ^
a.cc:37:10: note: previous declaration as 'char s'
37 | char s;
| ^
|
s179881147 | p03852 | C++ | #include<iotream>
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;
return 0;
} | a.cc:1:9: fatal error: iotream: No such file or directory
1 | #include<iotream>
| ^~~~~~~~~
compilation terminated.
|
s031332833 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if(c == 'a's || c == 'b's || c == 'c's || c == 'd's || c == 'e's)
cout << "vowel" << endl;
else
cout << "consonant" << endl;
} | a.cc: In function 'int main()':
a.cc:7:9: error: unable to find character literal operator 'operator""s' with 'char' argument
7 | if(c == 'a's || c == 'b's || c == 'c's || c == 'd's || c == 'e's)
| ^~~~
a.cc:7:22: error: unable to find character literal operator 'operator""s' with 'char' argument
7 | if(c == 'a's || c == 'b's || c == 'c's || c == 'd's || c == 'e's)
| ^~~~
a.cc:7:35: error: unable to find character literal operator 'operator""s' with 'char' argument
7 | if(c == 'a's || c == 'b's || c == 'c's || c == 'd's || c == 'e's)
| ^~~~
a.cc:7:48: error: unable to find character literal operator 'operator""s' with 'char' argument
7 | if(c == 'a's || c == 'b's || c == 'c's || c == 'd's || c == 'e's)
| ^~~~
a.cc:7:61: error: unable to find character literal operator 'operator""s' with 'char' argument
7 | if(c == 'a's || c == 'b's || c == 'c's || c == 'd's || c == 'e's)
| ^~~~
|
s518537581 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
char x;
cin >> x;
if(x == 'a' || a == 'e' || a == 'i' || a == 'o' || a == 'u') {
cout << "vowel" << endl;
} else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:24: error: 'a' was not declared in this scope
7 | if(x == 'a' || a == 'e' || a == 'i' || a == 'o' || a == 'u') {
| ^
|
s377507774 | p03852 | C++ | c = input()
li = ["a", "e", "i", "o", "u"]
if c in li:
print("vowel")
else:
print("consonant")
| a.cc:1:1: error: 'c' does not name a type
1 | c = input()
| ^
|
s490367897 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
template<class T>bool contain(const string& s, const T& v){
reutnr s.find(v) != string::npos;
}
int main(){
string s;
cin >> s;
if contain("aiueo", s){
cout << "vowel" << endl;
}
else{
cout << "vowel" << endl;
}
} | a.cc: In function 'bool contain(const std::string&, const T&)':
a.cc:6:5: error: 'reutnr' was not declared in this scope
6 | reutnr s.find(v) != string::npos;
| ^~~~~~
a.cc:7:1: warning: no return statement in function returning non-void [-Wreturn-type]
7 | }
| ^
a.cc: In function 'int main()':
a.cc:13:8: error: expected '(' before 'contain'
13 | if contain("aiueo", s){
| ^~~~~~~
| (
a.cc:16:5: error: 'else' without a previous 'if'
16 | else{
| ^~~~
|
s395254741 | 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:32: error: lvalue required as left operand of assignment
7 | if(c=='a'||c=='i'||c='u'||c='e'||c='o'){
| ~~~^~~
|
s719841925 | p03852 | C++ | #include <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: In function 'int main()':
a.cc:8:13: error: expected ';' before '}' token
8 | return 0
| ^
| ;
9 | }
| ~
|
s264123212 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[])
{
char S;
cin >> S;
if(S=='a'||S=='i'||S=='u'||S=='e'||S=='o'){
cout << "vowel" << endl;
}else{
cout << "consonant" << endl;
}
cout << pls+1-mns << endl;
return 0;
} | a.cc: In function 'int main(int, const char**)':
a.cc:13:17: error: 'pls' was not declared in this scope
13 | cout << pls+1-mns << endl;
| ^~~
a.cc:13:23: error: 'mns' was not declared in this scope
13 | cout << pls+1-mns << endl;
| ^~~
|
s926889764 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char c;
cin>>c;
if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){
cout<<"vowel"<<endl;
}else{
cout<<"consonant"<<endl; | a.cc: In function 'int main()':
a.cc:10:29: error: expected '}' at end of input
10 | cout<<"consonant"<<endl;
| ^
a.cc:9:8: note: to match this '{'
9 | }else{
| ^
a.cc:10:29: error: expected '}' at end of input
10 | cout<<"consonant"<<endl;
| ^
a.cc:4:11: note: to match this '{'
4 | int main(){
| ^
|
s007952666 | 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:10:28: error: expected ';' before '}' token
10 | cout << "consonant"
| ^
| ;
11 | }
| ~
|
s607794626 | p03852 | C++ | #include <iostream>
using namespace std;
int main(){
char set = {'a', 'i', 'u', 'e', 'o'};
char a;
cin >> a;
for(int i = 0; i < 5; i++){
if(set[i] == a){
cout << "vowel" << endl;
return 0;
}
}
cout << "constant" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:5:8: error: scalar object 'set' requires one element in initializer
5 | char set = {'a', 'i', 'u', 'e', 'o'};
| ^~~
|
s001883258 | p03852 | C++ | #include <iostream>
using namespace std;
int main(){
char set = {'a', 'i', 'u', 'e', 'o'}
char a;
cin >> a;
for(int i = 0; i < 5; i++){
if(set[i] == a){
cout << "vowel" << endl;
return 0;
}
}
cout << "constant" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:5:8: error: scalar object 'set' requires one element in initializer
5 | char set = {'a', 'i', 'u', 'e', 'o'}
| ^~~
a.cc:6:3: error: expected ',' or ';' before 'char'
6 | char a;
| ^~~~
a.cc:7:10: error: 'a' was not declared in this scope
7 | cin >> a;
| ^
|
s157819023 | p03852 | C++ | #include <iostream>
using namespace std;
int main(){
char set = {a, i, u, e, o}
char a;
cin >> a;
for(int i = 0; i < 5; i++){
if(set[i] == a){
cout << "vowel" << endl;
break;
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:5:16: error: 'a' was not declared in this scope
5 | char set = {a, i, u, e, o}
| ^
a.cc:5:19: error: 'i' was not declared in this scope
5 | char set = {a, i, u, e, o}
| ^
a.cc:5:22: error: 'u' was not declared in this scope
5 | char set = {a, i, u, e, o}
| ^
a.cc:5:25: error: 'e' was not declared in this scope
5 | char set = {a, i, u, e, o}
| ^
a.cc:5:28: error: 'o' was not declared in this scope
5 | char set = {a, i, u, e, o}
| ^
a.cc:5:8: error: scalar object 'set' requires one element in initializer
5 | char set = {a, i, u, e, o}
| ^~~
a.cc:6:3: error: expected ',' or ';' before 'char'
6 | char a;
| ^~~~
|
s973732730 | p03852 | C++ | #include <bits/stdc++.h>
#include <string>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <numeric>
using namespace std;
int abs(int num){
if (num > 0)
return num;
else
return -num;
}
int main(){
char A;
cin >> A;
if(A == 'a' || A == 'i' || A == 'u' || A == 'e' || A == 'o'){
cout << "vowel" << endl;
}
else{
cout << "consonant"
}
} | a.cc: In function 'int main()':
a.cc:23:24: error: expected ';' before '}' token
23 | cout << "consonant"
| ^
| ;
24 | }
| ~
|
s971082265 | p03852 | Java | import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String c = next();
if(c.equals("a") || c.equals("e") || c.equals("i") || c.equals("o") || c.equals("u")){
System.out.println("vowel");
}else{
System.out.println("consonant");}
}
} | Main.java:6: error: cannot find symbol
String c = next();
^
symbol: method next()
location: class Main
1 error
|
s323480310 | p03852 | C++ | #include<iostream>
#include<cstdio>
using namespace std;
int main()
{
int g=getchar();
if(g=='a'||g=='e'||g=='i'||g=='o'||g=='u')
cout<<"vowel"
else
cout<<"consonant";
return 0;
} | a.cc: In function 'int main()':
a.cc:8:22: error: expected ';' before 'else'
8 | cout<<"vowel"
| ^
| ;
9 | else
| ~~~~
|
s178255961 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin>>c;
if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u'){cout<<"vowel"<<endl;}
else{cout<<"consonant"<<endl;}
| a.cc: In function 'int main()':
a.cc:9:33: error: expected '}' at end of input
9 | else{cout<<"consonant"<<endl;}
| ^
a.cc:3:12: note: to match this '{'
3 | int main() {
| ^
|
s607828320 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin>>c;
if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u'){cout<<"vowel"<<endl;}
else{cout<<"consonant"<<endl;}
| a.cc: In function 'int main()':
a.cc:8:7: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
8 | if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u'){cout<<"vowel"<<endl;}
| ~^~~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u'){cout<<"vowel"<<endl;}
| ^~~
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u'){cout<<"vowel"<<endl;}
| ^~~
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u'){cout<<"vowel"<<endl;}
| ^~~
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u'){cout<<"vowel"<<endl;}
| ^~~
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u'){cout<<"vowel"<<endl;}
| ^~~
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
8 | if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u'){cout<<"vowel"<<endl;}
| ^~~
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
8 | if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u'){cout<<"vowel"<<endl;}
| ^~~
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
8 | if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u'){cout<<"vowel"<<endl;}
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
8 | if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u'){cout<<"vowel"<<endl;}
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u'){cout<<"vowel"<<endl;}
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u'){cout<<"vowel"<<endl;}
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u'){cout<<"vowel"<<endl;}
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u'){cout<<"vowel"<<endl;}
| ^~~
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
8 | if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u'){cout<<"vowel"<<endl;}
| ^~~
In file included from /usr/include/c++/14/string:43:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:8:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
8 | if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u'){cout<<"vowel"<<endl;}
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
|
s288775378 | 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:21: 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:33: 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:45: 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:57: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if (c == "a" || c == "i" || c == "u" || c == "e" || c == "o") {
| ~~^~~~~~
|
s937959062 | p03852 | C++ | c=input()
if c==a or c==e or c==i or c==o or c==u :
print("vowel")
else:
print("consonant") | a.cc:1:1: error: 'c' does not name a type
1 | c=input()
| ^
|
s180805039 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(void) {
char;
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:5:9: error: declaration does not declare anything [-fpermissive]
5 | char;
| ^~~~
a.cc:6:16: error: 'c' was not declared in this scope
6 | cin >> c;
| ^
|
s075144366 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(void) {
char ;
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:5:9: error: declaration does not declare anything [-fpermissive]
5 | char ;
| ^~~~
a.cc:6:16: error: 'c' was not declared in this scope
6 | cin >> c;
| ^
|
s750393683 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(void) {
char;
cin >> c;
if (c == 'a' || c == 'e' || c =='i' || c == 'o' || c == 'u') {
cout << 'vowel' << endl;
} else {
cout << "consonant" << endl;
}
return 0;
}
| a.cc:9:25: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
9 | cout << 'vowel' << endl;
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:9: error: declaration does not declare anything [-fpermissive]
5 | char;
| ^~~~
a.cc:6:16: error: 'c' was not declared in this scope
6 | cin >> c;
| ^
|
s403724656 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(void) {
char ;
cin >> c;
if (c == 'a' || c == 'e' || c =='i' || c == 'o' || c == 'u') {
cout << 'vowel' << endl;
} else {
cout << "consonant" << endl;
}
return 0;
}
| a.cc:9:25: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
9 | cout << 'vowel' << endl;
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:9: error: declaration does not declare anything [-fpermissive]
5 | char ;
| ^~~~
a.cc:6:16: error: 'c' was not declared in this scope
6 | cin >> c;
| ^
|
s219668975 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(void) {
char ;
cin >> c;
if (c == 'a' || c == 'e' || c =='i' || c == 'o' || c == 'u') {
cont << 'vowel' << endl;
} else {
cout << "consonant" << endl;
}
return 0;
} | a.cc:9:25: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
9 | cont << 'vowel' << endl;
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:9: error: declaration does not declare anything [-fpermissive]
5 | char ;
| ^~~~
a.cc:6:16: error: 'c' was not declared in this scope
6 | cin >> c;
| ^
a.cc:9:17: error: 'cont' was not declared in this scope; did you mean 'const'?
9 | cont << 'vowel' << endl;
| ^~~~
| const
|
s640375012 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(void) {
char c;
cin >> c;
if (c == 'a' || c == 'e' || c =='i' || c == 'o' || c == 'u') {
cont << "vowel" << endl;
} else {
cout << "consonant" << endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:17: error: 'cont' was not declared in this scope; did you mean 'const'?
9 | cont << "vowel" << endl;
| ^~~~
| const
|
s387847323 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(void) {
char c;
cin >> c+
if (c == 'a' || c == 'e' || c =='i' || c == 'o' || c == 'u') {
cont << "vowel" << endl;
} else {
cout << "consonant" << endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:9: error: expected primary-expression before 'if'
8 | if (c == 'a' || c == 'e' || c =='i' || c == 'o' || c == 'u') {
| ^~
a.cc:10:11: error: 'else' without a previous 'if'
10 | } else {
| ^~~~
|
s292750118 | p03852 | C++ | #include<cstdio>
#include<iostream>
#include<algorithm>
#include<string>
#include<cstring>
using namespace std;
char ch;
int main()
{
cin>>ch;
if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch==u)cout<<"vowel";
else cout<<"consonant";
return 0;
}
| a.cc: In function 'int main()':
a.cc:12:52: error: 'u' was not declared in this scope
12 | if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch==u)cout<<"vowel";
| ^
|
s219966626 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char X;
cin >> X;
if (X = 'a'){
cout << vowel << endl;
}
if (X = 'i'){
cout << vowel << endl;
}
if (X = 'u'){
cout << vowel << endl;
}
if (X = 'e'){
cout << vowel << endl;
}
if (X = 'o'){
cout << vowel << endl;
}
else{
consonant
}
}
| a.cc: In function 'int main()':
a.cc:8:14: error: 'vowel' was not declared in this scope
8 | cout << vowel << endl;
| ^~~~~
a.cc:11:14: error: 'vowel' was not declared in this scope
11 | cout << vowel << endl;
| ^~~~~
a.cc:14:14: error: 'vowel' was not declared in this scope
14 | cout << vowel << endl;
| ^~~~~
a.cc:17:14: error: 'vowel' was not declared in this scope
17 | cout << vowel << endl;
| ^~~~~
a.cc:20:14: error: 'vowel' was not declared in this scope
20 | cout << vowel << endl;
| ^~~~~
a.cc:23:6: error: 'consonant' was not declared in this scope
23 | consonant
| ^~~~~~~~~
|
s959204770 | 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:48: error: lvalue required as left operand of assignment
7 | if (c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o')
| ~~~~^~~~
|
s903474417 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
int >> c;
if (c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o')
cout << "vowel" << endl;
else
cout << "consonant" << endl;
}
| a.cc: In function 'int main()':
a.cc:6:7: error: expected unqualified-id before '>>' token
6 | int >> c;
| ^~
a.cc:7:48: error: lvalue required as left operand of assignment
7 | if (c = 'a' || c = 'i' || c = 'u' || c = 'e' || c = 'o')
| ~~~~^~~~
|
s037881474 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char c;
cin >> c;
if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
| a.cc: In function 'int main()':
a.cc:13:4: error: expected '}' at end of input
13 | }
| ^
a.cc:4:11: note: to match this '{'
4 | int main(){
| ^
|
s134210197 | 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;
}
esle {
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:11:3: error: 'esle' was not declared in this scope
11 | esle {
| ^~~~
|
s187977195 | p03852 | C | #include <stdio.h>
int main(void){
char let;
int num=0;
scanf("%c",let);
num=let-"0";
if(num==(49||53||57||63||69)){
printf("vowel");
}else{
printf("consonant");
}
return 0;
} // | main.c: In function 'main':
main.c:6:16: error: invalid operands to binary - (have 'int' and 'char *')
6 | num=let-"0";
| ^
| |
| char *
|
s400805068 | p03852 | C | #include <stdio.h>
int main(void){
char let;
scanf("%c",&let);
if(false){
printf("vowel");
}else{
printf("consonant");
}
return 0;
} | main.c: In function 'main':
main.c:5:12: error: 'false' undeclared (first use in this function)
5 | if(false){
| ^~~~~
main.c:2:1: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
1 | #include <stdio.h>
+++ |+#include <stdbool.h>
2 | int main(void){
main.c:5:12: note: each undeclared identifier is reported only once for each function it appears in
5 | if(false){
| ^~~~~
|
s631187895 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef long double ld;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
const long long INF = 1LL << 60;
typedef pair<ll,ll> pairs;
vector<pairs> p;
bool pairCompare(const pair<double,ll>& firstElof, const pair<double,ll>& secondElof){
return firstElof.first < secondElof.first;
}
#define MAX_N 1000100
bool x[MAX_N];
ll num[MAX_N];
ll fibl[MAX_N]={0};
ll fib(ll a){
if (fibl[a]!=0)return fibl[a];
if (a==0){
return 0;
}else if (a==1){
return 1;
}
return fibl[a]=fib(a-1)+fib(a-2);
}
ll eratosthenes(ll n) {
int p = 0;
for (ll i=0; i<=n; ++i) x[i] = true;
x[0] = x[1] = false;
for(int i=2; i<=n; ++i) {
if(x[i]) {
p++;
for(int j=2*i; j<=n; j+=i) x[j] = false;
}
num[i] = p;
}
return p;
}
ll gcd(ll a,ll b){
if (a%b==0)return(b);
else return(gcd(b,a%b));
}
ll keta(ll N){
int tmp{};
while( N > 0 ){
tmp += ( N % 10 );
N /= 10;
}
N = tmp;
return N;
}
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:64:37: error: expected ';' before 'return'
64 | else cout << "consonant" << endl
| ^
| ;
65 |
66 | return 0;
| ~~~~~~
|
s103944092 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;int main() {
char c;
cin >> c;
if (c == a || c == b || c == c || c == d || c == e){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:5:12: error: 'a' was not declared in this scope
5 | if (c == a || c == b || c == c || c == d || c == e){
| ^
a.cc:5:22: error: 'b' was not declared in this scope
5 | if (c == a || c == b || c == c || c == d || c == e){
| ^
a.cc:5:42: error: 'd' was not declared in this scope
5 | if (c == a || c == b || c == c || c == d || c == e){
| ^
a.cc:5:52: error: 'e' was not declared in this scope
5 | if (c == a || c == b || c == c || c == d || c == e){
| ^
|
s770676360 | 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: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=='i'||s=='u'||s=='e'||s=='o'){
| ~^~~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:6:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | if(s=='a'||s=='i'||s=='u'||s=='e'||s=='o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:6:9: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
6 | if(s=='a'||s=='i'||s=='u'||s=='e'||s=='o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:6:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | if(s=='a'||s=='i'||s=='u'||s=='e'||s=='o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:6:9: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
6 | if(s=='a'||s=='i'||s=='u'||s=='e'||s=='o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:6:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | if(s=='a'||s=='i'||s=='u'||s=='e'||s=='o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:6:9: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
6 | if(s=='a'||s=='i'||s=='u'||s=='e'||s=='o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:6:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | if(s=='a'||s=='i'||s=='u'||s=='e'||s=='o'){
| ^~~
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:6:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
6 | if(s=='a'||s=='i'||s=='u'||s=='e'||s=='o'){
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:6:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
6 | if(s=='a'||s=='i'||s=='u'||s=='e'||s=='o'){
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:6:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
6 | if(s=='a'||s=='i'||s=='u'||s=='e'||s=='o'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:6:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
6 | if(s=='a'||s=='i'||s=='u'||s=='e'||s=='o'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:6:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
6 | if(s=='a'||s=='i'||s=='u'||s=='e'||s=='o'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:6:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
6 | if(s=='a'||s=='i'||s=='u'||s=='e'||s=='o'){
| ^~~
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:6:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
6 | if(s=='a'||s=='i'||s=='u'||s=='e'||s=='o'){
| ^~~
In file included from /usr/include/c++/14/string:43:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:6:9: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
6 | if(s=='a'||s=='i'||s=='u'||s=='e'||s=='o'){
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
629 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~ |
s554466339 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string 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:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ~^~~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:9:10: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:9:10: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:9:10: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ^~~
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ^~~
In file included from /usr/include/c++/14/string:43:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr |
s190914839 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string a;
cin >> a;
if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
cout << "vowel" << endl;
}
else {
cout << "conslnant" << endl;
}
} | a.cc: In function 'int main()':
a.cc:9:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ~^~~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:9:10: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:9:10: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:9:10: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char'
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ^~~
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ^~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ^~~
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ^~~
In file included from /usr/include/c++/14/string:43:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:9:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
9 | if (a=='a' || a=='i' || a=='u' || a=='e' || a== 'o'){
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr |
s683318993 | p03852 | C++ | #include<iostream>
int main()
{
char c;
std::cin << c;
switch(c)
{
case 'a':
case 'i':
case 'u':
case 'e':
case 'o':
std::cout << "vowel";
break;
default:
std::cout << "consonant";
}
} | a.cc: In function 'int main()':
a.cc:6:12: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'char')
6 | std::cin << c;
| ~~~~~~~~ ^~ ~
| | |
| | char
| std::istream {aka std::basic_istream<char>}
a.cc:6:12: note: candidate: 'operator<<(int, int)' (built-in)
6 | std::cin << c;
| ~~~~~~~~~^~~~
a.cc:6:12: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int'
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)'
763 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed:
a.cc:6:15: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | std::cin << c;
| ^
/usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4077 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed:
a.cc:6:15: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | std::cin << c;
| ^
In file included from /usr/include/c++/14/bits/memory_resource.h:38,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
125 | operator<<(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed:
a.cc:6:8: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte'
6 | std::cin << c;
| ~~~~~^~~
In file included from /usr/include/c++/14/bits/ios_base.h:46:
/usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)'
339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
| ^~~~~~~~
/usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed:
a.cc:6:15: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | std::cin << c;
| ^
/usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)'
563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed:
a.cc:6:15: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | std::cin << c;
| ^
/usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)'
573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed:
a.cc:6:15: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | std::cin << c;
| ^
/usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)'
579 | operator<<(basic_ostream<char, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed:
a.cc:6:15: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | std::cin << c;
| ^
/usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)'
590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed:
a.cc:6:15: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | std::cin << c;
| ^
/usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)'
595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed:
a.cc:6:15: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | std::cin << c;
| ^
/usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)'
654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed:
a.cc:6:15: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | std::cin << c;
| ^
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)'
307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed:
a.cc:6:15: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | std::cin << c;
| ^
/usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)'
671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed:
a.cc:6:15: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | std::cin << c;
| ^
/usr/include/c++/14/ostream:684:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)'
684 | operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:684:5: note: template argument deduction/substitution failed:
a.cc:6:15: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | std::cin << c;
| ^
/usr/include/c++/14/ostream:689:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const unsigned char*)'
689 | operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:689:5: note: template argument deduction/substitution failed:
a.cc:6:15: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | std::cin << c;
| ^
/usr/include/c++/14/ostream:810:5: note: candidate: 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&)'
810 | operator<<(_Ostream&& __os, const _Tp& __x)
| ^~~~~~~~
/usr/include/c++/14/ostream:810:5: note: template argument deduction/substitution failed:
/usr/include/c++/14/ostream: In substitution of 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&) [with _Ostream = std::basic_istream<char>&; _Tp = char]':
a.cc:6:15: required from here
6 | std::cin << c;
| ^
/usr/include/c++/14/ostream:810:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
810 | operator<<(_Ostream&& __os, const _Tp& __x)
| ^~~~~~~~
|
s436772376 | p03852 | C | #include<stdio.h>
int main()
{
char c;
int tmp = scanf_s("%c", &c);
switch (c)
{
case 'a':
case 'i':
case 'u':
case 'e':
case 'o':
printf("voewl");
break;
default:
printf("consonant");
}
} | main.c: In function 'main':
main.c:6:19: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
6 | int tmp = scanf_s("%c", &c);
| ^~~~~~~
| scanf
|
s575247943 | p03852 | C++ | #include<stdio.h>
int main()
{
char c;
scanf_s("%c", &c);
switch (c)
{
case 'a':
case 'i':
case 'u':
case 'e':
case 'o':
printf("voewl");
break;
default:
printf("consonant");
}
} | a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
6 | scanf_s("%c", &c);
| ^~~~~~~
| scanf
|
s603328314 | p03852 | C++ | #include<stdio.h>
void main()
{
char c;
int t = scanf_s("%c", &c);
switch (c)
{
case 'a':
case 'i':
case 'u':
case 'e':
case 'o':
printf("voewl");
break;
default:
printf("consonant");
}
} | a.cc:3:1: error: '::main' must return 'int'
3 | void main()
| ^~~~
a.cc: In function 'int main()':
a.cc:6:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
6 | int t = scanf_s("%c", &c);
| ^~~~~~~
| scanf
|
s852062295 | p03852 | C++ | #include<stdio.h>
void main()
{
char c;
scanf("%c",&c);
switch(c)
{
case 'a':
case 'e':
case 'i':
case 'o':
case 'u':
printf("voewl");
break;
default:
printf("consonant");
}
} | a.cc:3:1: error: '::main' must return 'int'
3 | void main()
| ^~~~
|
s407080846 | p03852 | C++ | #include<stdio.h>
void main()
{
char c;
int tmp =
scanf("%c",&c);
switch(c)
{
case 'a':
case 'i':
case 'u':
case 'e':
case 'o':
printf("voewl");
break;
default:
printf("consonant");
}
} | a.cc:3:1: error: '::main' must return 'int'
3 | void main()
| ^~~~
|
s802573850 | p03852 | C++ | #include<stdio.h>
void main()
{
char c;
scanf_s("%c",&c);
switch(c)
{
case 'a':
case 'i':
case 'u':
case 'e':
case 'o':
printf("voewl");
break;
default:
printf("consonant");
}
} | a.cc:3:1: error: '::main' must return 'int'
3 | void main()
| ^~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
6 | scanf_s("%c",&c);
| ^~~~~~~
| scanf
|
s999716852 | p03852 | C++ | #include<stdio.h>
void main()
{
char c;
scanf("%c",&c);
switch(c)
{
case 'a':
case 'i':
case 'u':
case 'e':
case 'o':
printf("voewl");
break;
default:
printf("consonant");
}
} | a.cc:3:1: error: '::main' must return 'int'
3 | void main()
| ^~~~
|
s501775653 | p03852 | C | #include<stdio.h>
void main()
{
char c;
scanf_s("%c",&c);
switch(c)
{
case 'a':
case 'i':
case 'u':
case 'e':
case 'o':
printf("voewl");
break;
default:
printf("consonant");
}
} | main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
6 | scanf_s("%c",&c);
| ^~~~~~~
| scanf
|
s338884464 | p03852 | C | #include<stdio.h>
void main()
{
char c;
scanf(%c,&c);
switch(c)
{
case 'a':
case 'i':
case 'u':
case 'e':
case 'o':
printf("voewl");
break;
default:
printf("consonant");
}
} | main.c: In function 'main':
main.c:6:9: error: expected expression before '%' token
6 | scanf(%c,&c);
| ^
|
s761746920 | p03852 | C++ | #include<stdio.h>
void main()
{
char c;
scanf("%c",&c);
switch(c)
{
case 'a':
case 'i':
case 'u':
case 'e':
case 'o':
printf("voewl");
break;
default:
printf("consonant");
}
} | a.cc:3:1: error: '::main' must return 'int'
3 | void main()
| ^~~~
|
s463278130 | p03852 | C++ | #include<stdio.h>
void main()
{
char c;
scanf(%c,&c);
switch(c)
{
case 'a':
case 'i':
case 'u':
case 'e':
case 'o':
printf("voewl");
break;
default:
printf("consonant");
}
} | a.cc:3:1: error: '::main' must return 'int'
3 | void main()
| ^~~~
a.cc: In function 'int main()':
a.cc:6:9: error: expected primary-expression before '%' token
6 | scanf(%c,&c);
| ^
|
s589824952 | p03852 | C++ | #include<stdio.h>
int main(){
char x;
scanf("%s",&a);
if(x = "a"||"i"||"u"||"e"||"o") printf("vowel");
else printf("consonant");
} | a.cc: In function 'int main()':
a.cc:4:15: error: 'a' was not declared in this scope
4 | scanf("%s",&a);
| ^
|
s704631764 | p03852 | C++ | #include<stdio.h>
int main(){
char x;
scanf("%s",&a);
if(x = a||i||u||e||o) printf("vowel");
else printf("consonant");
} | a.cc: In function 'int main()':
a.cc:4:15: error: 'a' was not declared in this scope
4 | scanf("%s",&a);
| ^
a.cc:5:13: error: 'i' was not declared in this scope
5 | if(x = a||i||u||e||o) printf("vowel");
| ^
a.cc:5:16: error: 'u' was not declared in this scope
5 | if(x = a||i||u||e||o) printf("vowel");
| ^
a.cc:5:19: error: 'e' was not declared in this scope
5 | if(x = a||i||u||e||o) printf("vowel");
| ^
a.cc:5:22: error: 'o' was not declared in this scope
5 | if(x = a||i||u||e||o) printf("vowel");
| ^
|
s673000610 | 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;
}
}
#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:17:5: error: redefinition of 'int main()'
17 | int main() {
| ^~~~
a.cc:4:5: note: 'int main()' previously defined here
4 | int main() {
| ^~~~
|
s239218453 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if (char == 'a' || char == 'i' || char == 'u' || char == 'e' || char == 'o') {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:16: error: expected unqualified-id before '==' token
8 | if (char == 'a' || char == 'i' || char == 'u' || char == 'e' || char == 'o') {
| ^~
|
s457773733 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
if (char == 'a' || char == 'i' || char == 'u' || char == 'e' || char == 'o') {
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
}
}
| a.cc: In function 'int main()':
a.cc:8:16: error: expected unqualified-id before '==' token
8 | if (char == 'a' || char == 'i' || char == 'u' || char == 'e' || char == 'o') {
| ^~
a.cc: At global scope:
a.cc:15:1: error: expected declaration before '}' token
15 | }
| ^
|
s142443200 | 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:68: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
8 | if(c == 'a' ||c == 'i' ||c == 'u' ||c == 'e' ||c == 'o') { cout << 'vowel' << endl; }
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:9:17: error: 'consonant' was not declared in this scope
9 | else {cout << consonant << endl;}
| ^~~~~~~~~
|
s492007440 | p03852 | C++ | #include <bits/stdc++.h>
#include <algorithm>
#include<string>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(NULL);
//string c;
char c;
cin >> c;
if (c == "a" || c == "e" || c == "i" || c == "u" || c == "o") {
cout << "vowel" << endl;
} else {
cout << "consonant" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:12:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
12 | if (c == "a" || c == "e" || c == "i" || c == "u" || c == "o") {
| ~~^~~~~~
a.cc:12:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
12 | if (c == "a" || c == "e" || c == "i" || c == "u" || c == "o") {
| ~~^~~~~~
a.cc:12:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
12 | if (c == "a" || c == "e" || c == "i" || c == "u" || c == "o") {
| ~~^~~~~~
a.cc:12:47: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
12 | if (c == "a" || c == "e" || c == "i" || c == "u" || c == "o") {
| ~~^~~~~~
a.cc:12:59: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
12 | if (c == "a" || c == "e" || c == "i" || c == "u" || c == "o") {
| ~~^~~~~~
|
s048193311 | 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 | }
| ^
|
s991541778 | p03852 | C++ | #include<iostream>
#include<set>
using namespace std;
int main(){
set<char> s{'a', 'i', 'u', 'e', 'o'};
char ch;
cin >> ch;
set<char>::iterator it = s.find(ch);
if (it = s.end())
cout << "consonant" << endl;
else
cout << "vowel" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:11:10: error: could not convert '(it = s.std::set<char>::end())' from 'std::set<char>::iterator' {aka 'std::_Rb_tree<char, char, std::_Identity<char>, std::less<char>, std::allocator<char> >::const_iterator'} to 'bool'
11 | if (it = s.end())
| ~~~^~~~~~~~~
| |
| std::set<char>::iterator {aka std::_Rb_tree<char, char, std::_Identity<char>, std::less<char>, std::allocator<char> >::const_iterator}
|
s316551967 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
string s;
cin >> s;
if (s =="a" || s == "e" || s == "i" || s == "o" || s == "u"){
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
} | a.cc:5:3: error: 'cin' does not name a type
5 | cin >> s;
| ^~~
a.cc:7:3: error: expected unqualified-id before 'if'
7 | if (s =="a" || s == "e" || s == "i" || s == "o" || s == "u"){
| ^~
a.cc:10:3: error: expected unqualified-id before 'else'
10 | else {
| ^~~~
a.cc:13:1: error: expected declaration before '}' token
13 | }
| ^
|
s520758067 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 1; i < S.size(); i++)
int main() {
string ans;
cin >> ans;
if(ans == a){
cout << "vowel"<< endl;
}
if(ans == e){
cout << "vowel"<< endl;
}
if(ans == i){
cout << "vowel"<< endl;
}
if(ans == o){
cout << "vowel"<< endl;
}
if(ans == 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(ans == a){
| ^
a.cc:11:13: error: 'e' was not declared in this scope
11 | if(ans == e){
| ^
a.cc:14:13: error: 'i' was not declared in this scope
14 | if(ans == i){
| ^
a.cc:17:13: error: 'o' was not declared in this scope
17 | if(ans == o){
| ^
a.cc:20:13: error: 'u' was not declared in this scope
20 | if(ans == u){
| ^
|
s591254235 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string C;
cin >> C;
if(C="a"){
cout << "vowel" << endl;
}
else if (C="i"){
cout << "vowel" << endl;
}
else if(C="u"){
cout << "vowel" << endl;
}
else if(C="e"){
cout << "vowel" << endl;
}
else if(C="o"){
cout << "vowel" << endl;
}
else {
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:6: error: could not convert 'C.std::__cxx11::basic_string<char>::operator=(((const char*)"a"))' from 'std::__cxx11::basic_string<char>' to 'bool'
7 | if(C="a"){
| ~^~~~
| |
| std::__cxx11::basic_string<char>
a.cc:10:11: error: could not convert 'C.std::__cxx11::basic_string<char>::operator=(((const char*)"i"))' from 'std::__cxx11::basic_string<char>' to 'bool'
10 | else if (C="i"){
| ~^~~~
| |
| std::__cxx11::basic_string<char>
a.cc:13:10: error: could not convert 'C.std::__cxx11::basic_string<char>::operator=(((const char*)"u"))' from 'std::__cxx11::basic_string<char>' to 'bool'
13 | else if(C="u"){
| ~^~~~
| |
| std::__cxx11::basic_string<char>
a.cc:16:10: error: could not convert 'C.std::__cxx11::basic_string<char>::operator=(((const char*)"e"))' from 'std::__cxx11::basic_string<char>' to 'bool'
16 | else if(C="e"){
| ~^~~~
| |
| std::__cxx11::basic_string<char>
a.cc:19:10: error: could not convert 'C.std::__cxx11::basic_string<char>::operator=(((const char*)"o"))' from 'std::__cxx11::basic_string<char>' to 'bool'
19 | else if(C="o"){
| ~^~~~
| |
| std::__cxx11::basic_string<char>
|
s554217541 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string C;
cin << C;
if(C="a"){
cout >> "vowel" >> endl;
}
else if (C="i"){
cout >> "vowel" >> endl;
}
else if(C="u"){
cout>> "vowel" >> endl;
}
else if(C="e"){
cout >> "vowel" >> endl;
}
else if(C="o"){
cout >> "vowel" >> endl;
}
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<char>}
| std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1715:5: note: candidate: 'template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const sub_match<_Bi_iter>&)'
1715 | operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1715:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << C;
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41:
/usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
125 | operator<<(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed:
a.cc:6:3: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte'
6 | cin << C;
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)'
763 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << C;
| ^
/usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4077 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << C;
| ^
/usr/include/c++/14/bitset:1687:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const bitset<_Nb>&)'
1687 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bitset:1687:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << C;
| ^
In file included from /usr/include/c++/14/bits/ios_base.h:46,
from /usr/include/c++/14/streambuf:43,
from /usr/include/c++/14/bits/streambuf_iterator.h:35,
from /usr/include/c++/14/iterator:66,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54:
/usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)'
339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
| ^~~~~~~~
/usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << C;
| ^
In file included from /usr/include/c++/14/memory:80,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:56:
/usr/include/c++/14/bits/shared_ptr.h:70:5: note: candidate: 'template<class _Ch, class _Tr, class _Tp, __gnu_cxx::_Lock_policy _Lp> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __shared_ptr<_Tp, _Lp>&)'
70 | operator<<(std::basic_ostream<_Ch, _Tr>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/shared_ptr.h:70:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << C;
| ^
In file included from /usr/include/c++/14/istream:41,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)'
563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << C;
| ^
/usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)'
573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << C;
| ^
/usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)'
579 | operator<<(basic_ostream<char, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << C;
| ^
/usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)'
590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << C;
| ^
/usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)'
595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << C;
| ^
/usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)'
654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << C;
| ^
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)'
307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << C;
| ^
/usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)'
671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed:
a.cc:6:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << C;
| ^
/usr/include/c++/14/ostream:684:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)'
684 | operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
| ^~~~~~~~
/usr/include/c++/14/ |
s552773486 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string C;
cin >> C;
if(C="a",C="i",C="u",C="e",C="o"){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:27: error: could not convert '((((((void)C.std::__cxx11::basic_string<char>::operator=(((const char*)"a"))), ((void)C.std::__cxx11::basic_string<char>::operator=(((const char*)"i")))), ((void)C.std::__cxx11::basic_string<char>::operator=(((const char*)"u")))), ((void)C.std::__cxx11::basic_string<char>::operator=(((const char*)"e")))), C.std::__cxx11::basic_string<char>::operator=(((const char*)"o")))' from 'std::__cxx11::basic_string<char>' to 'bool'
7 | if(C="a",C="i",C="u",C="e",C="o"){
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
| |
| std::__cxx11::basic_string<char>
|
s492951721 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string C;
cin >> C;
if(C='a','i','u','e','o'){
cout << "vowel" << endl;
}
else{
cout << consonant << endl;
}
}
| a.cc: In function 'int main()':
a.cc:11:9: error: 'consonant' was not declared in this scope
11 | cout << consonant << endl;
| ^~~~~~~~~
|
s329503633 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string C;
cin >> C;
if(C=a,i,u,e,o){
cout << "vowel" << endl;
}
else{
cout << "consonant" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:6: error: 'a' was not declared in this scope
7 | if(C=a,i,u,e,o){
| ^
a.cc:7:8: error: 'i' was not declared in this scope
7 | if(C=a,i,u,e,o){
| ^
a.cc:7:10: error: 'u' was not declared in this scope
7 | if(C=a,i,u,e,o){
| ^
a.cc:7:12: error: 'e' was not declared in this scope
7 | if(C=a,i,u,e,o){
| ^
a.cc:7:14: error: 'o' was not declared in this scope
7 | if(C=a,i,u,e,o){
| ^
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.