submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s326188811
p03851
C++
#include<bits/stdc++.h> #include<deque> #include<iostream> #include<algorithm> using namespace std; #define ll long long const int maxn = 3e5 + 5; int n, m; ll t[maxn], p[maxn], f[maxn], g[maxn], F[maxn], G[maxn], h[maxn]; pair<int, ll> drink[maxn]; struct node { ll x, y; }; long double k(const node &a, const node &...
a.cc: In function 'long double k(const node&, const node&)': a.cc:19:16: error: expected primary-expression before 'long' 19 | return long double(a.y - b.y) / long double(a.x - b.x); | ^~~~ a.cc:19:15: error: expected ';' before 'long' 19 | return long double(a.y - b.y) / long...
s168190184
p03851
C++
#include <bits/stdc++.h> #define pb emplace_back #define ll long long #define fi first #define se second #define mp make_pair #define sz(x) int(x.size()) #define int int64_t using namespace std; typedef pair<int, int> pii; const int N = 3e5 + 5; const int inf...
a.cc: In function 'int32_t main()': a.cc:86:19: error: no matching function for call to 'max(int64_t&, long long int)' 86 | f[i] = max(f[i - 1], (get(i) - 2ll * t[i] + i * i + i) >> 1); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algo...
s463304301
p03851
C++
int a , b ; string op ; cin > > a >> op >> b ; if ( op == "+") cout << a + b << endl ; else cout << a - b << endl ;
a.cc:2:1: error: 'string' does not name a type 2 | string op ; | ^~~~~~ a.cc:3:1: error: 'cin' does not name a type 3 | cin > > a >> op >> b ; | ^~~ a.cc:4:1: error: expected unqualified-id before 'if' 4 | if ( op == "+") | ^~ a.cc:6:1: error: expected unqualified-id before 'else' 6 | ...
s261775161
p03851
C++
#include<cstdio> #include<cstring> #include<algorithm> #include<cctype> #define maxn 300005 #define LL long long using namespace std; int n,m; template<class T>inline void read(T &res) { char ch; for(;!isdigit(ch=getchar();); for(res=ch-'0';isdigit(ch=getchar());res=res*10+ch-'0'); } LL sum[maxn],dp[2][maxn]; int ...
a.cc: In function 'void read(T&)': a.cc:13:35: error: expected ')' before ';' token 13 | for(;!isdigit(ch=getchar();); | ~ ^ | ) a.cc: In function 'int main()': a.cc:49:32: error: no matching function for call to 'min(int&, long lo...
s113468190
p03851
C++
#include<bits/stdc++.h> using namespace std; typedef long long ll; const int MN = 300010; struct CHT { vector<ll> M, B; void init() { M.clear(); B.clear(); } bool bad(int l1, int l2, int l3) { return (M[l1] - M[l2]) * (B[l3] - B[l1]) <= (M[l1] - M[l3]) * (B[l2] - B[l1]); }...
a.cc: In function 'void solve(int, int, int, BIT&, ll*, ll*)': a.cc:78:21: error: cannot convert 'BIT' to 'int' 78 | solve(m + 1, r, bit, dp1, dp2); | ^~~ | | | BIT a.cc:74:30: note: initializing argument 3 of 'void solve(int, int, i...
s792958812
p03851
C++
#include <bits/stdc++.h> #define il inline #define RG register #define ll long long #define N (300005) using namespace std; ll sum[N],tmp[N],f1[N],f2[N],h[N],g[N],y[N],a[N],res; int q[N],n,m,top; il int gi(){ RG int x=0,q=1; RG char ch=getchar(); while ((ch<'0' || ch>'9') && ch!='-') ch=getchar(); if (ch=='-')...
a.cc: In function 'int gi()': a.cc:13:10: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 13 | RG int x=0,q=1; RG char ch=getchar(); | ^ a.cc:13:14: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 13 | RG int x=0,q=1; RG char c...
s696052868
p03851
C++
#include<iostream> #include<algorithm> #include<cstring> #include<cstdio> using namespace std; const int MAXN = 300300; typedef long long LL; LL sum[MAXN],f[MAXN],g[MAXN],pre[MAXN],suf[MAXN],val[MAXN],y[MAXN],temp[MAXN],x; int q[MAXN],top,m,n,pos; template<typename T> void read(T &x) { x = 0; char ch = getchar(); ...
a.cc:82:1: error: unterminated comment 82 | /* | ^
s554936196
p03851
C++
#include <cstdio> #include <algorithm> #define int long long const int maxn = 3e5 + 10; const long long oo = 1ll << 62; int n; long long t[maxn], dpl[maxn], dpr[maxn], w[maxn], T[maxn]; inline bool check(long long x0, long long y0, long long x1, long long y1, long long x2, long long y2) { long long a = x1 - x0, b...
a.cc:147:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 147 | main() { | ^~~~ a.cc: In function 'int main()': a.cc:171:9: error: return-statement with no value, in function returning 'int' [-fpermissive] 171 | return; | ^~~~~~
s201041267
p03851
C++
#include<bits/stdc++.h> using namespace std; //随着左端点单调向右,右端点也一定是单调向左 const int N = 3e5 + 9; using ll = long long; int n, m, p[N], x[N], w[N], q[N], h, t; ll f[N], g[N], y[N], T[N]; template<class T> void Max (T &x, T y) { if (x < y) x = y; } void Solve (int l, int r) { int mid = (l + r) >> 1; } int main () { sc...
a.cc: In function 'int main()': a.cc:37:37: error: 'o' was not declared in this scope 37 | Max(g[i], g[i + 1]);o | ^
s981461468
p03851
C++
require('solution/view')require('solution/view')require('solution/view')require('solution/view')require('solution/view')require('solution/view')require('solution/view')require('solution/view')require('solution/view')
a.cc:1:9: warning: multi-character literal with 13 characters exceeds 'int' size of 4 bytes 1 | require('solution/view')require('solution/view')require('solution/view')require('solution/view')require('solution/view')require('solution/view')require('solution/view')require('solution/view')require('solution/view') ...
s918864979
p03851
C++
#include <bits/stdc++.h> #define rep(i,n) for(int i=0;i<(int)(n);i++) #define rep1(i,n) for(int i=1;i<=(int)(n);i++) #define all(c) c.begin(),c.end() #define pb push_back #define fs first #define sc second #define show(x) cout << #x << " = " << x << endl #define chmin(x,y) x=min(x,y) #define chmax(x,y) x=max(x,y) using...
a.cc:43:11: error: 'CHT::D CHT::query(D)' cannot be overloaded with 'CHT::D CHT::query(D)' 43 | D query(D x){ | ^~~~~ a.cc:36:11: note: previous declaration 'CHT::D CHT::query(D)' 36 | D query(D x){ //x:単調減少の時,これを繰り返し呼ぶ(間にaddが挟まるのはOK) | ^~~~~
s477602228
p03851
C++
#include <algorithm> using namespace std; #define FOR(i,a,b) for(int i=(a);i<(b);++i) #define REP(i,n) FOR(i,0,n) #define FORE(i,a,b) for(int i=(a);i<=(b);++i) #define REPE(i,n) FORE(i,0,n) typedef long long ll; const int MAXN=300000; typedef struct L { ll a,b; L() {} L(ll a,ll b):a(a),b(b) {} } L; typed...
a.cc: In function 'void precalc()': a.cc:55:27: error: 'LLONG_MIN' was not declared in this scope 55 | REP(i,n) mxwth[i]=LLONG_MIN; | ^~~~~~~~~ a.cc:2:1: note: 'LLONG_MIN' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>' 1 | #includ...
s017370638
p03852
C++
#include <iostream> int main() { std::string c, res; std::cin >> c; if (c=="a" || c=="i" || c=="u" || c=="e" || c=="o" ) { res = "vowel"; } else { res = "consonant" } std::cout << res << std::endl; }
a.cc: In function 'int main()': a.cc:11:22: error: expected ';' before '}' token 11 | res = "consonant" | ^ | ; 12 | } | ~
s591168651
p03852
C++
#include <iostream> int main() { string c, res; std::cin >> c; if (c=="a" || c=="i" || c=="u" || c=="e" || c=="o" ) { res = "vowel"; } else { res = "consonant" } std::cout << res << std::endl; }
a.cc: In function 'int main()': a.cc:4:9: error: 'string' was not declared in this scope 4 | string c, res; | ^~~~~~ a.cc:4:9: note: suggested alternatives: In file included from /usr/include/c++/14/iosfwd:41, from /usr/include/c++/14/ios:40, from /usr/include...
s074395373
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 =...
s140719593
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; char a['a', 'e', 'i', 'o', 'u']; for (int i = 0; i < 5; i++) { if (a[i] == c) { cout << "vowel" << "\n"; exit(0); } } cout << "consonant" << "\n"; }
a.cc: In function 'int main()': a.cc:7:15: error: expected ']' before ',' token 7 | char a['a', 'e', 'i', 'o', 'u']; | ^ | ] a.cc:7:17: error: expected unqualified-id before 'e' 7 | char a['a', 'e', 'i', 'o', 'u']; | ^~~ a.cc:9:13: error: 'a'...
s125045449
p03852
C++
#include <bits.stdc++.h> using namespace std; int main() { char c; cin >> c; char a['a', 'e', 'i', 'o', 'u']; for (int i = 0; i < 5; i++) { if (a[i] == c) { cout << "vowel" << "\n"; exit(0); } } cout << "consonant" << "\n"; }
a.cc:1:10: fatal error: bits.stdc++.h: No such file or directory 1 | #include <bits.stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s070231425
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; for(int i=0;i<S.size();i++){ 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:9:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 9 | if(S.at(i) == "a" || | ~~~~~~~~^~~~~~ a.cc:10:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 10 | S.at(i) == "i" || | ...
s370748324
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; for(int i=0;i<S.size();i++){ 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:9:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 9 | if(S.at(i) == "a" || | ~~~~~~~~^~~~~~ a.cc:10:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 10 | S.at(i) == "i" || | ...
s555635201
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:3: error: expected '}' before 'else' 10 | else { | ^~~~ a.cc:8:65: note: to match this '{' 8 | if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o') { | ^
s474003152
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 if { cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:10:3: error: expected '}' before 'else' 10 | else if { | ^~~~ a.cc:8:65: note: to match this '{' 8 | if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o') { | ^ a.cc:10:11: error: expect...
s736474734
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:3: error: expected '}' before 'else' 10 | else { | ^~~~ a.cc:8:75: note: to match this '{' 8 | if ((c == 'a') || (c == 'i') || (c == 'u') || (c == 'e') || (c == 'o')) { | ^
s213316280
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:3: error: expected '}' before 'else' 10 | else { | ^~~~ a.cc:8:65: note: to match this '{' 8 | if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o') { | ^
s455276001
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ string C; cin >> C; if(C == 'a','b','c','d','e'){ cout << vowel << endl; } else{ cout << "consonat" << endl; } }
a.cc: In function 'int main()': a.cc:7:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 7 | if(C == 'a','b','c','d','e'){ | ~ ^~ ~~~ | | | | | char | std::string {aka std::__cxx11::basic_stri...
s727611841
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ string c; cin >> c; if(c == 'a','b','c','d','e'){ cout << vowel << endl; } else{ cout << "consonat" << endl; } }
a.cc: In function 'int main()': a.cc:7:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 7 | if(c == 'a','b','c','d','e'){ | ~ ^~ ~~~ | | | | | char | std::string {aka std::__cxx11::basic_stri...
s802760997
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ string c; cin >> c; if(c == 'a','b','c','d','e'){ cout << 'vowel' << endl; } else{ cout << 'consonant' << endl; } }
a.cc:9:13: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes 9 | cout << 'vowel' << endl; | ^~~~~~~ a.cc:12:13: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes 12 | cout << 'consonant' << endl; | ^~~~~~~~~...
s799336929
p03852
C++
#include<bits/stdc++.h> using namespace std; #define rep(i, n) rep2(i, 0, n) #define rep2(i, m, n) for (ll i = m; i < (n); i++) using ll = long long; using pii = pair<int, int>; using Vi = vector<int>; int main() { char c; cin << c; if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o'){ cout << "vowel" << endl; } ...
a.cc: In function 'int main()': a.cc:13:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'char') 13 | cin << c; | ~~~ ^~ ~ | | | | | char | std::istream {aka std::basic_istream<char>} a.cc:13:7: note: candidate: 'op...
s744474179
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:8:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes 8 | cout<<'vowel'<<endl; | ^~~~~~~ a.cc:11:11: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes 11 | cout<<'consonant'<<endl; | ^~~~~~~~~~~ a.cc: In ...
s029121409
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"; }else{ cout << "consonant"; } }
a.cc: In function 'int main()': a.cc:7:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 7 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){ | ~ ^~ ~~~ | | | | | char | std::stri...
s291658514
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 if { cout << "consonant " << endl; } }
a.cc: In function 'int main()': a.cc:12:11: error: expected '(' before '{' token 12 | else if { | ^ | (
s496774219
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c; cin >> c; if(c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ cout << "vowel" << endl; }else{ cout << "consonant" << endl; }
a.cc: In function 'int main()': a.cc:11:4: error: expected '}' at end of input 11 | } | ^ a.cc:4:11: note: to match this '{' 4 | int main(){ | ^
s272683630
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c; cin >> c; if(c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ cout << vowel << endl; }else{ cout << consonant << endl; }
a.cc: In function 'int main()': a.cc:8:13: error: 'vowel' was not declared in this scope 8 | cout << vowel << endl; | ^~~~~ a.cc:10:13: error: 'consonant' was not declared in this scope 10 | cout << consonant << endl; | ^~~~~~~~~ a.cc:11:4: error: expected '}' at end o...
s613218776
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c; cin >> c >> endl; if(c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ cout << vowel << endl; }else{ cout << consonant << endl; }
a.cc: In function 'int main()': a.cc:6:12: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>' and '<unresolved overloaded function type>') 6 | cin >> c >> endl; | ~~~~~~~~~^~~~~~~ In file included from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/co...
s937801332
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:6:7: error: extended character ’ is not valid in an identifier 6 | if(c==’a’ || c==’i’ || c==’u’ || c==’e’ || c==’o’) | ^ a.cc:6:7: error: extended character ’ is not valid in an identifier a.cc:6:17: error: extended character ’ is not valid in an identifier 6 | if(c==’a’ || c==’i’ || c==’u’ ||...
s858443992
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:6:7: error: extended character ’ is not valid in an identifier 6 | if(c==’a’ || c==’i’ || c==’u’ || c==’e’ || c==’o’) | ^ a.cc:6:7: error: extended character ’ is not valid in an identifier a.cc:6:17: error: extended character ’ is not valid in an identifier 6 | if(c==’a’ || c==’i’ || c==’u’ ||...
s107289420
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ string s; cin >> s >> endl; if ( s == a || i || e || u || o){ cout >> "vowel" >> endl; } else { cout >> "consonant" >> endl }
a.cc: In function 'int main()': a.cc:5:12: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>' and '<unresolved overloaded function type>') 5 | cin >> s >> endl; | ~~~~~~~~~^~~~~~~ In file included from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/co...
s802383958
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o') { cout << vowel << endl; } else { cout << consonant << endl; } }
a.cc: In function 'int main()': a.cc:9:17: error: 'vowel' was not declared in this scope 9 | cout << vowel << endl; | ^~~~~ a.cc:11:17: error: 'consonant' was not declared in this scope 11 | cout << consonant << endl; | ^~~~~~~~~
s388887252
p03852
C++
#include <bits/stdc++.h> #define rep(i, n) for(int i= 0; i < (n); i++) using ll= long long int; using namespace std; 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; } ll mod= 1e9 + 7; ...
a.cc: In function 'int main()': a.cc:14:92: error: 'consonaut' was not declared in this scope 14 | if(c=='a' || c=='i' || c=='u' || c=='e' || c=='o'){cout << "vowel" << endl;}else{cout << consonaut << endl;} | ^~~~~~~~...
s745654350
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c; cin >> c; bool s=false; vector<char> vec{'a','i','u','e','o'}; for (int i=0;i<5;i++){ if(c==vec.at(i)){ s=true; break; } } while(s){ cout << "vowel" <<endl; } else{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:18:3: error: 'else' without a previous 'if' 18 | else{ | ^~~~
s486627612
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c; cin >> c; bool s=false; vector<char> vec{"a","i","u","e","o"}; for (int i=0;i<5;i++){ if(c==vec.at(i)){ s=true; break; } } while(s){ cout << "vowel" <<endl; } else{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:8:39: error: no matching function for call to 'std::vector<char>::vector(<brace-enclosed initializer list>)' 8 | vector<char> vec{"a","i","u","e","o"}; | ^ In file included from /usr/include/c++/14/vector:66, from /u...
s784437128
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c; cin >> c; bool s=false; vector<char> vec{"a","i","u","e","o"}; for (int i=0;i<5;i++){ if(c==vec[i]){ s=true; break; } } while(s){ cout << "vowel" <<endl; } else{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:8:39: error: no matching function for call to 'std::vector<char>::vector(<brace-enclosed initializer list>)' 8 | vector<char> vec{"a","i","u","e","o"}; | ^ In file included from /usr/include/c++/14/vector:66, from /u...
s508706426
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if (c == 'a' || c == 'i' || c == 'e' || c == 'o' || c == 'u') cout << vowel << endl; else cout << consonant << endl; }
a.cc: In function 'int main()': a.cc:8:13: error: 'vowel' was not declared in this scope 8 | cout << vowel << endl; | ^~~~~ a.cc:10:13: error: 'consonant' was not declared in this scope 10 | cout << consonant << endl; | ^~~~~~~~~
s557077464
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string str = "aeiou"; cin >> char c; for(int i = 0; i < 5; i++){ if (char c == str.at(i)){ cout << "vowel"<< endl; } else{ cout << "consonant"<< endl; } } }
a.cc: In function 'int main()': a.cc:6:10: error: expected primary-expression before 'char' 6 | cin >> char c; | ^~~~ a.cc:8:14: error: expected initializer before '==' token 8 | if (char c == str.at(i)){ | ^~ a.cc:8:13: error: expected ')' before '==' token 8 | if (c...
s963614966
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string str = "aeiou"; cin >> char c; for(int i = 0; i < 6; i++){ if (char c == str.at(i)){ cout << "vowel"<< endl; } else{ cout << "consonant"<< endl; } } }
a.cc: In function 'int main()': a.cc:6:10: error: expected primary-expression before 'char' 6 | cin >> char c; | ^~~~ a.cc:8:14: error: expected initializer before '==' token 8 | if (char c == str.at(i)){ | ^~ a.cc:8:13: error: expected ')' before '==' token 8 | if (c...
s847156728
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string str = "aeiou"; cin >> char 'c'; for(int i = 0; i < 6; i++){ if (c == str.at(i)){ cout << "vowel"<< endl; } else{ cout << "consonant"<< endl; } } }
a.cc: In function 'int main()': a.cc:6:10: error: expected primary-expression before 'char' 6 | cin >> char 'c'; | ^~~~ a.cc:8:7: error: 'c' was not declared in this scope 8 | if (c == str.at(i)){ | ^
s523025655
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string str = 'aeiou'; cin >> char c; for(int i = 0; i < 6; i++){ if (c == str.at(i)){ cout << 'vowel'<< endl; } else{ cout << 'consonant'<< endl; } } }
a.cc:5:16: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes 5 | string str = 'aeiou'; | ^~~~~~~ a.cc:9:13: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes 9 | cout << 'vowel'<< endl; | ^~~~~~~ a.cc:12:1...
s973996783
p03852
C++
#include <bits/stddc++.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/stddc++.h: No such file or directory 1 | #include <bits/stddc++.h> | ^~~~~~~~~~~~~~~~ compilation terminated.
s012883161
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c; cin >> c; if(c == 'a' || c == 'i' || c=='u'|| c=='e'||c==='o'){ cout << "vowel" << endl; } else{ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:8:50: error: expected primary-expression before '=' token 8 | if(c == 'a' || c == 'i' || c=='u'|| c=='e'||c==='o'){ | ^
s325651066
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c; cin >> c; if (c== "a"){ cout << "vowel" << endl; } else if (c== "i"){ cout << "vowel" << endl; } else if (c== "u"){ cout << "vowel" << endl; } else if (c== "e"){ cout << "vowel" << endl; } else if (c== "o"){ cout << "vowel" << endl; } ...
a.cc: In function 'int main()': a.cc:7:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if (c== "a"){ | ~^~~~~~ a.cc:10:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 10 | else if (c== "i"){ | ~^~~~~~ a.cc:13:12: er...
s875532985
p03852
C++
#include <bits/stdc++.h> using namespace std; int main(){ char c; cin >> c; if (c=="a"){ cout << "vowel" << endl; } else if (c=="i"){ cout << "vowel" << endl; } else if (c=="u"){ cout << "vowel" << endl; } else if (c=="e"){ cout << "vowel" << endl; } else if (c=="o"){ cout << "vowel" << endl; } else{...
a.cc: In function 'int main()': a.cc:7:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if (c=="a"){ | ~^~~~~ a.cc:10:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 10 | else if (c=="i"){ | ~^~~~~ a.cc:13:12: error:...
s446897075
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"<<'\n'; }else{ cout<<"consonant"<<'\n'; } return(0); }
a.cc: In function 'int main()': a.cc:6:9: error: 'a' was not declared in this scope 6 | if(c==a || c==i || c==u || c==e || c==o){ | ^ a.cc:6:17: error: 'i' was not declared in this scope 6 | if(c==a || c==i || c==u || c==e || c==o){ | ^ a.cc:6:25: error: 'u' was not decla...
s260780754
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<<'\n'; }else{ cout<<consonant<<'\n'; } return(0); }
a.cc: In function 'int main()': a.cc:6:9: error: 'a' was not declared in this scope 6 | if(c==a || c==i || c==u || c==e || c==o){ | ^ a.cc:6:17: error: 'i' was not declared in this scope 6 | if(c==a || c==i || c==u || c==e || c==o){ | ^ a.cc:6:25: error: 'u' was not decla...
s010093335
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<<'\n'; }else{ cout<<consonant<<'\n'; } return(0); }
a.cc: In function 'int main()': a.cc:6:12: error: 'a' was not declared in this scope 6 | if( c==a || c==i || c==u || c==e || c==o){ | ^ a.cc:6:20: error: 'i' was not declared in this scope 6 | if( c==a || c==i || c==u || c==e || c==o){ | ^ a.cc:6:28: error: 'u' ...
s640912866
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:9:11: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 9 | if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o') | ~ ^~ ~~~ | | | | | char | ...
s938658262
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string C; cin >> C; string answer; for (int i = 0; i < C.size(); i++) { if (C.at(i) == 'a') { answer = "vowel"; break; } else if (C.at(i) == 'e') { answer = "vowel"; break; } else if (C.at(i) == 'i...
a.cc:41:1: error: expected declaration before '}' token 41 | } | ^
s236309966
p03852
C++
include <iostream> #include <string> 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:1:1: error: 'include' does not name a type 1 | include <iostream> | ^~~~~~~ In file included from /usr/include/c++/14/bits/char_traits.h:42, from /usr/include/c++/14/string:42, from a.cc:2: /usr/include/c++/14/bits/postypes.h:68:11: error: 'ptrdiff_t' does not name a typ...
s061901423
p03852
C++
include "pch.h" #include <iostream> #include <string> 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:1:1: error: 'include' does not name a type 1 | include "pch.h" | ^~~~~~~ In file included from /usr/include/c++/14/iosfwd:42, from /usr/include/c++/14/ios:40, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, fro...
s354426076
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:9:5: error: 's' was not declared in this scope 9 | if (s=="a"||s=="i"||s=="u"||s=="e"||s=="o"){cout << "vowel" << endl;} | ^
s806860531
p03852
C++
#include <bits/stdc++.h> using namespace std; #define ll long long signed main() { char c; cin >> c; if(c=="a"||c=="i"||c=="u"||c=="e"||c=="o") {cout << "vowel" << endl;} else{cout << "consonant" << endl;} }
a.cc: In function 'int main()': a.cc:9:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 9 | if(c=="a"||c=="i"||c=="u"||c=="e"||c=="o") | ~^~~~~ a.cc:9:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 9 | if(c=="a"||c=="i"||c=="u"||c==...
s926446387
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char S[] = ['a','i','u','e','o']; char c; int x=0; cin >> c; for(int i = 0; i < 5; i++){ if(c == S[i]){ x++ } } if(x == 0){ cout << "consonant" << endl; } else{ cout << "vowel" << endl; } }
a.cc: In function 'int main()': a.cc:5:15: error: expected identifier before 'a' 5 | char S[] = ['a','i','u','e','o']; | ^~~ a.cc:5:18: error: expected ']' before ',' token 5 | char S[] = ['a','i','u','e','o']; | ^ | ] a.cc: In lambda functio...
s284809925
p03852
C++
#include <iostream> using namespace std; int main(void){ // Your code here! char a; cin>>a; 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: 'c' was not declared in this scope 7 | if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){ | ^
s714336572
p03852
C
#include<stdio.h> int main() { char ch; scanf ("%c", &ch); if(ch=='a' || ch=='e' || ch=='i' || ch=='o' || ch=='u' || ch=='A' || ch=='E' || ch=='I' || ch=='O' || ch=='U') { printf("vowel", ch); } else { printf("consonant", ch); } return; }
main.c: In function 'main': main.c:14:1: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 14 | return; | ^~~~~~ main.c:2:5: note: declared here 2 | int main() | ^~~~
s827479826
p03852
C
#include<stdio.h> int main() { char c; scanf ("%c", &ch); if(c=='a' || c=='e' || c=='i' || c=='o' || c=='u' || c=='A' || c=='E' || c=='I' || c=='O' || c=='U') { printf("vowel", c); } else { printf("consonant", c); } return 0; }
main.c: In function 'main': main.c:9:17: error: 'ch' undeclared (first use in this function); did you mean 'c'? 9 | scanf ("%c", &ch); | ^~ | c main.c:9:17: note: each undeclared identifier is reported only once for each function it appears in
s138158078
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if(c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ cout << "vowel" << endl; } else if(){ cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:12:11: error: expected primary-expression before ')' token 12 | else if(){ | ^
s483256912
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; int >> c; if(c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){ cout << 'vowel' << endl; } else if{ cout << 'consonant' << endl; } }
a.cc:9:13: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes 9 | cout << 'vowel' << endl; | ^~~~~~~ a.cc:13:13: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes 13 | cout << 'consonant' << endl; | ^~~~~~~~~...
s718910240
p03852
C++
#include<bits/stdc++.h> using namespace std; int main(){ char s; cin >> s; bool Is = false; string str1="aiueo"; for (int a=0; a<5; a++){ if (str1.at(a) == s){ cout << "vowel" << endl; Is = true; break; } } if (Is == false){ cout << "constant" << endl; }
a.cc: In function 'int main()': a.cc:18:2: error: expected '}' at end of input 18 | } | ^ a.cc:4:11: note: to match this '{' 4 | int main(){ | ^
s245158264
p03852
C++
#include<bits/stdc++.h> using namespace std; int main(){ char s; cin >> s; bool Is = false; for (int a=0; a<5; a++){ if ("aiueo".at(a) == s){ cout << "vowel" << endl; Is = ture; break; } } if (Is == false){ cout << "constant" << endl; }
a.cc: In function 'int main()': a.cc:9:17: error: request for member 'at' in '"aiueo"', which is of non-class type 'const char [6]' 9 | if ("aiueo".at(a) == s){ | ^~ a.cc:11:12: error: 'ture' was not declared in this scope 11 | Is = ture; | ^~~~ a.cc:17:2: error: ...
s452356214
p03852
C++
#include<bits/stdc++.h> using namespace std; int main{ char s; cin >> s; bool Is = false; for (int a=0; a<5; a++){ if ("aiueo".at(a) == s){ cout << "vowel" << endl; Is = ture; break; } } if (Is == false){ cout << "constant" << endl; }
a.cc:4:5: error: cannot declare '::main' to be a global variable 4 | int main{ | ^~~~ a.cc:5:3: error: expected primary-expression before 'char' 5 | char s; | ^~~~ a.cc:5:3: error: expected '}' before 'char' a.cc:4:9: note: to match this '{' 4 | int main{ | ^ a.cc:6:3: erro...
s608165568
p03852
C++
#include<bits/stdc++.h> using namespace std; typedef long long ll; int main(){ bool isVowel=false; char c; cin>>c; if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u'){ isVowel=true; } if(isVowel){ cout<"vowel"<<endl; }else{ cout<<"consonant"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:16:17: error: invalid operands of types 'const char [6]' and '<unresolved overloaded function type>' to binary 'operator<<' 16 | cout<"vowel"<<endl; | ~~~~~~~^~~~~~
s646982674
p03852
C
#include<stdio.h> int main(){ char c; scanf("%c\n",&c) if(c=='a' ||c=='e' ||c=='i' ||c=='o' ||c=='u'){ printf("vowel\n");} else printf("consonant\n"); return 0; }
main.c: In function 'main': main.c:4:19: error: expected ';' before 'if' 4 | scanf("%c\n",&c) | ^ | ; 5 | if(c=='a' ||c=='e' ||c=='i' ||c=='o' ||c=='u'){ | ~~
s244468060
p03852
C++
#include<bits/stdc++.h> using namespace std; char c; void imput() { cin >> c; } void judge(char c) { if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u') cout<<"vowel\n"; else cout<<"consonant\n"; return; } int main{ imput(); judge(c); return 0; }
a.cc:12:5: error: cannot declare '::main' to be a global variable 12 | int main{ | ^~~~ a.cc:13:10: error: expected '}' before ';' token 13 | imput(); | ^ a.cc:12:9: note: to match this '{' 12 | int main{ | ^ a.cc:13:8: error: void value not ignored as it ought to be ...
s129465022
p03852
C++
include<bits/stdc++.h> using namespace std; char c; void imput() { cin >> c; } void judge(char c) { if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u') cout<<"vowel\n"; else cout<<"consonant\n"; return; } int main{ imput(); judge(c); return 0; }
a.cc:1:1: error: 'include' does not name a type 1 | include<bits/stdc++.h> | ^~~~~~~ a.cc: In function 'void imput()': a.cc:5:3: error: 'cin' was not declared in this scope 5 | cin >> c; | ^~~ a.cc: In function 'void judge(char)': a.cc:8:46: error: 'cout' was not declared in this scope 8 | ...
s100211129
p03852
C++
#include<iostream> #include<vector> #include<string> using namespace std; int main(){ int a,b,i,j; cin>>a>>b; vector <char>c; for(i=0;i<a;i++){ string s; cin>>s; for(j=0;j<b;j++) c[i][j]=s[j]; } ...
a.cc: In function 'int main()': a.cc:13:19: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}[int]' for array subscript 13 | c[i][j]=s[j]; | ^ a.cc:17:25: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<char>, char>...
s952834910
p03852
C++
#include<iostream> #include<vector> #include<string> int main(){ int a,b,i; cin>>a>>b; vector <char>c; for(i=0;i<a;i++){ string s; cin>>s; for(j=0;j<b;j++0) c[i][j]=s[j]; } for(i=0;i<a;i++) for(j=0;j<b;j++){ cout<<c...
a.cc: In function 'int main()': a.cc:6:7: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin>>a>>b; | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< ...
s062354318
p03852
C++
#include <iostream> #include <string> #include<vector> using namespace std; int main() { int a,b,i; cin>>a>>b; vector <string> c; for(i=0;i<a;i++) ...
a.cc: In function 'int main()': a.cc:13:20: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::vector<std::__cxx11::basic_string<char> >') 13 | cin>>c; | ~~~^~~ | | | | | ...
s295725819
p03852
C++
#include <iostream> #include <string> using namespace std; int main() { int a,b,i; cin>>a>>b; vector <string> c; for(i=0;i<a;i++) cin>>c; for(i=0;i<a;i++) cout<<c<<endl<<c<<endl; ...
a.cc: In function 'int main()': a.cc:10:11: error: 'vector' was not declared in this scope 10 | vector <string> c; | ^~~~~~ a.cc:3:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>' 2 | #include <iostream> +++ |+#incl...
s751490963
p03852
C++
#include <bits/stdc++.h> #include <iostream> #include <string> using namespace std; int main() { int a,b,i; cin>>a>>b; vector <string> c; for(i=0;i<a;i++) cin>>c; for(i=0;i<a;i++) cout<<c<<endl<<c<<endl; return 0; }
a.cc: In function 'int main()': a.cc:13:12: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::vector<std::__cxx11::basic_string<char> >') 13 | cin>>c; | ~~~^~~ | | | | | std::vector<std::__cxx11::basic...
s571070033
p03852
C++
#include <bits/stdc++.h> #include <iostream> #include <string> using namespace std; int main() { int a,b,i; cin>>a>>b; vector <char> c; for(i=0;i<a;i++) cin>>c; for(i=0;i<a;i++) cout<<c<<endl<<c<<endl; return 0; }
a.cc: In function 'int main()': a.cc:13:8: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::vector<char>') 13 | cin>>c; | ~~~^~~ | | | | | std::vector<char> | std::istream {aka std::basic_istream<char>} In ...
s077817083
p03852
C++
#include<iostream> #include<string> using namespace std; int main() { int a,b,i; cin>>a>>b; for(i=0;i<a;i++) string c[i]; for(i=0;i<a;i++){ cin<<c[i]<<\n<<c[i]<<endl; } return 0; }
a.cc:12:28: error: stray '\' in program 12 | cin<<c[i]<<\n<<c[i]<<endl; | ^ a.cc: In function 'int main()': a.cc:12:22: error: 'c' was not declared in this scope 12 | cin<<c[i]<<\n<<c[i]<<endl; | ^ a.cc:12:29: error: 'n' w...
s976682391
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"<<endl; else cout<<"consonant"<<endl; return 0; } include <iostream> using namespace std; int main(){ char c; cin>>c;...
a.cc:15:1: error: 'include' does not name a type 15 | include <iostream> | ^~~~~~~ a.cc:18:5: error: redefinition of 'int main()' 18 | int main(){ | ^~~~ a.cc:4:9: note: 'int main()' previously defined here 4 | int main(){ | ^~~~
s642770259
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"<<endl; else cout<<"consonant"<<endl; return 0; }
a.cc:1:1: error: 'include' does not name a type 1 | include <iostream> | ^~~~~~~ a.cc: In function 'int main()': a.cc:7:3: error: 'cin' was not declared in this scope 7 | cin>>c; | ^~~ a.cc:9:5: error: 'cout' was not declared in this scope 9 | cout<<"vowel"<<endl; | ^~~~ a.cc:9...
s819990801
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if (c == "a" || c == "e" || c == "i" || c == "o" || c == "u") { cout << "vowel" << endl; } else { cout << "consonant" << endl; } }
a.cc: In function 'int main()': a.cc:7:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if (c == "a" || c == "e" || c == "i" || c == "o" || c == "u") { | ~~^~~~~~ a.cc:7:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if (c ...
s010957539
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if (c == "a" | c == "e" | c == "i" | c == "o" | c == "u") { cout << "vowel" << endl; } else { cout << "consonant" << endl; }
a.cc: In function 'int main()': a.cc:7:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if (c == "a" | c == "e" | c == "i" | c == "o" | c == "u") { | ~~^~~~~~ a.cc:7:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if (c == "...
s021980503
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string st; cin >> st; string tg = "aeuio"; bool t = false; for (int i=0; i < 5;i++){ if (tg.at(i) == st){ t=true; break} } if (t){cout << "vowel" << endl;} else{cout << "consonant" << endl;} }
a.cc: In function 'int main()': a.cc:10:16: error: no match for 'operator==' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 10 | if (tg.at(i) == st){ | ~~~~~~~~ ^~ ~~ | | ...
s612359248
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string str; cin >> str; string tg = "aeuio"; bool t = false; for (int i=0; i < 5;i++){ if (tg.at(i) == str){ t=true; break} } if (t){cout << "vowel" << endl;} else{cout << "consonant" << endl;} }
a.cc: In function 'int main()': a.cc:10:16: error: no match for 'operator==' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 10 | if (tg.at(i) == str){ | ~~~~~~~~ ^~ ~~~ | | ...
s215660656
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string str; cin >> str; string tg = "aeuio"; bool t = false; for (int i=0; i < 5;i++){ if (tg.at(i) == str){ t=true; break} } if (t){cout << "vowel" << endl;} else{cout << "consonant" << endl;} }
a.cc: In function 'int main()': a.cc:10:16: error: no match for 'operator==' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 10 | if (tg.at(i) == str){ | ~~~~~~~~ ^~ ~~~ | | ...
s871193912
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { string str; cin >> str; string tg = "aeuio"; bool t = false; for (int i=0; i < tg.size();i++){ if (tg.at(i)==str){ t=true; break} } if (t){cout << "vowel" << endl;} else{cout << "consonant" << endl;} }
a.cc: In function 'int main()': a.cc:10:15: error: no match for 'operator==' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 10 | if (tg.at(i)==str){ | ~~~~~~~~^~~~~ | | |...
s806843088
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:50: error: lvalue required as left operand of assignment 7 | if (c == 'a' || c == 'i' || c =='u' || c =='e' || c = 'o') | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
s123324425
p03852
C++
#include<iostream> using namespace std; int main() { char letter; cin>>letter; if(letter=='a'||letter=='i'||letter=='u'||letter=='e'||letter=='o'){ cout<<"vowel"<<endl; } else{ cout<<"consonant"<<endl } }
a.cc: In function 'int main()': a.cc:11:28: error: expected ';' before '}' token 11 | cout<<"consonant"<<endl | ^ | ; 12 | } | ~
s969468284
p03852
C++
#include<iostream> using namespace std; int main() { char letter; cin>>c; if(letter=='a'||letter=='i'||letter=='u'||letter=='e'||letter=='o'){ cout<<"vowel"<<endl; } else{ cout<<"consonant"<<endl } }
a.cc: In function 'int main()': a.cc:6:8: error: 'c' was not declared in this scope 6 | cin>>c; | ^ a.cc:11:28: error: expected ';' before '}' token 11 | cout<<"consonant"<<endl | ^ | ; 12 | } | ~ ...
s843655887
p03852
C++
#include<iostream> using namespace std; int main() { char letter; cin>>c; if(letter=='a'||letter=='i'||letter='u'||letter='e'||letter='o'){ cout<<"vowel"<<endl; } else{ cout<<"consonant"<<endl } }
a.cc: In function 'int main()': a.cc:6:8: error: 'c' was not declared in this scope 6 | cin>>c; | ^ a.cc:7:54: error: lvalue required as left operand of assignment 7 | if(letter=='a'||letter=='i'||letter='u'||letter='e'||letter='o'){ | ~~~...
s023186074
p03852
C++
#include<iostrema> 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:1:9: fatal error: iostrema: No such file or directory 1 | #include<iostrema> | ^~~~~~~~~~ compilation terminated.
s824993677
p03852
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { char C; cin >> C; if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){ cout << "vowel" <<endl; }else{ cout << "consonant" <<endl; } return 0; }
a.cc: In function 'int main()': a.cc:8:6: error: 'c' was not declared in this scope 8 | if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){ | ^
s859507736
p03852
C++
#include<bits/stdc++.h> using namespace std; typedef long long ll; const int N=1e3+5,M=2e4+5,inf=0x3f3f3f3f,mod=1e9+7; #define mst(a,b) memset(a,b,sizeof a) #define lx x<<1 #define rx x<<1|1 #define reg register #define PII pair<int,int> #define fi first #define se second #define pb push_back #define il inline char s[5...
a.cc:14:11: error: initializer-string for 'char [5]' is too long [-fpermissive] 14 | char s[5]="aeiou"; | ^~~~~~~
s648876201
p03852
C++
#include <bits/stdc++.h> using namespace std; int main() { char x; cin >> x; if (x=='a' || x=='e' || x=='i' || x=='o' || x=='u') cout << vowel << endl; else cout << consonant << endl; }
a.cc: In function 'int main()': a.cc:9:13: error: 'vowel' was not declared in this scope 9 | cout << vowel << endl; | ^~~~~ a.cc:11:13: error: 'consonant' was not declared in this scope 11 | cout << consonant << endl; | ^~~~~~~~~
s784648596
p03852
C++
#include <bits/stdc++.h> uisng 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:2:1: error: 'uisng' does not name a type 2 | uisng namespace std; | ^~~~~ a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin >> c; | ^~~ | std::cin In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/st...
s431969547
p03852
C++
#include<iostream> using namespace std; int main () { char x; cin >> x; string x = "aeiou"; if ( x == 'a' || x == 'e' || x == 'i' || x == 'o' || x == 'u'){ cout << "vowel\n"; } else { cout << "consonant\n"; } }
a.cc: In function 'int main()': a.cc:7:10: error: conflicting declaration 'std::string x' 7 | string x = "aeiou"; | ^ a.cc:5:8: note: previous declaration as 'char x' 5 | char x; | ^
s278289281
p03852
C++
#include<iostream> using namespace std; int main () { char x; cin >> x; string n = "aeiou"; for (int i = 0; i < x.length() - 1; i ++){ if (x == n[i]){ cout << "vowel\n"; } else { cout << "consonant\n"; } } }
a.cc: In function 'int main()': a.cc:8:25: error: request for member 'length' in 'x', which is of non-class type 'char' 8 | for (int i = 0; i < x.length() - 1; i ++){ | ^~~~~~
s300929050
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:7:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(c=="a"||c=="e"||c=="i"||c=="o"||c=="u"){ | ~^~~~~ a.cc:7:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(c=="a"|...
s607442209
p03852
C++
#include<iostream> using namespace std; int main(){ char c; cin >> c; string s = "aeiou"; if(s.find()>=0){ cout << "vowel\n"; }else{ cout << "consonant\n"; } }
a.cc: In function 'int main()': a.cc:8:14: error: no matching function for call to 'std::__cxx11::basic_string<char>::find()' 8 | if(s.find()>=0){ | ~~~~~~^~ In file included from /usr/include/c++/14/string:54, from /usr/include/c++/14/bits/locale_classes.h:40, fro...