criyle/codenet-compile-errors huggingface dataset:
Language: C++

include<bits/stdc++.h>
using namespace std;
int main()
{

    int a,b,ju;
    cin>>a>>b;
    ju=b-a+1;//数字个数
    if(a>0)
    {
        cout<<"Positive"<<endl;
        return 0;
    }
    if(a<0&&b<0&&ju%2==1)//刚开始没想到负负得正，WA了多次
    {
        cout<<"Negative"<<endl;
        return 0;
    }
    if(a<=0&&b>=0)
    {
        cout<<"Zero"<<endl;
        return 0;
    }
    cout<<"Positive"<<endl;
    return 0;
} 

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin>>a>>b;
      |     ^~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout<<"Positive"<<endl;
      |         ^~~~
a.cc:11:27: error: 'endl' was not declared in this scope
   11 |         cout<<"Positive"<<endl;
      |                           ^~~~
a.cc:16:9: error: 'cout' was not declared in this scope
   16 |         cout<<"Negative"<<endl;
      |         ^~~~
a.cc:16:27: error: 'endl' was not declared in this scope
   16 |         cout<<"Negative"<<endl;
      |                           ^~~~
a.cc:21:9: error: 'cout' was not declared in this scope
   21 |         cout<<"Zero"<<endl;
      |         ^~~~
a.cc:21:23: error: 'endl' was not declared in this scope
   21 |         cout<<"Zero"<<endl;
      |                       ^~~~
a.cc:24:5: error: 'cout' was not declared in this scope
   24 |     cout<<"Positive"<<endl;
      |     ^~~~
a.cc:24:23: error: 'endl' was not declared in this scope
   24 |     cout<<"Positive"<<endl;
      |                       ^~~~
Language: C++

#include<cstdio>
#include <bits/stdc++.h>
using namespace std;
int a,b;
int main(){
    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;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:30: error: expected ';' before 'else'
    8 |     else if(b>=0)puts("Zero")
      |                              ^
      |                              ;
    9 |     else if((a&1)^(b&1))puts("Positive");
      |     ~~~~
Language: C++

#include<cstdio>
using namespace std;
int a,b;
int main(){
    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;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:30: error: expected ';' before 'else'
    7 |     else if(b>=0)puts("Zero")
      |                              ^
      |                              ;
    8 |     else if((a&1)^(b&1))puts("Positive");
      |     ~~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
    long long int i,j;
    cin>>i>>j;
    if(i>0&&j>0){
      cout<<"Positive" ;return 0; 
    } 
    if(i==0||j==0){
        cout<<"Zero";return 0;
    }
    if(i>0&&j<0){
        cout<<"Zero";return 0;
    }
    if(i<0&&j>0){
        cout<<"Zero";return 0;
    }
    if(j==i) cout<<"Negative"
    int k=j-i;
    if(k%2==0) cout<<"Positive";
    else cout<<"Negative";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:30: error: expected ';' before 'int'
   18 |     if(j==i) cout<<"Negative"
      |                              ^
      |                              ;
   19 |     int k=j-i;
      |     ~~~                       
a.cc:20:8: error: 'k' was not declared in this scope
   20 |     if(k%2==0) cout<<"Positive";
      |        ^
Language: C++

#include <iostream>

int main(void) {
  int a, b;
  std::cin >> a >> b;
  
  if(a <= 0 && b >= 0) std::cout << 'Zero' <<std::endl;
  if(a > 0 && b > 0) std::cout << 'Positive' <<std::endl;
  if(a < 0 && b < 0 && (b - a + 1) % 2 + 1) {
    std::cout << 'Positive' <<std::endl;
  } else {
    std::cout << 'Negative' <<std::endl;    
  }
  
  return;
}

Compiler output:
a.cc:7:37: warning: multi-character character constant [-Wmultichar]
    7 |   if(a <= 0 && b >= 0) std::cout << 'Zero' <<std::endl;
      |                                     ^~~~~~
a.cc:8:35: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
    8 |   if(a > 0 && b > 0) std::cout << 'Positive' <<std::endl;
      |                                   ^~~~~~~~~~
a.cc:10:18: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
   10 |     std::cout << 'Positive' <<std::endl;
      |                  ^~~~~~~~~~
a.cc:12:18: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
   12 |     std::cout << 'Negative' <<std::endl;
      |                  ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:15:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   15 |   return;
      |   ^~~~~~
Language: 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)...); }
void _cout(){ cout << "\n"; } template <class Head, class... Tail> void _cout(Head&& head, Tail&&... tail){ cout << head; _cout(forward<Tail>(tail)...); }
int gcd(int a, int b){ return (b == 0) ? a : gcd(b, a % b); }

#define For(i, n) for(int i = 0; i < (n); i ++)
#define Rep(n) For(_, n)
#define Range(c) c.begin(), c.end()
#define RevRange(c) c.rbegin(), c.rend()
#define Contains(c, x) (find(Range(c), x) != c.end())
#define Search(rb, re, x) distance(rb, find(rb, re, x))
#define Sort(a) sort(Range(a))
#define DeSort(a) sort(RevRange(a))
#define Reverse(c) reverse(Range(c))
#define Vec2(T, n, m, xs, x0) vector<vector<T>> xs(n, vector<T>(m, x0))
#define Sum(a) accumulate(Range(a), 0)
#define Cusum(T, xs, sxs) vector<T> sxs(xs.size()+1); For(i, (int)xs.size()) sxs[i+1] = sxs[i] + xs[i]
#define Cin(T, ...) T __VA_ARGS__; _cin(__VA_ARGS__)
#define Cins(T, n, xs) vector<T> xs(n); For(i, n) cin >> xs[i]
#define Cins2(T, n, xs, ys) vector<T> xs(n), ys(n); For(i, n) cin >> xs[i] >> ys[i]
#define Cins3(T, n, xs, ys, zs) vector<T> xs(n), ys(n), zs(n); For(i, n) cin >> xs[i] >> ys[i] >> zs[i]
#define Cinss(T, n, m, xs) Vec2(T, n, m, xs); For(i, n) For(j, m) cin >> xs[i][j]
#define Cinm(T, n, map) unordered_map<T, int> map; Rep(n){ Cin(T, x); map[x] ++; }
#define Cout(...) _cout(__VA_ARGS__)
#define Couts(xs) for(const auto &e : xs) cout << e << " "; cout << "\n"
#define Coutyn(cond) Cout((cond) ? "yes" : "no")
#define CoutYn(cond) Cout((cond) ? "Yes" : "No")
#define CoutYN(cond) Cout((cond) ? "YES" : "NO")

// constexpr int MOD = 1e9+7;

int main(void){
    Cin(int, a, b);
    Cout((a > 0) ? "Positive" : (b < 0) : "Negative" : "Zero");
}


Compiler output:
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_ARGS__)
      |                         ^~~~~~~~~~~
Language: 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;
}

Compiler output:
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 | }
      | ^
Language: 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 ((b-a+1)%2 != 0) cout << "Negative" << "\n";
        else cout << "Positive" << "\n";
    }
    
    return 0;
}

Compiler output:
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/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:17:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |         else cout << "Positive" << "\n";
      |              ^~~~
      |              std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: 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))
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }
#define pb push_back
#define mp make_pair
#define y0 y3487465
#define y1 y8687969
#define j0 j1347829
#define j1 j234892
ll gcd(ll a,ll b){return b?gcd(b,a%b):a;}
const ll INF = 1LL<<60;
 
int main() {
	ll a, b;
  	cin >> a >> b;
  	ll cal = 0;
  	if(a < 0 && b > 0 || a > 0 && b < 0){
      cout << 0 << endl;
      return 0;
    }
  	else if(a > 0 && b > 0){
      cout << "Positive" << endl;
      return 0;
    }
  	else{
      if(-1 * x > -1 * y) cal = -1 * x - (-1 * y) + 1;
      else cal = -1 * y - (-1 * x) + 1;
      if(cal % 2 == 0) cout << "Positive" << endl;
      else cout << "Negative" << endl;
    }
}

Compiler output:
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;
      |                        ^
Language: 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))
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }
#define pb push_back
#define mp make_pair
#define y0 y3487465
#define y1 y8687969
#define j0 j1347829
#define j1 j234892
ll gcd(ll a,ll b){return b?gcd(b,a%b):a;}
const ll INF = 1LL<<60;
 
int main() {
	ll a, b;
  	cin >> a >> b;
  	ll cal = 0;
  	if(a < 0 && b > 0 || a > 0 && b < 0){
      cout << 0 << endl;
      return 0;
    }
  	else if(a > 0 && b > 0){
      cout << "Positive" << endl;
      return 0;
    }
  	else{
      if(-x > -y) cal = -x - (-y) + 1;
      else cal = -y - (-x) + 1;
      if(cal % 2 == 0) cout << "Positive" << endl;
      else cout << "Negative" << endl;
    }
}

Compiler output:
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;
      |                ^
Language: 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;
}

Compiler output:
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;
      |           ^
Language: 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";
            }
        }else{
            cout << "Zero";
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: expected ';' before '}' token
    7 |         cout << "Positive"
      |                           ^
      |                           ;
    8 |     }else if(a == 0){
      |     ~
Language: 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;
    }
    else{
      cout << "Negative" << endl;
    }
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'a' was not declared in this scope
    6 |   cin >> a >> b;
      |          ^
Language: 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;
  int y;

};
int gcd(int a, int b)
{
	return a == 0 ? b : gcd(b % a, a);
}
int lcm( int m, int n )
{
	// 引数に０がある場合は０を返す
	if ( ( 0 == m ) || ( 0 == n ) )
		return 0;
	
	return ((m / gcd(m, n)) * n); // lcm = m * n / gcd(m,n)
}//lcm
int input(){
  int x;
  cin>>x;
  return x;
}

int moji(char in)
{
    int ans = (int)in-(int)'a';
    if((ans < 0) || (ans > 25)){
        ans = 26;
    }
    return ans;
}
const int VV=10;//場合に応じてVVの値のみ変更する必要あり
//dijkstra(s)sがスタート地点でそこからの最短距離を配列dで表す。正の重みのみ使用可能
int cost[VV][VV];
int d[VV];
bool used[VV];
void dijkstra(int s){
  fill(d,d+VV,100000);
  fill(used,used+VV,false);
  d[s]=0;
  while(true){
    int v=-1;
    for(int u=0;u<VV;u++){
      if(!used[u]&&(v==-1||d[u]<d[v]))v=u;
    }
    if(v==-1)break;
    used[v]=true;
    for(int u=0;u<VV;u++){
      d[u]=min(d[u],d[v]+cost[v][u]);
    }
  }

}

int compare_int(const void *a, const void *b)//qsort(quick sort利用時に使用)
{
    return *(int*)a - *(int*)b;
}

int binary_searchh(long long x,long long k[],int n){
  int l=0;
  int r=n;
  while(r-l>=1){
    int i=(l+r)/2;
    if(k[i]==x)return i;
    else if(k[i]<x)l=i+1;
    else r=i;
  }
  return -1;
}

struct File {
    int aa;
    int bb;

    File(const int& aa, const int& bb)
        : aa(aa), bb(bb) {}
};

bool operator<(const File& a, const File& b)
{
    // ファイル種別、ファイル名の順番で優先順位を付けて比較
    return std::tie(a.aa, a.bb) < std::tie(b.aa, b.bb);
}

long long kaijo(long long x){
  long long l=10*10*10*10*10*10*10*10*10+7;
  long long sum=1;
  for(int i=x;i>0;i--){
    sum*=i;
    if(sum>l){
      sum%=l;
    }
  }
  return sum;
}






int main(){
  long long a,b;
  cin>>a>>b;
  if(a==0||b==0){
    cout<<"Zero"<<endl;
  }else if(a<0&&b>0){
    cout<<"Zero"<<endl;
  }else{
    if(a>0){
      cout<<"Positive"<<endl;
    }else{
      if(B-A+1%2==0){
        cout<<"Positive"<<endl;
      }else{
        cout<<"Negative"<<endl;
      }
    }
  }

}





Compiler output:
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){
      |            ^
Language: 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;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: expected ';' before '}' token
   13 |     break
      |          ^
      |          ;
   14 |   }
      |   ~
Language: 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;
}


Compiler output:
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){
      |   ^~~~
Language: 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;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: expected initializer before '*=' token
    8 |     int c*=a;
      |          ^~
Language: 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;
}


Compiler output:
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){
      |      ^
Language: 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;
}

Compiler output:
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){
      |      ^
Language: 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;
}

Compiler output:
a.cc:1:9: fatal error: bts/stdc++.h: No such file or directory
    1 | #include<bts/stdc++.h>
      |         ^~~~~~~~~~~~~~
compilation terminated.
Language: 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;
}

Compiler output:
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;
      |             ~^~
Language: 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 {
			printf("Positive");
		}
	}

	return 0;
}

Compiler output:
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
Language: 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 ((abs(min(x, y)) - abs(max(x, y))) % 2 == 0) {
            cout << "Negative" << endl;
        } 
		else {
            cout << "Positive" << endl;
        }
    }
    return 0;


Compiler output:
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 | {
      | ^
Language: 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 << "Positive" << std::endl;
    } else if ((a >= 0 && b =< 0) || (b >= 0 && a <= 0)) {
        std::cout << "Zero" << std::endl;
    } else {
        if (b-a+1 % 2 == 0) {
            std::cout << "Positive" << std::endl;
        } else {
            std::cout << "Negative" << std::endl;
        }
    }
    return 0;
}

Compiler output:
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)) {
      |                              ^
Language: 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(){
    ll ans=0,fh=1;
    char c=getchar();
    while(c<'0'||c>'9'){
        if(c=='-')fh=-1;
        c=getchar();
    }
    while(c>='0'&&c<='9'){
        ans=ans*10+c-'0';
        c=getchar();
    }
    return ans*fh;
}
ll a,b,ans=1;
int main(){
	a=read();
	b=read();
	for(int i=a;i<=b;i++){
		ans*=i;
	}
	if(ans>0)cout<<"Positive";
	if(ans<0)cout<<"Negative";
	if(ans==0)cout<<"Zero";
    return 0;
}
#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(){
    ll ans=0,fh=1;
    char c=getchar();
    while(c<'0'||c>'9'){
        if(c=='-')fh=-1;
        c=getchar();
    }
    while(c>='0'&&c<='9'){
        ans=ans*10+c-'0';
        c=getchar();
    }
    return ans*fh;
}
ll a,b,ans=1;
int main(){
	a=read();
	b=read();
	if(a>b)swap(a,b);
	for(int i=a;i<=b;i++){
		if(i<0)ans*=-1;
		if(i==0){
			ans=0;break;
		}
	}
	if(ans>0)cout<<"Positive";
	if(ans<0)cout<<"Negative";
	if(ans==0)cout<<"Zero";
    return 0;
}


Compiler output:
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' previously declared here
   30 | ll a,b,ans=1;
      |    ^
a.cc:71:6: error: redefinition of 'long long int b'
   71 | ll a,b,ans=1;
      |      ^
a.cc:30:6: note: 'long long int b' previously declared here
   30 | ll a,b,ans=1;
      |      ^
a.cc:71:8: error: redefinition of 'long long int ans'
   71 | ll a,b,ans=1;
      |        ^~~
a.cc:30:8: note: 'long long int ans' previously defined here
   30 | ll a,b,ans=1;
      |        ^~~
a.cc:72:5: error: redefinition of 'int main()'
   72 | int main(){
      |     ^~~~
a.cc:31:5: note: 'int main()' previously defined here
   31 | int main(){
      |     ^~~~
Language: 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";
}

Compiler output:
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 | {
      | ^
Language: 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";           
    else if((a&1)^(sum&1))cout<<"Positive";  
    else cout<<"Negative";
	return 0;
}


	



Compiler output:
a.cc: In function 'int main()':
a.cc:16:22: error: 'm' was not declared in this scope
   16 |         sum=jiecheng(m);
      |                      ^
Language: 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 if((a&1)^(b&1))cout<<"Positive";  
    else cout<<"Negative";
	return 0;
}


	



Compiler output:
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";
      |             ^
Language: 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;
	 }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:30: error: expected primary-expression before '=' token
   12 |          else if(0>b&&(a-b)%==1){
      |                              ^
Language: 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
#define d2(x, y) cerr<<#x<<":"<<x<<" "<<#y<<":"<<y<<endl
#define d3(x, y, z) cerr<<#x<<":"<<x<<" "<<#y<<":"<<y<<" "<<#z<<":"<<z<<endl
#define fast_io() ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0)
using namespace std;

typedef long long int lli;
typedef pair<int, int> ii;
typedef pair<ii, int> iii;
typedef pair<double, double> dd;

const int N = (int)(1e6 + 5);
const int LOG = (int)(20);

int a, b;

int main() {
	fast_io();
	// freopen("inp.in", "r", stdin);

	cin >> a >> b;
	if(a <= 0 && b >= 0) {
		cout << "Zero";
		return 0;
	}

	if(a > 0 && b > 0) {
		cout << "Positive";
		return 0;
	}

	if(a < 0 && b < 0) {
		if((a - b) % 2 == 0) {
			cout << "Positive";
			return 0;
		}
		else {
			cout << "Negative";
			return 0
		}
	}

	if(a % 2 == 0) {
		cout << "Positive";
		return 0;
	}

	cout << "Negative";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:51:33: error: expected ';' before '}' token
   51 |                         return 0
      |                                 ^
      |                                 ;
   52 |                 }
      |                 ~
Language: 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 {
			cout << "Positive" << endl;
		}
	}

	return 0;
}

Compiler output:
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: error: 'b' was not declared in this scope
    7 |         cin >> a >> b;
      |                     ^
Language: 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;
}

Compiler output:
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 | {
      | ^
Language: 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) r = "Zero";
	else if (a > 0 && b > 0) r = "Positive";
	else if (b - a + 1) % 2 == 0) r = "Positive";
	else r = "Negative";

	cout << r << endl;

	return 0;
}


Compiler output:
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";
      |                             ^
Language: 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, b) for(x= a; x <= b; ++x)
#define fb(x, a, b) for(x= a; x >= b; --a)
#define infa 0x3f3f3f3f
#define infb 0x7fffffff
#define infc 1061109567
#define infd 0x7f
using namespace std;
#define maxa 10
#define maxb 10004
#include <cstring>
#include <iostream>

itn a, b, x, y;

itn main() {
	scanf("%d%d", &a, &b);
	if((max(a, b) > 0) && (min(a, b) < 0)) {
		pritnf("Zero\n");
		return 0;
	}
	else if((a > 0) && (b > 0)) {
		pritnf("Positive\n");
		return 0;
	}
	else if(a == b) {
		if(a > 0) {
			pritnf("Positive\n");
			return 0;
		}
		else if(a < 0) {
			pritnf("Negative\n");
			return 0;
		}
		else {
			pritnf("Zero\n");
			return 0;
		}
	}
	elsE {
		if((max(a, b) - min(a, b)) % 2 == 0) {
			pritnf("Negative\n");
			return 0;
		}
		else {
			pritnf("Positive\n");
			return 0;
		}
	}
}
//ciyang原创FV

Compiler output:
a.cc: In function 'int main()':
a.cc:54:9: error: 'elsE' was not declared in this scope
   54 |         elsE {
      |         ^~~~
Language: 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;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:37: error: expected ';' before 'return'
   14 |                 printf("Negative\n")
      |                                     ^
      |                                     ;
   15 |         return 0;
      |         ~~~~~~
Language: 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;
}

Compiler output:
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 std;
a.cc:6:12: error: 'cout' was not declared in this scope
    6 |     if(a>0)cout<<"Positive"<<endl;
      |            ^~~~
a.cc:6:12: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:30: error: 'endl' was not declared in this scope
    6 |     if(a>0)cout<<"Positive"<<endl;
      |                              ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<cstdio>
  +++ |+#include <ostream>
    2 | using namespace std;
a.cc:7:18: error: 'cout' was not declared in this scope
    7 |     else if(b>=0)cout<<"Zero"<<endl;
      |                  ^~~~
a.cc:7:18: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:32: error: 'endl' was not declared in this scope
    7 |     else if(b>=0)cout<<"Zero"<<endl;
      |                                ^~~~
a.cc:7:32: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:8:25: error: 'cout' was not declared in this scope
    8 |     else if((a&1)^(b&1))cout<<"Positive"<<endl;
      |                         ^~~~
a.cc:8:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:43: error: 'endl' was not declared in this scope
    8 |     else if((a&1)^(b&1))cout<<"Positive"<<endl;
      |                                           ^~~~
a.cc:8:43: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:9:10: error: 'cout' was not declared in this scope
    9 |     else cout<<"Negative"<<endl;
      |          ^~~~
a.cc:9:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:28: error: 'endl' was not declared in this scope
    9 |     else cout<<"Negative"<<endl;
      |                            ^~~~
a.cc:9:28: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: 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;
}
}
}

Compiler output:
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' does not name a type
    7 | cin >> a;
      | ^~~
a.cc:8:1: error: 'cin' does not name a type
    8 | cin >> b;
      | ^~~
a.cc:9:1: error: expected unqualified-id before 'if'
    9 | if (a == 0 || b == 0 || (a < 0 && b>0)) {
      | ^~
a.cc:12:1: error: expected unqualified-id before 'else'
   12 | else if (a > 0) {
      | ^~~~
a.cc:15:1: error: expected unqualified-id before 'else'
   15 | else {
      | ^~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: 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;
        else
            cout<<"Negative"<<endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected ',' or ';' before 'cin'
    6 |     cin>>n>>m;
      |     ^~~
Language: 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;
}

Compiler output:
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("%lld%lld",&a,&b);
      |         ^~~~~
a.cc:8:9: error: 'swap' was not declared in this scope
    8 |         swap(a,b);
      |         ^~~~
a.cc:11:17: error: 'printf' was not declared in this scope
   11 |                 printf("Positive");
      |                 ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | Box and Ball #include<bits/stdc++.h>
a.cc:16:17: error: 'printf' was not declared in this scope
   16 |                 printf("Zero");
      |                 ^~~~~~
a.cc:16:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:19:9: error: 'printf' was not declared in this scope
   19 |         printf("Negative");
      |         ^~~~~~
a.cc:19:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: 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;
		}
	}
}

Compiler output:
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)
      |              ^
Language: 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>=c;i--)
            if (i<0) ans++;
        if (ans%i==0) printf ("%s/n","Negative");
        else printf ("%s/n","Positive");
    }
    return 0;
}

Compiler output:
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");
      |                 ^
Language: 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--)
            if (i<0) ans++;
        if (ans%i==0) cout<<"Positive"<<endl;
        else cout<<"Negative"<<endl;
    }
    return 0;
}

Compiler output:
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;
      |                 ^
Language: 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--)
            if (i<0) ans++;
        if (ans%i==0) cout<<"Positive"<<endl;
        else cout<<"Negative"<<endl;
    }
    return 0;
}

Compiler output:
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;
      |                 ^
Language: 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;
}

Compiler output:
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 '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incldue<iostream>
a.cc:6:15: error: 'cout' was not declared in this scope
    6 |     if(a*b>0) cout<<"Positive";
      |               ^~~~
a.cc:6:15: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:16: error: 'cout' was not declared in this scope
    7 |     if(a*b==0) cout<<"Zero";
      |                ^~~~
a.cc:7:16: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:15: error: 'cout' was not declared in this scope
    8 |     if(a*b<0) cout<<"Negative";
      |               ^~~~
a.cc:8:15: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: 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" << endl;
      }
      else{
        cout << "Positive" << endl;
      }
    }
	return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: expected primary-expression before '%' token
    7 |         if(a > 0 %% b > 0){
      |                   ^
Language: 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))     printf("Positive");
    else             printf("nagetive");
    }
}
    r

Compiler output:
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 | {
      | ^
Language: 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;
}

Compiler output:
a.cc:1:9: fatal error: bits/std++.h: No such file or directory
    1 | #include<bits/std++.h>
      |         ^~~~~~~~~~~~~~
compilation terminated.
Language: 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;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: expected primary-expression before '>' token
    5 |     cin>>a>>>b;
      |             ^
Language: 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;
}

Compiler output:
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;}
      |                               ^
Language: 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;
}

Compiler output:
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;
      |                          ^~~~~~
Language: 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::endl;
    } else {
        std::cout << "Negative" << std::endl;
    }
} else {
    std::cout << "Positive" << std::endl;
}
return 0;
}

Compiler output:
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: error: 'cout' is not a member of 'std'
   14 |     std::cout << "Zero" << std::endl;
      |          ^~~~
a.cc:14:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:33: error: 'endl' is not a member of 'std'
   14 |     std::cout << "Zero" << std::endl;
      |                                 ^~~~
a.cc:5:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    4 | #include<algorithm>
  +++ |+#include <ostream>
    5 | 
a.cc:17:14: error: 'cout' is not a member of 'std'
   17 |         std::cout << "Positive" << std::endl;
      |              ^~~~
a.cc:17:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:41: error: 'endl' is not a member of 'std'
   17 |         std::cout << "Positive" << std::endl;
      |                                         ^~~~
a.cc:17:41: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:19:14: error: 'cout' is not a member of 'std'
   19 |         std::cout << "Negative" << std::endl;
      |              ^~~~
a.cc:19:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:19:41: error: 'endl' is not a member of 'std'
   19 |         std::cout << "Negative" << std::endl;
      |                                         ^~~~
a.cc:19:41: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:22:10: error: 'cout' is not a member of 'std'
   22 |     std::cout << "Positive" << std::endl;
      |          ^~~~
a.cc:22:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:22:37: error: 'endl' is not a member of 'std'
   22 |     std::cout << "Positive" << std::endl;
      |                                     ^~~~
a.cc:22:37: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: 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;
}

Compiler output:
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");
      |             ^