submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s075303661
p03738
C
#include <stdio.h> int main(void) { long long int a,b; scanf("%lld%lld",&a,&b); if(a>b) printf("GREATER\n"); else if(a<b) printf("LESS\n"); else (a==b) printf("EQUAL\n"); return 0; }
main.c: In function 'main': main.c:8:16: error: expected ';' before 'printf' 8 | else (a==b) printf("EQUAL\n"); | ^~~~~~~ | ;
s505733246
p03738
C
#include <stdio.h> int main(void) { long long int a,b; scanf("%lld%lld",&a,&b); if(a>b) printf("GREATER\n"); else if(a<b) printf("LESS\n"); else (a=b) printf("EQUAL\n"); return 0; }
main.c: In function 'main': main.c:8:15: error: expected ';' before 'printf' 8 | else (a=b) printf("EQUAL\n"); | ^~~~~~~ | ;
s985776262
p03738
C++
int main(){ string a,b; cin >> a >> b; if(a.size()>b.size()) puts("GREATER"); else if(a.size()<b.size()) puts("LESS"); else if(a.size()==b.size()){ for(int i=0;i<a.size();i++){ if(a[i]==b[i]) continue; if(a[i]>b[i]) { puts("GREATER"); return 0; }else{ puts("LESS"); return 0; } } puts("EQUAL"); } }
a.cc: In function 'int main()': a.cc:2:3: error: 'string' was not declared in this scope 2 | string a,b; | ^~~~~~ a.cc:3:3: error: 'cin' was not declared in this scope 3 | cin >> a >> b; | ^~~ a.cc:3:10: error: 'a' was not declared in this scope 3 | cin >> a >> b; | ^ a.cc:3:15: error: 'b' was not declared in this scope 3 | cin >> a >> b; | ^ a.cc:4:25: error: 'puts' was not declared in this scope 4 | if(a.size()>b.size()) puts("GREATER"); | ^~~~ a.cc:5:30: error: 'puts' was not declared in this scope 5 | else if(a.size()<b.size()) puts("LESS"); | ^~~~ a.cc:10:9: error: 'puts' was not declared in this scope 10 | puts("GREATER"); | ^~~~ a.cc:13:9: error: 'puts' was not declared in this scope 13 | puts("LESS"); | ^~~~ a.cc:17:5: error: 'puts' was not declared in this scope 17 | puts("EQUAL"); | ^~~~
s529049198
p03738
C++
#include<iostream> using namespace std; int main(){ string str; string ntr; cin>>str; cin>>ntr; if(str.compare(ntr)<0) cout<<"LESS"; else if(str.compare(ntr)>0) cout<<"GREATER; else cout<<"EQUAL"; }
a.cc:11:11: warning: missing terminating " character 11 | cout<<"GREATER; | ^ a.cc:11:11: error: missing terminating " character 11 | cout<<"GREATER; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:12:5: error: expected primary-expression before 'else' 12 | else cout<<"EQUAL"; | ^~~~
s962316411
p03738
C++
#include<iostream> #include<stdio.h> #include<vector> #include<algorithm> #include<set> #include<string> #include<map> #include<string.h> #include<complex> #include<math.h> #include<queue> #include <functional> #include<time.h> #include <stack> #include<iomanip> using namespace std; #define rep(i,a,n) for(int i=(a);i<(n);i++) #define ll long long #define llint long long int #define sort(s) sort(s.begin(),s.end()) #define reverse(v) reverse(v.begin(), v.end()); #define Yes(ans) if(ans)cout<<"Yes"<<endl; else cout<<"No"<<endl; #define YES(ans) if(ans)cout<<"YES"<<endl; else cout<<"NO"<<endl; #define hei(a) vector<a> #define whei(a) vector<vector<a>> #define UF UnionFind #define rt (a); return (a); #define Pint pair<int,int> constexpr auto INF = 1000000000; constexpr auto mod = 1000000007; //辞書順はnext_permutation( begin( v ), end( v ) );やで! //2のn乗を求めるよ!!! int ni(int n) { if (n == 0)return 1; int x = ni(n / 2); x *= x; if (n % 2 == 1)x *= 2; return x; } //フィボナッチ数列のx番目を求めるよ! llint f(int x, vector<llint>& s) { if (x == 0)return 0; if (x == 1)return 1; if (s[x] != 0)return s[x]; return s[x] = f(x - 1, s) + f(x - 2, s); } //aとbの最大公約数を求めるよ! llint gcd(llint a, llint b) { if (a < b)swap(a, b); if (b == 0)return a; return gcd(b, a % b); } // a^n mod を計算する long long modpow(long long a, long long n, long long mod) { long long res = 1; while (n > 0) { if (n & 1) res = res * a % mod; a = a * a % mod; n >>= 1; } return res; } // mod. m での a の逆元 a^{-1} を計算するよ! long long modinv(long long a, long long m) { long long b = m, u = 1, v = 0; while (b) { long long t = a / b; a -= t * b; swap(a, b); u -= t * v; swap(u, v); } u %= m; if (u < 0) u += m; return u; } //aCbをmod.mで割った余りを求める ll int c(ll int a, ll int b, ll int m) { ll int ans = 1; for (ll int i = 0; i < b; i++) { ans *= a - i; ans %= m; } for (ll int i = 1; i <= b; i++) { ans *= modinv(i, m); ans %= m; } return ans; } //m進数のn桁を全列挙やで void dfs(int m, int n, llint k, hei(llint) a) { stack<string> st; st.push(""); while (!st.empty()) { string now = st.top(); st.pop(); if (now.size() == n) { cout << now << endl; } else { for (int i = m - 1; i >= 0; i--) { string next = now + to_string(i); st.push(next); } } } } void press(vector<int>& v) { v.erase(unique((v).begin(), (v).end()), v.end()); } void press(vector<char>& v) { v.erase(unique((v).begin(), (v).end()), v.end()); } struct UnionFind { vector<int> par; // par[i]:iの親の番号 (例) par[3] = 2 : 3の親が2 UnionFind(int N) : par(N) { //最初は全てが根であるとして初期化 for (int i = 0; i < N; i++) par[i] = i; } int size(int a) { return par[root(a)]; } int root(int x) { // データxが属する木の根を再帰で得る:root(x) = {xの木の根} if (par[x] == x) return x; return par[x] = root(par[x]); } void unite(int x, int y) { // xとyの木を併合 int rx = root(x); //xの根をrx int ry = root(y); //yの根をry if (rx == ry) return; //xとyの根が同じ(=同じ木にある)時はそのまま par[rx] = ry; //xとyの根が同じでない(=同じ木にない)時:xの根rxをyの根ryにつける } bool same(int x, int y) { // 2つのデータx, yが属する木が同じならtrueを返す int rx = root(x); int ry = root(y); return rx == ry; } }; struct segmenttree { hei(int) seg; int s; segmenttree(int n) :seg(n * 2 - 1) { for (int i = 0; i < n * 2 - 1; i++)seg[i] = 0; s = n; } //k番目の値をaに変更 void update(int k, int a) { k += s - 1; seg[k] += a; while (k > 0) { k = (k - 1) / 2; seg[k] = min(seg[k * 2 + 1], seg[k * 2 + 2]); } } //最初はquery(a,b,0,0,n)で呼ぶよ!!!! int query(int a, int b, int k, int l, int r) { if (r <= a || b <= l)return 1000000; if (a <= l && r <= b)return seg[k]; else { int v1 = query(a, b, k * 2 + 1, l, (l + r) / 2); int v2 = query(a, b, k * 2 + 2, (l + r) / 2, r); return min(v1, v2); } } }; int main() { string a, b; cin >> a >> b; string ans="EQUAL"; if (a.size() > b.size())ans = "GREATER"; else { if (a.size() < b.size())ans = "LESS"; else { rep(i, 0, a.size()) { if (a[i] - '0' > b[i] - '0') { ans = "GREATER"; break; } if (a[i] - '0' < b[i] - '0') { ans = "LESS"; break; } } } } cout < ans << endl; return 0; }
a.cc: In function 'int main()': a.cc:201:20: error: no match for 'operator<<' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and '<unresolved overloaded function type>') 201 | cout < ans << endl; | ~~~~^~~~~~~ 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:201:23: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 201 | cout < ans << endl; | ^~~~ /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:201:23: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 201 | cout < ans << endl; | ^~~~ 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:201:23: note: couldn't deduce template parameter '_IntegerType' 201 | cout < ans << endl; | ^~~~ 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:201:23: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 201 | cout < ans << endl; | ^~~~ /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:201:23: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 201 | cout < ans << endl; | ^~~~ /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:201:23: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 201 | cout < ans << endl; | ^~~~ /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:201:23: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 201 | cout < ans << endl; | ^~~~ /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:201:23: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 201 | cout < ans << endl; | ^~~~ /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:201:23: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 201 | cout < ans << endl; | ^~~~ /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:201:23: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 201 | cout < ans << endl; | ^~~~ 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:201:23: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 201 | cout < ans << endl; | ^~~~ /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:201:23: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 201 | cout < ans << endl; | ^~~~ /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:201:23: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 201 | cout < ans << endl; | ^~~~ /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:201:23: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 201 | cout < ans << endl; | ^~~~ /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: a.cc:201:23: note: couldn't deduce template parameter '_Tp' 201 | cout < ans << endl; | ^~~~ In file included from a.cc:9: /usr/include/c++/14/complex:563:5: note: candidate: 'template<class _Tp, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const complex<_Tp>&)' 563 | operator<<(basic_ostream<_CharT, _Traits>& __os, const complex<_Tp>& __x) | ^~~~~~~~ /usr/include/c++/14/complex:563:5: note: template argument deduction/substitution failed: a.cc:201:23: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 201 | cout < ans << endl; | ^~~~ In file included from a.cc:15: /usr/include/c++/14/iomanip:84:5: note: candidate: 'template<cla
s801346743
p03738
C++
#include<bits/stdc++.h> #define rep(i,n)for(int i=0;i<n;++i) #include<string> #include<vector> using namespace std; typedef long long ll; typedef pair<int, int>P; 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; } //max=({}); //条件式が真ならwhileの中身を回し続ける //printf("%d\n", ans); //pairの入力 //vector<pair<ll, ll>>work(n); //rep(i, n) { // ll a, b; // cin >> a >> b; // work[i] = make_pair(a, b); //for(auto p:mp)(mapの探索) //printf("%.10f\n",なんちゃら) int g[15][15]; const int INF = 1001001001; const int dx[4] = { -1,0,1,0 }; const int dy[4] = { 0,-1,0,1 }; //最大公約数 ll gcd(ll x, ll y) { return y ? gcd(y, x % y) : x; } ll lcm(ll x, ll y) { if (x == 0 || y == 0)return 0; return (x / gcd(x, y) * y); } //素因数分解 vector<pair<ll, int>>factorize(ll n) { vector<pair<ll, int>>res; for (ll i = 2;i * i <= n;++i) { if (n % i)continue; res.emplace_back(i, 0); while (n % i == 0) { n /= i; res.back().second++; } } if (n != 1)res.emplace_back(n, 1); return res; } int bingo[3][3]; bool flag[3][3]; int cnt[2][105]; int h, w; int choco[1010][1010]; int s[11][11]; int main() { string s, t; cin >> s >> t; int s1 = s.length(); int t1 = t.length(); if (s1 > t1)puts("GREATER"); else if (s1 < t1)puts("LESS"); else { rep(i, n) { if (s[i] > t[i]) { puts("GREATER"); return 0; } else if (s[i] < t[i]) { puts("LESS"); return 0; } } puts("EQUAL"); } return 0; }
a.cc: In function 'int main()': a.cc:68:24: error: 'n' was not declared in this scope 68 | rep(i, n) { | ^ a.cc:2:31: note: in definition of macro 'rep' 2 | #define rep(i,n)for(int i=0;i<n;++i) | ^
s540128118
p03738
C++
///AJoy Sarker ,CSE JAHANGIRNAGAR UNIVERSITY 48 Batch #include<bits/stdc++.h> using namespace std; #define SORT(c) sort((c).begin(),(c).end()); #define inf INT_MAX/3 #define pb push_back #define MP make_pair #define pii pair<int,int> #define pcc pair<char,char> #define pic pair<int,char> #define pci pair<char,int> #define VS vector<string> #define VI vector<int> #define MIN(a,b) (a>b?b:a) #define MAX(a,b) (a>b?a:b) #define pi 3.141592653589793 #define in scanf #define out printf #define ll long long #define ull unsigned long long typedef unsigned long long UL; template<typename T>inline T S(T a) { return a*a; } template<class T>inline string tostring(T a) { ostringstream os(""); os << a; return os.str(); } template<typename T>inline ll tolong(T a) { ll res; istringstream os(a); os>>res; return res; } template<typename T>inline T gcd(T a, T b) { if (b == 0)return a; else return gcd(b, a % b); } template<typename T>inline T bigmod(T a, T b, T m) { if (b == 0)return 1; else if (b % 2 == 0)return S(bigmod(a, b / 2, m)) % m; else return (a % m*bigmod(a, b - 1, m)) % m; } int main() { ios_base::sync_with_stdio(0); //ll n,c,cnt=0,prev; string s,s1; cin>>s>>s1; int len1=s.length(); int len2=s1.length(); if(len==len2) { if(s==s1)cout<<"EQUAL"<<endl; else if(s[0]>s1[0])cout<<"GREATER"<<endl; else cout<<"LESS"<<endl; } }
a.cc: In function 'int main()': a.cc:62:8: error: 'len' was not declared in this scope; did you mean 'len2'? 62 | if(len==len2) | ^~~ | len2
s449468166
p03738
C++
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int n = s.length(); int m = t.length(); if(n > m) { printf("GREATER"); } else if(n < m) { print("LESS"); } else { if(s > t) { printf("GREATER"); } else if(s < t) { printf("LESS"); } else { printf("EQUAL"); } } }
a.cc: In function 'int main()': a.cc:13:5: error: 'print' was not declared in this scope; did you mean 'rint'? 13 | print("LESS"); | ^~~~~ | rint
s482174411
p03738
C++
a, b = (input().split(" ")) a = int(a) b = int(b) if(a > b): print("GREATER") elif(a < b): print("LESS") else: print("EQUAL")
a.cc:1:1: error: 'a' does not name a type 1 | a, b = (input().split(" ")) | ^
s646504496
p03738
C++
#include<bits/stdc++> using namespace std; int main() { string num1, num2; cin >> num1 >> num2; if(num1.size() > num2.size()) { cout << "GREATER"; } else if(num1.size() < num2.size()) { cout << "LESS"; } else { bool isEq = true; for(int i = 0; i < num1.size() && isEq; ++i) { if(num1[i] > num2[i]) { cout << "GREATER"; isEq = false; } else if(num1[i] < num2[i]) { cout << "LESS"; isEq = false; } } if(isEq) { cout << "EQUAL"; } } return 0; }
a.cc:1:9: fatal error: bits/stdc++: No such file or directory 1 | #include<bits/stdc++> | ^~~~~~~~~~~~~ compilation terminated.
s217357449
p03738
C++
#include <bits/stdc++.h> using namespace std; int main(){ string A,B; cin >> A >> B; string ans; int a = A.size(); int b = B.size(); if(a - b > 0){ ans = "GREATER"; }else if( a - b < 0){ ans = "LESS"; }else{ for(int i = 0;i < a;i++){ if(a[i] - b[i] > 0){ ans = "GREATER"; break; }else if( a[i] - b[i] < 0){ ans = "LESS"; break; } } ans = "EQUAL"; } cout << ans << endl; }
a.cc: In function 'int main()': a.cc:19:11: error: invalid types 'int[int]' for array subscript 19 | if(a[i] - b[i] > 0){ | ^ a.cc:19:18: error: invalid types 'int[int]' for array subscript 19 | if(a[i] - b[i] > 0){ | ^ a.cc:22:22: error: invalid types 'int[int]' for array subscript 22 | }else if( a[i] - b[i] < 0){ | ^ a.cc:22:29: error: invalid types 'int[int]' for array subscript 22 | }else if( a[i] - b[i] < 0){ | ^
s810656488
p03738
C++
#include <bits/stdc++.h> using namespace std; int main(){ string A,B; cin >> A >> B; string ans; if(A - B > 0){ ans = "GREATER"; }else if( A - B < 0){ ans = "LESS"; }else{ ans = "EQUAL"; } cout << ans << endl; }
a.cc: In function 'int main()': a.cc:10:8: error: no match for 'operator-' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 10 | if(A - B > 0){ | ~ ^ ~ | | | | | basic_string<[...]> | basic_string<[...]> In file included from /usr/include/c++/14/bits/stl_algobase.h:67, from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_iterator.h:618:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr decltype ((__y.base() - __x.base())) std::operator-(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 618 | operator-(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:618:5: note: template argument deduction/substitution failed: a.cc:10:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 10 | if(A - B > 0){ | ^ /usr/include/c++/14/bits/stl_iterator.h:1790:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr decltype ((__x.base() - __y.base())) std::operator-(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1790 | operator-(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1790:5: note: template argument deduction/substitution failed: a.cc:10:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 10 | if(A - B > 0){ | ^ In file included from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127: /usr/include/c++/14/complex:370:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::operator-(const complex<_Tp>&, const complex<_Tp>&)' 370 | operator-(const complex<_Tp>& __x, const complex<_Tp>& __y) | ^~~~~~~~ /usr/include/c++/14/complex:370:5: note: template argument deduction/substitution failed: a.cc:10:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::complex<_Tp>' 10 | if(A - B > 0){ | ^ /usr/include/c++/14/complex:379:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::operator-(const complex<_Tp>&, const _Tp&)' 379 | operator-(const complex<_Tp>& __x, const _Tp& __y) | ^~~~~~~~ /usr/include/c++/14/complex:379:5: note: template argument deduction/substitution failed: a.cc:10:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::complex<_Tp>' 10 | if(A - B > 0){ | ^ /usr/include/c++/14/complex:388:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::operator-(const _Tp&, const complex<_Tp>&)' 388 | operator-(const _Tp& __x, const complex<_Tp>& __y) | ^~~~~~~~ /usr/include/c++/14/complex:388:5: note: template argument deduction/substitution failed: a.cc:10:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::complex<_Tp>' 10 | if(A - B > 0){ | ^ /usr/include/c++/14/complex:465:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::operator-(const complex<_Tp>&)' 465 | operator-(const complex<_Tp>& __x) | ^~~~~~~~ /usr/include/c++/14/complex:465:5: note: candidate expects 1 argument, 2 provided In file included from /usr/include/c++/14/valarray:605, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166: /usr/include/c++/14/bits/valarray_after.h:406:5: note: candidate: 'template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__minus, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__minus, typename _Dom1::value_type>::result_type> std::operator-(const _Expr<_Dom1, typename _Dom1::value_type>&, const _Expr<_Dom2, typename _Dom2::value_type>&)' 406 | _DEFINE_EXPR_BINARY_OPERATOR(-, struct std::__minus) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:406:5: note: template argument deduction/substitution failed: a.cc:10:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>' 10 | if(A - B > 0){ | ^ /usr/include/c++/14/bits/valarray_after.h:406:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__minus, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__minus, typename _Dom1::value_type>::result_type> std::operator-(const _Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)' 406 | _DEFINE_EXPR_BINARY_OPERATOR(-, struct std::__minus) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:406:5: note: template argument deduction/substitution failed: a.cc:10:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>' 10 | if(A - B > 0){ | ^ /usr/include/c++/14/bits/valarray_after.h:406:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__minus, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__minus, typename _Dom1::value_type>::result_type> std::operator-(const typename _Dom::value_type&, const _Expr<_Dom1, typename _Dom1::value_type>&)' 406 | _DEFINE_EXPR_BINARY_OPERATOR(-, struct std::__minus) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:406:5: note: template argument deduction/substitution failed: a.cc:10:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>' 10 | if(A - B > 0){ | ^ /usr/include/c++/14/bits/valarray_after.h:406:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__minus, std::_Expr, std::_ValArray, _Dom, typename _Dom::value_type>, typename std::__fun<std::__minus, typename _Dom1::value_type>::result_type> std::operator-(const _Expr<_Dom1, typename _Dom1::value_type>&, const valarray<typename _Dom::value_type>&)' 406 | _DEFINE_EXPR_BINARY_OPERATOR(-, struct std::__minus) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:406:5: note: template argument deduction/substitution failed: a.cc:10:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>' 10 | if(A - B > 0){ | ^ /usr/include/c++/14/bits/valarray_after.h:406:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__minus, std::_ValArray, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__minus, typename _Dom1::value_type>::result_type> std::operator-(const valarray<typename _Dom::value_type>&, const _Expr<_Dom1, typename _Dom1::value_type>&)' 406 | _DEFINE_EXPR_BINARY_OPERATOR(-, struct std::__minus) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:406:5: note: template argument deduction/substitution failed: a.cc:10:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>' 10 | if(A - B > 0){ | ^ /usr/include/c++/14/valarray:1197:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__minus, std::_ValArray, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__minus, _Tp>::result_type> std::operator-(const valarray<_Tp>&, const valarray<_Tp>&)' 1197 | _DEFINE_BINARY_OPERATOR(-, __minus) | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/valarray:1197:1: note: template argument deduction/substitution failed: a.cc:10:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::valarray<_Tp>' 10 | if(A - B > 0){ | ^ /usr/include/c++/14/valarray:1197:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__minus, std::_ValArray, std::_Constant, _Tp, _Tp>, typename std::__fun<std::__minus, _Tp>::result_type> std::operator-(const valarray<_Tp>&, const typename valarray<_Tp>::value_type&)' 1197 | _DEFINE_BINARY_OPERATOR(-, __minus) | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/valarray:1197:1: note: template argument deduction/substitution failed: a.cc:10:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::valarray<_Tp>' 10 | if(A - B > 0){ | ^ /usr/include/c++/14/valarray:1197:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__minus, std::_Constant, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__minus, _Tp>::result_type> std::operator-(const typename valarray<_Tp>::value_type&, const valarray<_Tp>&)' 1197 | _DEFINE_BINARY_OPERATOR(-, __minus) | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/valarray:1197:1: note: template argument deduction/substitution failed: a.cc:10:10: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::valarray<_Tp>' 10 | if(A - B > 0){ | ^ a.cc:12:15: error: no match for 'operator-' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 12 | }else if( A - B < 0){ | ~ ^ ~ | | | | | basic_string<[...]> | basic_string<[...]> /usr/include/c++/14/bits/stl_iterator.h:618:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr decltype ((__y.base() - __x.base())) std::operator-(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 618 | operator-(const reverse_ite
s753719681
p03738
C++
a = int(input()) b = int(input()) ans = "EQUAL" if a > b: ans = "GREATER" elif a < b: ans = "LESS" print(ans)
a.cc:1:1: error: 'a' does not name a type 1 | a = int(input()) | ^
s507719474
p03738
C++
#include<bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0;i<(int)(n);i++) int main(){ string[100] = a,b; cin >> a >> b; int A = a.size(),B = b.size(); if(A == B){ if(a > b){ cout << "GREATER" << endl; }else if(a < b){ cout << "LESS" << endl; }else{ cout << "EQOAL" << endl; } }else{ if(A < B){ cout << "LESS" << endl; }else{ cout << "GREATER" << endl; } } }
a.cc: In function 'int main()': a.cc:5:12: error: expected identifier before numeric constant 5 | string[100] = a,b; cin >> a >> b; | ^~~ a.cc:5:12: error: expected ']' before numeric constant 5 | string[100] = a,b; cin >> a >> b; | ^~~ | ] a.cc:5:11: error: structured binding declaration cannot have type 'std::string' {aka 'std::__cxx11::basic_string<char>'} 5 | string[100] = a,b; cin >> a >> b; | ^ a.cc:5:11: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto' a.cc:5:11: error: empty structured binding declaration a.cc:5:19: error: 'a' was not declared in this scope 5 | string[100] = a,b; cin >> a >> b; | ^ a.cc:5:36: error: 'b' was not declared in this scope 5 | string[100] = a,b; cin >> a >> b; | ^ a.cc:7:13: error: 'B' was not declared in this scope 7 | if(A == B){ | ^
s842314570
p03738
C++
#include<bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0;i<(int)(n);i++) int main(){ string[100] a,b; cin >> a >> b; int A = a.size(),B = b.size(); if(A == B){ if(a > b){ cout << "GREATER" << endl; }else if(a < b){ cout << "LESS" << endl; }else{ cout << "EQOAL" << endl; } }else{ if(A < B){ cout << "LESS" << endl; }else{ cout << "GREATER" << endl; } } }
a.cc: In function 'int main()': a.cc:5:12: error: expected identifier before numeric constant 5 | string[100] a,b; cin >> a >> b; | ^~~ a.cc:5:12: error: expected ']' before numeric constant 5 | string[100] a,b; cin >> a >> b; | ^~~ | ] a.cc:5:11: error: structured binding declaration cannot have type 'std::string' {aka 'std::__cxx11::basic_string<char>'} 5 | string[100] a,b; cin >> a >> b; | ^ a.cc:5:11: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto' a.cc:5:11: error: empty structured binding declaration a.cc:5:17: error: expected initializer before 'a' 5 | string[100] a,b; cin >> a >> b; | ^ a.cc:5:29: error: 'a' was not declared in this scope 5 | string[100] a,b; cin >> a >> b; | ^ a.cc:5:34: error: 'b' was not declared in this scope 5 | string[100] a,b; cin >> a >> b; | ^ a.cc:7:13: error: 'B' was not declared in this scope 7 | if(A == B){ | ^
s887920782
p03738
C++
#include <bits/stdc++.h> using namespace std; int main() { string A, B; cin >> A >> B; if (A.size()>B.size()) cout << "GREATER" << endl; else if (A.size()<B.size()) cout << "LESS" << endl; else { bool equal = true; for (int i=0; i<A.size(); i++) { if (A.at(i)>B.at(i)) { equal = false; cout << "GREATER" << endl; break; } else if (A.at(i)<B.at(i)) { equal = false; cout << "LESS" << endl; break; } } if (equal) cout << "EQUAL" << end; } return 0; }
a.cc: In function 'int main()': a.cc:23:32: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 23 | if (equal) cout << "EQUAL" << 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 =
s221508766
p03738
C++
#include <bits/stdc++.h> using namespace std; int main() { string A, B; cin >> A >> B; if (A.size()>B.size()) cout << "GREATER" << endl; else if (A.size()<B.size()) cout << "LESS" << endl; else { bool equal = same; for (int i=0; i<A.size(); i++) { if (A.at(i)>B.at(i)) { equal = false; cout << "GREATER" << endl; break; } else if (A.at(i)<B.at(i)) { equal = false; cout << "LESS" << endl; break; } } if (equal) cout << "EQUAL" << end; } return 0; }
a.cc: In function 'int main()': a.cc:10:18: error: 'same' was not declared in this scope 10 | bool equal = same; | ^~~~ a.cc:23:32: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 23 | if (equal) cout << "EQUAL" << 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
s569599556
p03738
C++
#include <bits/stdc++.h> using namespace std; int main() { string A,B; cin >> A >> B; bool k = true; if (A.size() != B.size()) { if (A.size() > B.size()) cout << "GREATER" << endl; else cout << "LESS" << endl; } else { for (int i = 0; i < A.size() i++) { if (int(A[i]) > int(B[i])) cout << "GREATER" << endl; k = false; break; else (int(A[i]) < int(B[i])) cout << "LESS" << endl; k = false; break; } if(k) cout << "EQUAL" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:12:33: error: expected ';' before 'i' 12 | for (int i = 0; i < A.size() i++) { | ^~ | ; a.cc:14:7: error: 'else' without a previous 'if' 14 | else (int(A[i]) < int(B[i])) cout << "LESS" << endl; k = false; break; | ^~~~ a.cc:14:35: error: expected ';' before 'cout' 14 | else (int(A[i]) < int(B[i])) cout << "LESS" << endl; k = false; break; | ^~~~~ | ;
s023895317
p03738
C++
//#define _GLIBCXX_DEBUG #include<bits/stdc++.h> #define PI 3.14159265359 using namespace std; const int INF= 1e9+5; typedef long long ll; typedef vector<int> vi; typedef vector<vector<int>>vvi; int main(){ string a,b; cin>>a>>b; int A=a.size(); B=b.size(); if(A>B)cout<<"GREATER"<<endl; else if(A<B)cout<<"LESS"<<endl; else{ bool equal=true; for(int i=0;i<A;i++){ if(a[i]!=b[i])equal=false; } if(equal){ cout<<"EQUAL"<<endl; return 0; } bool a_big=false; for(int i=0;i<A;i++){ if(a[i]>b[i]){ a_big=true; break; } } if(a_big)cout<<"GREATER"<<endl; else cout<<"LESS"<<endl; } }
a.cc: In function 'int main()': a.cc:14:19: error: 'B' was not declared in this scope 14 | int A=a.size(); B=b.size(); | ^
s762544231
p03738
C++
#include <bits/stdc++.h> using namespace std; int main(){ string A,B; cin >> A; cin >> B; string s="EQUAL"; if(A.size()>B.size()){ s = "GREATER"; } else if(A.size()<B.size()){ s = "LESS"; } else{ for(int i=0;i<A.size();i++){ if(A.at(i)>B.at(i){ s = "GREATER"; break; } else if(A.at(i)<B.at(i)){ s = "LESS"; break; } } } cout << s << endl; }
a.cc: In function 'int main()': a.cc:17:25: error: expected ')' before '{' token 17 | if(A.at(i)>B.at(i){ | ~ ^ | ) a.cc:25:5: error: expected primary-expression before '}' token 25 | } | ^
s383640644
p03738
C++
#include <bits/stdc++.h> using namespace std; int main() { string A,B; cin >> A; cin >> B; string s="EQUAL"; if(A.size()>B.size()){ s = "GREATER"; } else if(A.size()<B.size()){ s = "LESS"; } else{ for(int i=0;i<A.size();i++){ if(A.at(i)>B.at(i){ s = "GREATER"; break; } else if(A.at(i)<B.at(i)){ s = "LESS"; break; } } } cout << s << endl; }
a.cc: In function 'int main()': a.cc:17:25: error: expected ')' before '{' token 17 | if(A.at(i)>B.at(i){ | ~ ^ | ) a.cc:25:5: error: expected primary-expression before '}' token 25 | } | ^
s365687377
p03738
C++
#include <bits/stdc++.h> std::string a, b; int main(){ cin >> a >> b; int a_size = a.size(); int b_size = b.size(); if(a_size > b_size){ std::cout << "GREATER" << std::endl; } else if(a_size < b_size){ std::cout << "LESS" << std::endl; } else{ if(a > b){ std::cout << "GREATER" << std::endl; } else if(a == b){ std::cout << "EQUAL" << std::endl; } else{ std::cout << "LESS" << std::endl; } } }
a.cc: In function 'int main()': a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin >> a >> b; | ^~~ | std::cin In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146, from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~
s395944846
p03738
C++
#include <bits/stdc++.h> long long a, b; int main(){ cin >> a >> b; if(a > b){ std::cout << "GREATER" << std::endl; } else if(a == b){ std::cout << "EQUAL" << std::endl; } else{ std::cout << "LESS" << std::endl; } }
a.cc: In function 'int main()': a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin >> a >> b; | ^~~ | std::cin In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146, from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~
s666398690
p03738
C++
#include<bits/stdc++.h> using namespace std; int main(){ string A, B; cin >> A >> B; if (A>B){ cout << "GREATER" << endl; } else if (A<B){ cout << "LESS" << endl; } else { cout << "EQUAL" << endl; } }
a.cc:14:3: error: extended character   is not valid in an identifier 14 | else { | ^ a.cc: In function 'int main()': a.cc:14:3: error: 'else\U00003000' was not declared in this scope 14 | else { | ^~~~~~
s851756074
p03738
C++
#include<string> #include<iostring> int main(){ std::string a, b; std::cin >> a; std::cin >> b; int flag,n = a.length(), m = b.length(); if(n != m){ if(n > m) std::cout << "GREATER" << std::endl; else std::cout << "LESS" << std::endl; } else{ flag = 1; int i; for(i = 0; i < n; i++){ if(a[i] == b[i]) continue; else if(a[i] > b[i]){ std::cout << "GREATER" << std::endl; break; } else{ std::cout << "LESS" << std::endl; break; } } if(i == n) std::cout << "EQUAL" << std::endl; } return 0; }
a.cc:2:9: fatal error: iostring: No such file or directory 2 | #include<iostring> | ^~~~~~~~~~ compilation terminated.
s780852541
p03738
C++
#include<bits/stdc++.h> using namespace std; int main(){ int A,B; cin >> A >> B; if(A > B){ cout << "GREATER" <<endl; }else if(A < B){ cout << "LESS" <<endl; }else if(A == B){ cout << "EQUAL" <<endl; } rerun 0; }
a.cc: In function 'int main()': a.cc:21:3: error: 'rerun' was not declared in this scope 21 | rerun 0; | ^~~~~
s774014513
p03738
C++
#include<bits/stdc++.h> using namespace std; int main() { string a, b; cin >> a >> b; int n1 = a.size(), n2 = b.size(); if(n1 > n2) cout << "GREATER" << endl; if(n1 < n2) cout << "LESS" << endl; if(n1 == n2) { for(int i = 0; i < n; i++) { if(a[i] < b[i]) { cout << "LESS" << endl; break; } if(a[i] > b[i]) { cout << "GREATER" << endl; break; } } } return 0; }
a.cc: In function 'int main()': a.cc:17:24: error: 'n' was not declared in this scope 17 | for(int i = 0; i < n; i++) | ^
s727193311
p03738
C++
#include<bits/stdc++.h> using namespace std; int main() { string a, b; cin>>a>>b; if(a.length() > b.length()) cout<<"GREATER"; else if(a.length() < b.length()) cout<<"LESS"; else { int flag = 0, eq = 0; for(int i = 0; i < a.length(); i++) { if(a[i]-b[i] < 0) { flag = 1; eq = 1; break; } else if(a[i]-b[i] > 0) eq = 1; } if(flag == 1 && eq == 1) cout<<"LESS" else if(flag == 0 && eq == 1) cout<<"GREATER"; else cout<<"EQUAL"; } return 0; }
a.cc: In function 'int main()': a.cc:27:29: error: expected ';' before 'else' 27 | cout<<"LESS" | ^ | ; 28 | else if(flag == 0 && eq == 1) | ~~~~
s904100890
p03738
C++
#include <bits/stdc++.h> using namespace std; int main() { string A,B; cin>>A>>B; if(A==B){cout<<"EQUAL"<<endl;} else{ if(A.length()>B.length()) cout<<"GREATER"<<endl; else if(B.length()>A.length()) cout<<"LESS"<<endl; else{ for(int i=0;i<A.length();i++){ if(A.at(i)>B.at(i)){cout<<"GREATER"<<endl;} else if(B.at(i)>A.at(i)){cout<<"LESS"<<endl;} } } }
a.cc: In function 'int main()': a.cc:18:2: error: expected '}' at end of input 18 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s536391105
p03738
C++
int main(){ string a, b; cin >> a >> b; if(a.size() > b.size()){ cout << "GREATER" << endl; }else if(a.size() < b.size()){ cout << "LESS "<< endl; }else if(a > b){ cout << "GREATER" << endl; }else if(b >a){ cout << "LESS "<< endl; }else{ cout << "EQUAL" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:2:5: error: 'string' was not declared in this scope 2 | string a, b; | ^~~~~~ a.cc:3:5: error: 'cin' was not declared in this scope 3 | cin >> a >> b; | ^~~ a.cc:3:12: error: 'a' was not declared in this scope 3 | cin >> a >> b; | ^ a.cc:3:17: error: 'b' was not declared in this scope 3 | cin >> a >> b; | ^ a.cc:5:9: error: 'cout' was not declared in this scope 5 | cout << "GREATER" << endl; | ^~~~ a.cc:5:30: error: 'endl' was not declared in this scope 5 | cout << "GREATER" << endl; | ^~~~ a.cc:7:9: error: 'cout' was not declared in this scope 7 | cout << "LESS "<< endl; | ^~~~ a.cc:7:27: error: 'endl' was not declared in this scope 7 | cout << "LESS "<< endl; | ^~~~ a.cc:9:9: error: 'cout' was not declared in this scope 9 | cout << "GREATER" << endl; | ^~~~ a.cc:9:30: error: 'endl' was not declared in this scope 9 | cout << "GREATER" << endl; | ^~~~ a.cc:11:9: error: 'cout' was not declared in this scope 11 | cout << "LESS "<< endl; | ^~~~ a.cc:11:27: error: 'endl' was not declared in this scope 11 | cout << "LESS "<< endl; | ^~~~ a.cc:13:9: error: 'cout' was not declared in this scope 13 | cout << "EQUAL" << endl; | ^~~~ a.cc:13:28: error: 'endl' was not declared in this scope 13 | cout << "EQUAL" << endl; | ^~~~
s236424992
p03738
C++
a=input() b=input() if a>b: print("GREATER") elif a<b: print("LESS") else: print("EQUAL")
a.cc:1:1: error: 'a' does not name a type 1 | a=input() | ^
s300985819
p03738
C++
#include <bits/stdc++.h> #include <string> #include <math.h> #include <stdio.h> #include <stdlib.h> using namespace std; int my_abs(int num){ if (num > 0) return num; else return -num; } int main(){ string A,B; string ans = "EQUAL"; cin >> A >> B; if(A.size() > B .size()){ ans = "GREATER"; } if(A.size() < B .size()){ ans = "LESS"; } if(A.size() == B.size()){ for(int i = 0;i<A.size();i++){ if(A.at(i)>B.at(i)){ ans = "GREATER"; } else if(A.at(i)) < B.at(i){ ans = "LESS"; } } } cout << ans << endl; }
a.cc: In function 'int main()': a.cc:30:30: error: expected primary-expression before '<' token 30 | else if(A.at(i)) < B.at(i){ | ^
s739067654
p03738
C++
#include<bits/stdc++.h> #define rep(i,n) for(int i = 0; i < (n); i++) #define ll long long using namespace std; int main(){ string a,b;cin>>a>>b; if(a>b){ cout<<"GREATER": }else if(a<b){ cout<<"LESS": }else{ cout<<"EQUAL": } return 0; }
a.cc: In function 'int main()': a.cc:11:20: error: expected ';' before ':' token 11 | cout<<"GREATER": | ^ | ; a.cc:13:17: error: expected ';' before ':' token 13 | cout<<"LESS": | ^ | ; a.cc:15:18: error: expected ';' before ':' token 15 | cout<<"EQUAL": | ^ | ;
s572372057
p03738
C++
#include<bits/stdc++.h> #define rep(i,n) for(int i = 0; i < (n); i++) #define ll long long using namespace std; int main(){ int a,b;cin>>a>>b; if(a>b){ cout<<"GREATER": }else if(a<b){ cout<<"LESS": }else{ cout<<"EQUAL": } return 0; }
a.cc: In function 'int main()': a.cc:11:20: error: expected ';' before ':' token 11 | cout<<"GREATER": | ^ | ; a.cc:13:17: error: expected ';' before ':' token 13 | cout<<"LESS": | ^ | ; a.cc:15:18: error: expected ';' before ':' token 15 | cout<<"EQUAL": | ^ | ;
s137503612
p03738
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); char[] a=sc.next().toCharArray(); char[] b=sc.next().toCharArray(); String ans; if(a.length>b.length){ ans="GREATER"; }else if(a.length<b.length){ ans="LESS"; }else{ for(int i=0;i<a.length;i++){ if(a[i]>b[i]){ ans="GREATER"; break; }else if(a[i]<b[i]){ ans="LESS"; break; } } } if(ans==null){ System.out.println("EQUAL"); }else{ System.out.println(ans); } } }
Main.java:24: error: variable ans might not have been initialized if(ans==null){ ^ 1 error
s161744048
p03738
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); char[] a=sc.next().toCharArray(); char[] b=sc.next().toCharArray(); String ans; if(a.length>b.length){ ans="GREATER"; }else if(a.length<b.length){ ans="LESS"; }else{ for(int i=0;i<a.length;i++){ if(a[i]>b[i]){ ans="GREATER"; break; }else if(a[i]<b[i]){ ans="LESS"; break; } } if(ans==null){ ans="EQUAL"; } } System.out.println(ans); } }
Main.java:23: error: variable ans might not have been initialized if(ans==null){ ^ 1 error
s710200173
p03738
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); char[] a=sc.next().toCharArray(); char[] b=sc.next().toCharArray(); String ans; if(a.length>b.length){ ans="GREATER"; }else if(a.length<b.length){ ans="LESS"; }else{ for(int i=0;i<a.length;i++){ if(a[i]>b[i]){ ans="GREATER"; break; }else if(a[i]<b[i]){ ans="LESS"; break; } } } System.out.println(ans); } }
Main.java:24: error: variable ans might not have been initialized System.out.println(ans); ^ 1 error
s575807480
p03738
C++
#include<cstdio> void main() { char A,B,m,n; scanf("%ld%ld",&A,&B); if(A > B) printf("GREATER\n"); else if(A < B) printf("LESS\n"); else printf("EQUAL\n"); return; }
a.cc:2:1: error: '::main' must return 'int' 2 | void main() | ^~~~ a.cc: In function 'int main()': a.cc:12:33: error: return-statement with no value, in function returning 'int' [-fpermissive] 12 | return; | ^~~~~~
s527261026
p03738
C++
#include <bits/stdc++.h> #define rep(i,n) for(int i=0;i<(n);i++) using namespace std; int main(){ string a,b; cin>>a>>b; cout<<(a==b?"EQUAL":tie(a.length(),a)>tie(b.length(),b)?"GREATER":"LESS")<<endl; return 0; }
a.cc: In function 'int main()': a.cc:10:41: error: cannot bind non-const lvalue reference of type 'long unsigned int&' to an rvalue of type 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} 10 | cout<<(a==b?"EQUAL":tie(a.length(),a)>tie(b.length(),b)?"GREATER":"LESS")<<endl; | ~~~~~~~~^~ In file included from /usr/include/c++/14/bits/memory_resource.h:47, from /usr/include/c++/14/string:68, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52, from a.cc:1: /usr/include/c++/14/tuple:2791:19: note: initializing argument 1 of 'constexpr std::tuple<_Elements& ...> std::tie(_Elements& ...) [with _Elements = {long unsigned int, __cxx11::basic_string<char, char_traits<char>, allocator<char> >}]' 2791 | tie(_Elements&... __args) noexcept | ~~~~~~~~~~^~~~~~~~~~ a.cc:10:59: error: cannot bind non-const lvalue reference of type 'long unsigned int&' to an rvalue of type 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} 10 | cout<<(a==b?"EQUAL":tie(a.length(),a)>tie(b.length(),b)?"GREATER":"LESS")<<endl; | ~~~~~~~~^~ /usr/include/c++/14/tuple:2791:19: note: initializing argument 1 of 'constexpr std::tuple<_Elements& ...> std::tie(_Elements& ...) [with _Elements = {long unsigned int, __cxx11::basic_string<char, char_traits<char>, allocator<char> >}]' 2791 | tie(_Elements&... __args) noexcept | ~~~~~~~~~~^~~~~~~~~~
s295807370
p03738
C
#include <stdio.h> int main(void){ int i; int a[100],b[100]; int arrayN_a,arrayN_b; int flag; for(i=0;i<100;i++){ scanf("%d",&a[i]); } for(i=0;i<100;i++){ scanf("%d",&b[i]); } arrayN_a = sizeof a / sizeof a[0]; arrayN_b = sizeof b / sizeof b[0]; if(arrayN_a > arrayN_b){ flag = 1; }else if(arrayN_a < arrayN_b){ flfag = -1; }else{ for(i=0;a[i] != b[i];i++){ if(a[i] > b[i]) flag = 1; else if(a[i] < b[i]) flag = -1; else flag = 0; } } if(flag == 1) printf("GREATER\n"); else if(flag == -1) printf("LESS\n"); else printf("EQUAL\n"); return 0; }
main.c: In function 'main': main.c:19:9: error: 'flfag' undeclared (first use in this function); did you mean 'flag'? 19 | flfag = -1; | ^~~~~ | flag main.c:19:9: note: each undeclared identifier is reported only once for each function it appears in
s667669586
p03738
C
#include <stdio.h> int main(void){ int i; int a[100],b[100]; int arrayN_a,arrayN_b; for(i=0;i<100;i++){ scanf("%d",&a[i]); } for(i=0;i<100;i++){ scanf("%d",&b[i]); } arrayN_a = sizeof a / sizeof a[0]; arrayN_b = sizeof b / sizeof b[0]; if(arrayN_a > arrayN_b) printf("GREATER"); else if(arrayN_a < arrayN_b) printf("LESS"); else if(a[0] > b[0]) printf("GREATER"); else if(a[0] < b[0]) printf("LESS"); else if printf("EQUAL"); return 0; }
main.c: In function 'main': main.c:19:13: error: expected '(' before 'printf' 19 | else if printf("EQUAL"); | ^~~~~~ | (
s477352461
p03738
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a,b; string res; cin >> a >> b; if(a.size()>b.size()){ res="GREATER"; }else if(a.size()<b.size()){ res="LESS"; }else if(a.size()==b.size()){ res="EQUAL"; for(int i=0;i<n;i++){ if(a[i]<b[i]){ res="LESS"; }else if(a[i]>b[i]){ res="GREATER"; } } cout << res << endl; }
a.cc: In function 'int main()': a.cc:8:8: error: request for member 'size' in 'a', which is of non-class type 'int' 8 | if(a.size()>b.size()){ | ^~~~ a.cc:8:17: error: request for member 'size' in 'b', which is of non-class type 'int' 8 | if(a.size()>b.size()){ | ^~~~ a.cc:10:14: error: request for member 'size' in 'a', which is of non-class type 'int' 10 | }else if(a.size()<b.size()){ | ^~~~ a.cc:10:23: error: request for member 'size' in 'b', which is of non-class type 'int' 10 | }else if(a.size()<b.size()){ | ^~~~ a.cc:12:14: error: request for member 'size' in 'a', which is of non-class type 'int' 12 | }else if(a.size()==b.size()){ | ^~~~ a.cc:12:24: error: request for member 'size' in 'b', which is of non-class type 'int' 12 | }else if(a.size()==b.size()){ | ^~~~ a.cc:14:18: error: 'n' was not declared in this scope 14 | for(int i=0;i<n;i++){ | ^ a.cc:15:10: error: invalid types 'int[int]' for array subscript 15 | if(a[i]<b[i]){ | ^ a.cc:15:15: error: invalid types 'int[int]' for array subscript 15 | if(a[i]<b[i]){ | ^ a.cc:17:16: error: invalid types 'int[int]' for array subscript 17 | }else if(a[i]>b[i]){ | ^ a.cc:17:21: error: invalid types 'int[int]' for array subscript 17 | }else if(a[i]>b[i]){ | ^ a.cc:22:2: error: expected '}' at end of input 22 | } | ^ a.cc:4:11: note: to match this '{' 4 | int main(){ | ^
s201567398
p03738
C++
#include<bits/stdc++.h> using namespace std; int main(){ int256_t A,B; cin >> A >> B; if(A < B) cout << "LESS" << endl; if(A > B) cout << "GREATER" << endl; if(A == B) cout << "EQUAL" << endl; }
a.cc: In function 'int main()': a.cc:4:3: error: 'int256_t' was not declared in this scope; did you mean 'int16_t'? 4 | int256_t A,B; | ^~~~~~~~ | int16_t a.cc:5:10: error: 'A' was not declared in this scope 5 | cin >> A >> B; | ^ a.cc:5:15: error: 'B' was not declared in this scope 5 | cin >> A >> B; | ^
s213614372
p03738
C++
if(a.sz>b.sz) co("GREATER");
a.cc:1:5: error: expected unqualified-id before 'if' 1 | if(a.sz>b.sz) co("GREATER"); | ^~
s052146167
p03738
C++
#include<bits/stdc++.h> using namespace std; #define int long long #define double long double #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 pri priority_queue #define syo <int,V<int> #define ff fi.fi #define fs fi.se #define sf se.fi #define ss se.se #define all(a) (a).begin(),(a).end() #define Pi P<int,int> #define elif else if //#define min min<int> //#define max max<int> int low(V<int> a,int b){ decltype(a)::iterator c=lower_bound(a.begin(),a.end(),b); int d=c-a.bgn; return d; } int upp(V<int> a,int b){ decltype(a)::iterator c=upper_bound(a.begin(),a.end(),b); int d=c-a.bgn; return d; } 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){ if(a%b==0) return b; return gcm(b,a%b); } 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(){ }*/ bool fe(int a,int b){ a%=10; b%=10; if(a==0) a=10; if(b==0) b=10; if(a>b) return true; else return false; } int INF=1000000007; struct edge{int s,t,d; }; V<int> mojisyu(string a){ V<int> b(26,0); fo(i,a.sz){ b[a[i]-'a']++; } return b; } int wa2(int a){ if(a%2==1) return a/2; return a/2-1; } /*signed main(){ int a,b,c; cin>>a>>b>>c; V<V<edge>> d(a); fo(i,b){ edge e; cin>>e.s>>e.t>>e.d; d[e.s].pb(e); } V<int> e(a,INF); e[c]=0; priority_queue<P<int,int>,V<P<int,int>>,greater<P<int,int>>> f; f.push({0,c}); int h=INF; while(!f.empty()){ P<int,int> g; g=f.top(); f.pop(); int v = g.second, i = g.first; for(edge l : d[v]){ if(e[l.t] > i + l.d){ e[l.t] = i + l.d; f.push({i+l.d , l.t}); } } } fo(i,a){ if(e[i]==INF) cout<<"INF"<<endl; else cout<<e[i]<<endl; } } ?*/ signed main(){ string a,b; cin>>a>>b; if(a.size() == b.size()) { if(a>b) co("GREATER"); if(a<b) co("LESS"); if(a==b) co("EQUAL"); } else { if(a.sz<b.sz) co("GREATER"); else co("LESS"); }
a.cc: In function 'int main()': a.cc:266:4: error: expected '}' at end of input 266 | } | ^ a.cc:255:14: note: to match this '{' 255 | signed main(){ | ^
s703527645
p03738
C++
#include<cstdio> #include<cstring> using namespace std; int main(){ char A,B; scanf("%s %s",&A,&B); int lenA = strlen(A); int lenB = strlen(B); if(lenA > lenB) printf("GREATER"); if(lenA < lenB) printf("LESS"); if(lenA == lenB){ if(strcmp(A) > strcmp(B)) printf("GREATER"); if(strcmp(A) < strcmp(B)) printf("LESS"); if(strcmp(A) == strcmp(B)) printf("EQUAL"); } return 0; }
a.cc: In function 'int main()': a.cc:8:27: error: invalid conversion from 'char' to 'const char*' [-fpermissive] 8 | int lenA = strlen(A); | ^ | | | char In file included from /usr/include/c++/14/cstring:43, from a.cc:2: /usr/include/string.h:407:35: note: initializing argument 1 of 'size_t strlen(const char*)' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ a.cc:9:27: error: invalid conversion from 'char' to 'const char*' [-fpermissive] 9 | int lenB = strlen(B); | ^ | | | char /usr/include/string.h:407:35: note: initializing argument 1 of 'size_t strlen(const char*)' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ a.cc:14:27: error: invalid conversion from 'char' to 'const char*' [-fpermissive] 14 | if(strcmp(A) > strcmp(B)) printf("GREATER"); | ^ | | | char a.cc:14:26: error: too few arguments to function 'int strcmp(const char*, const char*)' 14 | if(strcmp(A) > strcmp(B)) printf("GREATER"); | ~~~~~~^~~ /usr/include/string.h:156:12: note: declared here 156 | extern int strcmp (const char *__s1, const char *__s2) | ^~~~~~ a.cc:14:39: error: invalid conversion from 'char' to 'const char*' [-fpermissive] 14 | if(strcmp(A) > strcmp(B)) printf("GREATER"); | ^ | | | char a.cc:14:38: error: too few arguments to function 'int strcmp(const char*, const char*)' 14 | if(strcmp(A) > strcmp(B)) printf("GREATER"); | ~~~~~~^~~ /usr/include/string.h:156:12: note: declared here 156 | extern int strcmp (const char *__s1, const char *__s2) | ^~~~~~ a.cc:15:27: error: invalid conversion from 'char' to 'const char*' [-fpermissive] 15 | if(strcmp(A) < strcmp(B)) printf("LESS"); | ^ | | | char a.cc:15:26: error: too few arguments to function 'int strcmp(const char*, const char*)' 15 | if(strcmp(A) < strcmp(B)) printf("LESS"); | ~~~~~~^~~ /usr/include/string.h:156:12: note: declared here 156 | extern int strcmp (const char *__s1, const char *__s2) | ^~~~~~ a.cc:15:39: error: invalid conversion from 'char' to 'const char*' [-fpermissive] 15 | if(strcmp(A) < strcmp(B)) printf("LESS"); | ^ | | | char a.cc:15:38: error: too few arguments to function 'int strcmp(const char*, const char*)' 15 | if(strcmp(A) < strcmp(B)) printf("LESS"); | ~~~~~~^~~ /usr/include/string.h:156:12: note: declared here 156 | extern int strcmp (const char *__s1, const char *__s2) | ^~~~~~ a.cc:16:27: error: invalid conversion from 'char' to 'const char*' [-fpermissive] 16 | if(strcmp(A) == strcmp(B)) printf("EQUAL"); | ^ | | | char a.cc:16:26: error: too few arguments to function 'int strcmp(const char*, const char*)' 16 | if(strcmp(A) == strcmp(B)) printf("EQUAL"); | ~~~~~~^~~ /usr/include/string.h:156:12: note: declared here 156 | extern int strcmp (const char *__s1, const char *__s2) | ^~~~~~ a.cc:16:40: error: invalid conversion from 'char' to 'const char*' [-fpermissive] 16 | if(strcmp(A) == strcmp(B)) printf("EQUAL"); | ^ | | | char a.cc:16:39: error: too few arguments to function 'int strcmp(const char*, const char*)' 16 | if(strcmp(A) == strcmp(B)) printf("EQUAL"); | ~~~~~~^~~ /usr/include/string.h:156:12: note: declared here 156 | extern int strcmp (const char *__s1, const char *__s2) | ^~~~~~
s941528898
p03738
C++
{ int A,B; scanf("%d %d",&A,&B); if(A > B) { printf("GREATER\n"); } else { if(A < B) { printf("LESS\n"); } else { if(A == B) { printf("EQUAL\n"); } } } return 0; }
a.cc:1:1: error: expected unqualified-id before '{' token 1 | { | ^
s685093215
p03738
C++
include<stdio.h> int main() { long int A, B; while(~scanf("%d%d\n",&A,&B)){ 1<=A;B<=10^{100}; if(A=B) printf("EQUAL\n"); if(A>B) printf(GREATER\n); if(A<B) printf(LESS\n); } return 0; }
a.cc:8:30: error: stray '\' in program 8 | if(A>B) printf(GREATER\n); | ^ a.cc:9:27: error: stray '\' in program 9 | if(A<B) printf(LESS\n); | ^ a.cc:1:1: error: 'include' does not name a type 1 | include<stdio.h> | ^~~~~~~
s458249841
p03738
C++
# include<iostream> using namespace std; int main(){ string a , b ; cin>>a>>b; if(a.size()>b,size()){ cout<<"GREATER"; } else if (a.size()<b.size()){ cout<<"LESS"; } else { cout<<"EQUAL"; } }
a.cc: In function 'int main()': a.cc:6:12: error: no match for 'operator>' (operand types are 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 6 | if(a.size()>b,size()){ | ~~~~~~~~^~ | | | | | std::string {aka std::__cxx11::basic_string<char>} | std::__cxx11::basic_string<char>::size_type {aka long unsigned int} In file included from /usr/include/c++/14/string:48, 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/bits/stl_iterator.h:462:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 462 | operator>(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:462:5: note: template argument deduction/substitution failed: a.cc:6:13: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} 6 | if(a.size()>b,size()){ | ^ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 507 | operator>(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: template argument deduction/substitution failed: a.cc:6:13: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} 6 | if(a.size()>b,size()){ | ^ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1714 | operator>(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: template argument deduction/substitution failed: a.cc:6:13: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} 6 | if(a.size()>b,size()){ | ^ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1774 | operator>(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: template argument deduction/substitution failed: a.cc:6:13: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} 6 | if(a.size()>b,size()){ | ^ In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/string:51: /usr/include/c++/14/bits/stl_pair.h:1058:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator>(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1058 | operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1058:5: note: template argument deduction/substitution failed: a.cc:6:13: note: mismatched types 'const std::pair<_T1, _T2>' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} 6 | if(a.size()>b,size()){ | ^ 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:695:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 695 | operator> (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:695:5: note: template argument deduction/substitution failed: a.cc:6:13: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'long unsigned int' 6 | if(a.size()>b,size()){ | ^ /usr/include/c++/14/string_view:702: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> >)' 702 | operator> (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:702:5: note: template argument deduction/substitution failed: a.cc:6:13: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'long unsigned int' 6 | if(a.size()>b,size()){ | ^ /usr/include/c++/14/string_view:710:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)' 710 | operator> (__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:710:5: note: template argument deduction/substitution failed: a.cc:6:13: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 6 | if(a.size()>b,size()){ | ^ /usr/include/c++/14/bits/basic_string.h:3915:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3915 | operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3915:5: note: template argument deduction/substitution failed: a.cc:6:13: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} 6 | if(a.size()>b,size()){ | ^ /usr/include/c++/14/bits/basic_string.h:3929:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)' 3929 | operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3929:5: note: template argument deduction/substitution failed: a.cc:6:13: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} 6 | if(a.size()>b,size()){ | ^ /usr/include/c++/14/bits/basic_string.h:3942:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3942 | operator>(const _CharT* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3942:5: note: template argument deduction/substitution failed: a.cc:6:13: note: mismatched types 'const _CharT*' and 'long unsigned int' 6 | if(a.size()>b,size()){ | ^ In file included from /usr/include/c++/14/bits/memory_resource.h:47, from /usr/include/c++/14/string:68: /usr/include/c++/14/tuple:2619:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator>(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)' 2619 | operator>(const tuple<_TElements...>& __t, | ^~~~~~~~ /usr/include/c++/14/tuple:2619:5: note: template argument deduction/substitution failed: a.cc:6:13: note: mismatched types 'const std::tuple<_UTypes ...>' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} 6 | if(a.size()>b,size()){ | ^ a.cc:6:19: error: no matching function for call to 'size()' 6 | if(a.size()>b,size()){ | ~~~~^~ In file included from /usr/include/c++/14/string:53: /usr/include/c++/14/bits/range_access.h:262:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)' 262 | size(const _Container& __cont) noexcept(noexcept(__cont.size())) | ^~~~ /usr/include/c++/14/bits/range_access.h:262:5: note: candidate expects 1 argument, 0 provided /usr/include/c++/14/bits/range_access.h:272:5: note: candidate: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])' 272 | size(const _Tp (&)[_Nm]) noexcept | ^~~~ /usr/include/c++/14/bits/range_access.h:272:5: note: candidate expects 1 argument, 0 provided
s905668005
p03738
C++
#include<cstdio> #include<iostream> #include<algorithm> #include<string> #include<cstring> #include<string.h> #include<cmath> #include<cstdlib> using namespace std; const int maxn = 1e2 + 5; #define PI 3.14159265359 int main(){ char a[maxn],b[maxn]; gets(a); gets(b); if(strlen(a) > strlen(b)){ cout << "GREATER" << endl; return 0; } else if (strlen(a) < strlen(b)){ cout << "LESS" << endl; return 0; } if(strcmp(a,b) > 0 ) cout << "GREATER" << endl; if(strcmp(a,b) == 0) cout << "EQUAL" << endl; if(strcmp(a,b) < 0) cout << "LESS" << endl; return 0; }
a.cc: In function 'int main()': a.cc:14:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 14 | gets(a); | ^~~~ | getw
s537032742
p03738
C++
#include<cstdio> #include<iostream> #include<cmath> #include<algorithm> #include<cstring> using namespace std; int main() { char a[105]; char b[105]; gets(a); //getchar(); gets(b); int len_a = strlen(a); int len_b = strlen(b); //printf("%d %d\n",len_a,len_b); if(len_a > len_b) printf("GREATER\n"); else if(len_a < len_b) printf("LESS\n"); else { if(strcmp(a,b)>0) printf("GREATER\n"); else if(strcmp(a,b)<0) printf("LESS\n"); else printf("EQUAL\n"); } return 0; }
a.cc: In function 'int main()': a.cc:11:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 11 | gets(a); | ^~~~ | getw
s402155788
p03738
C++
#include<cstdio> #include<iostream> #include<cmath> #include<algorithm> #include<cstring> using namespace std; int main() { char a[105]; char b[105]; gets(a); //getchar(); gets(b); int len_a = strlen(a); int len_b = strlen(b); //printf("%d %d\n",len_a,len_b); if(len_a > len_b) printf("GREATER\n"); else if(len_a < len_b) printf("LESS\n"); else { if(strcmp(a,b)>0) printf("GREATER\n"); else if(strcmp(a,b)<0) printf("LESS\n"); else printf("EQUAL\n"); } return 0; }
a.cc: In function 'int main()': a.cc:11:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 11 | gets(a); | ^~~~ | getw
s908159581
p03738
C++
#include<bits/stdc++.h> using namespace std; string a,b; int type=0; int main(){ cin >> a >> b; if(a.size()>b.size()){ printf("GREATER"); }else if(a.size()<b.size()){ printf("LESS"); }else{ for(int i=1;i<=s.size();i++){ if(a[i-1]>b[i-1]){ type=1; break; } if(a[i-1]<b[i-1]){ type=-1; break; } } if(type==1){ printf("GREATER"); }else if(type==0){ printf("EQUAL"); }else printf("LESS"); } }
a.cc: In function 'int main()': a.cc:12:32: error: 's' was not declared in this scope 12 | for(int i=1;i<=s.size();i++){ | ^
s414492173
p03738
C++
rrrrrrrrrrrrrrrrrc++.h> #define REPI(i, n) for(int i = 0; i < n; i++) #define REPJ(j, n) for(int j = 0; j < n; j++) using namespace std; int main(){ cin.tie(0); ios::sync_with_stdio(false); long long a, b; cin >> a >> b; if(a > b) cout << "GREATER"; else if(a == b) cout << "EQUAL"; else if(a < b) cout << "LESS"; }
a.cc:1:1: error: 'rrrrrrrrrrrrrrrrrc' does not name a type 1 | rrrrrrrrrrrrrrrrrc++.h> | ^~~~~~~~~~~~~~~~~~ a.cc: In function 'int main()': a.cc:9:5: error: 'cin' was not declared in this scope 9 | cin.tie(0); | ^~~ a.cc:10:5: error: 'ios' has not been declared 10 | ios::sync_with_stdio(false); | ^~~ a.cc:14:15: error: 'cout' was not declared in this scope 14 | if(a > b) cout << "GREATER"; | ^~~~ a.cc:15:21: error: 'cout' was not declared in this scope 15 | else if(a == b) cout << "EQUAL"; | ^~~~ a.cc:16:20: error: 'cout' was not declared in this scope 16 | else if(a < b) cout << "LESS"; | ^~~~
s784645118
p03738
C++
A = int(input()) B = int(input()) if A > B: print("GREATER") elif A < B: print("LESS") else: print("EQUAL")
a.cc:1:1: error: 'A' does not name a type 1 | A = int(input()) | ^
s029874267
p03738
C++
#include <bits/stdc++.h> #define rep(i, a, n) for (int i = (int)(a); i <= (int)(n); ++i) #define rrep(i, a, n) for (int i = (int)(a); i >= (int)(n); --i) #define debug(x) cerr << #x << " = " << x << "\n" #define debugv(x) \ rep(f, 0, (x.size() - 1)) cerr << x[f] << (f == (x.size() - 1) ? "\n" : " ") #define all(x) x.begin(), x.end() #define int long long using namespace std; typedef pair<int, int> pii; typedef vector<int> vi; const int MX = 1e5 + 5, INF = 5 << 28, MOD = 1e9 + 7; string A, B; void input() { cin >> A >> B; } void solve() { ; if (A.size() > B.size()) { cout << "GREATER" << endl; } else if (A.size() < B > size()) { cout << "LESS" << endl; } else { cout << (A < B ? "LESS" : (A == B ? "EQUAL" : "GREATER")) << endl; }; } signed main() { input(); solve(); return 0; }
a.cc: In function 'void solve()': a.cc:20:23: error: no match for 'operator<' (operand types are 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 20 | } else if (A.size() < B > size()) { | ~~~~~~~~ ^ ~ | | | | | std::string {aka std::__cxx11::basic_string<char>} | std::__cxx11::basic_string<char>::size_type {aka long unsigned 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:1143:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1143 | operator<(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1143:5: note: template argument deduction/substitution failed: a.cc:20:25: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} 20 | } else if (A.size() < B > size()) { | ^ /usr/include/c++/14/bits/regex.h:1224: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>&)' 1224 | operator<(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1224:5: note: template argument deduction/substitution failed: a.cc:20:25: note: mismatched types 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} 20 | } else if (A.size() < B > size()) { | ^ /usr/include/c++/14/bits/regex.h:1317: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>&)' 1317 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1317:5: note: template argument deduction/substitution failed: a.cc:20:25: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} 20 | } else if (A.size() < B > size()) { | ^ /usr/include/c++/14/bits/regex.h:1391:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1391 | operator<(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1391:5: note: template argument deduction/substitution failed: a.cc:20:25: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 20 | } else if (A.size() < B > size()) { | ^ /usr/include/c++/14/bits/regex.h:1485:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1485 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1485:5: note: template argument deduction/substitution failed: a.cc:20:25: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} 20 | } else if (A.size() < B > size()) { | ^ /usr/include/c++/14/bits/regex.h:1560:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1560 | operator<(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1560:5: note: template argument deduction/substitution failed: a.cc:20:25: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 20 | } else if (A.size() < B > size()) { | ^ /usr/include/c++/14/bits/regex.h:1660:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1660 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1660:5: note: template argument deduction/substitution failed: a.cc:20:25: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} 20 | } else if (A.size() < B > size()) { | ^ 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:1045:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1045 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed: a.cc:20:25: note: mismatched types 'const std::pair<_T1, _T2>' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} 20 | } else if (A.size() < B > size()) { | ^ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 448 | operator<(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed: a.cc:20:25: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} 20 | } else if (A.size() < B > size()) { | ^ /usr/include/c++/14/bits/stl_iterator.h:493:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 493 | operator<(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:493:5: note: template argument deduction/substitution failed: a.cc:20:25: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} 20 | } else if (A.size() < B > size()) { | ^ /usr/include/c++/14/bits/stl_iterator.h:1694:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1694 | operator<(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1694:5: note: template argument deduction/substitution failed: a.cc:20:25: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} 20 | } else if (A.size() < B > size()) { | ^ /usr/include/c++/14/bits/stl_iterator.h:1760:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1760 | operator<(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1760:5: note: template argument deduction/substitution failed: a.cc:20:25: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} 20 | } else if (A.size() < B > size()) { | ^ 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:673:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 673 | operator< (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:673:5: note: template argument deduction/substitution failed: a.cc:20:25: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'long unsigned int' 20 | } else if (A.size() < B > size()) { | ^ /usr/include/c++/14/string_view:680: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> >)' 680 | operator< (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:680:5: note: template argument deduction/substitution failed: a.cc:20:25: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'long unsigned int' 20 | } else if (A.size() < B > size()) { | ^ /usr/include/c++/14/string_view:688:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)' 688 | operator< (__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:688:5: note: template argument deduction/substitution failed: a.cc:20:25: note:
s188946161
p03738
C++
#include<bits/stdc++.h> using namespace std; #define rep(i, n) for(int i = 0; i < (n); ++i) typedef long long ll; template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1;} return 0;} template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1;} return 0;} const ll INF = 1LL << 60; int main(){ string a, b; cin >> a >> b; if(a.size() > b.size()) puts("GREATER"); else if (a.size() < b.size())puts("LESS"); else{ for(int i = 0; i < a.size(); ++i){ if(a[i] > b[i]){ puts("GREATER"); return 0; } else if{ puts("LESS"); return 0; } } puts("EQUAL"); } }
a.cc: In function 'int main()': a.cc:20:32: error: expected '(' before '{' token 20 | else if{ | ^ | (
s668544307
p03738
C++
#include<bits/stdc++.h> using namespace std; #define rep(i, n) for(int i = 0; i < (n); ++i) typedef long long ll; template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1;} return 0;} template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1;} return 0;} const ll INF = 1LL << 60; int main(){ string a, b; cin >> a >> b; if(a.size() > b.size) puts("GREATER"); else if (a.size() < b.size())puts("LESS"); else{ for(int i = 0; i < a.size(); ++i){ if(a[i] > b[i]){ puts("GREATER"); return 0; } else{ puts("LESS"); return 0; } } } puts("EQUAL"); }
a.cc: In function 'int main()': a.cc:12:25: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?) 12 | if(a.size() > b.size) puts("GREATER"); | ~~^~~~ | ()
s695959775
p03738
C
#include<stdio.h> int man(void){ int A,B; scanf("%d %d",&A,&B); if(A > B) printf("GREATER\n"); else if(A < B) printf("LESS\n"); else printf("EQUAL\n"); return 0; }
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x17): undefined reference to `main' collect2: error: ld returned 1 exit status
s681492377
p03738
C++
#include <bits/stdc++.h> using namespace std; int main(){ long long int a,b; cin>>a>>b; if(a.size()>b.size()){ cout<<"GREATER"<<endl; }else if(b.size()>a.size()){ cout<<"LESS"<<endl; }else{ for(int i=0;i<a.size();i++){ if(a[i]>b[i]){ cout<<"GREATER"<<endl; return 0; }else if(b[i]>a[i]){ cout<<"LESS"<<endl; return 0; } } cout<<"EQUAL"<<endl; } }
a.cc: In function 'int main()': a.cc:6:8: error: request for member 'size' in 'a', which is of non-class type 'long long int' 6 | if(a.size()>b.size()){ | ^~~~ a.cc:6:17: error: request for member 'size' in 'b', which is of non-class type 'long long int' 6 | if(a.size()>b.size()){ | ^~~~ a.cc:8:14: error: request for member 'size' in 'b', which is of non-class type 'long long int' 8 | }else if(b.size()>a.size()){ | ^~~~ a.cc:8:23: error: request for member 'size' in 'a', which is of non-class type 'long long int' 8 | }else if(b.size()>a.size()){ | ^~~~ a.cc:11:21: error: request for member 'size' in 'a', which is of non-class type 'long long int' 11 | for(int i=0;i<a.size();i++){ | ^~~~ a.cc:12:11: error: invalid types 'long long int[int]' for array subscript 12 | if(a[i]>b[i]){ | ^ a.cc:12:16: error: invalid types 'long long int[int]' for array subscript 12 | if(a[i]>b[i]){ | ^ a.cc:15:17: error: invalid types 'long long int[int]' for array subscript 15 | }else if(b[i]>a[i]){ | ^ a.cc:15:22: error: invalid types 'long long int[int]' for array subscript 15 | }else if(b[i]>a[i]){ | ^
s693013868
p03738
C++
#include <bits/stdc++.h> using namespace std; int main(){ string a,b; cin>>a>>b; int s=a.size(),z=b.size(); if(a==b){ cout<<"EQUAL"; }else if(s<z){ cout<<"LESS"; }else if(z<s){ cout<<"GREATER"; }else{ for(int i=s;i<=0;i++){ if(a.at(i)==b.at(i)) continue; else if(a.at(i)<b.at(i)){ cout<<"LESS"; } else cout<<"GREATER"; } cout<<endl; }
a.cc: In function 'int main()': a.cc:23:2: error: expected '}' at end of input 23 | } | ^ a.cc:4:11: note: to match this '{' 4 | int main(){ | ^
s704895615
p03738
C++
#include <bits/stdc++.h> #include <type_traits> using namespace std; #define FOR(i, a, b) for (int i = int(a); i < int(b); i++) #define REP(i, b) FOR(, 0, b) #define MP make_pair #define PB push_back #define EB emplace_back #define ALL(x) x.begin(), x.end() using pi = pair<int, int>; using vi = vector<int>; using ld = long double; int main() { int128_t a, b; cin >> a >> b; if (a == b) { cout << "EQUAL"; }else if (a > b) { cout << "GREATER"; } else { cout << "LESS"; } return 0; }
a.cc: In function 'int main()': a.cc:17:5: error: 'int128_t' was not declared in this scope; did you mean 'int8_t'? 17 | int128_t a, b; | ^~~~~~~~ | int8_t a.cc:18:12: error: 'a' was not declared in this scope 18 | cin >> a >> b; | ^ a.cc:18:17: error: 'b' was not declared in this scope 18 | cin >> a >> b; | ^
s500308722
p03738
C++
#include <iostream> #include <vector> using namespace std; string compare(string a, string b){ if(a == b)return "EQUAL"; else if(a.size() > b.size()) return "GREATER"; else if(a.size() < b.size()) return "LESS"; }else{ int t = a.size(); t--; if(a[t] == b[t]){ int n = t; while(a[n] == b[n] && n >= 0)n--; if(a[n]-'0' < b[n]-'0') return "LESS"; else return "GREATER"; }else{ if(a[t]-'0' < b[t]-'0') return "LESS"; else return "GREATER"; } } } int main(){ string a, b; cin >> a >> b; string ans; ans = compare(a, b); cout << ans; }
a.cc:11:4: error: expected unqualified-id before 'else' 11 | }else{ | ^~~~ a.cc:24:1: error: expected declaration before '}' token 24 | } | ^ a.cc: In function 'std::string compare(std::string, std::string)': a.cc:11:3: warning: control reaches end of non-void function [-Wreturn-type] 11 | }else{ | ^
s929554362
p03738
C++
#include <biys/stdc++.h> using namespace std; int main() { string a, b; cin >> a >> b; string ans = "EQUAL"; if (a.size() < b.size()) ans = "LESS"; else if (a.size() > b.size()) ans = "GREATER"; else { for (int i=0; i<a.size(); i++) { if (a[i] == b[i]) continue; else if (a[i] < b[i]) { ans = "LESS"; break; } else { ans = "GREATER"; break; } } } cout << ans << endl; }
a.cc:1:10: fatal error: biys/stdc++.h: No such file or directory 1 | #include <biys/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s511685209
p03738
C++
#include<stdio.h> #include<stdlib.h> #include<iostream> #include<string> #include<algorithm> #include<vector> #include<limits> #include<numeric> #include<type_traits> #include<math.h> #include<fstream> #include<set> using namespace std; typedef long long ll; #define rep(i, n) for(int i = 0; i < (int)(n); i++) #define repi(i,a,b) for(int i = (int)(a); i < (int)(b); i++) #define out(str) cout << str << endl #define ALL(a) (a).begin(),(a).end() #define INF (1<<29) template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; } template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; } int A,B; int main(){ cin>>A>>B; if(A>B) out("GREATER"); else if(A<B) out("LESS"); else out("EQUAL") }
a.cc: In function 'int main()': a.cc:34:1: error: expected ';' before '}' token 34 | } | ^
s588543988
p03738
Java
import java.util.*; import java.lang.*; import java.util.function.Function; public class Main { static String addZeros(String number, int digits){ while(number.length()<digits) number = "0"+number; return number; } public static void main(String[] args) { Scanner sc = new Scanner(System.in); String A = addZeros(sc.next(),110); String B = addZeros(sc.next(),110); if(A.compareTo(B)>0) System.out.println("GREATER"); if(A.compareTo(B)==0) System.out.println("EQUAL"); if(A.compareTo(B)<0) System.out.println("LESS"); } } import java.util.*; import java.lang.*; import java.util.function.Function; public class Main { static String addZeros(String number, int digits){ while(number.length()<digits) number = "0"+number; return number; } public static void main(String[] args) { Scanner sc = new Scanner(System.in); String A = addZeros(sc.next(),110); String B = addZeros(sc.next(),110); if(A.compareTo(B)>0) System.out.println("GREATER"); if(A.compareTo(B)==0) System.out.println("EQUAL"); if(A.compareTo(B)<0) System.out.println("LESS"); } }
Main.java:21: error: class, interface, enum, or record expected import java.util.*; ^ Main.java:22: error: class, interface, enum, or record expected import java.lang.*; ^ Main.java:23: error: class, interface, enum, or record expected import java.util.function.Function; ^ 3 errors
s714246849
p03738
C++
#include <algorithm> #include <iomanip> #include <random> #include <cstdio> #include <cmath> #include <map> using namespace std; typedef long long ll; #define rep(i, n) for(int i = 0; i < (int) n; i++) int main() { string a,b; cin >> a >> b; if (a.length() > b.length()) { cout << "GREATER\n"; return 0; } else if (a.length() < b.length()) { cout << "LESS\n"; return 0; } if (a > b) { cout << "GREATER\n"; } else if (a == b) { cout << "EQUAl\n"; } else { cout << "LESS\n"; } return 0; }
a.cc: In function 'int main()': a.cc:12:17: error: 'cin' was not declared in this scope 12 | string a,b; cin >> a >> b; | ^~~ a.cc:7:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 6 | #include <map> +++ |+#include <iostream> 7 | using namespace std; a.cc:15:9: error: 'cout' was not declared in this scope 15 | cout << "GREATER\n"; | ^~~~ a.cc:15:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:18:9: error: 'cout' was not declared in this scope 18 | cout << "LESS\n"; | ^~~~ a.cc:18:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:22:9: error: 'cout' was not declared in this scope 22 | cout << "GREATER\n"; | ^~~~ a.cc:22:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:24:9: error: 'cout' was not declared in this scope 24 | cout << "EQUAl\n"; | ^~~~ a.cc:24:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:26:9: error: 'cout' was not declared in this scope 26 | cout << "LESS\n"; | ^~~~ a.cc:26:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
s714415327
p03738
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); double a = Math.log(sc.nextDouble()); double b = Math.log(sc.nextDouble()); if(a > b){ System.out.println("GREATER"); }else if(a==b){ System.out.println("EQUAL"); }else{ System.out.println("LESS") } } }
Main.java:12: error: ';' expected System.out.println("LESS") ^ 1 error
s886277521
p03738
C++
#include <bits/stdc++.h> using namespace std; int main() { string a,b; cin >> a >> b; if (a.size()<b.size()){ cout << "LESS" << endl; } else if (a.size()>b.size()){ cout << "GREATER" << endl; } else { if (a<b){ cout << "LESS" << endl; } else if (a>b){ cout << "GREATER" endl; } else { cout << "EQUAL" << endl; } } }
a.cc: In function 'int main()': a.cc:18:24: error: expected ';' before 'endl' 18 | cout << "GREATER" endl; | ^~~~~ | ;
s195642312
p03738
C++
Copy Copy #include <iostream> using namespace std; int main(){ double a,b; cin>>a>>b; if(a>b){ cout<<" GREATER "; } else if(a<b){ cout<<" LESS "; } else{ cout<<" EQUAL "; } }
a.cc:1:1: error: 'Copy' does not name a type 1 | Copy | ^~~~ 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, from a.cc:3: /usr/include/c++/14/bits/postypes.h:68:11: error: 'ptrdiff_t' does not name a type 68 | typedef ptrdiff_t streamsize; // Signed integral type | ^~~~~~~~~ /usr/include/c++/14/bits/postypes.h:41:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>' 40 | #include <cwchar> // For mbstate_t +++ |+#include <cstddef> 41 | In file included from /usr/include/c++/14/bits/exception_ptr.h:38, from /usr/include/c++/14/exception:166, from /usr/include/c++/14/ios:41: /usr/include/c++/14/new:131:26: error: declaration of 'operator new' as non-function 131 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~~~ /usr/include/c++/14/new:131:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 131 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~ In file included from /usr/include/wchar.h:35, from /usr/include/c++/14/cwchar:44, from /usr/include/c++/14/bits/postypes.h:40: /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/new:132:41: error: attributes after parenthesized initializer ignored [-fpermissive] 132 | __attribute__((__externally_visible__)); | ^ /usr/include/c++/14/new:133:26: error: declaration of 'operator new []' as non-function 133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~~~ /usr/include/c++/14/new:133:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/new:134:41: error: attributes after parenthesized initializer ignored [-fpermissive] 134 | __attribute__((__externally_visible__)); | ^ /usr/include/c++/14/new:140:29: error: 'std::size_t' has not been declared 140 | void operator delete(void*, std::size_t) _GLIBCXX_USE_NOEXCEPT | ^~~ /usr/include/c++/14/new:142:31: error: 'std::size_t' has not been declared 142 | void operator delete[](void*, std::size_t) _GLIBCXX_USE_NOEXCEPT | ^~~ /usr/include/c++/14/new:145:26: error: declaration of 'operator new' as non-function 145 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT | ^~~~~~~~ /usr/include/c++/14/new:145:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 145 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/new:145:52: error: expected primary-expression before 'const' 145 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT | ^~~~~ /usr/include/c++/14/new:147:26: error: declaration of 'operator new []' as non-function 147 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT | ^~~~~~~~ /usr/include/c++/14/new:147:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 147 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/new:147:54: error: expected primary-expression before 'const' 147 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT | ^~~~~ /usr/include/c++/14/new:154:26: error: declaration of 'operator new' as non-function 154 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t) | ^~~~~~~~ /usr/include/c++/14/new:154:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 154 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t) | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/new:154:68: error: expected primary-expression before ')' token 154 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t) | ^ /usr/include/c++/14/new:155:73: error: attributes after parenthesized initializer ignored [-fpermissive] 155 | __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); | ^ /usr/include/c++/14/new:156:26: error: declaration of 'operator new' as non-function 156 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&) | ^~~~~~~~ /usr/include/c++/14/new:156:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 156 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&) | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/new:156:68: error: expected primary-expression before ',' token 156 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&) | ^ /usr/include/c++/14/new:156:70: error: expected primary-expression before 'const' 156 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&) | ^~~~~ /usr/include/c++/14/new:162:26: error: declaration of 'operator new []' as non-function 162 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t) | ^~~~~~~~ /usr/include/c++/14/new:162:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 162 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t) | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/new:162:70: error: expected primary-expression before ')' token 162 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t) | ^ /usr/include/c++/14/new:163:73: error: attributes after parenthesized initializer ignored [-fpermissive] 163 | __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); | ^ /usr/include/c++/14/new:164:26: error: declaration of 'operator new []' as non-function 164 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&) | ^~~~~~~~ /usr/include/c++/14/new:164:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 164 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&) | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/new:164:70: error: expected primary-expression before ',' token 164 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&) | ^ /usr/include/c++/14/new:164:72: error: expected primary-expression before 'const' 164 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&) | ^~~~~ /usr/include/c++/14/new:171:29: error: 'std::size_t' has not been declared 171 | void operator delete(void*, std::size_t, std::align_val_t) | ^~~ /usr/include/c++/14/new:173:31: error: 'std::size_t' has not been declared 173 | void operator delete[](void*, std::size_t, std::align_val_t) | ^~~ /usr/include/c++/14/new:179:33: error: declaration of 'operator new' as non-function 179 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT | ^~~~~~~~ /usr/include/c++/14/new:179:51: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 179 | _GLIBCXX_NODISCARD inline vo
s715035837
p03738
C
#include<stdio.h> int main(){ double a,b; scanf("%lf %lf", &a &b); if(a>b){ printf("GREATER\n"); } else if(b>a){ printf("LESS\n"); } else{ printf("EQUAL\n"); } return 0; }
main.c: In function 'main': main.c:4:23: error: invalid operands to binary & (have 'double *' and 'double') 4 | scanf("%lf %lf", &a &b); | ~~ ^ | | | double *
s456443336
p03738
C
#include<stdio.h> int main(){ double a,b; scanf("%lf %lf", &a &b); if(a>b){ x="GREATER"; } else if(b>a){ x="LESS"; } else{ x="EQUAL"; } printf("%lf\n",x); return 0; }
main.c: In function 'main': main.c:4:23: error: invalid operands to binary & (have 'double *' and 'double') 4 | scanf("%lf %lf", &a &b); | ~~ ^ | | | double * main.c:6:5: error: 'x' undeclared (first use in this function) 6 | x="GREATER"; | ^ main.c:6:5: note: each undeclared identifier is reported only once for each function it appears in
s315876811
p03738
C++
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; if(a>b){ cout << "GREATER" << endl; } else if(A==B){ cout << "EQUAL" << endl; } else{ cout << "LESS" << endl; } }
a.cc: In function 'int main()': a.cc:12:11: error: 'A' was not declared in this scope 12 | else if(A==B){ | ^ a.cc:12:14: error: 'B' was not declared in this scope 12 | else if(A==B){ | ^
s917323957
p03738
C++
#include <bits/stdc++.h> using namespace std; int main() { long long a,b; cin >> a > b; if(a > b){ cout << "GREATER" << endl; } else if(a = b){ cout << "EQUAL" << endl; } else{ cout << "LESS" << endl; } }
a.cc: In function 'int main()': a.cc:6:12: error: no match for 'operator>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'long long int') 6 | cin >> a > b; | ~~~~~~~~ ^ ~ | | | | | long long int | std::basic_istream<char>::__istream_type {aka std::basic_istream<char>} a.cc:6:12: note: candidate: 'operator>(int, long long int)' (built-in) 6 | cin >> a > b; | ~~~~~~~~~^~~ a.cc:6:12: note: no known conversion for argument 1 from 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<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:1176:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator>(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1176 | operator>(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1176:5: note: template argument deduction/substitution failed: a.cc:6:14: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 6 | cin >> a > b; | ^ /usr/include/c++/14/bits/regex.h:1236: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>&)' 1236 | operator>(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1236:5: note: template argument deduction/substitution failed: a.cc:6:14: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' 6 | cin >> a > b; | ^ /usr/include/c++/14/bits/regex.h:1329: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>&)' 1329 | operator>(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1329:5: note: template argument deduction/substitution failed: a.cc:6:14: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 6 | cin >> a > b; | ^ /usr/include/c++/14/bits/regex.h:1403:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1403 | operator>(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1403:5: note: template argument deduction/substitution failed: a.cc:6:14: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'long long int' 6 | cin >> a > b; | ^ /usr/include/c++/14/bits/regex.h:1497:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1497 | operator>(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1497:5: note: template argument deduction/substitution failed: a.cc:6:14: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 6 | cin >> a > b; | ^ /usr/include/c++/14/bits/regex.h:1573:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1573 | operator>(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1573:5: note: template argument deduction/substitution failed: a.cc:6:14: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'long long int' 6 | cin >> a > b; | ^ /usr/include/c++/14/bits/regex.h:1673:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1673 | operator>(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1673:5: note: template argument deduction/substitution failed: a.cc:6:14: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 6 | cin >> a > b; | ^ 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:1058:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator>(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1058 | operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1058:5: note: template argument deduction/substitution failed: a.cc:6:14: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::pair<_T1, _T2>' 6 | cin >> a > b; | ^ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /usr/include/c++/14/bits/stl_iterator.h:462:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 462 | operator>(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:462:5: note: template argument deduction/substitution failed: a.cc:6:14: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 6 | cin >> a > b; | ^ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 507 | operator>(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: template argument deduction/substitution failed: a.cc:6:14: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 6 | cin >> a > b; | ^ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1714 | operator>(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: template argument deduction/substitution failed: a.cc:6:14: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 6 | cin >> a > b; | ^ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1774 | operator>(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: template argument deduction/substitution failed: a.cc:6:14: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 6 | cin >> a > b; | ^ 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:695:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 695 | operator> (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:695:5: note: template argument deduction/substitution failed: a.cc:6:14: note: 'std::basic_istream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 6 | cin >> a > b; | ^ /usr/include/c++/14/string_view:702: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> >)' 702 | operator> (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:702:5: note: template argument deduction/substitution failed: a.cc:6:14: note: 'std::basic_istream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 6 | cin >> a > b; | ^ /usr/include/c++/14/string_view:710:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)' 710 | operator> (__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:710:5: note: template argument deduction/substitution failed: a.cc:6:14: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'long long int' 6 | cin >> a > b; | ^ /usr/include/c++/14/bits/basic_string.h:3915:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3915
s642670892
p03738
C++
include<bits/stdc++.h> using namespace std; int main(){ long long A,B; cin>>A; cin>>B; if(A>B) cout<<"GREATER"; else if(B>A) cout<<"LESS"; else if(A==B) cout<<"EQULE"; return 0; }
a.cc:1:1: error: 'include' does not name a type 1 | include<bits/stdc++.h> | ^~~~~~~ a.cc: In function 'int main()': a.cc:6:1: error: 'cin' was not declared in this scope 6 | cin>>A; | ^~~ a.cc:11:9: error: 'cout' was not declared in this scope 11 | cout<<"GREATER"; | ^~~~ a.cc:13:9: error: 'cout' was not declared in this scope 13 | cout<<"LESS"; | ^~~~ a.cc:15:9: error: 'cout' was not declared in this scope 15 | cout<<"EQULE"; | ^~~~
s712814554
p03738
C++
#include<bits/stdc++.h> using namespace std; int main (){ string a,b; int x,y; bool z=0; cin>>a; cin>>b; x=a.size(); y=b.size(); if(x>y) printf("GREATER\n"); else if (y>x) printf("LESS\n"); else { for (int i=0;i<x;++i){ if(a.at(i)>b.at(i)){ z=1; printf("GREATER\n"); break; } else if (a.at(i)<b.at(i)){ z=1; printf("LESS\n"); break;123456789012345678901234567890 } } if (z==0) printf("EQUAL\n"); } }
a.cc:27:15: warning: integer constant is too large for its type 27 | break;123456789012345678901234567890 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ a.cc: In function 'int main()': a.cc:27:45: error: expected ';' before '}' token 27 | break;123456789012345678901234567890 | ^ | ; 28 | } | ~
s450504530
p03738
Java
import java.util.*; public class B_059_Comparison{ public static void Main(String[] args) { Scanner sc = new Scanner(System.in); String num_a = sc.next(); String num_b = sc.next(); int a_length = num_a.length(); int b_length = num_b.length(); String message = ""; if(a_length > b_length) { message = "GREATER"; } else if(a_length < b_length) { message = "LESS"; } else { int i = 0; for(i = 0; i < a_length; i++) { int a = Integer.parseInt(num_a.charAt(i) + ""); int b = Integer.parseInt(num_b.charAt(i) + ""); if(a > b) { message = "GREATER"; break; } else if(a < b) { message = "LESS"; break; } } if(i == a_length) { message = "EQUAL"; } } System.out.println(message);
Main.java:33: error: reached end of file while parsing System.out.println(message); ^ 1 error
s752108953
p03738
C++
#include <bits/stdc++.h> using namespace std; int main(){ string A; string B; cin>>A; cin>>B; "A"=0; "B"=0; if (A>B) cout <<"GREATER"; else if(A<B) cout <<"LESS"; else cout <<"EQUAL"; }
a.cc: In function 'int main()': a.cc:10:12: error: assignment of read-only location '"A"' 10 | "A"=0; | ~~~^~ a.cc:11:12: error: assignment of read-only location '"B"' 11 | "B"=0; | ~~~^~
s543160240
p03738
C++
#include <iostream> using namespace std; int main(){ double a,b; cin>>a>>b; if(a>b){ cout<<" GREATER "; } else if(a<b){ cout<<" LESS "; } else{ cout<<" EQUAL "; }
a.cc: In function 'int main()': a.cc:19:2: error: expected '}' at end of input 19 | } | ^ a.cc:5:11: note: to match this '{' 5 | int main(){ | ^
s419173591
p03738
C++
#include <bits/stdc++.h> using namespace std; int main() { string a,b; cin >> a >> b; if(a.size() > b.size()){ cout << "GREATER" << endl; }else(a.size() < b.size()){ cout << "LESS" << endl; }else{ sort(a.begin(),a.end()); sort(b.begin(),b.end()); if(a > b){ cout << "GREATER" << endl; }else if(a < b){ cout << "LESS" << endl; }else{ cout << "EQUAL" << endl; } } }
a.cc: In function 'int main()': a.cc:9:29: error: expected ';' before '{' token 9 | }else(a.size() < b.size()){ | ^ | ; a.cc:11:4: error: 'else' without a previous 'if' 11 | }else{ | ^~~~
s910161785
p03738
Java
#include <bits/stdc++.h> #include <string> using namespace std ; int main ( ) { string x , y; cin >> x >> y ; bool flag=0; if (x.size() > y.size()) { cout << "GREATER\n" ; } else if (x.size()==y.size() ) { for (int i =0;i<x.size();i++) { if (x[i]>y[i]) { cout << "GREATER\n" ; flag=1; break ; } else if (x[i] <y[i]) { cout <<"LESS\n" ; flag=1; break ; } } if(flag==0) cout << "EQUAL\n" ; } else if (x.size()<y.size() ) cout << "LESS\n" ; else cout << "EQUAL\n" ; return 0 ; }
Main.java:1: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:2: error: illegal character: '#' #include <string> ^ Main.java:9: error: not a statement cin >> x >> y ; ^ Main.java:13: error: not a statement cout << "GREATER\n" ; ^ Main.java:21: error: not a statement cout << "GREATER\n" ; ^ Main.java:28: error: not a statement cout <<"LESS\n" ; ^ Main.java:34: error: not a statement cout << "EQUAL\n" ; ^ Main.java:38: error: not a statement cout << "LESS\n" ; ^ Main.java:40: error: not a statement cout << "EQUAL\n" ; ^ Main.java:6: error: unnamed classes are a preview feature and are disabled by default. int main ( ) ^ (use --enable-preview to enable unnamed classes) 11 errors
s855168898
p03738
Java
#include <bits/stdc++.h> #include <string> using namespace std ; int main ( ) { string x , y; cin >> x >> y ; bool flag=0; if (x.size() > y.size()) { cout << "GREATER\n" ; } else if (x.size()==y.size() ) { for (int i =0;i<x.size();i++) { if (x[i]>y[i]) { cout << "GREATER\n" ; flag=1; break ; } else if (x[i] <y[i]) { cout <<"LESS\n" ; flag=1; break ; } } if(flag==0) cout << "EQUAL\n" ; } else if (x.size()<y.size() ) cout << "LESS\n" ; else cout << "EQUAL\n" ; return 0 ; }
Main.java:1: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:2: error: illegal character: '#' #include <string> ^ Main.java:9: error: not a statement cin >> x >> y ; ^ Main.java:13: error: not a statement cout << "GREATER\n" ; ^ Main.java:21: error: not a statement cout << "GREATER\n" ; ^ Main.java:28: error: not a statement cout <<"LESS\n" ; ^ Main.java:34: error: not a statement cout << "EQUAL\n" ; ^ Main.java:38: error: not a statement cout << "LESS\n" ; ^ Main.java:40: error: not a statement cout << "EQUAL\n" ; ^ Main.java:6: error: unnamed classes are a preview feature and are disabled by default. int main ( ) ^ (use --enable-preview to enable unnamed classes) 11 errors
s679567301
p03738
C++
#include <iostream> #include <string> using namespace std; int main () { long double a,b; cin>>a>>b; a!=0; b!=o; if (a>b) cout<<"GREATER\n"; else if (a==b) cout<<"EQUIL\n"; else cout<<"LESS\n"; }
a.cc: In function 'int main()': a.cc:10:8: error: 'o' was not declared in this scope 10 | b!=o; | ^
s123687416
p03738
C++
#include <iostream> using namespace std; int main() { string A, B; cin>>A; cin>>B; if(A==B) { cout<<"EQAL" ; } else if(A>B) { cout<<"GREATER" ; } else if(A<B) { cout<<"LESS" ; } return 0;
a.cc: In function 'int main()': a.cc:15:18: error: expected '}' at end of input 15 | return 0; | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s792173637
p03738
C++
#include<bits/stdc++.h> using namespace std; #define int long long int main(void){ int a,b; cin >> a >> b; if(a>b){ cout << "GREATER" << endl; }else if(a<b){ cout << "LESS" << endl; }else{ cout << "EQUAL" << endl; } return 0; }
cc1plus: error: '::main' must return 'int'
s187847358
p03738
C++
#include<bits/stdc++.h> using namespace std; typedef long long int; int main(void){ int a,b; cin >> a >> b; if(a>b){ cout << "GREATER" << endl; }else if(a<b){ cout << "LESS" << endl; }else{ cout << "EQUAL" << endl; } return 0; }
a.cc:3:19: error: declaration does not declare anything [-fpermissive] 3 | typedef long long int; | ^~~
s135985298
p03738
C++
#include<iostream> using namespace std; int main(){ long long A,B; cin>>A>>B; if(A>B) cout<<"GREATER"; else cout<<"LESS"; else if(A==B) cout<<"EQUAL"; }
a.cc: In function 'int main()': a.cc:11:1: error: 'else' without a previous 'if' 11 | else | ^~~~
s200904464
p03738
C++
#include<iostream> using namespace std ; int main () { long double a, b; cin>>a>>b; if( (a != 0)||(b != 0)) { if(a>b) cout <<"GREATER "; else if(a <b ) cout <<"LESS "; else cout <<"EQUAL "; } return 0 ;
a.cc: In function 'int main()': a.cc:16:11: error: expected '}' at end of input 16 | return 0 ; | ^ a.cc:4:1: note: to match this '{' 4 | { | ^
s096855283
p03738
C++
#include <bits/stdc++.h> using namespace std; int main(){ string a,b; cin>>a>>b; std::stringstream s1(a); std::stringstream s2(b); if(s1< s2){ cout<<"LESS"; } if(s1>s2){ cout<<"GREATER"; } if(s1==s2){ cout<<"EQUAL"; } }
a.cc: In function 'int main()': a.cc:11:9: error: no match for 'operator<' (operand types are 'std::stringstream' {aka 'std::__cxx11::basic_stringstream<char>'} and 'std::stringstream' {aka 'std::__cxx11::basic_stringstream<char>'}) 11 | if(s1< s2){ | ~~^ ~~ | | | | | basic_stringstream<[...]> | basic_stringstream<[...]> a.cc:11:9: note: candidate: 'operator<(int, int)' (built-in) 11 | if(s1< s2){ | ~~^~~~ a.cc:11:9: note: no known conversion for argument 2 from 'std::stringstream' {aka 'std::__cxx11::basic_stringstream<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:1143:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1143 | operator<(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1143:5: note: template argument deduction/substitution failed: a.cc:11:11: note: 'std::stringstream' {aka 'std::__cxx11::basic_stringstream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 11 | if(s1< s2){ | ^~ /usr/include/c++/14/bits/regex.h:1224: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>&)' 1224 | operator<(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1224:5: note: template argument deduction/substitution failed: a.cc:11:11: note: 'std::stringstream' {aka 'std::__cxx11::basic_stringstream<char>'} is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' 11 | if(s1< s2){ | ^~ /usr/include/c++/14/bits/regex.h:1317: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>&)' 1317 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1317:5: note: template argument deduction/substitution failed: a.cc:11:11: note: 'std::stringstream' {aka 'std::__cxx11::basic_stringstream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 11 | if(s1< s2){ | ^~ /usr/include/c++/14/bits/regex.h:1391:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1391 | operator<(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1391:5: note: template argument deduction/substitution failed: a.cc:11:11: note: 'std::stringstream' {aka 'std::__cxx11::basic_stringstream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 11 | if(s1< s2){ | ^~ /usr/include/c++/14/bits/regex.h:1485:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1485 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1485:5: note: template argument deduction/substitution failed: a.cc:11:11: note: 'std::stringstream' {aka 'std::__cxx11::basic_stringstream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 11 | if(s1< s2){ | ^~ /usr/include/c++/14/bits/regex.h:1560:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1560 | operator<(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1560:5: note: template argument deduction/substitution failed: a.cc:11:11: note: 'std::stringstream' {aka 'std::__cxx11::basic_stringstream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 11 | if(s1< s2){ | ^~ /usr/include/c++/14/bits/regex.h:1660:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1660 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1660:5: note: template argument deduction/substitution failed: a.cc:11:11: note: 'std::stringstream' {aka 'std::__cxx11::basic_stringstream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 11 | if(s1< s2){ | ^~ 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:1045:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1045 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed: a.cc:11:11: note: 'std::stringstream' {aka 'std::__cxx11::basic_stringstream<char>'} is not derived from 'const std::pair<_T1, _T2>' 11 | if(s1< s2){ | ^~ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 448 | operator<(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed: a.cc:11:11: note: 'std::stringstream' {aka 'std::__cxx11::basic_stringstream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 11 | if(s1< s2){ | ^~ /usr/include/c++/14/bits/stl_iterator.h:493:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 493 | operator<(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:493:5: note: template argument deduction/substitution failed: a.cc:11:11: note: 'std::stringstream' {aka 'std::__cxx11::basic_stringstream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 11 | if(s1< s2){ | ^~ /usr/include/c++/14/bits/stl_iterator.h:1694:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1694 | operator<(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1694:5: note: template argument deduction/substitution failed: a.cc:11:11: note: 'std::stringstream' {aka 'std::__cxx11::basic_stringstream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 11 | if(s1< s2){ | ^~ /usr/include/c++/14/bits/stl_iterator.h:1760:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1760 | operator<(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1760:5: note: template argument deduction/substitution failed: a.cc:11:11: note: 'std::stringstream' {aka 'std::__cxx11::basic_stringstream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 11 | if(s1< s2){ | ^~ 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:673:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 673 | operator< (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:673:5: note: template argument deduction/substitution failed: a.cc:11:11: note: 'std::__cxx11::basic_stringstream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 11 | if(s1< s2){ | ^~ /usr/include/c++/14/string_view:680: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> >)' 680 | operator< (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:680:5: note: template argument deduction/substitution failed: a.cc:11:11: note: 'std::__cxx11::basic_stringstream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 11 | if(s1< s2){ | ^~ /usr/include/c++/14/string_view:688:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)' 688 | operator< (__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:688:5: note: template argument deduction/substitution failed: a.cc:11:11: note: 'std::__cxx11::basic_stringstream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 11 | if(s1< s2){ | ^~ /usr/include/c++/14/bits/basic_string.h:3874:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>
s579432963
p03738
C++
#include <bits/stdc++.h> using namespace std; int main(){ string a,b; cin>>a>>b; stringstream s1(a); stringstream s2(b); if(s1< s2){ cout<<"LESS"; } if(s1>s2){ cout<<"GREATER"; } if(s1==s2){ cout<<"EQUAL"; } }
a.cc: In function 'int main()': a.cc:11:9: error: no match for 'operator<' (operand types are 'std::stringstream' {aka 'std::__cxx11::basic_stringstream<char>'} and 'std::stringstream' {aka 'std::__cxx11::basic_stringstream<char>'}) 11 | if(s1< s2){ | ~~^ ~~ | | | | | basic_stringstream<[...]> | basic_stringstream<[...]> a.cc:11:9: note: candidate: 'operator<(int, int)' (built-in) 11 | if(s1< s2){ | ~~^~~~ a.cc:11:9: note: no known conversion for argument 2 from 'std::stringstream' {aka 'std::__cxx11::basic_stringstream<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:1143:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1143 | operator<(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1143:5: note: template argument deduction/substitution failed: a.cc:11:11: note: 'std::stringstream' {aka 'std::__cxx11::basic_stringstream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 11 | if(s1< s2){ | ^~ /usr/include/c++/14/bits/regex.h:1224: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>&)' 1224 | operator<(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1224:5: note: template argument deduction/substitution failed: a.cc:11:11: note: 'std::stringstream' {aka 'std::__cxx11::basic_stringstream<char>'} is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' 11 | if(s1< s2){ | ^~ /usr/include/c++/14/bits/regex.h:1317: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>&)' 1317 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1317:5: note: template argument deduction/substitution failed: a.cc:11:11: note: 'std::stringstream' {aka 'std::__cxx11::basic_stringstream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 11 | if(s1< s2){ | ^~ /usr/include/c++/14/bits/regex.h:1391:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1391 | operator<(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1391:5: note: template argument deduction/substitution failed: a.cc:11:11: note: 'std::stringstream' {aka 'std::__cxx11::basic_stringstream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 11 | if(s1< s2){ | ^~ /usr/include/c++/14/bits/regex.h:1485:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1485 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1485:5: note: template argument deduction/substitution failed: a.cc:11:11: note: 'std::stringstream' {aka 'std::__cxx11::basic_stringstream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 11 | if(s1< s2){ | ^~ /usr/include/c++/14/bits/regex.h:1560:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1560 | operator<(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1560:5: note: template argument deduction/substitution failed: a.cc:11:11: note: 'std::stringstream' {aka 'std::__cxx11::basic_stringstream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 11 | if(s1< s2){ | ^~ /usr/include/c++/14/bits/regex.h:1660:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1660 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1660:5: note: template argument deduction/substitution failed: a.cc:11:11: note: 'std::stringstream' {aka 'std::__cxx11::basic_stringstream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 11 | if(s1< s2){ | ^~ 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:1045:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1045 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed: a.cc:11:11: note: 'std::stringstream' {aka 'std::__cxx11::basic_stringstream<char>'} is not derived from 'const std::pair<_T1, _T2>' 11 | if(s1< s2){ | ^~ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 448 | operator<(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed: a.cc:11:11: note: 'std::stringstream' {aka 'std::__cxx11::basic_stringstream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 11 | if(s1< s2){ | ^~ /usr/include/c++/14/bits/stl_iterator.h:493:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 493 | operator<(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:493:5: note: template argument deduction/substitution failed: a.cc:11:11: note: 'std::stringstream' {aka 'std::__cxx11::basic_stringstream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 11 | if(s1< s2){ | ^~ /usr/include/c++/14/bits/stl_iterator.h:1694:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1694 | operator<(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1694:5: note: template argument deduction/substitution failed: a.cc:11:11: note: 'std::stringstream' {aka 'std::__cxx11::basic_stringstream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 11 | if(s1< s2){ | ^~ /usr/include/c++/14/bits/stl_iterator.h:1760:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1760 | operator<(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1760:5: note: template argument deduction/substitution failed: a.cc:11:11: note: 'std::stringstream' {aka 'std::__cxx11::basic_stringstream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 11 | if(s1< s2){ | ^~ 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:673:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 673 | operator< (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:673:5: note: template argument deduction/substitution failed: a.cc:11:11: note: 'std::__cxx11::basic_stringstream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 11 | if(s1< s2){ | ^~ /usr/include/c++/14/string_view:680: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> >)' 680 | operator< (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:680:5: note: template argument deduction/substitution failed: a.cc:11:11: note: 'std::__cxx11::basic_stringstream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 11 | if(s1< s2){ | ^~ /usr/include/c++/14/string_view:688:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)' 688 | operator< (__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:688:5: note: template argument deduction/substitution failed: a.cc:11:11: note: 'std::__cxx11::basic_stringstream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 11 | if(s1< s2){ | ^~ /usr/include/c++/14/bits/basic_string.h:3874:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>
s098044745
p03738
C++
#include<iostream> #include<string.h> using namespace std; int main(){ long long97202469720246 s,y; cin>>s; cin>>y; if((s/y)!=0) cout<<"GREATER"; else cout<<"LESS"; }
a.cc: In function 'int main()': a.cc:5:33: error: expected initializer before 's' 5 | long long97202469720246 s,y; | ^ a.cc:6:14: error: 's' was not declared in this scope 6 | cin>>s; | ^ a.cc:7:14: error: 'y' was not declared in this scope 7 | cin>>y; | ^
s616824593
p03738
C++
using namespace std; int main() { double A,B; cin>>A; cin>>B; if(A>B) { cout<<"GERATER"; } else if(A<B) cout<<"LESS"; else cout<<"EQUAL"; return 0; }
a.cc: In function 'int main()': a.cc:5:9: error: 'cin' was not declared in this scope 5 | cin>>A; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | using namespace std; a.cc:10:17: error: 'cout' was not declared in this scope 10 | cout<<"GERATER"; | ^~~~ a.cc:10:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:14:17: error: 'cout' was not declared in this scope 14 | cout<<"LESS"; | ^~~~ a.cc:14:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:18:11: error: 'cout' was not declared in this scope 18 | cout<<"EQUAL"; | ^~~~ a.cc:18:11: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
s054130963
p03738
C++
#include<iostream> using namespace std; #include<bits/stdc++.h> int main() { char A[10000],B[10000]; cin>>A>>B; int x=strlen(A); int y=strlen(B); if(x!=y){ if(x>y) cout<<"Number A Greater Than B\n"; else cout<<"Number B Greater Than A\n"; } else{ for(int i=0;i<x;i++){ if(a[i]!=b[i]){ if(a[i]>b[i]) cout<<"Number A Greater Than B\n\n"; else cout<<"Number B Greater Than A\n"; break;} if(i+1==x) cout<<"Equall\n"; continue; }} return 0; }
a.cc: In function 'int main()': a.cc:18:28: error: 'a' was not declared in this scope 18 | if(a[i]!=b[i]){ | ^ a.cc:18:34: error: 'b' was not declared in this scope 18 | if(a[i]!=b[i]){ | ^
s005917318
p03738
C++
#include<ioatream> using namespace std; #include<bits/stdc++.h> int main() { char a[10000],b[10000]; cin>>a>>b; int x=strlen(a); int y=strlen(b); if(x!=y){ if(x>y) cout<<"Number A Greater Than B\n"; else cout<<"Number B Greater Than A\n"; } else{ for(int i=0;i<x;i++){ if(a[i]!=b[i]){ if(a[i]>b[i]) cout<<"Number A Greater Than B\n\n"; else cout<<"Number B Greater Than A\n"; break; } if(i+1==x) cout<<"Equall\n"; continue; }} return 0; }
a.cc:1:9: fatal error: ioatream: No such file or directory 1 | #include<ioatream> | ^~~~~~~~~~ compilation terminated.
s940904306
p03738
C++
#include<iostream> #include<bits/stdc++.h> int main() { char a[10000],b[10000]; // scanf("%c%c",&a,&b); cin>>a>>b; int x=strlen(a); int y=strlen(b); if(x!=y){ if(x>y) //printf("Greater\n"); cout<<"Greater\n"; else //printf("Less\n"); cout<<"Less\n"; } else{ for(int i=0;i<x;i++){ if(a[i]!=b[i]){ if(a[i]>b[i]) // printf("Greater\n"); cout<<"Greater\n"; else // printf("Less\n"); cout<<"Less\n"; break; } if(i+1==x) //printf("Equall\n"); cout<<"Equall\n"; continue; }} return 0; }
a.cc: In function 'int main()': a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 7 | 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; ///< Linked to standard input | ^~~ a.cc:13:21: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 13 | cout<<"Greater\n"; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:16:21: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 16 | cout<<"Less\n"; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:23:35: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 23 | cout<<"Greater\n"; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:26:28: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 26 | cout<<"Less\n"; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:31:28: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 31 | cout<<"Equall\n"; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~
s552971836
p03738
C++
#include<stdio.h> #include<bits/stdc++.h> int main() { char a[10000],b[10000]; // scanf("%c%c",&a,&b); cin>>a>>b; int x=strlen(a); int y=strlen(b); if(x!=y){ if(x>y) //printf("Greater\n"); cout<<"Greater\n"; else //printf("Less\n"); cout<<"Less\n"; } else{ for(int i=0;i<x;i++){ if(a[i]!=b[i]){ if(a[i]>b[i]) // printf("Greater\n"); cout<<"Greater\n"; else // printf("Less\n"); cout<<"Less\n"; break; } if(i+1==x) //printf("Equall\n"); cout<<"Equall\n"; continue; }} return 0; }
a.cc: In function 'int main()': a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 7 | cin>>a>>b; | ^~~ | std::cin In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146, from a.cc:2: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~ a.cc:13:21: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 13 | cout<<"Greater\n"; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:16:21: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 16 | cout<<"Less\n"; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:23:35: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 23 | cout<<"Greater\n"; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:26:28: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 26 | cout<<"Less\n"; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:31:28: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 31 | cout<<"Equall\n"; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~
s076907799
p03738
C++
#include<bits/stdc++.h> using namespace std; int main() {double string a,b;cin>>a>>b; if(a>b) {cout<<"GREATER";} if(a<b) {cout<<"LESS";} if(a==b) {cout<<"EQUAL";} return 0; }
a.cc: In function 'int main()': a.cc:4:16: error: expected initializer before 'a' 4 | {double string a,b;cin>>a>>b; | ^ a.cc:4:25: error: 'a' was not declared in this scope 4 | {double string a,b;cin>>a>>b; | ^ a.cc:4:28: error: 'b' was not declared in this scope 4 | {double string a,b;cin>>a>>b; | ^
s657274995
p03738
C++
#include<bits/stdc++.h> using namespace std; int main() {string a,b;cin>>a>>b; if(a>=1) { if(a>b) {cout<<"GREATER";} if(a<b) {cout<<"LESS";} else {cout<<"EQUAL";} } return 0; }
a.cc: In function 'int main()': a.cc:5:5: error: no match for 'operator>=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 5 | if(a>=1) | ~^~~ | | | | | int | 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:1165:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator>=(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1165 | operator>=(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1165:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | if(a>=1) | ^ /usr/include/c++/14/bits/regex.h:1248: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>&)' 1248 | operator>=(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1248:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 5 | if(a>=1) | ^ /usr/include/c++/14/bits/regex.h:1341: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>&)' 1341 | operator>=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1341:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | if(a>=1) | ^ /usr/include/c++/14/bits/regex.h:1415:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>=(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1415 | operator>=(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1415:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 5 | if(a>=1) | ^ /usr/include/c++/14/bits/regex.h:1509:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>=(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1509 | operator>=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1509:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | if(a>=1) | ^ /usr/include/c++/14/bits/regex.h:1586:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>=(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1586 | operator>=(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1586:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 5 | if(a>=1) | ^ /usr/include/c++/14/bits/regex.h:1686:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>=(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1686 | operator>=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1686:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 5 | if(a>=1) | ^ 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:1070:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator>=(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1070 | operator>=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1070:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 5 | if(a>=1) | ^ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /usr/include/c++/14/bits/stl_iterator.h:476:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>=(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 476 | operator>=(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:476:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 5 | if(a>=1) | ^ /usr/include/c++/14/bits/stl_iterator.h:520:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>=(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 520 | operator>=(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:520:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 5 | if(a>=1) | ^ /usr/include/c++/14/bits/stl_iterator.h:1724:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>=(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1724 | operator>=(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1724:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 5 | if(a>=1) | ^ /usr/include/c++/14/bits/stl_iterator.h:1781:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>=(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1781 | operator>=(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1781:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 5 | if(a>=1) | ^ 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:739:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>=(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 739 | operator>=(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:739:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 5 | if(a>=1) | ^ /usr/include/c++/14/string_view:746: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> >)' 746 | operator>=(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:746:5: note: template argument deduction/substitution failed: a.cc:5:7: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 5 | if(a>=1) | ^ /usr/include/c++/14/string_view:754:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>=(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)' 754 | operator>=(__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:754:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int' 5 | if(a>=1) | ^ /usr/include/c++/14/bits/basic_string.h:3997:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>=(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3997 | operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3997:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'int' 5 | if(a>=1) | ^ /usr/include/c++/14/bits/basic_string.h:4011:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>=(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)' 4011 | operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:4011:5: note: template argument deduction/substitution failed: a.cc:5:7: note: mismatched types 'const _CharT*' and 'int' 5 | if(a>=1) | ^ /usr
s306726806
p03738
C++
#include<bits/stdc++.h> using namespace std; int main(){ long double A,B; cin>>A>>B; if(A>B){ cout<<"GREATER"; } if(B>A){ cout<<"LESS"; } if(A==B){ cout<"EQUAL"; } }
a.cc: In function 'int main()': a.cc:14:5: error: no match for 'operator<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [6]') 14 | cout<"EQUAL"; | ~~~~^~~~~~~~ | | | | | const char [6] | std::ostream {aka std::basic_ostream<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:1143:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1143 | operator<(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1143:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/regex.h:1224: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>&)' 1224 | operator<(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1224:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/regex.h:1317: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>&)' 1317 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1317:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/regex.h:1391:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1391 | operator<(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1391:5: note: template argument deduction/substitution failed: a.cc:14:6: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const char [6]' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/regex.h:1485:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1485 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1485:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/regex.h:1560:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1560 | operator<(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1560:5: note: template argument deduction/substitution failed: a.cc:14:6: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const char [6]' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/regex.h:1660:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1660 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1660:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 14 | cout<"EQUAL"; | ^~~~~~~ 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:1045:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1045 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::pair<_T1, _T2>' 14 | cout<"EQUAL"; | ^~~~~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 448 | operator<(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:493:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 493 | operator<(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:493:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1694:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1694 | operator<(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1694:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1760:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1760 | operator<(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1760:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 14 | cout<"EQUAL"; | ^~~~~~~ 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:673:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 673 | operator< (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:673:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/string_view:680: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> >)' 680 | operator< (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:680:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/string_view:688:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)' 688 | operator< (__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:688:5: note: template argument deduction/substitution failed: a.cc:14:6: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'const char*' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:3874:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3874 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3874:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:3888:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)' 3888 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
s418142217
p03738
C++
#include<bits/stdc++.h> using namespace std; int main(){ long double A,B; cin>>A>>B; if(A>B){ cout<<"GREATER"; } if(B>A){ cout<<"LESS"; } if(A==B){ cout<"EQUAL"; } }
a.cc: In function 'int main()': a.cc:14:5: error: no match for 'operator<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [6]') 14 | cout<"EQUAL"; | ~~~~^~~~~~~~ | | | | | const char [6] | std::ostream {aka std::basic_ostream<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:1143:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1143 | operator<(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1143:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/regex.h:1224: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>&)' 1224 | operator<(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1224:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/regex.h:1317: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>&)' 1317 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1317:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/regex.h:1391:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1391 | operator<(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1391:5: note: template argument deduction/substitution failed: a.cc:14:6: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const char [6]' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/regex.h:1485:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1485 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1485:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/regex.h:1560:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1560 | operator<(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1560:5: note: template argument deduction/substitution failed: a.cc:14:6: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const char [6]' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/regex.h:1660:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1660 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1660:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 14 | cout<"EQUAL"; | ^~~~~~~ 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:1045:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1045 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::pair<_T1, _T2>' 14 | cout<"EQUAL"; | ^~~~~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 448 | operator<(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:493:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 493 | operator<(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:493:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1694:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1694 | operator<(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1694:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1760:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1760 | operator<(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1760:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 14 | cout<"EQUAL"; | ^~~~~~~ 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:673:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 673 | operator< (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:673:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/string_view:680: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> >)' 680 | operator< (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:680:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/string_view:688:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)' 688 | operator< (__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:688:5: note: template argument deduction/substitution failed: a.cc:14:6: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'const char*' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:3874:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3874 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3874:5: note: template argument deduction/substitution failed: a.cc:14:6: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 14 | cout<"EQUAL"; | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:3888:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)' 3888 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,