submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s535970832 | p03738 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string A,B;
getline(cin,A);
getline(cin,B);
if(A>B){
cout<<"GREATER";
}
if(B>A){
cout<<"LESS";
}
if(A==B){
cout<"EQUAL";
}
} | a.cc: In function 'int main()':
a.cc:15:5: error: no match for 'operator<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [6]')
15 | cout<"EQUAL";
| ~~~~^~~~~~~~
| | |
| | const char [6]
| std::ostream {aka std::basic_ostream<char>}
In file included f... |
s305165981 | p03738 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string 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... |
s649970561 | p03738 | C++ | #include<iostream>
using namespace std;
int main(){
int M,N;
cin>>M>>N;
cout<<(MN - 1)/2;
} | a.cc: In function 'int main()':
a.cc:6:16: error: 'MN' was not declared in this scope; did you mean 'N'?
6 | cout<<(MN - 1)/2;
| ^~
| N
|
s021109258 | p03738 | C++ | r#include<iostream>
using namespace std;
int main(){
int M,N;
cin>>M>>N;
cout<<(MN - 1)/2;
} | a.cc:1:2: error: stray '#' in program
1 | r#include<iostream>
| ^
a.cc:1:1: error: 'r' does not name a type
1 | r#include<iostream>
| ^
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
5 | cin>>M>>N;
| ^~~
a.cc:6:9: error: 'cout' was no... |
s535637298 | 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";
return 0;
}
| 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;
| ~~~^~
|
s164004293 | p03738 | C++ | #include <bits/std.c++.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";
return 0;
} | a.cc:1:10: fatal error: bits/std.c++.h: No such file or directory
1 | #include <bits/std.c++.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
|
s414032113 | p03738 | C++ | 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";
return 0;
}
| a.cc: In function 'int main()':
a.cc:4:5: error: 'string' was not declared in this scope
4 | string A;
| ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
+++ |+#include <string>
1 | using namespace std;
a.cc:5:11: error:... |
s118627475 | p03738 | C++ | 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";
return 0;
}
| a.cc: In function 'int main()':
a.cc:4:5: error: 'string' was not declared in this scope
4 | string A;
| ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
+++ |+#include <string>
1 | using namespace std;
a.cc:5:11: error:... |
s134232499 | 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... |
s471327082 | p03738 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{double a,b;cin>>a>>b;
if(a>=1&&b[0]>=1&&a[0]>=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:11: error: invalid types 'double[int]' for array subscript
5 | if(a>=1&&b[0]>=1&&a[0]>=1)
| ^
a.cc:5:20: error: invalid types 'double[int]' for array subscript
5 | if(a>=1&&b[0]>=1&&a[0]>=1)
| ^
|
s260487678 | p03738 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{int a[int];int b[int];cin>>a>>b;
if(a>=1&&b[0]>=1&&a[0]>=1)
{
if(a>b)
{cout<<"GREATER";}
if(a<b)
{cout<<"LESS";}
else
{cout<<"EQUAL";}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:4:8: error: expected primary-expression before 'int'
4 | {int a[int];int b[int];cin>>a>>b;
| ^~~
a.cc:4:8: error: expected ']' before 'int'
4 | {int a[int];int b[int];cin>>a>>b;
| ^~~
| ]
a.cc:4:19: error: expected primary-expression be... |
s483261387 | p03738 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{int a;int b;cin>>a>>b;
if(a>=1&&b[0]>=1&&a[0]>=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:11: error: invalid types 'int[int]' for array subscript
5 | if(a>=1&&b[0]>=1&&a[0]>=1)
| ^
a.cc:5:20: error: invalid types 'int[int]' for array subscript
5 | if(a>=1&&b[0]>=1&&a[0]>=1)
| ^
|
s859643310 | p03738 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{int a[30];int b[30];cin>>a>>b;
if(a>=1&&b[0]>=1&&a[0]>=1)
{
if(a>b)
{cout<<"GREATER";}
if(a<b)
{cout<<"LESS";}
else
{cout<<"EQUAL";}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:4:25: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int [30]')
4 | {int a[30];int b[30];cin>>a>>b;
| ~~~^~~
| | |
| | int [30]
... |
s456283366 | p03738 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{double a[38];double b[38];cin>>a>>b;
if(a>=1&&b[0]>=1&&a[0]>=1)
{
if(a>b)
{cout<<"GREATER";}
if(a<b)
{cout<<"LESS";}
else
{cout<<"EQUAL";}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:4:31: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'double [38]')
4 | {double a[38];double b[38];cin>>a>>b;
| ~~~^~~
| | |
| ... |
s951154650 | p03738 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{double a[10^100];double b[10^100];cin>>a>>b;
if(a>=1&&b[0]>=1&&a[0]>=1)
{
if(a>b)
{cout<<"GREATER";}
if(a<b)
{cout<<"LESS";}
else
{cout<<"EQUAL";}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:4:13: warning: result of '10^100' is 110; did you mean '1e100'? [-Wxor-used-as-pow]
4 | {double a[10^100];double b[10^100];cin>>a>>b;
| ^
| ---
| 1e
a.cc:4:11: note: you can silence this warning by using a hexadecimal constant (0... |
s875376109 | p03738 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{double a[];double b[];cin>>a>>b;
if(a>=1&&b[0]>=1&&a[0]>=1)
{
if(a>b)
{cout<<"GREATER";}
if(a<b)
{cout<<"LESS";}
else
{cout<<"EQUAL";}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:4:9: error: storage size of 'a' isn't known
4 | {double a[];double b[];cin>>a>>b;
| ^
a.cc:4:20: error: storage size of 'b' isn't known
4 | {double a[];double b[];cin>>a>>b;
| ^
|
s509873128 | p03738 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{string a;string b;cin>>a>>b;
if(a>=1&&b[0]>=1&&a[0]>=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&&b[0]>=1&&a[0]>=1)
| ~^~~
| | |
| | int
| std::string {aka std::__cxx11::basic_string<char>}
In file inclu... |
s756282326 | p03738 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{string a,b;cin>>a>>b;
if(a>=1&&b[0]>=1&&a[0]>=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&&b[0]>=1&&a[0]>=1)
| ~^~~
| | |
| | int
| std::string {aka std::__cxx11::basic_string<char>}
In file inclu... |
s159513546 | p03738 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{double a,b;cin>>a>>b;
if(a>=1&&a[0]>0&&b[0]>0)
{
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:5:11: error: invalid types 'double[int]' for array subscript
5 | if(a>=1&&a[0]>0&&b[0]>0)
| ^
a.cc:5:19: error: invalid types 'double[int]' for array subscript
5 | if(a>=1&&a[0]>0&&b[0]>0)
| ^
|
s778353376 | p03738 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{double a,b;cin>>a>>b;
if(a<=1&&a[0]>0&&b[0]>0)
{
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:5:11: error: invalid types 'double[int]' for array subscript
5 | if(a<=1&&a[0]>0&&b[0]>0)
| ^
a.cc:5:19: error: invalid types 'double[int]' for array subscript
5 | if(a<=1&&a[0]>0&&b[0]>0)
| ^
|
s187207593 | p03738 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{string a,b;cin>>a>>b;
if(a<=1&&a[0]>0&&b[0]>0)
{
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:5:5: error: no match for 'operator<=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
5 | if(a<=1&&a[0]>0&&b[0]>0)
| ~^~~
| | |
| | int
| std::string {aka std::__cxx11::basic_string<char>}
In file include... |
s296294429 | p03738 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{string a,b;cin>>a>>b;
if(a<=1&&a[0]!=0&&b[0]!=0)
{
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:5:5: error: no match for 'operator<=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
5 | if(a<=1&&a[0]!=0&&b[0]!=0)
| ~^~~
| | |
| | int
| std::string {aka std::__cxx11::basic_string<char>}
In file inclu... |
s702324752 | p03738 | C++ | ً#include<iostream>
#include<string>
using namespace std;
int main(){
double long a,b;
cin>>a>>b;
if(a>b)
cout<<"GREATER\n";
else if(a<b)
cout<<"LESS\n";
else
cout<<"EQUAL\n";
} | a.cc:1:1: error: stray '#' in program
1 | ً#include<iostream>
| ^
a.cc:1:1: error: '\U0000064b' does not name a type
1 | ً#include<iostream>
|
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from a.cc:2:
/usr/in... |
s051108658 | p03738 | C++ | ً#include<bits/stdc++.h>
using namespace std;
int main(){
string a,b;
cin>>a>>b;
if(a>b)
cout<<"GRATER";
else if(a<b)
cout<<"LESS";
else
cout<<"EQUAL";
} | a.cc:1:1: error: stray '#' in program
1 | ً#include<bits/stdc++.h>
| ^
a.cc:1:1: error: '\U0000064b' does not name a type
1 | ً#include<bits/stdc++.h>
|
a.cc: In function 'int main()':
a.cc:4:9: error: 'string' was not declared in this scope
4 | string a,b;
| ^~~~~~
a.cc:... |
s592980681 | p03738 | C++ | ً#include<bits/stdc++.h>
using namespace std;
int main(){
string a,b;
cin>>a>>b;
if(a>b)
cout<<"GRATER\n";
else if(a<b)
cout<<"LESS\n";
else
cout<<"EQUAL\n";
} | a.cc:1:1: error: stray '#' in program
1 | ً#include<bits/stdc++.h>
| ^
a.cc:1:1: error: '\U0000064b' does not name a type
1 | ً#include<bits/stdc++.h>
|
a.cc: In function 'int main()':
a.cc:4:9: error: 'string' was not declared in this scope
4 | string a,b;
| ^~~~~~
a.cc:... |
s556928729 | p03738 | C++ | ً#include<bits\stdc++.h>
using namespace std;
int main(){
string a,b;
cin>>a>>b;
if(a>b)
cout<<"GRATER\n";
else if(a<b)
cout<<"LESS\n";
else
cout<<"EQUAL\n";
} | a.cc:1:1: error: stray '#' in program
1 | ً#include<bits\stdc++.h>
| ^
a.cc:1:14: error: stray '\' in program
1 | ً#include<bits\stdc++.h>
| ^
a.cc:1:1: error: '\U0000064b' does not name a type
1 | ً#include<bits\stdc++.h>
|
a.cc: In function 'int main()':
a.cc:4:9: error: '... |
s743207573 | p03738 | C++ | ً#include<iostream>
#include<string>
using namespace std;
int main(){
string a,b;
cin>>a>>b;
if(a>b)
cout<<"GRATER\n";
else if(a<b)
cout<<"LESS\n";
else
cout<<"EQUAL\n";
} | a.cc:1:1: error: stray '#' in program
1 | ً#include<iostream>
| ^
a.cc:1:1: error: '\U0000064b' does not name a type
1 | ً#include<iostream>
|
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from a.cc:2:
/usr/in... |
s120038659 | p03738 | C++ | ً#include<iostream>
#include<string>
using namespace std;
int main(){
string a,b;
cin>>a>>b;
if(a>b)
cout<<"GRATER\n";
else if(a<b)
cout<<"LESS\n";
else
cout<<"EQUAL\n";
} | a.cc:1:1: error: stray '#' in program
1 | ً#include<iostream>
| ^
a.cc:1:1: error: '\U0000064b' does not name a type
1 | ً#include<iostream>
|
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from a.cc:2:
/usr/in... |
s874164375 | p03738 | C++ | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int long long a, b;
scanf_s("%d %d", &a, &b);
if (a > b)
printf_s("GREATER");
else if (a < b)
printf_s("LESS");
else if (a = b)
printf_s("EQUAL");
} | a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
6 | scanf_s("%d %d", &a, &b);
| ^~~~~~~
| scanf
a.cc:8:17: error: 'printf_s' was not declared in this scope; did you mean 'printf'?
8 | printf_s("G... |
s048406842 | p03738 | C++ | #include <bits/stdc++.h>
#include <math.h>
using namespace std;
int main(){
int N;
long long B;
long long X=pow(10,100);
scanf("%d%lld",&N,&B);
if(N>=1&&B<=X){
if(N>B)
cout<"GRATER";
else
cout<<"LESS";
}
} | a.cc: In function 'int main()':
a.cc:8:16: warning: overflow in conversion from 'double' to 'long long int' changes value from '1.0e+100' to '9223372036854775807' [-Woverflow]
8 | long long X=pow(10,100);
| ~~~^~~~~~~~
a.cc:12:5: error: no match for 'operator<' (operand types are 'std::ostream' {a... |
s081813785 | p03738 | C++ | #include<iostream>
using namespace std;
int main(){
long long int int x,y;
cin>>x>>y;
if(x>y)
cout<<"GREATER";
else if (x<y)
cout<<"LESS";
else
cout<<"EQUAL";
} | a.cc: In function 'int main()':
a.cc:4:19: error: two or more data types in declaration of 'x'
4 | long long int int x,y;
| ^~~
a.cc:4:19: error: two or more data types in declaration of 'y'
a.cc:5:14: error: 'x' was not declared in this scope
5 | cin>>x>>y;
| ... |
s136876763 | p03738 | C++ | #include<iostream>
using namespace std;
int main(){
long long int long long x,y;
cin>>x>>y;
if(x>y)
cout<<"GREATER";
else if (x<y)
cout<<"LESS";
else
cout<<"EQUAL";
} | a.cc: In function 'int main()':
a.cc:4:23: error: 'long long long' is too long for GCC
4 | long long int long long x,y;
| ^~~~
a.cc:4:28: error: 'long long long' is too long for GCC
4 | long long int long long x,y;
| ^~~~
|
s031123196 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
int main ()
{
long long A[10^100],B[10^100];
cin>>A[10^100]>>B[10^100];
A[0] =!0;
B[0] =!0;
if (A[10^100]==B[10^100])
cout<<"EQUAL\n";
else if (A[10^100]>B[10^100])
cout<<"GREATER\n";
else cout<<"LESS\n";
return 0;
| a.cc: In function 'int main()':
a.cc:6:23: warning: result of '10^100' is 110; did you mean '1e100'? [-Wxor-used-as-pow]
6 | long long A[10^100],B[10^100];
| ^
| ---
| 1e
a.cc:6:21: note: you can silence this warning by using a ... |
s498377148 | p03738 | C++ | #include<iostream>
using namespace std;
int main(){
string A;
string B;
cin>>A;
cin>>B;
if(A>0&&B>0)
if(A>B){
cout<<"GREATER"<<endl;
}
else if(A<B){
cout<<"LESS"<<endl;
}
else{
cout<<"EQUAL"<<endl;}
} | a.cc: In function 'int main()':
a.cc:8:13: error: no match for 'operator>' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
8 | if(A>0&&B>0)
| ~^~
| | |
| | int
| std::string {aka std::__cxx11::basic_stri... |
s787748218 | p03738 | C++ | using namespace std;
int main(){
long long A;
long long B;
cin>>A;
cin>>B;
if(A>0&&B>0)
if(A>B){
cout<<"GREATER"<<endl;
}
else if(A<B){
cout<<"LESS"<<endl;
}
else{
cout<<"EQUAL"<<endl;}
} | a.cc: In function 'int main()':
a.cc: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:9:25: err... |
s324709691 | p03738 | C++ | #include<iostream>
using namespace std;
int main(){
string A;
string B;
cin>>A;
cin>>B;
if(A>0&&B>0){
if(A>B)
cout<<"GREATER"<<endl;
else if(A<B)
cout<<"LESS"<<endl;
else
cout<<"EQUAL"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:8:13: error: no match for 'operator>' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
8 | if(A>0&&B>0){
| ~^~
| | |
| | int
| std::string {aka std::__cxx11::basic_str... |
s255401335 | p03738 | C++ | #include<iostream>
using namespace std;
int main(){
int A;
string B;
cin>>A;
cin>>B;
if(A>0&&B>0){
if(A>B)
cout<<"GREATER"<<endl;
else if(A<B)
cout<<"LESS"<<endl;
else
cout<<"EQUAL"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:8:18: error: no match for 'operator>' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
8 | if(A>0&&B>0){
| ~^~
| | |
| | int
| std::string {aka std... |
s806640070 | p03738 | C++ | #include<iostream>
using namespace std;
int main(){
int A,B;
cin>>A>>B;
if(A!=0&&B!=0){
if(A>B)
cout<<"GREATER"<<endl;
else if(A<B)
cout<<"LESS"<<endl;
else
cout<<"EQUAL"<<endl;
}
| a.cc: In function 'int main()':
a.cc:13:10: error: expected '}' at end of input
13 | }
| ^
a.cc:3:11: note: to match this '{'
3 | int main(){
| ^
|
s691164562 | 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 if(A==B)cout << "EQUAL";
else if{
for(int i=0;true;i++){
if(A[i]>B[i]){
cout << "GREATER";
break;
... | a.cc: In function 'int main()':
a.cc:10:10: error: expected '(' before '{' token
10 | else if{
| ^
| (
|
s574838930 | p03738 | C++ | #include<bits/stdc++>
using namespace std;
int main(){
string a,b;cin>>a>>b;
if(a==b)cout<<"EQUAL"<<endl,exit(0);
if(a.size()>b.size())cout<<"GREATER"<<endl;exit(0);
if(a.size()<b.size())cout<<"LESS"<<endl;exit(0);
for(int i=0;i<a.size();i++){
if(a[i]>b[i])cout<<"GREATER"<<endl;exit(0);
if(a[i]<b[i])cout<... | a.cc:1:9: fatal error: bits/stdc++: No such file or directory
1 | #include<bits/stdc++>
| ^~~~~~~~~~~~~
compilation terminated.
|
s981993639 | 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++){
if(a.at(i)>b.at(i)){
cout<<"GREATER"<<endl;
br... | a.cc: In function 'int main()':
a.cc:9:31: error: expected ';' before ')' token
9 | for(int i=0;i<a.size()<i++){
| ^
| ;
|
s852105322 | p03738 | C++ | #include <iostream>
#include <fstream>
#include <vector>
#include <algorithm>
#include <cmath>
using namespace std;
int main(int argc, const char * argv[]) {
if(sa == sb){
cout << "EQUAL" << endl;
}else if(sa.size() > sb.size() || (sa.size() == sb.size() && sa > sb)){
cout << "GREATER" << endl;
}else{
... | a.cc: In function 'int main(int, const char**)':
a.cc:10:6: error: 'sa' was not declared in this scope
10 | if(sa == sb){
| ^~
a.cc:10:12: error: 'sb' was not declared in this scope
10 | if(sa == sb){
| ^~
|
s906858260 | p03738 | Java | import util.java.*;
public class Main {
static Scanner scanner = new Scanner(System.in);
public static void main(String[]$) {
int compare = scanner.next().compareTo(scanner.next());
System.out.println(compare == 1 ? "GREATER" : compare == 0 ? "EQUAL" : "LESS");
}
} | Main.java:4: error: cannot find symbol
static Scanner scanner = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:1: error: package util.java does not exist
import util.java.*;
^
Main.java:4: error: cannot find symbol
static Scanner scanner = new Scanner(System.in);
... |
s351427397 | p03738 | Java | import util.java.*;
public class Main {
static Scanner scanner = new Scanner(System.in);
public static void main(String[]$) {
int compare = scanner.next().compareTo(scanner.next());
System.out.println(compare == 1 ? "GREATER" : compare == 0 ? "EQUAL" : "LESS");
}
} | Main.java:4: error: cannot find symbol
static Scanner scanner = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:1: error: package util.java does not exist
import util.java.*;
^
Main.java:4: error: cannot find symbol
static Scanner scanner = new Scanner(System.in);
... |
s724437973 | p03738 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string A,B;
cin>>A>>B;
if(A.size()!=B.size()){
if(A.size()>B.size()){
cout<<"GREATER"<<endl;
}
else if(A.size()<B.size()){
cout<<"LESS"<<endl;
}
else{
cout<<"EQUAL"<<endl;
}
}
else if(A.size()==B.... | a.cc: In function 'int main()':
a.cc:30:15: error: no matching function for call to 'std::__cxx11::basic_string<char>::size(int&)'
30 | if(A.size(i)-'0'!=B.size()-'0'){
| ~~~~~~^~~
In file included from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bitset:52,
... |
s567683406 | p03738 | C++ | #include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
int main(){
usigned long long A,B;
cin>>A>>B;
if(A>B){
cout<<"GREATER"<<endl;
}else if(A<B){
cout<<"LESS"<<endl;
}else{
cout<<"EQUAL"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:6:5: error: 'usigned' was not declared in this scope; did you mean 'unsigned'?
6 | usigned long long A,B;
| ^~~~~~~
| unsigned
a.cc:7:10: error: 'A' was not declared in this scope
7 | cin>>A>>B;
| ^
a.cc:7:13: error: 'B' was not dec... |
s650568173 | p03738 | C++ | #include <bits/stdc++.h>
#define x first
#define y second
#define pii pair<int,int>
using namespace std;
int main() {
// your code goes here
string num1,num2;
cin>>num1>>num2;
int res = s1.compare(s2);
if(res==0) printf("EQUAL");
else printf("%s\n", res <0 ? "GREATER" : "LESS");
return 0;
} | a.cc: In function 'int main()':
a.cc:11:19: error: 's1' was not declared in this scope; did you mean 'y1'?
11 | int res = s1.compare(s2);
| ^~
| y1
a.cc:11:30: error: 's2' was not declared in this scope
11 | int res = s1.compare(s2);
| ... |
s176891909 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
vector<int> A;
vector<int> B;
cin>>A>>B;
int C==A.size() -1;
if(A.size()>B.size())
cout<<"GREATER"<<endl;
if(A.size()<B.size())
cout<<"LESS"<<endl;
if(A.size()==B.size()){
for(int i=0;i<1000;i++){
if(A.at(i)>B.at(i)){
cout<<"GREATER"<<endl;
break;
... | a.cc: In function 'int main()':
a.cc:7:4: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::vector<int>')
7 | cin>>A>>B;
| ~~~^~~
| | |
| | std::vector<int>
| std::istream {aka std::basic_istream<char>}
In file included from /... |
s048303782 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
vector<int> A;
vector<int> B;
cin>>A>>B;
int C==A.size() -1;
if(A.size()>B.size())
cout<<"GREATER"<<endl;
if(A.size()<B.size())
cout<<"LESS"<<endl;
if(A.size()==B.size()){
for(int i=0;i<1000;i++){
if(A.at(i)>B.at(i)){
cout<<"GREATER"<<endl;
break;
}
if(A.... | a.cc:6:1: error: 'cin' does not name a type
6 | cin>>A>>B;
| ^~~
a.cc:7:6: error: expected initializer before '==' token
7 | int C==A.size() -1;
| ^~
a.cc:8:1: error: expected unqualified-id before 'if'
8 | if(A.size()>B.size())
| ^~
a.cc:10:1: error: expected unqualified-id before 'i... |
s623735038 | p03738 | C++ | #include<bits/stdc++.h>
#include<math.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(a[i]==b[i]){
if(i!=a.size()-1){
continue;
... | a.cc: In function 'int main()':
a.cc:33:2: error: expected '}' at end of input
33 | }
| ^
a.cc:5:11: note: to match this '{'
5 | int main(){
| ^
|
s692571573 | p03738 | C++ | #include <iostream>
#include <string>
#define rep(i, n) for(int i = 0; i < n; i++)
using namespace std;
signed main() {
string a, b; cin >> a >> b;
if(a == b) {
cout << "EQUAL" << endl;
return 0;
}
if(a.size() > b.size()) {
cout << "GREATER" << endl;
} else if(a.size() < b.size()) {
cout <<... | a.cc: In function 'int main()':
a.cc:21:5: error: 'sort' was not declared in this scope; did you mean 'short'?
21 | sort(l, l+2);
| ^~~~
| short
|
s616790327 | p03738 | C++ | #include<iostream>
#include <vector>
#include <string>
#include <cmath>
#include <algorithm>
using namespace std;
int main(void)
{
string s1, s2;
cin >> s1;
cin >> s2;
if (s1.size() == s2.size())
{
if (s1 > s2)
{
cout << "GREATER" << endl;
}
else if (s1 < s2)
{
cout << "LESS" << endl;
... | a.cc:21:25: error: extended character is not valid in an identifier
21 |
| ^
a.cc:26:25: error: extended character is not valid in an identifier
26 |
| ^
a.cc:31:25: error: extended character is n... |
s190819963 | p03738 | C++ | #include<iostream>
#include <vector>
#include <string>
#include <cmath>
#include <deque>
#include <utility>
#include <algorithm>
using namespace std;
int main(void)
{
string s1, s2;
cin >> s1;
cin >> s2;
if (s1.size() == s2.size())
{
if (s1 > s2)
{
cout << "GREATER" << endl;
}
else if (s1 < s2... | a.cc:23:25: error: extended character is not valid in an identifier
23 |
| ^
a.cc:27:25: error: extended character is not valid in an identifier
27 | cout << "LESS" << endl;
| ^
a.cc:28:25: error: e... |
s256671609 | p03738 | C++ | #include <iostream>
#include <vector>
#include <string>
#include <cmath>
#include <deque>
#include <utility>
#include <algorithm>
using namespace std;
int main(void){
string s1, s2;
cin>>s1;
cin>>s2;
if(s1.size()==s2.size()){
if(s1>s2){
cout<<"GREATER"<<endl;
}else if(s1<s2){
... | a.cc:13:1: error: extended character is not valid in an identifier
13 |
| ^
a.cc:16:1: error: extended character is not valid in an identifier
16 |
| ^
a.cc:19:5: error: extended character is not valid in an identifier
19 | if(s1>s2){
| ^
a.cc:21:1: error: extended characte... |
s128255678 | p03738 | C++ | #include <iostream>
#include <vector>
#include <string>
#include <cmath>
#include <deque>
#include <utility>
#include <algorithm>
using namespace std;
int main(void){
string s1, s2;
cin>>s1;
cin>>s2;
if(s1.size()==s2.size()){
if(s1>s2){
cout<<"GREATER"<<endl;
}else if(s1<s2){
cout<<"LESS"<<en... | a.cc:12:1: error: extended character is not valid in an identifier
12 | string s1, s2;
| ^
a.cc:13:1: error: extended character is not valid in an identifier
13 |
| ^
a.cc:14:1: error: extended character is not valid in an identifier
14 | cin>>s1;
| ^
a.cc:15:1: error: extended char... |
s063890342 | p03738 | C++ | #include <iostream>
#include <vector>
#include <string>
#include <cmath>
#include <deque>
#include <utility>
#include <algorithm>
using namespace std;
int main(void){
string s1, s2;
cin>>s1>>s2;
if(s1.size()==s2.size()){
if(s1>s2){
cout<<"GREATER"<<endl;
}else if(s1<s2){
cout<<"LESS"<<endl;
}... | a.cc:12:1: error: extended character is not valid in an identifier
12 | string s1, s2;
| ^
a.cc:13:1: error: extended character is not valid in an identifier
13 |
| ^
a.cc:14:1: error: extended character is not valid in an identifier
14 | cin>>s1>>s2;
| ^
a.cc:15:1: error: extended ... |
s559645728 | 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;
int i = 0, check = 0;
while(i < a.size()){
if(a.at(i) > b.at(i)){
check = 1;
break;
}
... | a.cc: In function 'int main()':
a.cc:21:8: error: expected ';' before '}' token
21 | i++
| ^
| ;
22 | }
| ~
|
s920938939 | p03738 | C++ | #include <iostream>
#include <cstdio>
#include <string>
#include <cstdlib>
#include <vector>
#include <algorithm>
#include <functional>
#include <iomanip>
#include <stdlib.h>
#include <cmath>
#include <map>
#include <queue>
#include <deque>
#include <stack>
#include <set>
const long long INF = 1e9 + 7;
using namespace ... | a.cc: In function 'int main()':
a.cc:35:2: error: expected '}' at end of input
35 | }
| ^
a.cc:20:1: note: to match this '{'
20 | {
| ^
|
s793003042 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> P;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
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.cc:22:5: error: expected unqualified-id before 'return'
22 | return 0;
| ^~~~~~
a.cc:24:1: error: expected declaration before '}' token
24 | }
| ^
|
s153927838 | p03738 | C++ | #include <iostream>
#include <vector>
#include <string>
#include <cstdlib>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <stack>
#include <math.h>
#include <map>
#define Z class
#define ln cout<<'\n'
#define ll long long
#define rep(i, n) for(int i = 0; i < (n); ++i)
//ASCII a=97, A=65
// int H[N];... | a.cc: In function 'int main()':
a.cc:54:2: error: expected '}' at end of input
54 | }
| ^
a.cc:31:11: note: to match this '{'
31 | int main(){
| ^
|
s184573335 | p03738 | C++ | a = int(input())
b = int(input())
if a < b:
print("LESS")
else:
print("GREATER") | a.cc:1:1: error: 'a' does not name a type
1 | a = int(input())
| ^
|
s825030931 | p03738 | C++ | #include <iostream>
using namespace std;
int main(void){
string A,B;
int ans;
cin >> A >> B;
if(A.length() > B.length()){
ans = 1;
}else if(A.length() < B.length()){
ans = 2;
}else if(A.length == B.length){
for(int i = 0; i < A.length(); i++){
if(A[i] > B... | a.cc: In function 'int main()':
a.cc:12:16: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long uns... |
s408642408 | p03738 | C++ | #include <iostream>
#include <sstream>
#include <vector>
#include <string>
#include <cmath>
#include <algorithm>
#include <map>
#include <stdio.h>
using namespace std;
//typedefリスト
typedef vector<long long int> vint;
typedef vector<string> vstr;
typedef long long int llint;
int main(void) {
string A, B;
cin >> A... | a.cc: In function 'int main()':
a.cc:28:26: error: expected unqualified-id before '=' token
28 | for (int = ; i < sizA; i++){
| ^
a.cc:28:25: error: expected ';' before '=' token
28 | for (int = ; i < sizA; i++){
| ^~
... |
s983764093 | p03738 | C++ | #include <iostream>
#include <sstream>
#include <vector>
#include <string>
#include <cmath>
#include <algorithm>
#include <map>
#include <stdio.h>
using namespace std;
//typedefリスト
typedef vector<long long int> vint;
typedef vector<string> vstr;
typedef long long int llint;
int main(void) {
string A, B;
llint si... | a.cc: In function 'int main()':
a.cc:27:26: error: expected unqualified-id before '=' token
27 | for (int = ; i < sizA; i++){
| ^
a.cc:27:25: error: expected ';' before '=' token
27 | for (int = ; i < sizA; i++){
| ^~
... |
s254975413 | p03738 | C++ | a = int(input())
b = int(input())
if a == b:
print("EQUAL")
elif a>b:
print("GREATER")
else:
print("LESS") | a.cc:1:1: error: 'a' does not name a type
1 | a = int(input())
| ^
|
s938576779 | p03738 | Java | import java.util.Scanner;
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("EQUAL");
}else if(a < b){
system.out.println("LESS... | Main.java:13: error: package system does not exist
system.out.println("LESS");
^
1 error
|
s885399516 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a,b;
cin >> a >> b;
list<string> S;
S={a,b};
S.sort();
if (S.begin()==a){
if (S.end()==a){
cout << "EQUAL" << endl;
}
else{
cout << "GREATER" << endl;
}
}
... | a.cc: In function 'int main()':
a.cc:10:20: error: no match for 'operator==' (operand types are 'std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
10 | if (S.begin()==a){
| ~~~~~~~~~^~~
| | |
... |
s787199113 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a,b;
cin >> a >> b;
list<string> S;
S={a,b};
sort(S.begin(), S.end());
if (S.begin()==a){
if (S.end()==a){
cout << "EQUAL" << endl;
}
else{
cout << "GREATER" << endl;
... | a.cc: In function 'int main()':
a.cc:10:20: error: no match for 'operator==' (operand types are 'std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
10 | if (S.begin()==a){
| ~~~~~~~~~^~~
| | |
... |
s382649280 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a,b;
cin >> a >> b;
list<string> S;
S={a,b};
S.sort(lst.begin(), lst.end());
if (lst.begin()==a){
if (lst.end()==a){
cout << "EQUAL" << endl;
}
else{
cout << "GREATER" << e... | a.cc: In function 'int main()':
a.cc:9:14: error: 'lst' was not declared in this scope
9 | S.sort(lst.begin(), lst.end());
| ^~~
|
s399823438 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
long long a,b;
cin >> a >> b;
if (a>b){
cont << "GREATER" << endl;
}
if (a=b){
cont << "EQUAL" << endl;
}
if (a<b){
cont << "LESS" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:9: error: 'cont' was not declared in this scope; did you mean 'const'?
8 | cont << "GREATER" << endl;
| ^~~~
| const
a.cc:11:9: error: 'cont' was not declared in this scope; did you mean 'const'?
11 | cont << "EQUAL" << endl;
... |
s966484846 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
string A, B;
cin >> A >> B;
if (A.size() > B.size()) ans = "GREATER";
else if (A.size() < B.size()) ans = "LESS";
string ans;
for(int i = 0; i < A.size(); i++) {
if(ans != "") break;
if (A.at(i) > B.at(i)) ans = "GREATER";
else if (A.at(i... | a.cc: In function 'int main()':
a.cc:6:28: error: 'ans' was not declared in this scope; did you mean 'abs'?
6 | if (A.size() > B.size()) ans = "GREATER";
| ^~~
| abs
a.cc:7:33: error: 'ans' was not declared in this scope; did you mean 'abs'?
7 ... |
s101133148 | p03738 | C++ | using namespace std;
#include<bits/stdc++.h>
#define BEGIN ios_base::sync_with_stdio(0);cin.tie(0);
#define END return EXIT_SUCCESS;
#define FOR(I,A,B) for((I)=(A);(I)<(B);(I)++)
#define REP(I,N) FOR((I),0,(N))
#define UP(I,A,B) for((I)=(A);(I)<=(B);(I)++)
#define DW(I,A,B) for((I)=(A);(I)>=(B);(I)--)
#define IN(P) cin... | a.cc: In function 'void solve()':
a.cc:39:1: error: expected ';' before '}' token
39 | }
| ^
|
s085266014 | p03738 | C++ | #include <algorithm>
#include <vector>
#include <cstring>
#include <queue>
#include <functional>
#include <set>
#include <map>
#include <string>
#include <cmath>
#include<complex>
#include <cassert>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define repd(i, n) for (int i = n; i >= 1; i--)
#defin... | a.cc: In function 'int main()':
a.cc:25:9: error: 'cin' was not declared in this scope
25 | cin >> a >> b;
| ^~~
a.cc:12:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
11 | #include <cassert>
+++ |+#include <iostream>
12 |... |
s886032787 | p03738 | C++ | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main(){
long long int a, b;
string c, d;
cin >>c >> d;
//cin >> a >#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main(){
long long int a, b;
string c, d;
cin >>c >> d;
if(c[0] - ... | a.cc: In function 'int main()':
a.cc:15:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
15 | int main(){
| ^~
a.cc:15:9: note: remove parentheses to default-initialize a variable
15 | int main(){
| ^~
| --
a.cc:15:9: note: or re... |
s268132979 | p03738 | C++ | #include<iostream>
#include<string>
using namespace std;
int main(){
long long int a, b;
long long string c, d;
cin >> c >> d;
if(c[0]-'0' > d[0]-'0'){
cout << "GREATER" << endl;
return 0;
}
a = stoi(c);
b = stoi(d);
if(a > b){
cout << "GREATER" << endl;
}
el... | a.cc: In function 'int main()':
a.cc:7:26: error: expected initializer before 'c'
7 | long long string c, d;
| ^
a.cc:8:16: error: 'c' was not declared in this scope
8 | cin >> c >> d;
| ^
a.cc:8:21: error: 'd' was not declared in this scope
... |
s746169288 | p03738 | C++ | #include<iostream>
#include<string>
using namespace std;
int main(){
long long int a, b;
long long string c, d;
cin >> c >> d;
if(c[0]-'0' > d[0]-'0'){
cout << "GREATER" << endl;
return 0;
}
a = stoi(c);
b = stoi(d);
if(a > b){
cout << "GREATER" << endl;
}
el... | a.cc: In function 'int main()':
a.cc:7:26: error: expected initializer before 'c'
7 | long long string c, d;
| ^
a.cc:8:16: error: 'c' was not declared in this scope
8 | cin >> c >> d;
| ^
a.cc:8:21: error: 'd' was not declared in this scope
... |
s055698054 | p03738 | C | include<stdio.h>
int main(void)
{
char a[11],b[11],c[11];
scanf("%s%s%s",a,b,c);
printf("%c%c%c\n",a[0]-0x20,b[0]-0x20,c[0]-0x20);
return 0;
} | main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include<stdio.h>
| ^
|
s785355048 | p03738 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
string a, b;
cin >> a >> b;
int ans = -1;
if(a.size() > b.size())
{
ans = 0;
}
else if(a.size() < b.size())
{
ans = 1;
}
else if(a == b)
{
ans = 2;
}
else
{
int i;
for(i = 0; i < a.size(); i++)
{
if(a.at... | a.cc: In function 'int main()':
a.cc:26:26: error: no matching function for call to 'std::__cxx11::basic_string<char>::size(int&)'
26 | if(a.at(i) > b.size(i))
| ~~~~~~^~~
In file included from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bitset:52,
... |
s750554759 | p03738 | C++ | #include<iosteream>
using namespace std;
int main(){
long long N,M;
cin>>N>>M;
if(N==M){
cout<<"EQUAL";
}else if(N<M){
cout<<"GREATER";
}else{
cout<<"LESS";
}
cout<<endl;
} | a.cc:1:9: fatal error: iosteream: No such file or directory
1 | #include<iosteream>
| ^~~~~~~~~~~
compilation terminated.
|
s395415941 | p03738 | C++ | #include <iostream>
using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
#include <string>
#include <cstdio>
#include <algorithm>
#include <vector>
#include <cmath>
#include <climits>
#include <bitset>
#include <array>
#include <deque>
#include <queue>
#include <map>
#i... | a.cc: In function 'int main()':
a.cc:31:13: error: 'strcmp' was not declared in this scope
31 | s = strcmp(a,b);
| ^~~~~~
a.cc:19:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
18 | #include <set>
+++ |+#include <cstring>
... |
s859572247 | p03738 | C++ | #include <iostream>
using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
#include <string>
#include <cstdio>
#include <algorithm>
#include <vector>
#include <cmath>
#include <climits>
#include <bitset>
#include <array>
#include <deque>
#include <queue>
#include <map>
#i... | a.cc: In function 'int main()':
a.cc:31:13: error: 'strcmp' was not declared in this scope
31 | s = strcmp(a,b);
| ^~~~~~
a.cc:19:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
18 | #include <set>
+++ |+#include <cstring>
... |
s225822607 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
//const ll mod = 1000000007;
int main() {
//cout.precision(10);
string a, b,;
cin >> a >> b;
if(a.size() > b.size()) {
cout << "GREATER" << endl;
return 0;
}
if(a.size... | a.cc: In function 'int main()':
a.cc:12:17: error: expected unqualified-id before ';' token
12 | string a, b,;
| ^
|
s946993089 | p03738 | C | #include<stdio.h>
#include<string.h>
int main(){
char s1[101], s2[101];
scanf("%s %s", s1, s2);
if(strcpm(s1, s2) > 0){
printf("GREATER\n");
} else if(strcpm(s1, s2) == 0){
printf("EQUAL\n");
} else {
printf("LESS\n");
}
return 0;
} | main.c: In function 'main':
main.c:9:6: error: implicit declaration of function 'strcpm'; did you mean 'strcmp'? [-Wimplicit-function-declaration]
9 | if(strcpm(s1, s2) > 0){
| ^~~~~~
| strcmp
|
s762494549 | p03738 | C | #include<stdio.h>
#iclude<string.h>
int main(){
char s1[101], s2[101];
scanf("%s %s", s1, s2);
if(strcpm(s1, s2) > 0){
printf("GREATER\n");
} else if(strcpm(s1, s2) == 0){
printf("EQUAL\n");
} else {
printf("LESS\n");
}
return 0;
} | main.c:2:2: error: invalid preprocessing directive #iclude; did you mean #include?
2 | #iclude<string.h>
| ^~~~~~
| include
main.c: In function 'main':
main.c:9:6: error: implicit declaration of function 'strcpm' [-Wimplicit-function-declaration]
9 | if(strcpm(s1, s2) > 0){
| ^~~~~~
|
s473759035 | 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:15:17: warning: missing terminating " character
15 | cout<<"LESS""<<endl;
| ^
a.cc:15:17: error: missing terminating " character
15 | cout<<"LESS""<<endl;
| ^~~~~~~~
a.cc: In function 'int main()':
a.cc:15:17: error: expected ';' before '}' token
15 | ... |
s714629798 | p03738 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
#include <map>
#include <set>
#define FOR(i, a, n) for(int i = (int)(a); i < (int)(n); ++i)
#define REP(i, n) FOR(i, 0, n)
#define SORT(a) sort(a.begin(),a.end())
using namespace std;
int main(){
//Seiranchan!
string a,b;
cin >> a>> b;
string an... | a.cc: In function 'int main()':
a.cc:17:31: error: expected primary-expression before ')' token
17 | else if(a.size()<b.size())) ans = "LESS";
| ^
|
s960243450 | p03738 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
#include <map>
#include <set>
#define FOR(i, a, n) for(int i = (int)(a); i < (int)(n); ++i)
#define REP(i, n) FOR(i, 0, n)
#define SORT(a) sort(a.begin(),a.end())
using namespace std;
int main(){
//Seiranchan!
string a,b;
cin >> a>> b;
string an... | a.cc: In function 'int main()':
a.cc:17:20: error: expected primary-expression before '<' token
17 | else if(a.size(<b.size())) ans = "LESS";
| ^
|
s529043582 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> p;
const int inf=(1<<30);
#define rep(i,a,n) for(int i=a;i<n;i++)
#define rrep(i,a,n) for(int i=(a-1);i>=n;i--)
int main(){
string a,b;
cin>>a>>b;
string ans="EQUAL";
if(a.size>b.size)ans="GREATER";
else if(a.size()<b.size... | a.cc: In function 'int main()':
a.cc:13:14: 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... |
s949918244 | p03738 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> p;
const int inf=(1<<30);
#define rep(i,a,n) for(int i=a;i<n;i++)
#define rrep(i,a,n) for(int i=(a-1);i>=n;i--)
int main(){
string a,b;
cin>>a>>b;
string ans="EQUAL"
if(a.size>b.size)ans="GREATER";
else if(a.size()<b.size(... | a.cc: In function 'int main()':
a.cc:13:9: error: expected ',' or ';' before 'if'
13 | if(a.size>b.size)ans="GREATER";
| ^~
a.cc:14:9: error: 'else' without a previous 'if'
14 | else if(a.size()<b.size())ans="LESS";
| ^~~~
|
s623514432 | p03738 | C++ | #include<stdio.h>
#include<string.h>
const int maxn=1005+5;
char a[maxn],b[maxn];
int main()
{
int len_a,len_b;
gets(a);
gets(b);
len_a=strlen(a);
len_b=strlen(b);
if(len_a>len_b)
printf("GREATER\n");
if(len_a<len_b)
printf("LESS\n");
if(len_a==len_b)
{ if(strcmp(a,b)>0)
printf("REATER\n");
if(strcmp... | a.cc: In function 'int main()':
a.cc:8:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
8 | gets(a);
| ^~~~
| getw
|
s029584647 | p03738 | C | #include<stdio.h>
#include<string.h>
const int maxn=1005+5;
char a[maxn],b[maxn];
int main()
{
int len_a,len_b;
gets(a);
gets(b);
len_a=strlen(a);
len_b=strlen(b);
if(len_a>len_b)
printf("GREATER\n");
if(len_a<len_b)
printf("LESS\n");
if(len_a==len_b)
{ if(strcmp(a,b)>0)
printf("REATER\n");
if(strcmp... | main.c:4:6: error: variably modified 'a' at file scope
4 | char a[maxn],b[maxn];
| ^
main.c:4:14: error: variably modified 'b' at file scope
4 | char a[maxn],b[maxn];
| ^
main.c: In function 'main':
main.c:8:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [... |
s315814996 | p03738 | C | #include<stdio.h>
#include<string.h>
using namespace std;
const int maxn=1005+5;
char a[maxn],b[maxn];
int main()
{
int len_a,len_b;
gets(a);
gets(b);
len_a=strlen(a);
len_b=strlen(b);
if(len_a>len_b)
printf("GREATER\n");
if(len_a<len_b)
printf("LESS\n");
if(len_a==len_b)
{ if(strcmp(a,b)>0)
printf("RE... | main.c:3:1: error: unknown type name 'using'
3 | using namespace std;
| ^~~~~
main.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
3 | using namespace std;
| ^~~
main.c:5:6: error: variably modified 'a' at file scope
5 | char a[maxn],b[maxn];
| ... |
s357259187 | p03738 | C | #include<stdio.h>
#include<algorithm>
#include<string.h>
using namespace std;
const int maxn=1005+5;
char a[maxn],b[maxn];
int main()
{
int len_a,len_b;
gets(a);
gets(b);
len_a=strlen(a);
len_b=strlen(b);
if(len_a>len_b)
printf("GREATER\n");
if(len_a<len_b)
printf("LESS\n");
if(len_a==len_b)
{ if(strcmp(a... | main.c:2:9: fatal error: algorithm: No such file or directory
2 | #include<algorithm>
| ^~~~~~~~~~~
compilation terminated.
|
s871278941 | p03738 | C | xn];
int main()
{
int len_a,len_b;
gets(a);
gets(b);
len_a=strlen(a);
len_b=strlen(b);
if(len_a>len_b)
printf("GREATER\n");
if(len_a<len_b)
printf("LESS\n");
if(len_a==len_b)
{ if(strcmp(a,b)>0)
printf("REATER\n");
if(strcmp(a,b)<0)
printf("LESS\n");
if(strcmp(a,b)==0)
printf("EQUAL\n");
... | main.c:1:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before ']' token
1 | xn];
| ^
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
5 | gets(a);
| ^~~~
main.c:5:14: error: 'a' undeclared (first u... |
s267186563 | p03738 | C | #include<cstdio>
#include<algorithm>
#include<cstring>
using namespace std;
const int maxn=1005+5;
char a[maxn],b[maxn];
int main()
{
int len_a,len_b;
gets(a);
gets(b);
len_a=strlen(a);
len_b=strlen(b);
if(len_a>len_b)
printf("GREATER\n");
if(len_a<len_b)
printf("LESS\n");
if(len_a==len_b)
{ if(strcmp(a,b... | main.c:1:9: fatal error: cstdio: No such file or directory
1 | #include<cstdio>
| ^~~~~~~~
compilation terminated.
|
s550144108 | p03738 | C++ | #include<cstdio>
#include<algorithm>
#include<cstring>
using namespace std;
const int maxn=1005+5;
char a[maxn],b[maxn];
int main()
{
int len_a,len_b;
gets(a);
gets(b);
len_a=strlen(a);
len_b=strlen(b);
if(len_a>len_b)
printf("GREATER\n");
if(len_a<len_b)
printf("LESS\n");
if(len_a==len_b)
{ if(strcmp(a,b... | a.cc: In function 'int main()':
a.cc:10:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
10 | gets(a);
| ^~~~
| getw
|
s398107139 | p03738 | C++ | #include<cstdio>
int main()
{int long long a,b;
scanf("%lld %lld",&a,&b);
ofr(int i=1)
if(a>b)
printf("GREATER\n");
if(a<b)
printf("LESS\n");
if(a==b)
printf("LESS\n");
} | a.cc: In function 'int main()':
a.cc:5:5: error: expected primary-expression before 'int'
5 | ofr(int i=1)
| ^~~
a.cc:5:1: error: 'ofr' was not declared in this scope
5 | ofr(int i=1)
| ^~~
|
s045929618 | p03738 | C++ | #include<cstdio>
#include<cstring>
using namespace std;
char s1[10005],s2[10005];
long long ls1,ls2,jud;
int main(){
gets(s1);
gets(s2);
ls1 = strlen(s1);
ls2 = strlen(s2);
if(ls1 > ls2) printf("GREATER");
else if(ls1 < ls2) printf("LESS");
else{
jud = strcmp(s1,s2);
if(jud) printf("GREATER");
else pri... | a.cc: In function 'int main()':
a.cc:9:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
9 | gets(s1);
| ^~~~
| getw
|
s062411809 | p03738 | C++ | #include<cstdio>
#include<cstring>
using namespace std;
char s1[10005],s2[10005];
long long ls1,ls2,jud;
int main(){
gets(s1);
gets(s2);
ls1 = strlen(s1);
ls2 = strlen(s2);
if(ls1 > ls2) printf("GREATER");
else if(ls1 < ls2) printf("LESS");
else{
jud = strcmp(s1,s2);
if(jud) printf("GREATER");
else pri... | a.cc: In function 'int main()':
a.cc:9:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
9 | gets(s1);
| ^~~~
| getw
|
s521604887 | p03738 | C++ | #include<stdio.h>
int main(){
int i,j,m,l;
l=0;
char a[101],b[101];
gets(a);
gets(b);
for(i=0;a[i]!='\0';i++){}
for(j=0;a[j]!='\0';j++){}
if(i>j) printf("GREATER");
else if(i<j) printf("LESS");
else{
for(m=0;a[m]!='\0';m++){
if(a[m]>b[m]){
printf("GREATER");
l=1;
break;
}
if(a[m]<b[m]){... | a.cc: In function 'int main()':
a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
6 | gets(a);
| ^~~~
| getw
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.