submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s458598535 | p03737 | C++ | # include <iostream>
#include <cstdlib>
# include <vector>
# include <limits>
# include <algorithm>
# include <map>
# include <string>
# include <functional>
# include <cmath>
# include <iomanip>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
transform(a.begin(), a.end(), a.begin(), toupper)... | a.cc: In function 'int main()':
a.cc:17:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
17 | transform(a.begin(), a.end(), a.begin... |
s251783124 | p03737 | C++ | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstdlib>
#include <cstring>
#include <cmath>
using namespace std;
#define FOR(i,a,b) for (int i = (a); i < (b); i++)
#define REP(i,n) FOR(i,0,n)
//最大公約数
long gcd(long a, long b){
if (a%b==0){
return b;
}
else{
return gcd(b,a%b);
}
}
//最小公倍... | a.cc: In function 'int main()':
a.cc:41:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
41 | gets(str);
| ^~~~
| getw
|
s980754457 | p03737 | C++ | #define _USE_MATH_DEFINES // for C++
#include <cmath>
#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <algorithm>
#include <array>
#include <iterator>
#include <utility>
#include <set>
#include <random>
#include <map>
#include <stack>
#include <queue>
#include <list>
#include <fun... | a.cc: In function 'int main()':
a.cc:28:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
28 | transform(s.begin(), s.end(), s.begin... |
s563745551 | p03737 | C++ | # include <iostream>
#include <cstdlib>
# include <vector>
# include <limits>
# include <algorithm>
# include <map>
# include <string>
# include <functional>
# include <cmath>
# include <iomanip>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
transform(a.begin(), a.end(), a.begin(), toupper)... | a.cc: In function 'int main()':
a.cc:17:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
17 | transform(a.begin(), a.end(), a.begin... |
s635852626 | p03737 | C++ | #include <iostream>
#include <algorithm>
#include <cctype>
#include <string>
#include <vector>
using namespace std;
int main()
{
string s[3];
string ans;
cin>>s[0]>>s[1]>>s[2];
for(int i=0;i<3;i++)
{
ans+=s[i][0];
}
transform(ans.begin(),ans.end(),ans.begin(),toupper);
cout<<ans<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:18:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
18 | transform(ans.begin(),ans.end(),ans.b... |
s310087134 | p03737 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <algorithm>
using namespace std;
typedef long long ll;
#define INF 100000000
#define MOD 1000000007
int main()
{
const int N = 3;
string s[N];
for (int i = 0; i < N; i++) {
cin >> s[i];
}
for (int i = 0; i < N; i++) {
transf... | a.cc: In function 'int main()':
a.cc:22:26: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
22 | transform(s[i].begin(), s[i].... |
s120367056 | p03737 | Java | public class a{
public static void main(String[] args){
String firstSt = args[0].toUpperCase();
String secandSt = args[1].toUpperCase();
String thirdSt = args[2].toUpperCase();
char[] first = firstSt.toCharArray();
char[] secand ... | Main.java:1: error: class a is public, should be declared in a file named a.java
public class a{
^
1 error
|
s212123983 | p03737 | C++ | // #define _CRT_SECURE_NO_WARNINGS
// #define _USE_MATH_DEFINES
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <stack>
#include <cmath>
#include <cstdlib>
#include <functional>
#include <locale>
#include <cctype>
#include <sstream>
#... | a.cc: In function 'int main()':
a.cc:67:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
67 | transform(a.begin(), a.end(), a.begin... |
s604381726 | p03737 | C++ | #include<iostream>
#include<algorithm>
#include<math.h>
#include<vector>
#include<string>
#include <cstdlib>
using namespace std;
int main(){
string a, b, c;
cin >> a >> b >> c;
transform(a.cbegin(), a.cend(), a.begin(), toupper);
transform(b.cbegin(), b.cend(), b.begin(), toupper);
transform(c.cbegin(), c.cend(),... | a.cc: In function 'int main()':
a.cc:11:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
11 | transform(a.cbegin(), a.c... |
s013232405 | p03737 | C++ | #include<stdio.h>
int main(void){
char s[3][10];
int i;
for(i=0;i<3;i++){
gets(s[i]);
}
for(i=0;i<3;i++){
putchar((char)((s[i][0]-'a')+'A'));
}
gets("");
return 0;
} | a.cc: In function 'int main()':
a.cc:6:17: error: 'gets' was not declared in this scope; did you mean 'getw'?
6 | gets(s[i]);
| ^~~~
| getw
a.cc:11:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
11 | gets("");
| ... |
s592391357 | p03737 | C++ | #define _USE_MATH_DEFINES
#include <iostream>
#include <iomanip>
#include <cctype>
#include <cstdlib>
#include <algorithm>
#include <functional>
#include <vector>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <cfloat>
#include <map>
#include <queue>
#include <stack>
#include <list>
#include <string>
#i... | a.cc: In function 'int main()':
a.cc:216:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
216 | transform(s1.begin(),s1.end(),s1.beg... |
s056587179 | p03737 | C++ | #define _USE_MATH_DEFINES // for C++
#include <cmath>
#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <algorithm>
#include <array>
#include <iterator>
#include <utility>
#include <set>
#include <random>
#include <map>
#include <stack>
#include <queue>
#include <list>
#include <fun... | a.cc: In function 'int main()':
a.cc:27:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
27 | transform(s.begin(), s.end(), s.begin... |
s269404373 | p03737 | C++ | #define _USE_MATH_DEFINES
#include <iostream>
#include <iomanip>
#include <cctype>
#include <cstdlib>
#include <algorithm>
#include <functional>
#include <vector>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <cfloat>
#include <map>
#include <queue>
#include <stack>
#include <list>
#include <string>
#i... | a.cc: In function 'int main()':
a.cc:216:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
216 | transform(s1.begin(),s1.end(),s1.beg... |
s646252543 | p03737 | C++ | #define _USE_MATH_DEFINES // for C++
#include <cmath>
#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <algorithm>
#include <array>
#include <iterator>
#include <utility>
#include <set>
#include <random>
#include <map>
#include <stack>
#include <queue>
#include <list>
#include <fun... | a.cc: In function 'int main()':
a.cc:27:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
27 | transform(s.begin(), s.end(), s.begin... |
s300651095 | p03737 | C++ | #include<iostream>
#include<algorithm>
#include<math.h>
#include<vector>
#include<string>
#include <cstdlib>
using namespace std;
int main()
{
string a, b, c;
cin >> a >> b >> c;
transform(a.begin(), a.end(), a.begin(), toupper);
transform(b.begin(), b.end(), b.begin(), toupper);
transform(c.begin(), c.end(), c.be... | a.cc: In function 'int main()':
a.cc:12:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
12 | transform(a.begin(), a.end(), a.begin... |
s278921397 | p03737 | C++ | #include <iostream>
#include <algorithm>
#include <cstdio>
#include <cmath>
#include <math.h>
#include <string>
#include <string.h>
#include <stack>
#include <queue>
#include <vector>
#include <utility>
#include <set>
#include <map>
#include <stdlib.h>
#include <iomanip>
using namespace std;
#define ll long long
#def... | a.cc: In function 'int main()':
a.cc:31:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
31 | transform(s1.begin(), s1.end(), s1.be... |
s024285931 | p03737 | C++ | #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
using namespace std;
int main()
{
string s[3];
string ans;
cin>>s[0]>>s[1]>>s[2];
for(int i=0;i<3;i++)
{
ans+=s[i][0];
}
transform(ans.begin(),ans.end(),ans.begin(),toupper);
cout<<ans<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:17:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
17 | transform(ans.begin(),ans.end(),ans.b... |
s078289735 | p03737 | C++ | #include <iostream>
#include <string>
#include <algorithm>
#include <cctype>
using namespace std;
int main()
{
string s, ans;
for (int i = 0;i < 3;i++)
{
cin >> s;
transform(s.begin(), s.end(), s.begin(), toupper);
ans.push_back(s[0]);
}
cout << ans << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:15:26: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
15 | transform(s.begin(), s.end(),... |
s960853147 | p03737 | C++ | #define _USE_MATH_DEFINES
#include <iostream>
#include <iomanip>
#include <cctype>
#include <algorithm>
#include <functional>
#include <vector>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <cfloat>
#include <map>
#include <queue>
#include <stack>
#include <list>
#include <string>
#include <set>
#inclu... | a.cc: In function 'int main()':
a.cc:215:9: error: 'trasnform' was not declared in this scope
215 | trasnform(s1.begin(),s1.end(),s1.begin(),toupper);
| ^~~~~~~~~
|
s953934417 | p03737 | C++ | #include <iostream>
#include <string>
using namespace std;
string a, b, c;
int main() {
cin >> a >> b >> c;
string ans = "";
ans = a[0];
ans += b[0];
ans += c[0];
transform(ans.begin(), ans.end(), ans.begin(), ::toupper);
cout << ans << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:13:3: error: 'transform' was not declared in this scope
13 | transform(ans.begin(), ans.end(), ans.begin(), ::toupper);
| ^~~~~~~~~
|
s138708370 | p03737 | Java | import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.InputMismatchException;
import java.io.IOException;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author Ashish Karel rasensuriken
... | Main.java:28: error: illegal start of expression
String s1 = = in.nextString();
^
1 error
|
s344391329 | p03737 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
#include <string>
using namespace std;
using ll = long long;
#define reps(i,s,n) for(int (i) = (s) ; (i) < (n); ++(i))
#define rep(i,n) reps(i,0,n)
string s1,s2,s3;
string s4;
int main(){
cin >> s1 >> s2 >> s3;
s4 = (s1[0]);
s4 += (s2[0]);
... | a.cc: In function 'int main()':
a.cc:21:14: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
21 | transform(s4.cbegin(),s4.cend... |
s840505791 | p03737 | Java | import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.InputMismatchException;
import java.io.IOException;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author Ashish Karel rasensuriken
... | Main.java:28: error: illegal start of expression
String s1 = = in.nextString();
^
1 error
|
s887363256 | p03737 | C++ | // #define _CRT_SECURE_NO_WARNINGS
// #define _USE_MATH_DEFINES
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <stack>
#include <cmath>
#include <cstdlib>
#include <functional>
#include <locale>
#include <cctype>
#include <sstream>
#... | a.cc: In function 'int main()':
a.cc:67:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
67 | transform(a.begin(), a.end(), a.begin... |
s167503343 | 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 if(a==b)
cout<<"EQUAL"<<endl;
else{
for(int i=0;i<a.size();i++){
ll x=stoi(a[i]),y=stoi(b[i]);
if(x>y)... | a.cc: In function 'int main()':
a.cc:14:7: error: 'll' was not declared in this scope
14 | ll x=stoi(a[i]),y=stoi(b[i]);
| ^~
a.cc:15:10: error: 'x' was not declared in this scope
15 | if(x>y){
| ^
a.cc:15:12: error: 'y' was not declared in this scope
15 | if(x>y){
... |
s998427418 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
#define endl '\n'
#define Opy ios_base::sync_with_stdio(false),cin.tie(0),cout.tie(0)
typedef long long ll;
int main()
{
//Opy;
/*-------------------------------------------------
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("output.txt", ... | a.cc: In function 'int main()':
a.cc:38:2: error: expected '}' at end of input
38 | }
| ^
a.cc:11:1: note: to match this '{'
11 | {
| ^
|
s027111903 | p03738 | C++ | #include <bits/stdc++.h>
#defint int long long
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 {cout << "EQUAL" << endl;}
} | a.cc:2:2: error: invalid preprocessing directive #defint; did you mean #define?
2 | #defint int long long
| ^~~~~~
| define
|
s715725393 | p03738 | C++ | #include <bits/stdc++.h>
#define rep(i,N) for (int i = 0; i < (N); ++i)
#define all(v) v.begin(), v.end()
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int inf{int(1e9)};
int main(void){
string A, B;
cin >> A >> B;
if (A.length() > B.length()){
cout << "GREATER" << endl;
}else ... | a.cc: In function 'int main()':
a.cc:15:27: error: expected ';' before '}' token
15 | cout << "LESS" << endl
| ^
| ;
16 | }else{
| ~
|
s035786148 | 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 {
rep(i, A.size()) {
if (A.at(i) > B.at(i))
{
cout << "GREATER" << endl;
return 0;
}
else if (A.at(i) < B.at(i)) {
cout <... | a.cc: In function 'int main()':
a.cc:2:9: error: 'string' was not declared in this scope
2 | string A, B;
| ^~~~~~
a.cc:3:9: error: 'cin' was not declared in this scope
3 | cin >> A >> B;
| ^~~
a.cc:3:16: error: 'A' was not declared in this scope
3 | cin >... |
s894697327 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
using ll =long long;
#define all(v) v.begin(),v.end()
int main() {
string A,B;
cin>>A>>B;
if(A.size()>B.size()) {
cout<<"GREATER"<<endl;
return 0;
}
else if(A.size()<B.size()) {
cout<<"LESS"<<endl;
return 0;
}
for(ll i=0;i<S.size();i++) {
if(S[i... | a.cc: In function 'int main()':
a.cc:19:16: error: 'S' was not declared in this scope
19 | for(ll i=0;i<S.size();i++) {
| ^
a.cc:24:18: error: 'T' was not declared in this scope
24 | else if(S[i]<T[i]) {
| ^
|
s314069628 | p03738 | C++ | #include<bits/stdc++.h>
using namespace std;
#define int long long
#define ar array
#define vt vector
#define pb push_back
#define all(c) (c).begin(), (c).end()
#define sz(x) (int)(x).size()
#define F_OR(i, a, b, s) for (int i=(a); (s)>0?i<(b):i>(b); i+=(s))
#define F_OR1(e) F_OR(i, 0, e, 1)
#define F_OR2(i, e) F_OR... | a.cc: In function 'void solve()':
a.cc:167:23: error: expected ';' before '}' token
167 | print("EQUAL")
| ^
| ;
168 | }
| ~
|
s062612453 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int round(int a,int b){if((a%b)*2 >= b){return (a/b)+1;}return a/b;}
int gcd(int a,int b){int c;while(b!=0){c=a%b;a=b;b=c;}return a;} //最大公約数
int lcm(int ... | a.cc: In function 'int main()':
a.cc:64:33: error: 'B' was not declared in this scope
64 | cout << ( a<b ? "LESS" : a==B ? "EQUAL" : "GREATER") << endl;
| ^
|
s032567789 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int round(int a,int b){if((a%b)*2 >= b){return (a/b)+1;}return a/b;}
int gcd(int a,int b){int c;while(b!=0){c=a%b;a=b;b=c;}return a;} //最大公約数
int lcm(int ... | a.cc: In function 'int main()':
a.cc:64:33: error: 'B' was not declared in this scope
64 | cout << ( a<b ? "LESS" : a==B ? "EQUAL" : "GREATER") << endl;
| ^
a.cc: At global scope:
a.cc:67:5: error: expected declaration before '}' token
67 | }
| ^
|
s325639481 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
template <typename T>
bool PN(T x)
{
if (x <= 1)
return false;
if (x == 2)
return true;
for (int i = 2; i < sqrt(x) + 1; i++)
if (x % i == 0)
return false;
return true;
}
const long long MOD = 1e9+7;
void solve()
{
string a, b; cin >> a >> b;
... | a.cc: In function 'void solve()':
a.cc:27:12: error: no matching function for call to 'stoi(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&)'
27 | if(stoi(a[i]) > stoi(b[i])) {
| ~~~~^~~~~~
In file included from /usr/include/c++/14/string:54,
from /usr/include/c++... |
s348559866 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
template <typename T>
bool PN(T x)
{
if (x <= 1)
return false;
if (x == 2)
return true;
for (int i = 2; i < sqrt(x) + 1; i++)
if (x % i == 0)
return false;
return true;
}
const long long MOD = 1e9+7;
void solve()
{
string a, b; cin >> a >> b;
... | a.cc: In function 'void solve()':
a.cc:27:12: error: no matching function for call to 'stoi(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&)'
27 | if(stoi(a[i]) > stoi(b[i])) {
| ~~~~^~~~~~
In file included from /usr/include/c++/14/string:54,
from /usr/include/c++... |
s929766486 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a ,b;
cin >> a >> b;
if ( a.size() == b.size()){
cout << (a>b ?"LESS" : a==b ?"EQUAL" : "GREATER")
<< endl;
}else if(a.size() > b.size()){
cout << "GREATER" << endl;
}else if(a.size() < b.size()){
cout << "LESS" << ensl;
} ... | a.cc: In function 'int main()':
a.cc:13:25: error: 'ensl' was not declared in this scope
13 | cout << "LESS" << ensl;
| ^~~~
|
s118883728 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a ,b;
cin >> a >> b;
if ( a.size() == b.size()){
cout << (a>b ?"LESS" : a==b ?"EQUAL" : "GREATER")
<< endl;
}else (a.size() > b.size()){
cout << "GREATER" << endl;
}else (a.size() < b.size()){
cout << "LESS" << ensl;
}
... | a.cc: In function 'int main()':
a.cc:10:30: error: expected ';' before '{' token
10 | }else (a.size() > b.size()){
| ^
| ;
a.cc:12:4: error: 'else' without a previous 'if'
12 | }else (a.size() < b.size()){
| ^~~~
a.cc:12:30: error:... |
s345262626 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a ,b;
cin >> a >> b;
if ( a.size() == b.size(){
cout << (a>b ?"LESS" : a==b ?"EQUAL" : "GREATER")
<< endl;
}else (a.size() > b.size()){
cout << "GREATER" << endl;
}else (a.size() < b.size()){
cout << "LESS" << ensl;
}
} | a.cc: In function 'int main()':
a.cc:7:28: error: expected ')' before '{' token
7 | if ( a.size() == b.size(){
| ~ ^
| )
a.cc:15:1: error: expected primary-expression before '}' token
15 | }
| ^
|
s605871939 | p03738 | C++ | #include <bits/stdc++.h>
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 {
bool fin = false;
for (int i = 0; i < a.size(); i++) {
if (a[i] > b[i]) {
cout << "GR... | a.cc: In function 'int main()':
a.cc:30:2: error: expected '}' at end of input
30 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s632282775 | p03738 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for (int i=0; i<(int)(n); i++)
#define REP(i,m,n) for(ll i=(ll)(m);i<(ll)(n);i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
string a, b; cin >> a >> b;
int an = a.size(), bn = b.size();
string ans = "EQUAL";
if (an > bn) {
an... | a.cc:23:2: error: expected class-name at end of input
23 | ~
| ^
|
s445241069 | p03738 | Java | import java.util.Scanner;
public class Mainv {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String a = sc.next();
String b = sc.next();
int ans = 0;
//1がaが大きい、2はbが大きい、0は同じ
if(a.length() > b.length()) {
ans = 1;
}else if(a.length() < b.length()) {
ans = 2;
}else ... | Main.java:2: error: class Mainv is public, should be declared in a file named Mainv.java
public class Mainv {
^
1 error
|
s389765442 | p03738 | C++ | #include <iostream>
using namespace std;
string magnitude(string & x, string & y)
{
if( x.size() > y.size() )
return "GREATER";
else if( x.size() < y.size() )
return "LESS";
else{
for(int i = 0; i < x.size(); i++)
if( x[i] > y[i] )
return "GREATER";
else ( x[i] < y[i] )
retu... | a.cc: In function 'std::string magnitude(std::string&, std::string&)':
a.cc:13:27: error: expected ';' before 'return'
13 | else ( x[i] < y[i] )
| ^
| ;
14 | return "LESS";
| ~~~~~~
|
s883640273 | p03738 | C++ | #include <iostream>
using namespace std;
string magnitude(string & x, string & y)
{
if( x.size() > y.size() )
return "GREATER";
else if( x.size() < y.size() )
return "LESS";
else{
for(int i = 0; i < x.size(); i++)
if( x[i] > y[i] )
return "GREATER";
else ( x[i] < y[i] )
retu... | a.cc: In function 'std::string magnitude(std::string&, std::string&)':
a.cc:13:27: error: expected ';' before 'return'
13 | else ( x[i] < y[i] )
| ^
| ;
14 | return "LESS";
| ~~~~~~
a.cc:18:9: warning: empty p... |
s104188972 | p03738 | C++ | #include<bits/stdc++.h>
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;
}
}
| a.cc:16:19: warning: missing terminating " character
16 | cout<<"EQUAL;
| ^
a.cc:16:19: error: missing terminating " character
16 | cout<<"EQUAL;
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:17:9: error: expected primary-expression before '... |
s825264762 | p03738 | C++ | #include <bits/stdc++.h>
#include <boost/multiprecision/cpp_int.cpp>
#define rep(i,n)for(long long i=0;i<(long long)(n);i++)
#define all(a) a.begin(), a.end()
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll, ll> P;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { ... | a.cc:2:10: fatal error: boost/multiprecision/cpp_int.cpp: No such file or directory
2 | #include <boost/multiprecision/cpp_int.cpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
|
s685608174 | p03738 | C++ | #include <bits/stdc++.h>
#include <boost/multiprecision/cpp_int.cpp>
#define rep(i,n)for(long long i=0;i<(long long)(n);i++)
#define all(a) a.begin(), a.end()
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll, ll> P;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { ... | a.cc:2:10: fatal error: boost/multiprecision/cpp_int.cpp: No such file or directory
2 | #include <boost/multiprecision/cpp_int.cpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
|
s844179486 | p03738 | C++ | #include <bits/stdc++.h>
#include <boost/multiprecision/cpp_int.cpp>
#define rep(i,n)for(long long i=0;i<(long long)(n);i++)
#define all(a) a.begin(), a.end()
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll, ll> P;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { ... | a.cc:2:10: fatal error: boost/multiprecision/cpp_int.cpp: No such file or directory
2 | #include <boost/multiprecision/cpp_int.cpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
|
s968115346 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
long double A, B;
cin >> A >> B;
cout << ((A > B) ? "GREATER" ? (A < B) ? "LESS" : "EQUAL") << "\n";
} | a.cc: In function 'int main()':
a.cc:7:60: error: expected ':' before ')' token
7 | cout << ((A > B) ? "GREATER" ? (A < B) ? "LESS" : "EQUAL") << "\n";
| ^
| :
a.cc:7:60: error: expect... |
s736458616 | p03738 | C++ | #include <bits/stdc++.h>
#include<boost/multiprecision/cpp_int.hpp>
int main(){
boost::multiprecision::cpp_int::cpp_int A,B;
std::cin>>A>>B;
if(A>B)std::cout<<"GREATER";
else if(A<B)std::cout<<"LESS";
else std::cout<<"EQUAL";
}
| a.cc:2:9: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
2 | #include<boost/multiprecision/cpp_int.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
|
s058881645 | p03738 | C++ | #include <bits/stdc++.h>
#include<boost/multiprecision/cpp_int.hpp>
int main(){
boost::multiprecision::cpp_int::cpp_int A,B;
std::cin>>A>>B;
if(A>B)std::cout<<"GREATER";
else if(A<B)std::cout<<"LESS;
else std::cout<<"EQUAL";
}
| a.cc:2:9: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
2 | #include<boost/multiprecision/cpp_int.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
|
s442601262 | p03738 | C++ | #include<iostream>
using namespace std;
int main(){
string a,b; cin >> a >> b;
if(a == b)cout << "EQUAL" << enld;
if(a > b)cout << "GREATER" << endl;
if(a < b)cout << "LESS" << endl;
} | a.cc: In function 'int main()':
a.cc:5:32: error: 'enld' was not declared in this scope
5 | if(a == b)cout << "EQUAL" << enld;
| ^~~~
|
s051871655 | p03738 | C++ | 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:5:3: error: 'cin' was not declared in this scope
5 | cin >> a >> b;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
+++ |+#include <iostream>
1 | using namespace std;
a.cc:7:5: error: 'c... |
s151704320 | p03738 | Java | import org.omg.PortableInterceptor.SYSTEM_EXCEPTION;
import java.lang.reflect.Array;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String a = sc.next();
String b = sc.next();
if (a.length() > b.length()) {
... | Main.java:1: error: package org.omg.PortableInterceptor does not exist
import org.omg.PortableInterceptor.SYSTEM_EXCEPTION;
^
1 error
|
s516793798 | 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 if(A>B){
cout << "GREATER" << endl;
}
else if(A==B){
cout << "EQUAL" << endl;
}
else{
... | a.cc: In function 'int main()':
a.cc:10:28: error: expected ')' before '{' token
10 | else if(A.size()<B.size(){
| ~ ^
| )
a.cc:22:1: error: expected primary-expression before '}' token
22 | }
| ^
|
s912424519 | p03738 | C | #include <stdio.h>
#include <string.h>
int main(void){
int i;
char b[101],a[101];
scanf("%s%s",a,b);
if(strlen(a)>strlen(b)){
printf("GREATER\n");
}
else if(strlen(b)>strlen(a)){
printf("LESS\n\n");
}
else if{
for(i=0;i<strlen(a);i++){
... | main.c: In function 'main':
main.c:17:12: error: expected '(' before '{' token
17 | else if{
| ^
| (
|
s126050867 | p03738 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
long long double a,b;
cin>>a>>b;
if(a>b){
cout<<"GREAT"<<endl;
}
else if(a<b){
cout<<"LESS"<<endl;
}
else if(a == b){
cout<<"EQUAL"<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:4:14: error: 'long long' specified with 'double'
4 | long long double a,b;
| ^~~~
a.cc:4:14: error: 'long long' specified with 'double'
|
s026829553 | p03738 | C++ | // Created by ...Lusifer
#include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define prior priority_queue
#define MOD 1000000007
#define INF64 (long long)1e18
#define INF (int)1e9
#define PI 3.1415926535897932384626433832795
#define ll long long
#define ld long dou... | a.cc: In function 'void solveTest()':
a.cc:41:40: error: expected ';' before '{' token
41 | else(a[i]>b[i]){
| ^
| ;
|
s210001578 | p03738 | C++ | #include<iostream>
#include<string>
#include<cstdlib>
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
{
int s = a.size();
bool flag = false;
for (int i = 0; i < s; i ++)
{... | a.cc: In function 'int main()':
a.cc:21:20: error: invalid conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const char*' [-fpermissive]
21 | if (atoi(a.at(i)) > atoi(b.at(i)))
| ~~~~^~~
| |
| ... |
s065615072 | p03738 | C++ | #include<iostream>
int main()
{
string s1,s2;std::cin>>s1>>s2;
if(s1.size()>s2.size()) return puts("GREATER")*0;
else if(s1.size()<s2.size()) return puts("LESSER")*0;
else for(int i=0;i<s1.size();++i)
if(s1[i]>s2[i]) return puts("GREATER")*0;
else if(s1[i]<s2[i]) return puts("LESSER")*0;
... | a.cc: In function 'int main()':
a.cc:4:5: error: 'string' was not declared in this scope
4 | string s1,s2;std::cin>>s1>>s2;
| ^~~~~~
a.cc:4:5: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
from /usr/include/c++/14/ios:40,
from /usr... |
s787774097 | p03738 | C++ | #include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (n); i++)
#define prtd(var, i) cout << fixed << setprecision(i) << var << endl;
#define ll long long
using namespace std;
#define INF 1e18LL
const ll MAX = 1000000000000000000; //1e18
int main(){
string a, b;
ll x = 0;
cin >> a >> b;
if(a.s... | a.cc: In function 'int main()':
a.cc:14:56: error: expected primary-expression before 'return'
14 | if(a.size() > b.size()) cout << "GREATER" << endl, return 0;
| ^~~~~~
a.cc:15:58: error: expected primary-expression before 'return'
15 | else if... |
s618712064 | p03738 | C++ | #include "bits/stdc++.h"
using namespace std;
typedef long long ll;
#define REP(i, a, b) for(ll i = ll(a); i <= ll(b); i++)
int main()
{
ll a,b;
cin>>a>>b;
if(a>b)
cout<<"GREATER";
else(a<b)
cout<<"LESS";
else if(a==b)
cout<<"EQUAL";
} | a.cc: In function 'int main()':
a.cc:11:14: error: expected ';' before 'cout'
11 | else(a<b)
| ^
| ;
12 | cout<<"LESS";
| ~~~~
a.cc:13:5: error: 'else' without a previous 'if'
13 | else if(a==b)
| ^~~~
|
s463595245 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
string a,b;
cin>>a>>b;
if(a==b){cout<<"EQUAL"<<endl;return 0;}
rep(i, 0, min(a.size(),b.size()) ){
int N=a[i]-'0';
int M=b[i]-'0';
if(N>M)
{cout<<"GREATER"<<endl;return 0;}
else if(N<... | a.cc: In function 'int main()':
a.cc:9:9: error: 'i' was not declared in this scope
9 | rep(i, 0, min(a.size(),b.size()) ){
| ^
a.cc:9:5: error: 'rep' was not declared in this scope
9 | rep(i, 0, min(a.size(),b.size()) ){
| ^~~
|
s484753378 | p03738 | C++ | #include<bits/stdc++.h>
// #include <boost/lexical_cast.hpp>
using namespace std;
#define ll long long int
#define vll vector<ll>
#define vllv vector<vector<ll>>
#define sz size()
#define pb push_back
#define ff first
#define ss second
#define all(v) v.begin(),v.end()
#define allr(v) v.rbegin(),v.rend()
#define fast... | a.cc: In function 'void solve()':
a.cc:9:12: error: request for member 'size' in 'b', which is of non-class type 'long long int'
9 | #define sz size()
| ^~~~
a.cc:108:23: note: in expansion of macro 'sz'
108 | ll a=s.sz,b=b.sz;
| ^~
|
s603637278 | 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(),b=sc.next().toCharArray();
int f=0;
if(a.length>b.length){
System.out.println("GREATER");
}else if(a.length<b.length){
System.out.print... | Main.java:15: error: incompatible types: char cannot be converted to String
if(Integer.parseInt(a[i])>Integer.parseInt(b[i])){
^
Main.java:15: error: incompatible types: char cannot be converted to String
if(Integer.parseInt(a[i])>Integer.parseInt(b[i])){
... |
s567034291 | p03738 | C++ | string a, b;
cin >> a >> b;
if(a.size()<b.size()){
prt("LESS");
return 0;
} else if(a.size()>b.size()){
prt("GREATER");
return 0;
}
rep(i,a.size()){
if(a[i]<b[i]){
prt("LESS");
return 0;
} else if(a[i]>b[i]){
prt("GREATER");
return 0;
}
}
prt("EQUAL... | a.cc:1:3: error: 'string' does not name a type
1 | string a, b;
| ^~~~~~
a.cc:2:3: error: 'cin' does not name a type
2 | cin >> a >> b;
| ^~~
a.cc:4:3: error: expected unqualified-id before 'if'
4 | if(a.size()<b.size()){
| ^~
a.cc:7:5: error: expected unqualified-id before 'el... |
s023167391 | 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 {
for (int i=0; i<A.size(); i++) {
if (atoi(A.at(i))>atoi(B.at(i))) {
cout << "GREATER... | a.cc: In function 'int main()':
a.cc:11:24: error: invalid conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const char*' [-fpermissive]
11 | if (atoi(A.at(i))>atoi(B.at(i))) {
| ~~~~^~~
| |
| ... |
s507408052 | p03738 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for (int i=0; i<(n); ++i)
#define rrep(i,n) for(int i=1; i<=(n); ++i)
#define drep(i,n) for(int i=(n)-1; i>=0; --i)
#define srep(i,s,t) for (int i=s; i<t; ++i)
#define pb push_back
using namespace std;
using P = pair<int,int>;
typedef long long ll;
typedef vector<int> vi;
typed... | a.cc: In function 'int main()':
a.cc:25:28: error: expected ';' before '}' token
25 | cout << "EQUAL" << endl
| ^
| ;
26 | }
| ~
|
s238576326 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a,b;
cin >> a >> b;
int al = (int) a.size(), bl = (int) b.size();
if (al > bl) {cout << "GREATER"; return 0;}
else if (bl > al) {cout << "LESS"; return 0;}
else {
for (int i=0; i<al; i++){
if (a[i] > b[i]) {cout << "GREATER"; return 0;}
els... | a.cc: In function 'int main()':
a.cc:16:16: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
16 | return "EQUAL";
| ^~~~~~~
| |
| const char*
|
s257404035 | p03738 | Java | import java.util.*;
public class Main() {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
if (a > b) {
System.out.println("GREATER");
} else if (a < b) {
System.out.println("LESS");
... | Main.java:2: error: '{' expected
public class Main() {
^
1 error
|
s160903600 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int ctoi(const char c) {
if ('0' <= c && c <= '9') return (c - '0');
return -1;
}
vector<int> input(int n) {
vector<int> vec(n);
for (int i = 0; i < n; i++) {
cin >> vec.at(i);
}
return vec... | a.cc: In function 'int main()':
a.cc:95:8: error: 'si' was not declared in this scope; did you mean 's2'?
95 | if(si>s2){
| ^~
| s2
|
s153731921 | p03738 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
char s[200],t[200];
cin >> s >> t;
if(strlen(s)<strlen(t))cout << "LESS";
else if(strlen(s)>strlen(t))cout << "GREATER";
else if(strcmp(s,t)<0)cout << "LESS";
else if(strcmp(t,s)<0)cout << "GREATER";
else cout << "EQUAL";
/*#include<bits/stdc++... | a.cc:11:6: error: unterminated comment
11 | /*#include<bits/stdc++.h>
| ^
a.cc: In function 'int main()':
a.cc:10:24: error: expected '}' at end of input
10 | else cout << "EQUAL";
| ^
a.cc:3:11: note: to match this '{'
3 | int main(){
| ^
|
s302979331 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define INF 1e9
#define PI 3.14159265359
#define MOD 1000000007
#define ALL(v) v.begin(),v.end()
#define ALLR(v) v.rbegin(),v.rend()
typedef long long ll;
const int dx[4] = {1,0,-1,0};
const int dy[4] = {0,1,0,-1};
//isPr... | a.cc: In function 'int main()':
a.cc:22:3: warning: capture of variable 'std::cout' with non-automatic storage duration
22 | cout << "EQUAL" << endl;
| ^~~~
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:63:18: note: ... |
s531929419 | p03738 | C | #include<stdio.h>
int main()
{
unsinged long long int64 A,B;
scanf("%llu",&A);
scanf("%llu",&B);
if(A>B)
printf("GREATER\n");
else if(A<B)
printf("LESS\n");
else
printf("EQUAL\n");
return 0;
} | main.c: In function 'main':
main.c:4:9: error: 'unsinged' undeclared (first use in this function)
4 | unsinged long long int64 A,B;
| ^~~~~~~~
main.c:4:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:17: error: expected ';' before 'long'
4... |
s540861734 | p03738 | C | #include<stdio.h>
#include<string.h>
int main ()
{
string A,B;
scanf("%s%s",A,B);
if (strlen(A)>strlen(B))
printf("GREATER");
else if (strlen(A)>strlen(B))
printf("LESS");
else{
if (a>b)
printf("GREATER");
else if (a<b)
printf("LESS");
else
printf("EQUAL");
}
return 0;... | main.c: In function 'main':
main.c:5:5: error: unknown type name 'string'; did you mean 'stdin'?
5 | string A,B;
| ^~~~~~
| stdin
main.c:7:16: error: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Wint-conversion]
7 | if (strlen(A)>strlen(B))
| ... |
s257891888 | p03738 | C | #include<stdio.h>
#include<string.h>
int main ()
{
string A,B;
scanf("%s%s",A,B);
if (strlen(A)>strlen(B))
printf("GREATER");
else if (strlen(A)>strlen(B))
printf("LESS");
else{
if (a>b)
printf("GREATER");
else if (a<b)
printf("LESS");
else
printf("EQUAL");
}
return 0;... | main.c: In function 'main':
main.c:5:5: error: unknown type name 'string'; did you mean 'stdin'?
5 | string A,B;
| ^~~~~~
| stdin
main.c:7:16: error: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Wint-conversion]
7 | if (strlen(A)>strlen(B))
| ... |
s694282644 | p03738 | C | #include<stdio.h>
int main()
{
__int64 A,B;
scanf("%i64d",&A);
scanf("%i64d",&B);
if(A>B)
printf("GREATER\n");
else if(A<B)
printf("LESS\n");
else
printf("EQUAL\n");
return 0;
} | main.c: In function 'main':
main.c:4:9: error: unknown type name '__int64'; did you mean '__int64_t'?
4 | __int64 A,B;
| ^~~~~~~
| __int64_t
|
s947797729 | p03738 | C | #include<stdio.h>
int main()
{
__int64 A,B;
scanf("%l64d",&A);
scanf("%l64d",&B);
if(A>B)
printf("GREATER\n");
else if(A<B)
printf("LESS\n");
else
printf("EQUAL\n");
return 0;
} | main.c: In function 'main':
main.c:4:9: error: unknown type name '__int64'; did you mean '__int64_t'?
4 | __int64 A,B;
| ^~~~~~~
| __int64_t
|
s416349425 | p03738 | C | #include<stdio.h>
int main()
{
__int64 A,B;
scanf("%164d",&A);
scanf("%164d",&B);
if(A>B)
printf("GREATER\n");
else if(A<B)
printf("LESS\n");
else
printf("EQUAL\n");
return 0;
} | main.c: In function 'main':
main.c:4:9: error: unknown type name '__int64'; did you mean '__int64_t'?
4 | __int64 A,B;
| ^~~~~~~
| __int64_t
|
s367186766 | p03738 | C++ | int main(void){
// Your code here!
char num[2][102];
int cnt[2] = {};
scanf("%101s%101s",num[0],num[1]);
for(int i = 0; i < 2; i++){
for(int j = 0; num[i][j] != '\0'; j++){
cnt[i]++;
}
}
if(strcmp(num[0],num[1]) == 0){
printf("EQUAL\n");
... | a.cc: In function 'int main()':
a.cc:6:5: error: 'scanf' was not declared in this scope
6 | scanf("%101s%101s",num[0],num[1]);
| ^~~~~
a.cc:14:8: error: 'strcmp' was not declared in this scope
14 | if(strcmp(num[0],num[1]) == 0){
| ^~~~~~
a.cc:1:1: note: 'strcmp' is defined in head... |
s392077685 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int256_t A,B;
cin >> A >> B;
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:5:5: error: 'int256_t' was not declared in this scope; did you mean 'int16_t'?
5 | int256_t A,B;
| ^~~~~~~~
| int16_t
a.cc:6:12: error: 'A' was not declared in this scope
6 | cin >> A >> B;
| ^
a.cc:6:17: error: 'B' was not declar... |
s823133478 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s,t;
cin >> s >> t;
int a=s.size(),b=t.size();
if(a>b){
cout << "GREATER";
}else if(a<b){
cout << "LESS";
}else{
if(s>t){
cout << "GREATER";
}else if(s<t){
cout << "LESS";
}else{
cout << "EQUAL";
}
}
... | a.cc: In function 'int main()':
a.cc:20:2: error: expected '}' at end of input
20 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s865295216 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s,t;
cin >> s >> t;
int a=s.size(),b=t.size();
if(a>b){
cout << "GREATER";
}else if(a<b){
cout << "LESS";
}else{
if(s>t){
cout << "GREATER";
}else if(s<t){
cout << "LESS";
}else{
cout << "EQUAL"
}
}
... | a.cc: In function 'int main()':
a.cc:18:22: error: expected ';' before '}' token
18 | cout << "EQUAL"
| ^
| ;
19 | }
| ~
a.cc:20:2: error: expected '}' at end of input
20 | }
| ^
a.cc:4:12: note: to match this '{'
... |
s116308934 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
using ll=long long;
const ll MOD=1000000007;
const double PI=3.14159265358979;
const ll INF= pow(10,18);
typedef pair<ll,ll> P;
typedef vector<ll> vl;
typedef vector<vl> vvl;
#define FOR(i,a,b) for(ll i=a;i<b;i++)
#define rep(i,n) FOR(i,0,n)
string abc="abcdefghijklmnopqrst... | a.cc: In function 'int main()':
a.cc:21:5: error: 'x' was not declared in this scope
21 | x=1;
| ^
a.cc:24:5: error: 'x' was not declared in this scope
24 | x=-1;
| ^
a.cc:28:7: error: 'x' was not declared in this scope
28 | x=1;
| ^
a.cc:31:7: error: 'x' was not d... |
s551784888 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define vecll vector<long long>
#define vec2ll vector<vector<long long>>
#define vecbool vector<bool>
#define vecpairll vector<pair<long long,long long>>
#define forll(s,a,b) for(long long s = a;s < b;s++)
#define forllde(s,a) for(long long s = a;s > 0... | a.cc: In function 'int main()':
a.cc:17:24: error: expected ';' before 'else'
17 | cout << "EQUAL"
| ^
| ;
18 | else if (a.length() > b.length())
| ~~~~
|
s341706849 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
using ll = __SIZEOF_DOUBLE__;
#define REP(i, n) for (ll i = 0; i < n; i++)
#define INF 9223372036854775807
#define all(x) (x).begin(), (x).end()
ll ts = 1000000007;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
ll a, b;
cin >> a >> b;
if (a > b)
... | a.cc:4:12: error: expected type-specifier before numeric constant
4 | using ll = __SIZEOF_DOUBLE__;
| ^~~~~~~~~~~~~~~~~
a.cc:10:1: error: 'll' does not name a type; did you mean 'all'?
10 | ll ts = 1000000007;
| ^~
| all
a.cc: In function 'int main()':
a.cc:16:3: error: 'll' was not ... |
s227642907 | p03738 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string A,B;
cin>>A>>B;
int N=A.size();
int M=B.size();
if(A<B)
cout<<"LESS"<<endl;
else if(A>B)
cout<<"GREATER"<<endl;
else{
ans="EQUAL";
for(int i=0;i<A;i++){
if(B.at(i)<A.at(i)){
ans="GREATER"; break;
}if(A.at(i)<B.at(i))... | a.cc: In function 'int main()':
a.cc:13:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
13 | ans="EQUAL";
| ^~~
| abs
a.cc:14:18: error: no match for 'operator<' (operand types are 'int' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
14 | for(int i=0;i<A;i++)... |
s742000628 | p03738 | C++ | #include<Stdio.h>
int main(void){
long long int a,b;
scanf("%lld %lld",&a,&b);
if(a>b){
printf("GREATER");
}else if(a<b){
printf("LESS");
}else{
printf("EQUAL");
}
return 0;
} | a.cc:1:9: fatal error: Stdio.h: No such file or directory
1 | #include<Stdio.h>
| ^~~~~~~~~
compilation terminated.
|
s285951924 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define rep(i,n) for(int i=0;i<n;++i)
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 b = 1
rep(i,A.size()){
... | a.cc: In function 'int main()':
a.cc:4:18: error: expected ',' or ';' before 'for'
4 | #define rep(i,n) for(int i=0;i<n;++i)
| ^~~
a.cc:15:5: note: in expansion of macro 'rep'
15 | rep(i,A.size()){
| ^~~
a.cc:15:9: error: 'i' was not declared in this scope
15 | rep(i,A... |
s504068245 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define rep(i,n) for(int i=0;i<n;++i)
int main(){
string A,B;
cin >> A >> B;
if(.size()>B.size()){
cout << "GREATER" << endl;
}else if(A.size()<B.size()){
cout << "LESS" << endl;
}else{
bool b = 1
rep(i,A.size()){
i... | a.cc: In function 'int main()':
a.cc:9:6: error: expected primary-expression before '.' token
9 | if(.size()>B.size()){
| ^
a.cc:4:18: error: expected ',' or ';' before 'for'
4 | #define rep(i,n) for(int i=0;i<n;++i)
| ^~~
a.cc:15:5: note: in expansion of macro 'rep'
15 | ... |
s232220722 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main(){
string A,B;
cin >> A >> B;
if(.size()>B.size()){
cout << "GREATER" << endl;
}else if(A.size()<B.size()){
cout << "LESS" << endl;
}else{
bool b = 1
rep(i,A.size()){
if(A.at(i)>B.at(i)){
cout << "G... | a.cc: In function 'int main()':
a.cc:8:6: error: expected primary-expression before '.' token
8 | if(.size()>B.size()){
| ^
a.cc:14:5: error: expected ',' or ';' before 'rep'
14 | rep(i,A.size()){
| ^~~
|
s211953792 | p03738 | C++ | A = int(input())
B = int(input())
if A > B:
print('GREATER')
elif A < B:
print('LESS')
else:
print('EQUAL') | a.cc:4:11: warning: multi-character literal with 7 characters exceeds 'int' size of 4 bytes
4 | print('GREATER')
| ^~~~~~~~~
a.cc:6:11: warning: multi-character character constant [-Wmultichar]
6 | print('LESS')
| ^~~~~~
a.cc:8:11: warning: multi-character literal with 5 ... |
s864352101 | p03738 | C++ | V#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <algorithm>
#include <bitset>
#i... | a.cc:1:2: error: stray '#' in program
1 | V#include <cctype>
| ^
a.cc:1:1: error: 'V' does not name a type
1 | V#include <cctype>
| ^
In file included from /usr/include/c++/14/cmath:45,
from a.cc:7:
/usr/include/c++/14/ext/type_traits.h:164:35: error: 'constexpr const bool __gnu_cx... |
s072847259 | p03738 | C++ | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
using static _20200413.abc059_b.Cin;
using static _20200413.abc059_b.Util;
using Pair = _20200413.abc059_b.VTuple<long, long>;
/// <summary>
/// abc059
/// B - Comparison
/// https://atcoder.jp/contests/abc059/tasks/abc059_b
/... | a.cc:1:7: error: expected nested-name-specifier before 'System'
1 | using System;
| ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
2 | using System.Collections.Generic;
| ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
3 | using System.L... |
s339260913 | p03738 | C++ | A = int(input())
B = int(input())
if A > B:
print('GREATER')
elif A < B:
print('LESS')
else:
print('EQUAL')
| a.cc:5:11: warning: multi-character literal with 7 characters exceeds 'int' size of 4 bytes
5 | print('GREATER')
| ^~~~~~~~~
a.cc:7:11: warning: multi-character character constant [-Wmultichar]
7 | print('LESS')
| ^~~~~~
a.cc:9:11: warning: multi-character literal with 5 ... |
s124195531 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main(){
ill a,b;
cin >> a >> b;
if(a>b)cout <<"GREATER";
else if(a<b)cout <<"LESS";
else cout << "EQUAL";
cout << endl;
} | a.cc: In function 'int main()':
a.cc:6:5: error: 'ill' was not declared in this scope; did you mean 'll'?
6 | ill a,b;
| ^~~
| ll
a.cc:7:12: error: 'a' was not declared in this scope
7 | cin >> a >> b;
| ^
a.cc:7:17: error: 'b' was not declared in this scope
7 | ... |
s010821463 | p03738 | C++ | #include<string>
#include<iostream>
using namespace std;
string A,B;
int i=0;
int main(){
cin>>A>>B;
if(A.length()>B.length()){
cout<<"GREATER"<<endl;
}else if(A.length()<B.length()){
cout<<"LESS"<<endl;
}else{
while(i<A.length()){
if(A[i]>B[i]){
cout<<"GREATER"<<endl;
break;
}e... | a.cc: In function 'int main()':
a.cc:23:21: error: expected ';' before 'cout'
23 | if(i==(A.length())cout<<"EQUAL"<<endl;
| ^~~~
| ;
a.cc:24:3: error: expected primary-expression before '}' token
24 | }
| ^
a.cc:23:41: error: expected ')' before '}' ... |
s139503977 | p03738 | C++ | #include<string>
#include<iostream>
using namespace std;
string A,B,i=0;
int main(){
cin>>A>>B;
if(A.length()>B.length()){
cout<<"GREATER"<<endl;
}else if(A[i]<B[i]){
cout<<"LESS"<<endl;
}else{
while(i<A.length()){
if(A[i]>B[i]){
cout<<"GREATER"<<endl;
break;
}else if(A[i]<B[i])... | a.cc: In function 'int main()':
a.cc:9:13: 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>'})
9 | }else if(A[i]<B[i]){
| ^
In file included from /usr/include/c++/14/string:54,
... |
s253514344 | p03738 | C++ | #include<string>
#include<iostream>
using namespace std;
string A,B,ant;
int main(){
cin>>A>>B;
if(A.length()>B.length()){
cout<<"GREATER"<<endl;
}else if(A[i]<B[i]){
cout<<"LESS"<<endl;
}else{
while(i<A.length()){
if(A[i]>B[i]){
cout<<"GREATER"<<endl;
break;
}else if(A[i]<B[i])... | a.cc: In function 'int main()':
a.cc:9:14: error: 'i' was not declared in this scope
9 | }else if(A[i]<B[i]){
| ^
|
s284987889 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
long long a,b;
cin >> a >> b;
double a = a/1000000;
double b = b/1000000;
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:8:10: error: conflicting declaration 'double a'
8 | double a = a/1000000;
| ^
a.cc:5:12: note: previous declaration as 'long long int a'
5 | long long a,b;
| ^
a.cc:9:10: error: conflicting declaration 'double b'
9 | double b = b/1000... |
s076668424 | 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:9:17: warning: missing terminating " character
9 | cout << "GREATER
| ^
a.cc:9:17: error: missing terminating " character
9 | cout << "GREATER
| ^~~~~~~~
a.cc:10:1: warning: missing terminating " character
10 | " <<endl;
| ^
a.cc:10:1: er... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.