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")...
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....
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 cou...
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<(...
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...
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 ...
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> #d...
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"); ...
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] > nu...
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";...
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]'...
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<[...]> | ...
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; }e...
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: e...
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; }els...
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...
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; ...
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, ...
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; ...
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 << "EQ...
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 << ...
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" << en...
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<<"L...
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...
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"; brea...
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 =...
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::...
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::...
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 ...
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 <...
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)...
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;} ...
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...
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; | ...
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()){ an...
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: expect...
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: expect...
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"; }els...
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"; }els...
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"; }els...
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; | ...
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 >...
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) pri...
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.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...
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...
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() #defin...
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(...
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, ...
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()){ | ~~~~~~~~^~ | | | | | ...
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" <<...
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.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.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; b...
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.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_std...
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....
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()) { | ~~~~~~~~ ^ ~ | ...
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...
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...
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 unsig...
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; }el...
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()){ | ...
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)){ ...
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 ...
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 decl...
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.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 | }...
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]) { ...
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...
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(Sy...
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"; ...
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 <iostr...
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"...
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" en...
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/in...
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="GR...
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...
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...
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.a...
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 | ...
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 = ...
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...
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;...
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: no...
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;...
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: no...
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...
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...
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 scop...
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: er...
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]){ ...
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]){ ...
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++){...
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...
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++){ ...
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...
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 sco...
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/incl...
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 f...
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 f...