submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s719015983 | p04033 | C++ | #include"bits/stdc++.h"
using namespace std;
unsigned long long int a,b;
int main(){
cin>>a>>b;
if(a>0)cout<<"Postive";
else if(a==0||(a<0&&b>0))cout<<"Zero";
else if((abs(b)-abs(a))%2==0)cout<<"Positive";
else cout<<"Negative";
return 0;
} | a.cc: In function 'int main()':
a.cc:9:21: error: call of overloaded 'abs(long long unsigned int&)' is ambiguous
9 | else if((abs(b)-abs(a))%2==0)cout<<"Positive";
| ~~~^~~
In file included from /usr/include/c++/14/cstdlib:79,
from /usr/include/x86_64-linux-gnu/c++/14... |
s159129102 | p04033 | C++ | #include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <numeric>
#include <cmath>
#include <unordered_map>
using namespace std;
using ll = long long;
void _cin(){} template <class Head, class... Tail> void _cin(Head&& head, Tail&&... tail){ cin >> head; _cin(forward<Tail>(tail)...); }
v... | a.cc: In function 'int main()':
a.cc:44:18: error: operands to '?:' have different types 'const char*' and 'bool'
44 | Cout((a > 0) ? "Positive" : (b < 0) : "Negative" : "Zero");
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
a.cc:34:25: note: in definition of macro 'Cout'
34 | #define Cout(...) _cout(__VA_A... |
s341072117 | p04033 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
long long a,b,c=1;
cin>>a>>b;
for(int i=a;i<=b;i++)
{
c*=i;
}
if(c>0)
cout<<"Positive"<<endl;
if(c<0)
cout<<"Negative"<<endl;
if(c==0)
cout<<"Zero"<<endl;
return 0;
}<endl;
return 0;
} | a.cc:18:2: error: expected unqualified-id before '<' token
18 | }<endl;
| ^
a.cc:19:9: error: expected unqualified-id before 'return'
19 | return 0;
| ^~~~~~
a.cc:20:1: error: expected declaration before '}' token
20 | }
| ^
|
s755949880 | p04033 | C++ | #include <stdio.h>
#include <iostream>
#include <string>
#include <algorithm>
#include <typeinfo>
typedef long long ll;
int main(){
ll a, b;
ll tmp=1;
std::cin >> a >> b;
if (a <= 0 && b>=0) std::cout << "Zero" << "\n";
if (a > 0) std::cout << "Positive" << "\n";
else if (a < 0){
if ((... | a.cc: In function 'int main()':
a.cc:16:29: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
16 | if ((b-a+1)%2 != 0) cout << "Negative" << "\n";
| ^~~~
| std::cout
In file included from a.cc:2:
/usr/include/c++/14/ios... |
s030793727 | p04033 | C++ | #include<bits/stdc++.h>
#define all(x) (x).begin(),(x).end()
typedef long long ll;
#define rep(i,n) for(ll i=0, i##_len=(n); i<i##_len; ++i)
using namespace std;
#define sz(x) ((int)(x).size())
#define ZERO(a) memset(a,0,sizeof(a))
#define MINUS(a) memset(a,0xff,sizeof(a))
#define MEMSET(v, h) memset((v), h, sizeof(v))... | a.cc: In function 'int main()':
a.cc:34:15: error: 'x' was not declared in this scope
34 | if(-1 * x > -1 * y) cal = -1 * x - (-1 * y) + 1;
| ^
a.cc:34:24: error: 'y' was not declared in this scope
34 | if(-1 * x > -1 * y) cal = -1 * x - (-1 * y) + 1;
| ... |
s802915468 | p04033 | C++ | #include<bits/stdc++.h>
#define all(x) (x).begin(),(x).end()
typedef long long ll;
#define rep(i,n) for(ll i=0, i##_len=(n); i<i##_len; ++i)
using namespace std;
#define sz(x) ((int)(x).size())
#define ZERO(a) memset(a,0,sizeof(a))
#define MINUS(a) memset(a,0xff,sizeof(a))
#define MEMSET(v, h) memset((v), h, sizeof(v))... | a.cc: In function 'int main()':
a.cc:34:11: error: 'x' was not declared in this scope
34 | if(-x > -y) cal = -x - (-y) + 1;
| ^
a.cc:34:16: error: 'y' was not declared in this scope
34 | if(-x > -y) cal = -x - (-y) + 1;
| ^
|
s447798272 | p04033 | C++ | #include<iostream>
using namespace std;
int main(){
ll a,b;
cin>>a>>b;
if(a<=0 && b>=0) cout << "Zero" << endl;
else if(a < 0 && b < 0 && (b-a)%2 == 1) cout << "Negative" << endl;
else cout << "Positive" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:3: error: 'll' was not declared in this scope
6 | ll a,b;
| ^~
a.cc:7:8: error: 'a' was not declared in this scope
7 | cin>>a>>b;
| ^
a.cc:7:11: error: 'b' was not declared in this scope
7 | cin>>a>>b;
| ^
|
s708372675 | p04033 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a, b;
if(a > 0){
cout << "Positive"
}else if(a == 0){
cout << "Zero";
}else{
if(b < 0){
if(abs(a-b)%2 == 0){
cout << "Negetive";
}else{
cout << "Positive";
... | a.cc: In function 'int main()':
a.cc:7:27: error: expected ';' before '}' token
7 | cout << "Positive"
| ^
| ;
8 | }else if(a == 0){
| ~
|
s755009621 | p04033 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, b, count = 0;
cin >> a >> b;
if(a <=0 && b >= 0){
cout << "Zero" << endl;
}
else{
for(int i = 0; i < b - a + 1; i++){
if(a + i < 0){
count++;
}
}
if(count % 2 == 0){
cout << "Positive" << endl;
}
... | a.cc: In function 'int main()':
a.cc:6:10: error: 'a' was not declared in this scope
6 | cin >> a >> b;
| ^
|
s650410438 | p04033 | C++ | #include<iostream>
#include<vector>
#include<sstream>
#include<string>
#include<numeric>
#include <algorithm>
#include<math.h>
#include<cstdio>
#include<string.h>
#include<unistd.h>
#include <array>
#include <map>
#define ALL(a) (a).begin(),(a).end()
using namespace std;
typedef long long ll;
struct point{
int x... | a.cc: In function 'int main()':
a.cc:132:10: error: 'B' was not declared in this scope
132 | if(B-A+1%2==0){
| ^
a.cc:132:12: error: 'A' was not declared in this scope
132 | if(B-A+1%2==0){
| ^
|
s800775002 | p04033 | C++ | #include<iostream>
#include<algorithm>
using namespace std;
int main(){
int a,b,c=1;
cin>>a>>b;
int x=a;
for(int i=0;i<b-a+1;i++){
c=c*x;
x++;
if(x==0){
cout<<"Zero"<<endl;
break
}
}
if(c>0){
cout<<"Positive"<<endl;
}
else if(c<0)
cout<<"Negative"<<endl;
}
| a.cc: In function 'int main()':
a.cc:13:10: error: expected ';' before '}' token
13 | break
| ^
| ;
14 | }
| ~
|
s793541714 | p04033 | C++ | #include<iostream>
#include<algorithm>
using namespace std;
int main(){
int a,b,c=1;
cin>>a>>b;
int x=a;
for(int i=0;i<b-a+1;i++){
c=c*x;
x++;
if(x==0)
cout<<"Zero"<<endl;
break
}
else if(c>0){
cout<<"Positive"<<endl;
}
else if(c<0)
cout<<"Negative"<<endl;
}
| a.cc: In function 'int main()':
a.cc:13:10: error: expected ';' before '}' token
13 | break
| ^
| ;
14 | }
| ~
a.cc:15:3: error: 'else' without a previous 'if'
15 | else if(c>0){
| ^~~~
|
s953849524 | p04033 | C++ | #include<iostream>
#include<algorithm>
using namespace std;
int main(){
int a,b,c=1;
cin>>a>>b;
for(int i=0;i<a-b+1;i++){
int c*=a;
a++;
}
if(c==0){
cout<<"Zero"<<endl;
}
else if(c>0){
cout<<"Positibe"<<endl;
}
else
cout<<"Negative"<<endl;
}
| a.cc: In function 'int main()':
a.cc:8:10: error: expected initializer before '*=' token
8 | int c*=a;
| ^~
|
s519922679 | p04033 | C++ | #include<iostream>
#include<algorithm>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
for(int i=0;i<a-b+1;i++){
int c*=a;
a++;
}
if(c==0){
cout<<"Zero"<<endl;
}
else if(c>0){
cout<<"Positibe"<<endl;
}
else
cout<<"Negative"<<endl;
}
| a.cc: In function 'int main()':
a.cc:8:10: error: expected initializer before '*=' token
8 | int c*=a;
| ^~
a.cc:11:6: error: 'c' was not declared in this scope
11 | if(c==0){
| ^
|
s823472670 | p04033 | C++ | #include<iostream>
#include<algorithm>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
for(i=0;i<a-b+1;i++){
int c*=a;
a++;
}
if(c==0){
cout<<"Zero"<<endl;
}
else if(c>0){
cout<<"Positibe"<<endl;
}
else
cout<<"Negative"<<endl;
} | a.cc: In function 'int main()':
a.cc:7:7: error: 'i' was not declared in this scope
7 | for(i=0;i<a-b+1;i++){
| ^
a.cc:8:10: error: expected initializer before '*=' token
8 | int c*=a;
| ^~
a.cc:11:6: error: 'c' was not declared in this scope
11 | if(c==0){
| ^
|
s419264279 | p04033 | C++ | #include<bts/stdc++.h>
using namespace std;
typedef long long LL;
LL a,b;
int main(){
cin>>a>>b;
LL c=a*b;
if(c==0){
cout<<"Zero"<<endl;
}else if(c>0){
cout<<"Positive"<<endl;
}else if(c>0){
cout<<"Negative"<<endl;
}
return 0;
} | a.cc:1:9: fatal error: bts/stdc++.h: No such file or directory
1 | #include<bts/stdc++.h>
| ^~~~~~~~~~~~~~
compilation terminated.
|
s215347072 | p04033 | C++ | #include<iostream>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
if (a*b>0) cout<<"Positive"<<endl;
if (a*b<0) cout<<"Negative"<<endl;
if (a*b=0) cout<<"Zero"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:14: error: lvalue required as left operand of assignment
9 | if (a*b=0) cout<<"Zero"<<endl;
| ~^~
|
s519377254 | p04033 | C | #include<stdio.h>
int main() {
int a, b, i = 0;
scanf_s("%d", &a);
scanf_s("%d", &b);
if (a > 0) {
if (b < 0) {
printf("Zero");
}
else {//aもbもどちらも正の数
printf("Positive");
}
}
else if (a < 0) {
if (b > 0) {
printf("Zero");
}
else if ((a - b) % 2 == 0) {
printf("Negative");
}
else {... | main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
7 | scanf_s("%d", &a);
| ^~~~~~~
| scanf
|
s394476183 | p04033 | C++ | #include <iostream>
#include<stdio.h>
#include<bits/stdc++.h>
using namespace std;
int main()
{
int x,y;
cin >>x>>y;
if (x> 0 && y > 0)
{
cout << "Positive" << endl;
}
else if (max(x,y) >= 0 && min(x,y) <= 0 || x == 0 || y == 0)
{
cout << "Zero" << endl;
}
else
{
if ((a... | a.cc: In function 'int main()':
a.cc:26:14: error: expected '}' at end of input
26 | return 0;
| ^
a.cc:6:1: note: to match this '{'
6 | {
| ^
|
s923589274 | p04033 | C++ | -10 -10
Positive
| a.cc:1:1: error: expected unqualified-id before '-' token
1 | -10 -10
| ^
|
s328118034 | p04033 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <array>
#include <math.h>
#include <sstream>
typedef long long ll;
using namespace std;
int main(int argc, char const *argv[])
{
int a, b;
std::cin >> a >> b;
if (a > 0 && b > 0) {
std::cout ... | a.cc: In function 'int main(int, const char**)':
a.cc:18:30: error: expected primary-expression before '<' token
18 | } else if ((a >= 0 && b =< 0) || (b >= 0 && a <= 0)) {
| ^
|
s200729872 | p04033 | C++ | #include<iostream>
#include<iomanip>
#include<cstdio>
#include<cstdlib>
#include<cmath>
#include<cstring>
#include<algorithm>
#include<queue>
#include<stack>
#include<bitset>
#include<vector>
#define ll long long
#define ull unsigned long long
#define db double
#define si short int
using namespace std;
ll read(){
l... | a.cc:58:4: error: redefinition of 'long long int read()'
58 | ll read(){
| ^~~~
a.cc:17:4: note: 'long long int read()' previously defined here
17 | ll read(){
| ^~~~
a.cc:71:4: error: redefinition of 'long long int a'
71 | ll a,b,ans=1;
| ^
a.cc:30:4: note: 'long long int a' previou... |
s065395319 | p04033 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c=1;
cin>>a>>b;
if(a>0)
cout<<"Positive";
else
{
for(int i=a;i<=b;i++)
c*=i;
if(c>0)
cout<<"Positive";
if(c==0)
cout<<"Zero";
if(c<0)
cout<<"Negative";
} | a.cc: In function 'int main()':
a.cc:19:2: error: expected '}' at end of input
19 | }
| ^
a.cc:4:1: note: to match this '{'
4 | {
| ^
|
s467226421 | p04033 | C++ | #include<iostream>
#include<stdio.h>
#include<string.h>
using namespace std;
int jiecheng(int x)
{
int ans=1;
for(int i=1;i<=x;i++)ans*=i;
return ans;
}
int main()
{
unsigned long long sum=0;
int a;
cin>>a>>sum;
sum=jiecheng(m);
if(a>0)cout<<"Positive";
else if(sum>=0)cout<<"Zero";
... | a.cc: In function 'int main()':
a.cc:16:22: error: 'm' was not declared in this scope
16 | sum=jiecheng(m);
| ^
|
s078771191 | p04033 | C++ | #include<iostream>
#include<stdio.h>
#include<string.h>
using namespace std;
int jiecheng(int x)
{
int ans=1;
for(int i=1;i<=x;i++)ans*=i;
return ans;
}
int main()
{
unsigned long long sum=0;
int m;
cin>>m;
sum=jiecheng(m);
if(a>0)cout<<"Positive";
else if(b>=0)cout<<"Zero";
else... | a.cc: In function 'int main()':
a.cc:17:12: error: 'a' was not declared in this scope
17 | if(a>0)cout<<"Positive";
| ^
a.cc:18:13: error: 'b' was not declared in this scope
18 | else if(b>=0)cout<<"Zero";
| ^
|
s705697998 | p04033 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
if(a>0){
cout<<"Positive"<<endl;
}
else if(0>b&&(a-b)%2){
cout<<"Positive"<<endl;
}
else if(0>b&&(a-b)%==1){
cout<<"Negative"<<endl;
}
else{
cout<<"Zero"<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:12:30: error: expected primary-expression before '=' token
12 | else if(0>b&&(a-b)%==1){
| ^
|
s599898073 | p04033 | C++ | #include <bits/stdc++.h>
#define pb push_back
#define ppb pop_back
#define fi first
#define se second
#define mid ((x + y) / 2)
#define left (ind * 2)
#define right (ind * 2 + 1)
#define mp make_pair
#define timer ((double)clock() / CLOCKS_PER_SEC)
#define endl "\n"
#define spc " "
#define d1(x) cerr<<#x<<":"<<x<<endl
... | a.cc: In function 'int main()':
a.cc:51:33: error: expected ';' before '}' token
51 | return 0
| ^
| ;
52 | }
| ~
|
s367583492 | p04033 | C++ | /// Containers Start
#include <iostream>
#include <string>
#include <sstream>
#include <set>
#include <map>
#include <unordered_map>
#include <stack>
#include <queue>
#include <vector>
#include <utility>
#include <iomanip>
#include <sstream>
#include <bitset>
#include <cstdlib>
#include <iterator>
#include <algorithm>
... | a.cc: In function 'int main()':
a.cc:186:18: error: expected ';' before '<=' token
186 | for(int i=a,i<=b;i++){
| ^~
| ;
a.cc:186:18: error: expected primary-expression before '<=' token
186 | for(int i=a,i<=b;i++){
| ^~
|
s320708082 | p04033 | C++ | #include <iostream>
#include <string>
using namespace std;
int main() {
__int64 a, b;
cin >> a >> b;
string k;
if (a * b <= 0)cout << "Zero" << endl;
else if (a > 0 && b > 0) cout << "Positive" << endl;
else if (a < 0 && b < 0) {
int k = b - a + 1;
if (k % 2 == 1) {
cout << "Negative" << endl;
}
else ... | a.cc: In function 'int main()':
a.cc:6:9: error: '__int64' was not declared in this scope; did you mean '__int64_t'?
6 | __int64 a, b;
| ^~~~~~~
| __int64_t
a.cc:7:16: error: 'a' was not declared in this scope
7 | cin >> a >> b;
| ^
a.cc:7:21: err... |
s594115451 | p04033 | C++ | #include <iostream>
#include <string>
using namespace std;
int main() {
__int64 a, b;
cin >> a >> b;
string k;
if (a * b <= 0)cout << "Zero" << endl;
else if (a > 0 && b > 0) cout << "Positive" << endl;
else if (a < 0 && b < 0) {
int k = b - a + 1;
if (k % 2 == 1) {
cout << "Negative" << endl;
}
else ... | a.cc: In function 'int main()':
a.cc:6:9: error: '__int64' was not declared in this scope; did you mean '__int64_t'?
6 | __int64 a, b;
| ^~~~~~~
| __int64_t
a.cc:7:16: error: 'a' was not declared in this scope
7 | cin >> a >> b;
| ^
a.cc:7:21: err... |
s637768745 | p04033 | C++ | #include<iostream>
using namespace std;
int main()
{
int a,b;
bool c=0;
cin>>a>>b;
if(a<=0&&b>=0) cout<<"Zero"<<endl;
else
{
for(int i=a;i<b;i++)
{
if(i<0) c=1-c;
}
if(c==0) cout<<"Positive"<<endl;
else cout<<"Negative"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:18:2: error: expected '}' at end of input
18 | }
| ^
a.cc:4:1: note: to match this '{'
4 | {
| ^
|
s686644838 | p04033 | C++ | #include <iostream>
#include <iomanip>
#include <algorithm>
#include <vector>
#include <map>
#include <stack>
#include <string>
#include <list>
#include <math.h>
using namespace std;
typedef pair<int, int> P;
#define ll long long
#define mod 1000000007
int main(){
ll a, b;
cin >> a >> b;
string r;
if (a*b <= 0)... | a.cc: In function 'int main()':
a.cc:24:29: error: expected primary-expression before '%' token
24 | else if (b - a + 1) % 2 == 0) r = "Positive";
| ^
|
s270859023 | p04033 | C++ | #include <cstdio>
#define tin int
#define itn int
#define tni int
#define nit int
#define nti int
#define pritnf printf
#define scnaf scanf
#define retrun return
#define sizoef sizeof
#define ll long long
#define inl inline
#define br break
#define con continue
#define mst(a, b) memset(a, b, sizeof(a))
#define fa(x, a,... | a.cc: In function 'int main()':
a.cc:54:9: error: 'elsE' was not declared in this scope
54 | elsE {
| ^~~~
|
s019602684 | p04033 | C++ | #include<cstdio>
using namespace std;
int a,b;
int main()
{
scanf("%d%d",&a,&b);
if(a>0)
printf("Positive\n");
else if(b>=0)
printf("Zero\n");
else if((b-a+1)%2==0)
printf("Positive\n");
else
printf("Negative\n")
return 0;
} | a.cc: In function 'int main()':
a.cc:14:37: error: expected ';' before 'return'
14 | printf("Negative\n")
| ^
| ;
15 | return 0;
| ~~~~~~
|
s623811922 | p04033 | C++ | #include<cstdio>
using namespace std;
int a,b;
int main(){
cin>>a>>b;
if(a>0)cout<<"Positive"<<endl;
else if(b>=0)cout<<"Zero"<<endl;
else if((a&1)^(b&1))cout<<"Positive"<<endl;
else cout<<"Negative"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
5 | cin>>a>>b;
| ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
1 | #include<cstdio>
+++ |+#include <iostream>
2 | using namespace... |
s386555028 | p04033 | C++ | #include <iostream>
#include<algorithm>
using namespace std;
int main{
int a;
int b;
cin >> a;
cin >> b;
if (a == 0 || b == 0 || (a < 0 && b>0)) {
cout << "Zero" << endl;
}
else if (a > 0) {
cout << "Positive" << endl;
}
else {
cout << "Negative" << endl;
}
}
} | a.cc:4:5: error: cannot declare '::main' to be a global variable
4 | int main{
| ^~~~
a.cc:5:1: error: expected primary-expression before 'int'
5 | int a;
| ^~~
a.cc:5:1: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
4 | int main{
| ^
a.cc:7:1: error: 'cin'... |
s659772577 | p04033 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int n,m,ans=0;
bool s=0
cin>>n>>m;
for(int i=n;i<=m;i++){
if(i<0)
ans++;
if(i==0)
s=1;
}
if(s)
cout<<"Zero"<<endl;
else{
if(ans%2==0)
cout<<"Positive"<<endl;
e... | a.cc: In function 'int main()':
a.cc:6:5: error: expected ',' or ';' before 'cin'
6 | cin>>n>>m;
| ^~~
|
s844069248 | p04033 | C++ | Box and Ball #include<bits/stdc++.h>
using namespace std;
long long a,b;
int main()
{
scanf("%lld%lld",&a,&b);
if(a>b)
swap(a,b);
if((a>0&&b>0)||(a<0&&b<0&&(b-a+1)%2==0))
{
printf("Positive");
return 0;
}
if(a<=0&&b>=0)
{
printf("Zero");
return 0;
}
printf("Negative");
return 0;
} | a.cc:1:14: error: stray '#' in program
1 | Box and Ball #include<bits/stdc++.h>
| ^
a.cc:1:1: error: 'Box' does not name a type
1 | Box and Ball #include<bits/stdc++.h>
| ^~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf' was not declared in this scope
6 | scanf("%... |
s702501537 | p04033 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b
scanf("%d %d",&a,&b);
if(a*b <= 0)
{
printf("Zero");
return 0;
}
else if(a > 0)
{
printf("Positive");
return 0;
}
else
{
if((b-a)%2 == 0)
{
printf("Negative");
return 0;
}
else
{
printf("Positive");
return 0;
}... | a.cc: In function 'int main()':
a.cc:7:9: error: expected initializer before 'scanf'
7 | scanf("%d %d",&a,&b);
| ^~~~~
a.cc:8:14: error: 'b' was not declared in this scope
8 | if(a*b <= 0)
| ^
|
s692903657 | p04033 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
int a,b;
scanf ("%d%d",&a,&b);
if ((a>0&&b<0)||(a<0&&b>0)||a==0||b==0) printf ("%s/n","Zero");
if (a>0&&b>0) printf ("%s/n","Positive");
if (a<0&&b<0)
{
int ans=0,c;
if (a>b) c=b;
else c=a;
for (int i=0;i>... | a.cc: In function 'int main()':
a.cc:16:17: error: 'i' was not declared in this scope
16 | if (ans%i==0) printf ("%s/n","Negative");
| ^
|
s512893810 | p04033 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
if ((a>0&&b<0)||(a<0&&b>0)||a==0||b==0) cout<<"Zero"<<endl;
if (a>0&&b>0) cout<<"Positive"<<endl;;
if (a<0&&b<0)
{
int ans=0,c;
if (a>b) c=b;
else c=a;
for (int i=0;i>=c;i--)
... | a.cc: In function 'int main()':
a.cc:16:17: error: 'i' was not declared in this scope
16 | if (ans%i==0) cout<<"Positive"<<endl;
| ^
|
s048539300 | p04033 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
if ((a>0&&b<0)||(a<0&&b>0)||a==0||b==0) cout<<"Zero"<<endl;
if (a>0&&b>0) cout<<"Positive"<<endl;;
if (a<0;b<0)
{
int ans=0,c;
if (a>b) c=b;
else c=a;
for (int i=0;i>=c;i--)
... | a.cc: In function 'int main()':
a.cc:16:17: error: 'i' was not declared in this scope
16 | if (ans%i==0) cout<<"Positive"<<endl;
| ^
|
s680113343 | p04033 | C++ | #incldue<iostream>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
if(a*b>0) cout<<"Positive";
if(a*b==0) cout<<"Zero";
if(a*b<0) cout<<"Negative";
return 0;
} | a.cc:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
1 | #incldue<iostream>
| ^~~~~~~
| include
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
5 | cin>>a>>b;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<io... |
s610639251 | p04033 | C++ | #include <iostream>
#include <vector>
#include <math.h>
#include <cmath>
#include <algorithm>
#include <numeric>
#include <string>
#include <cstring>
#include <regex>
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int,int>;
using pl4 = pair<ll,ll>;
using vi = vector<int>;
using v... | a.cc:172:13: warning: missing terminating " character
172 | cout << "Negative
| ^
a.cc:172:13: error: missing terminating " character
172 | cout << "Negative
| ^~~~~~~~~
a.cc:173:1: warning: missing terminating " character
173 | ";
| ^
a.cc:173:1: error: missing t... |
s323309279 | p04033 | C++ | #include "bits/stdc++.h"
#define rep(i,a,n) for(int (i) = (a);(i) < (n);(i)++)
using namespace std;
int main(){
int a,b;
if(a > 0 %% b > 0){
cout << "Positive" << endl;
}
else if(a <= 0 && b >= 0){
cout << "Zero" << endl;
}
else{
if(abs(b - a) % 2 == 0){
cout << "Negative"... | a.cc: In function 'int main()':
a.cc:7:19: error: expected primary-expression before '%' token
7 | if(a > 0 %% b > 0){
| ^
|
s453950896 | p04033 | C++ | #include<cstdio>
int main()
{
int a,b;
scanf("%d%d",&a,&b);
if(a==b)
{if(a==0||b==0) printf("Zero");
else printf("Positive");}
else if(a!=b)
{
if(a>0) printf("Positive");
else if(a<=0||b>=0) printf("Zero");
else if(b<0)
{if((a&1)^(b&1... | a.cc: In function 'int main()':
a.cc:18:5: error: 'r' was not declared in this scope
18 | r
| ^
a.cc:18:6: error: expected '}' at end of input
18 | r
| ^
a.cc:3:1: note: to match this '{'
3 | {
| ^
|
s021761850 | p04033 | C++ | #include<bits/std++.h>
using namespace std;
int main()
{
int i,n,ans=1;
int a,b;
cin>>a>>b;
for (i=a;i<=b;i++)
{
ans*=i;
}
if (ans==0)
cout<<"Zero"<<endl;
else
{
if (ans>1)
cout<<"Positive"<<endl;
}
else
{
cout<<"Negative"<<endl;
}
return 0;
} | a.cc:1:9: fatal error: bits/std++.h: No such file or directory
1 | #include<bits/std++.h>
| ^~~~~~~~~~~~~~
compilation terminated.
|
s487901813 | p04033 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
long long a,b;
cin>>a>>>b;
if((a<0&&b<0)||a>0&&b>0) cout<<"Positive";
else if((a>0&&b<0)||(a>0&&b<0)) cout<<"Negative";
else cout<<"Zero";
return 0;
} | a.cc: In function 'int main()':
a.cc:5:13: error: expected primary-expression before '>' token
5 | cin>>a>>>b;
| ^
|
s356793593 | p04033 | C++ | #include <iostream>
using namespace std;
int main()
{
long long a,b;
cin>>a>>b;
if(a>0){cout<<"Positive";return 0;}
if((a<0&&b>0)||a==0||b==0)){cout<<"Zero";return 0;}
if((b-a+1)%2==0){cout<<"Positive";return 0;}
cout<<"Negative";return 0;
} | a.cc: In function 'int main()':
a.cc:8:31: error: expected primary-expression before ')' token
8 | if((a<0&&b>0)||a==0||b==0)){cout<<"Zero";return 0;}
| ^
|
s888967132 | p04033 | C++ | #include <iostream>
using namespace std;
int main()
{
long long a,b;
cin>>a>>b;
long long s=a*b;
if(s>0)cout<<"Positive",return 0;
if(s==0)cout<<"Zero",return 0;
cout<<"Negative";return 0;
} | a.cc: In function 'int main()':
a.cc:8:29: error: expected primary-expression before 'return'
8 | if(s>0)cout<<"Positive",return 0;
| ^~~~~~
a.cc:9:26: error: expected primary-expression before 'return'
9 | if(s==0)cout<<"Zero",return 0;
| ... |
s073560549 | p04033 | C++ | #include<string>
#include<array>
#include<cmath>
#include<algorithm>
int main()
{
long long int a,b;
std::cin >> a >> b;
if(a < b){
std::swap(a,b);
}
if((a > 0 && b < 0) || a == 0 || b == 0){
std::cout << "Zero" << std::endl;
} else if(a < 0){
if((a - b) % 2 == 1){
std::cout << "Positive" << std::e... | a.cc: In function 'int main()':
a.cc:9:6: error: 'cin' is not a member of 'std'
9 | std::cin >> a >> b;
| ^~~
a.cc:5:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
4 | #include<algorithm>
+++ |+#include <iostream>
5 |
a.cc:14:10:... |
s792392092 | p04033 | C++ | ST
zzuli暑假集训第二周积分赛
End: 2018-08-12 11:40 CST
03:00:00
Ended
Overview
Problem
Status
Rank (03:00:00)
0 Comments
SettingFavoriteClone
Previous12345…NextFilterReset
Username
541707090128
Prob
Result
Time
(ms) Mem
(MB) Lang
Submit Time
541707090128
G
Wrong Answer
C++
43 min ago
541707090128
G
Wrong Answer
C++
54 min ... | a.cc:3:11: error: invalid digit "8" in octal constant
3 | End: 2018-08-12 11:40 CST
| ^~
a.cc:12:1: error: extended character … is not valid in an identifier
12 | Previous12345…NextFilterReset
| ^
a.cc:63:24: error: extended character © is not valid in an identifier
63 | All Copyright Re... |
s248016789 | p04033 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b
scanf("%d%d",&a,&b);
if(a>0)puts("Positive");
else if(b>=0)puts("Zero");
else if((a&1)^(b&1))puts("Positive");
else puts("Negative");
return 0;
} | a.cc: In function 'int main()':
a.cc:5:5: error: expected initializer before 'scanf'
5 | scanf("%d%d",&a,&b);
| ^~~~~
a.cc:7:13: error: 'b' was not declared in this scope
7 | else if(b>=0)puts("Zero");
| ^
|
s626615134 | p04033 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b;>>a>>b;
if(a>0) cout<<"Positive"<<endl;;
else if(b>=0) cout<<"Zero"<<endl;
else cout<<"Nagative"<<endl;;
return 0;
} | a.cc: In function 'int main()':
a.cc:5:17: error: expected primary-expression before '>>' token
5 | int a,b;>>a>>b;
| ^~
a.cc:7:5: error: 'else' without a previous 'if'
7 | else if(b>=0) cout<<"Zero"<<endl;
| ^~~~
|
s048916862 | p04033 | C++ | #include<iostream>
using namespace std;
int main()
{
int a,b,t;
long long sum=1;
cin>>a>>b;
t=a;
while(t<=b)
{
sum=sum*t;
t=t+1;
}
if (sum>0) cout<<"Postive"
if (sum==0) cout<<"Zero";
if (sum<0) cout<<"Negative";
cout<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:14:31: error: expected ';' before 'if'
14 | if (sum>0) cout<<"Postive"
| ^
| ;
15 | if (sum==0) cout<<"Zero";
| ~~
|
s092663835 | p04033 | C++ | #include<cstdio>
using namespace std;
int a,b;
int main(){
scanf("%d%d",&a,&b);
if(a>0)
cout<<"Positive";
else if(b>=0)
cout<<"Zero";
else
if((a&1)^(b&1))
cout<<"Positive";
else
cout<<"Negative";
return 0;
} | a.cc: In function 'int main()':
a.cc:7:7: error: 'cout' was not declared in this scope
7 | cout<<"Positive";
| ^~~~
a.cc:2:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
1 | #include<cstdio>
+++ |+#include <iostream>
2 | u... |
s764192774 | p04033 | C++ | #include<stdio.h>
int main()
{
long long a,b;
scanf("%lld %lld",&a,&b);
int c=a+1;
if(a*b*c==0)printf("Zero\n");
if(a*b*c<0)printf("Negative\n");
if(a*b*c>0)printf("Positive\n")
return 0;
} | a.cc: In function 'int main()':
a.cc:9:36: error: expected ';' before 'return'
9 | if(a*b*c>0)printf("Positive\n")
| ^
| ;
10 | return 0;
| ~~~~~~
|
s798611296 | p04033 | C++ | #include <iostream>
using namespace std;
int main()
{
long long a,b,i=1;cin>>a>>b;
for(int i=a;i<=b;i++)
{
c*=i;
}
if(c>0) cout<<"Positive";
if(c==0) cout<<"Zero";
if(c<0) cout<<"Negative";
return 0;
} | a.cc: In function 'int main()':
a.cc:8:17: error: 'c' was not declared in this scope
8 | c*=i;
| ^
a.cc:10:12: error: 'c' was not declared in this scope
10 | if(c>0) cout<<"Positive";
| ^
a.cc:11:12: error: 'c' was not declared in this scope
11 | ... |
s367232012 | p04033 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c=1;
cin>>a>>b;
for(int i=a;i<=b;i++)
c*=i;-
if(c>0)cout<<"Positive"<<endl;
if(c<0)cout<<"Negative"<<endl;
if(c==0)cout<<"Zero"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:5: error: expected primary-expression before 'if'
9 | if(c>0)cout<<"Positive"<<endl;
| ^~
|
s038764078 | p04033 | C++ | using namespace std;
int main() {
long long a, b;
cin >> a >> b;
if (0 < a && a <= b) cout << "Positive" << endl;
else if (b < 0 && a <= b) {
if (b - a % 2 == 1) cout << "Positive" << endl;
else if (b - a % 2 == 0) cout << "Negative" << endl;
}
else if (a <= 0 && 0 <= b) cout << "Zero" << endl;
} | a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
4 | 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:5:24: error: '... |
s771890701 | p04033 | C++ | #include <iostream>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <algorithm>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b;
c=b-a+1;
if(a>0&&b>0)
{
cout<<"Positive"<<endl;
}
else if(a<0&&b>0)
{
if(c%2==0)
{
cout<<"Positive"<<endl;
}
else cout<<"Negative"<<endl;
}
if(... | a.cc: In function 'int main()':
a.cc:29:22: error: expected primary-expression before '%' token
29 | else if(a<=0%%b==0)
| ^
|
s658929351 | p04033 | C++ | #include <iostream>
#include <cmath>
#include <string>
#include <algorithm>
#include <cstdio>
using namespace std;
int main()
{
int a,b,c,q=0;
int x[20];
int s=1;
cin>>a>>b;
if(a<=0&&b>=0)
cout<<"Zero"<<endl;
if(a>0&&b>0)
cout<<"Positive"<<endl;
if(a<0&&b<0)
{
for(int i=a;i<=b;i++)
{
if(i<=b) q++;
}
... | a.cc: In function 'int main()':
a.cc:23:20: error: 'i' was not declared in this scope
23 | if(i%2==0)
| ^
|
s508893709 | p04033 | C++ | #include<iostream>
using namespace std;
int main()
{
long long a,b,m;
cin>>a>>b;
sum=b-a+1;
if(a<b)
{
if(a>0&&b>0)
{
cout<<"Positive"<<endl;
}
else
{
if(a<=0&&b>0)
{
cout<<"Zero"<<endl;
}
else
{
if(a<0&&b<=0)
{
if(b==0)
{
cout<<"Zero"<<endl;
}
else
... | a.cc: In function 'int main()':
a.cc:7:9: error: 'sum' was not declared in this scope
7 | sum=b-a+1;
| ^~~
|
s484285815 | p04033 | Java | public class RangeProduct{
public static void main(String[] args){
int a;
int b;
int cul = (a*b);
if(cul==0){
System.out.println("Zero");
} else if(cul>=0){
System.out.println("Positive");
} else {
System.out.println("Negative");
}
}
} | Main.java:1: error: class RangeProduct is public, should be declared in a file named RangeProduct.java
public class RangeProduct{
^
1 error
|
s983430992 | p04033 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
const int a,b,i,ans=1;
cin>>a>>b;
for(i=a;i<=b;i++)
ans=ans*i;
if(ans>0)
cout<<"Positive"<<endl;
else
if(ans==0)
cout<<"Zero"<<endl;
else
cout<<"Negative"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:5:15: error: uninitialized 'const a' [-fpermissive]
5 | const int a,b,i,ans=1;
| ^
a.cc:5:17: error: uninitialized 'const b' [-fpermissive]
5 | const int a,b,i,ans=1;
| ^
a.cc:5:19: error: uninitialized 'const i' [-fpermissiv... |
s704119711 | p04033 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
long long a,b;
cin>>a>>b;
if(a>0)
cout<<"Positive"<<endl;
if(a<0&&b<0)
cout<<"Negative"<<endl;
if(a<=0&&b>=0)
cout<<"Zero"<<endl;
}a | a.cc:13:2: error: 'a' does not name a type
13 | }a
| ^
|
s281470473 | p04033 | C++ | #include<cstdio>
using namespace std;
int a,b;
int main(){
cin>>a>>b;
if(a>0)puts("Positive");
else if(b>=0)puts("Zero");
else if((a&1)^(b&1))puts("Positive");
else puts("Negative");
return 0;
} | a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
5 | cin>>a>>b;
| ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
1 | #include<cstdio>
+++ |+#include <iostream>
2 | using n... |
s603419715 | p04033 | C++ | #include<bits/stdc++.h>
using namespace std;
long long a,b;
int main(){
cin>>a>>b;
if(a*b<=0){puts("Zero");return 0;}
if(a>0){puts("Positive");return 0;}
if(b<0)(b-a&1)?puts("Positive"):puts(Nagative);
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:46: error: 'Nagative' was not declared in this scope
8 | if(b<0)(b-a&1)?puts("Positive"):puts(Nagative);
| ^~~~~~~~
|
s539516110 | p04033 | C++ | #include<bits/stdc++.h>
using namespace std;
long long a,b;
int main(){
cin>>a>>b;
if(a*b<=0)puts("Zero"),return 0;
if(a>0)puts("Positive"),return 0;
if(b<0)(b-a&1)?puts("Positive"):puts(Nagative);
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:28: error: expected primary-expression before 'return'
6 | if(a*b<=0)puts("Zero"),return 0;
| ^~~~~~
a.cc:7:33: error: expected primary-expression before 'return'
7 | if(a>0)puts("Positive"),return 0;
| ... |
s334325255 | p04033 | C++ | #include<iostream>
#include<algorithm>
//#include<Hatsune_Miku>
using namespace std;
long long n,m,ans,bns;
int main(){
cin>>n>>m;
ans=max(n,m);
bns=min(n,m)
if(bns>0)cout<<"Positive"<<endl;
if(bns<0)cout<<"Zero"<<endl;
if(ans<0)cout<<"Negative"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:16: error: expected ';' before 'if'
9 | bns=min(n,m)
| ^
| ;
10 | if(bns>0)cout<<"Positive"<<endl;
| ~~
|
s121475816 | p04033 | C++ | #include<bits/stdc++.h>
using namespace std;
void read(int &x){
int f=1;x=0;char s=getchar();
while(s<'0'||s>'9'){if(s=='-')f=-1;s=getchar();}
while(s>='0'&&s<='9'){x=x*10+s-'0';s=getchar();}
x*=f;
}
void print(int x){
if(x<9){putchar('-');x=-x;}
if(x>9)print(x/10);putchar(x%10+'0');
}
namespace NB{
int main(){
... | a.cc: In function 'int NB::main()':
a.cc:31:9: warning: no return statement in function returning non-void [-Wreturn-type]
31 | }
| ^
a.cc: At global scope:
a.cc:32:9: error: expected unqualified-id before 'return'
32 | return 0;
| ^~~~~~
|
s581540027 | p04033 | C++ | #include<bits/stdc++.h>
using namespace std;
double a,b,sum=1;
int main()
{
cin>>a>>b;
if(a>0 && b>0) cout<<"Positive"<<endl;
if(a=0 && b=0) cout<<"Zero"<<endl;
if(a<0 && b<0 || a<0 && b>0 || a>0 && b<0) cout<<"Negative"<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:9: error: lvalue required as left operand of assignment
8 | if(a=0 && b=0) cout<<"Zero"<<endl;
| ~~^~~~
|
s831122849 | p04033 | C++ | #include<bits/stdc++.h>
using namespace std;
double a,b;
int main()
{
cin>>a>>b;
if(a*b>0) cout<<"Positive"<<endl;
if(a*b=0) cout<<"Zero"<<endl;
if(a*b<0) cout<<"Negative"<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:6: error: lvalue required as left operand of assignment
8 | if(a*b=0) cout<<"Zero"<<endl;
| ~^~
|
s250692498 | p04033 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef pair<int,int> pii;
typedef long long int ll;
#define INF 1 << 30
#define REP(i,n) for(ll i=0; i<(int)(n); i++)
#define FOR(i,k,n) for(ll i=(k);i<(int)(n);i++)
vector<bool> gen_sosuu(vector<bool> sosuu){
int size = sosuu.size();
REP(i,size){
sosuu[i] = t... | a.cc: In function 'int main()':
a.cc:37:19: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
37 | cout <<"Zero" <<end;
| ~~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/14/istream:41,
from /usr/includ... |
s776919432 | p04033 | C++ | #include <bits/stdc++.h>
using namespace sdt;
int main() {
long long a, b;
cin >> a >> b;
a *= b;
if (a > 0)
puts("Positive");
else if (a < 0)
puts("Negative");
else
puts("Zero");
return 0;
} | a.cc:2:17: error: 'sdt' is not a namespace-name
2 | using namespace sdt;
| ^~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | cin >> a >> b;
| ^~~
| std::cin
In file included from /usr/include/x86_64-lin... |
s841450866 | p04033 | C++ | include<bits/stdc++.h>
#define REP(i,n) for(int (i)=0;i<(n);i++)
#define vi vector<int>
using namespace std;
int main()
{
int n, m;
cin >> n >> m;
n++;
vi v(n);
REP(i, n) v[i] = 1;
int aka = 200000;
v[1] = aka;
int x, y;
REP (i, m) {
cin >> x >> y;
if (aka <= v[x])
{
v[x] == aka ... | a.cc:1:1: error: 'include' does not name a type
1 | include<bits/stdc++.h>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:11:3: error: 'cin' was not declared in this scope
11 | cin >> n >> m;
| ^~~
a.cc:4:12: error: 'vector' was not declared in this scope
4 | #define vi vector<int>
| ... |
s534633660 | p04033 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
#include <complex>
#include <string>
#include <cmath>
using namespace std;
int min(int n, int m){
return ((n>m) ? m : n);
}
int main(void){
int a, b;
cin >> a >> b;
long long prod = 1;
for(int i=a;i<=n;i++){
prod *= i;
}
if(prod>0){
cout << 'Positi... | a.cc:21:25: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
21 | cout << 'Positive' << endl;
| ^~~~~~~~~~
a.cc:23:25: warning: multi-character character constant [-Wmultichar]
23 | cout << 'Zero' << endl;
| ... |
s152225194 | p04033 | C++ | int main()
{
int a, b;
cin >> a >> b;
int ans = 0;
if (0 < a)
ans = 1;
else if (b < 0)
ans = b - a % 2 ? -1: 1;
cout << a << " " << ans << endl;
} | a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
4 | cin >> a >> b;
| ^~~
a.cc:12:3: error: 'cout' was not declared in this scope
12 | cout << a << " " << ans << endl;
| ^~~~
a.cc:12:31: error: 'endl' was not declared in this scope
12 | cout << a << ... |
s945595800 | p04033 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
int x,y;
cin>>x>>y;
if (x>0&&y>0) cout<<"Positive";
else if (max(x,y)>=0&&min(x,y)<=0||x==0||y==0) cout<<"Zero";
else
{
if ((abs(min(x,y))-abs(max(x,y)))%2==0)
cout<<"Negative";
else cout<<"Positive";
}
... | a.cc:16:5: error: 'cout' does not name a type
16 | cout<<endl;
| ^~~~
a.cc:17:5: error: expected unqualified-id before 'return'
17 | return 0;
| ^~~~~~
a.cc:18:1: error: expected declaration before '}' token
18 | }
| ^
|
s292236458 | p04033 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
int x,y;
cin>>x>>y;
if (x>0&&y>0) cout<<"Positive";
else if (max(x,y)>=0&&min(x,y)<=0||x==0||y==0) cout<<"Zero";
else
{
if ((abs(min(x,y))-abs(max(x,y)))%2==0)
cout<<"Negative";
else cout<<"Positive";
}
... | a.cc:16:5: error: 'cout' does not name a type
16 | cout<<endl;
| ^~~~
a.cc:17:5: error: expected unqualified-id before 'return'
17 | return 0;
| ^~~~~~
|
s122595431 | p04033 | C++ | #include<iostream>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<cstdio>
#include<climits>
using namespace std;
void File(){
freopen("AGC02E.in","r",stdin);
freopen("AGC02E.out","w",stdout);
}
template<typename T>bool chkmax(T &_,T __){return _<__ ? (_=__,1) : 0;}
template<typename T>bool chkmin(T &_... | a.cc: In function 'int main()':
a.cc:40:13: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
40 | REP(i,1,n)scanf("%d",&a[i]);
| ^
a.cc:14:37: note: in definition of macro 'REP'
14 | #define REP(i,a,b) for(register int i=a;i<=b;++i)
| ... |
s155437380 | p04033 | C++ | int main(void){
int a, b;
cin >> a >> b;
if(a<0 && b>0)
cout<< 0 << endl;
else if(a>0)
cout << "Positive" << endl;
else{
int c = abs(a),d = abs(b);
if((c%2 == 0 && d%2 == 0 )||(c%2 != 0 && d%2 != 0))
cout << "Negative" << endl;
else
cou... | a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
3 | cin >> a >> b;
| ^~~
a.cc:5:9: error: 'cout' was not declared in this scope
5 | cout<< 0 << endl;
| ^~~~
a.cc:5:21: error: 'endl' was not declared in this scope
5 | cout<< 0 ... |
s770401590 | p04033 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b, ans = 1;
for(int i = 0; i < abs(a + b) + 1; i++){
ans *= a + i;
}
if(ans > 0){
cout << "Positive" << endl;
} else if(ans < 0){
cout << "Negative" << endl;
} else {
cout << "Zero" << endl;... | a.cc: In function 'int main()':
a.cc:5:19: error: 'ans' was not declared in this scope; did you mean 'abs'?
5 | cin >> a >> b, ans = 1;
| ^~~
| abs
|
s659672695 | p04033 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
if(a > 0){
cout << "Positive" << endl;
}
else if(a == 0){
cout << "Zero" << endl;
}
else if(a < 0 && b >= 0){
cout << "Zero" << endl;
}
else if((abs(a) - abs(b)) % 2 = 0){
cout << "Negative" << endl;
}
else{
cout << "Positive" << ... | a.cc: In function 'int main()':
a.cc:15:35: error: lvalue required as left operand of assignment
15 | else if((abs(a) - abs(b)) % 2 = 0){
| ~~~~~~~~~~~~~~~~~~^~~
|
s902333022 | p04033 | C++ | #include <cstdio>
#include <cstdlib>
#include <iostream>
#include <algorithm>
#include <cmath>
#include <cstring>
using namespace std;
int main()
{
long long a,b;
cin>>a>>b;
if(a<0&&b>0&&|a|>|b| || b<0&&a>0&&|b|>|a| || a<0&&b<0)
cout<<"Negative";
if(a<0&&b>0&&|a|<|b| || b<0&&a>0&&|b|<|a| || a>0&&b>0... | a.cc: In function 'int main()':
a.cc:12:18: error: expected primary-expression before '|' token
12 | if(a<0&&b>0&&|a|>|b| || b<0&&a>0&&|b|>|a| || a<0&&b<0)
| ^
a.cc:12:21: error: expected primary-expression before '>' token
12 | if(a<0&&b>0&&|a|>|b| || b<0&&a>0&&|b|>|a| || a<0&&b<0)... |
s682105622 | p04033 | C++ | #include <cstdio>
#include <cstdlib>
#include <iostream>
#include <algorithm>
#include <cmath>
#include <cstring>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
if(a+b<0)
cout<<"Negative";
if(a+b>0)
cout<<"Positive"
if(a+b==0)
cout<<"Zero";
cout<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:15:21: error: expected ';' before 'if'
15 | cout<<"Positive"
| ^
| ;
16 | if(a+b==0)
| ~~
|
s657528497 | p04033 | C++ | //#include <bits/stdc++.h>
#include<iostream>
#include<cstdio>
#include<string>
#include<algorithm>
#include<vector>
#include<stack>
#include<queue>
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,n) FOR(i,0,n)
#define pb push_back
#define INF 93193111451418101
#define MIN -93193111451418101
using namespace s... | a.cc: In function 'int main()':
a.cc:34:14: error: expected ';' before '}' token
34 | ans=0
| ^
| ;
35 | }else if(b==0){
| ~
|
s890552980 | p04033 | Java | class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
long head = sc.nextInt();
long tail = sc.nextInt();
long num = head;
for (long i = head + 1L ; i <= tail; i++){
num *= i;
}
int num2 = Long.signum(num);
if(num2 == -1){
System.out.println("Negative"... | Main.java:3: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:3: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
|
s248499077 | p04033 | Java | class at1_2016_0731_A{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
long head = sc.nextInt();
long tail = sc.nextInt();
long num = head;
for (long i = head + 1L ; i <= tail; i++){
num *= i;
}
int num2 = Long.signum(num);
if(num2 == -1){
System.out.println... | Main.java:3: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class at1_2016_0731_A
Main.java:3: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class at1_2016_0731_A
2 errors
|
s485522212 | p04033 | Java | import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
long head = sc.nextInt();
long tail = sc.nextInt();
long num = head;
for (long i = head + 1 ; i <= tail; i++){
num *= i;
}
if(num < 0){
System.out.prlongln("Negative");
} else if(... | Main.java:15: error: cannot find symbol
System.out.prlongln("Negative");
^
symbol: method prlongln(String)
location: variable out of type PrintStream
Main.java:17: error: cannot find symbol
System.out.prlongln("Positive");
^
symbol: method prlongln(String)
location: varia... |
s192800733 | p04033 | Java | import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
long head = sc.nextlong();
long tail = sc.nextlong();
long num = head;
for (long i = head + 1 ; i <= tail; i++){
num *= i;
}
if(num < 0){
System.out.prlongln("Negative");
} else i... | Main.java:6: error: cannot find symbol
long head = sc.nextlong();
^
symbol: method nextlong()
location: variable sc of type Scanner
Main.java:7: error: cannot find symbol
long tail = sc.nextlong();
^
symbol: method nextlong()
location: variable sc of type Scanner
Main.jav... |
s816711483 | p04033 | Java | import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int head = sc.nextInt();
int tail = sc.nextInt();
int num = head;
for (int i = head +1 ; i <= tail; i++){
num *= i;
}
if(num < 0){
System.out.println("Negative");
} else (num > 0)... | Main.java:16: error: not a statement
} else (num > 0){
^
Main.java:16: error: ';' expected
} else (num > 0){
^
Main.java:18: error: 'else' without 'if'
} else {
^
3 errors
|
s651749187 | p04033 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
long long int a,b,i=1,c;
cin>>a>>b;
c = a;
while(a+i<=b){
c=c*(a+i);
i++;
if(c>0) cout<<"Positive"<<endl;
if(c==0) cout<<"Zero"<<endl;
if(c<0) cout<<"Negative"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:14:2: error: expected '}' at end of input
14 | }
| ^
a.cc:3:11: note: to match this '{'
3 | int main(){
| ^
|
s951181349 | p04033 | C++ | int n,l,sz;
int a,b;
bool canUntie2[100001];
int order[100001];
int main()
{
cin>>n>>l>>a;
for(int i = 2;i<=n;i++)
{
cin>>b;
canUntie2[i-1]=((a+b)>=l);
a=b;
}
for(int i = 1;i<=n-1;i++)
{
if(canUntie2[i]==1)
{
int stop = n;
for(int... | a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
7 | cin>>n>>l>>a;
| ^~~
a.cc:57:17: error: 'cout' was not declared in this scope
57 | cout<<"Impossible";
| ^~~~
a.cc:69:9: error: 'cout' was not declared in this scope
69 ... |
s769113793 | p04033 | C++ | #include <bits/stdc++.h>
#define pout(n) printf ("%d\n", n)
#define rep(i,a,n) for (int i = a;i < n;i++)
#define per(i,n,a) for (int i = n-1;i >= a;i--)
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
const int d4x[4] = {1, 0, -1, 0};
const int d4y[4] = {0, 1, 0, -1};
const int d8x[8] = ... | a.cc:39:9: error: expected unqualified-id before 'return'
39 | return 0;
| ^~~~~~
a.cc:40:1: error: expected declaration before '}' token
40 | }
| ^
|
s066587363 | p04033 | C++ | #include <bits/stdc++.h>
#define pout(n) printf ("%d\n", n)
#define rep(i,a,n) for (int i = a;i < n;i++)
#define per(i,n,a) for (int i = n-1;i >= a;i--)
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
const int d4x[4] = {1, 0, -1, 0};
const int d4y[4] = {0, 1, 0, -1};
const int d8x[8] = ... | a.cc:39:9: error: expected unqualified-id before 'return'
39 | return 0;
| ^~~~~~
a.cc:40:1: error: expected declaration before '}' token
40 | }
| ^
|
s281497460 | p04033 | C++ | #include <iostream>
#include <string>
#include <algorithm>
#include <cmath>
#include <map>
using namespace std;
int main(){
long long int a, b;
cin >> a >> b;
if(a * b <= 0) cout << "Zero" << endl;
else if(a > 0) cout << "Positive" << endl;
else{
if(((a - b) % 2) = 0) cout << "Negative" << endl;
else cout << ... | a.cc: In function 'int main()':
a.cc:14:29: error: lvalue required as left operand of assignment
14 | if(((a - b) % 2) = 0) cout << "Negative" << endl;
| ~~~~~~~~~^~~~
|
s022639053 | p04033 | Java | import java.util.Scanner;
public class AMain {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
sc.close();
if(a <= 0 && b >= 0){
System.out.println("Zero");
}else if(a > 0 || (a < 0 && (b-a)%2 == 1)){
... | Main.java:3: error: class AMain is public, should be declared in a file named AMain.java
public class AMain {
^
1 error
|
s567986204 | p04033 | 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();
sc.close();
if(a <= 0 && b >= 0){
System.out.println("Zero");
}else if(a > 0 (a < 0 && (a-b)%2 == 1)){
... | Main.java:11: error: ')' expected
}else if(a > 0 (a < 0 && (a-b)%2 == 1)){
^
Main.java:11: error: not a statement
}else if(a > 0 (a < 0 && (a-b)%2 == 1)){
^
Main.java:11: error: ';' expected
}else if(a > 0 (a < 0 && (a-b)%2 == 1)){
... |
s706702226 | p04033 | C++ | #include <iostream>
using namespace std;
int main() {
int a,b;
//Positive
if((a > 0 && b > 0) || (a < 0 && b < 0) && ((b - a) % 2 == 0 )){
cout << "Positive";
}
//Zero
if((a > 0 && b < 0) || (a < 0 && b > 0) || (a == 0) || (b == 0)){
cout << "Zero";
}
//Negative
if((a < 0 && b < 0) &... | a.cc: In function 'int main()':
a.cc:19:23: error: expected ';' before '}' token
19 | cout << "Negative"
| ^
| ;
20 | }
| ~
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.