Language: Java

#include<iostream>
#include<algorithm>
#include<cmath>
#include<vector>
#include<map>
#include<set>
#include<string>
#include<queue>
#include<stack>
#include<iomanip>

#define fast_io ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);

using namespace std;

#define debug(x) cout<<(#x)<<"="<<(x)<<", ";
#define debug1(x) debug(x) cout<<'\n';
#define debug2(x1, x2) debug(x1) debug(x2) cout<<'\n';
#define debug3(x1, x2, x3) debug(x1) debug(x2) debug(x3) cout<<'\n';
#define debug4(x1, x2, x3, x4) debug(x1) debug(x2) debug(x3) debug(x4) cout<<'\n';
#define debug5(x1, x2, x3, x4, x5) debug(x1) debug(x2) debug(x3) debug(x4) debug(x5) cout<<'\n';

#define fcout cout<<fixed<<setprecision(15)
#define repp(i,j,k) for(int i=j; i<k; ++i)
#define rep(i,j) repp(i,0,j)
#define rrep(i,j,k) for(int i=j; i>=k; --i)
#define all(x) (x).begin(), (x).end()
#define sort(x) sort(x.begin(), x.end())
#define lb(x,val) lower_bound(x.begin(), x.end(), val)
#define ub(x,val) upper_bound(x.begin(), x.end(), val)
#define pb(x) emplace_back(x);

typedef long long int lli;
typedef pair<int,int> pii;
typedef pair<lli,lli> pll;
typedef vector<int> vi;
typedef vector<lli> vl;
typedef tuple<int, int, lli> tiil;

//const lli M=998244353ll;
const lli M=1000000007ll;
const double D=1.0;

int main(){
	fast_io
	int n; cin>>n;
	lli k=1ll,h;
	bool neg=false;
	rep(i,n){
		cin>>h;
		if(k*h<0) neg=true;
		k=k*h;
	}
	if(neg) cout<<"-1";
	else cout<<k;
	
	return 0;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:2: error: illegal character: '#'
#include<algorithm>
^
Main.java:3: error: illegal character: '#'
#include<cmath>
^
Main.java:4: error: illegal character: '#'
#include<vector>
^
Main.java:5: error: illegal character: '#'
#include<map>
^
Main.java:6: error: illegal character: '#'
#include<set>
^
Main.java:7: error: illegal character: '#'
#include<string>
^
Main.java:8: error: illegal character: '#'
#include<queue>
^
Main.java:9: error: illegal character: '#'
#include<stack>
^
Main.java:10: error: illegal character: '#'
#include<iomanip>
^
Main.java:12: error: illegal character: '#'
#define fast_io ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
^
Main.java:12: error: class, interface, enum, or record expected
#define fast_io ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
                                                  ^
Main.java:12: error: class, interface, enum, or record expected
#define fast_io ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
                                                                 ^
Main.java:14: error: class, interface, enum, or record expected
using namespace std;
^
Main.java:16: error: illegal character: '#'
#define debug(x) cout<<(#x)<<"="<<(x)<<", ";
^
Main.java:16: error: class, interface, enum, or record expected
#define debug(x) cout<<(#x)<<"="<<(x)<<", ";
        ^
Main.java:16: error: illegal character: '#'
#define debug(x) cout<<(#x)<<"="<<(x)<<", ";
                        ^
Main.java:17: error: illegal character: '#'
#define debug1(x) debug(x) cout<<'\n';
^
Main.java:17: error: class, interface, enum, or record expected
#define debug1(x) debug(x) cout<<'\n';
        ^
Main.java:18: error: illegal character: '#'
#define debug2(x1, x2) debug(x1) debug(x2) cout<<'\n';
^
Main.java:18: error: class, interface, enum, or record expected
#define debug2(x1, x2) debug(x1) debug(x2) cout<<'\n';
        ^
Main.java:19: error: illegal character: '#'
#define debug3(x1, x2, x3) debug(x1) debug(x2) debug(x3) cout<<'\n';
^
Main.java:19: error: class, interface, enum, or record expected
#define debug3(x1, x2, x3) debug(x1) debug(x2) debug(x3) cout<<'\n';
        ^
Main.java:20: error: illegal character: '#'
#define debug4(x1, x2, x3, x4) debug(x1) debug(x2) debug(x3) debug(x4) cout<<'\n';
^
Main.java:20: error: class, interface, enum, or record expected
#define debug4(x1, x2, x3, x4) debug(x1) debug(x2) debug(x3) debug(x4) cout<<'\n';
        ^
Main.java:21: error: illegal character: '#'
#define debug5(x1, x2, x3, x4, x5) debug(x1) debug(x2) debug(x3) debug(x4) debug(x5) cout<<'\n';
^
Main.java:21: error: class, interface, enum, or record expected
#define debug5(x1, x2, x3, x4, x5) debug(x1) debug(x2) debug(x3) debug(x4) debug(x5) cout<<'\n';
        ^
Main.java:23: error: illegal character: '#'
#define fcout cout<<fixed<<setprecision(15)
^
Main.java:23: error: class, interface, enum, or record expected
#define fcout cout<<fixed<<setprecision(15)
        ^
Main.java:24: error: illegal character: '#'
#define repp(i,j,k) for(int i=j; i<k; ++i)
^
Main.java:24: error: class, interface, enum, or record expected
#define repp(i,j,k) for(int i=j; i<k; ++i)
                                 ^
Main.java:24: error: class, interface, enum, or record expected
#define repp(i,j,k) for(int i=j; i<k; ++i)
                                      ^
Main.java:25: error: illegal character: '#'
#define rep(i,j) repp(i,0,j)
^
Main.java:26: error: illegal character: '#'
#define rrep(i,j,k) for(int i=j; i>=k; --i)
^
Main.java:26: error: class, interface, enum, or record expected
#define rrep(i,j,k) for(int i=j; i>=k; --i)
                                 ^
Main.java:26: error: class, interface, enum, or record expected
#define rrep(i,j,k) for(int i=j; i>=k; --i)
                                       ^
Main.java:27: error: illegal character: '#'
#define all(x) (x).begin(), (x).end()
^
Main.java:28: error: illegal character: '#'
#define sort(x) sort(x.begin(), x.end())
^
Main.java:29: error: illegal character: '#'
#define lb(x,val) lower_bound(x.begin(), x.end(), val)
^
Main.java:30: error: illegal character: '#'
#define ub(x,val) upper_bound(x.begin(), x.end(), val)
^
Main.java:31: error: illegal character: '#'
#define pb(x) emplace_back(x);
^
Main.java:33: error: class, interface, enum, or record expected
typedef long long int lli;
^
Main.java:34: error: class, interface, enum, or record expected
typedef pair<int,int> pii;
^
Main.java:35: error: class, interface, enum, or record expected
typedef pair<lli,lli> pll;
^
Main.java:36: error: class, interface, enum, or record expected
typedef vector<int> vi;
^
Main.java:37: error: class, interface, enum, or record expected
typedef vector<lli> vl;
^
Main.java:38: error: class, interface, enum, or record expected
typedef tuple<int, int, lli> tiil;
^
Main.java:41: error: class, interface, enum, or record expected
const lli M=1000000007ll;
^
Main.java:42: error: class, interface, enum, or record expected
const double D=1.0;
^
Main.java:45: error: not a statement
	fast_io
	^
Main.java:46: error: not a statement
	int n; cin>>n;
	          ^
Main.java:47: error: not a statement
	lli k=1ll,h;
	        ^
Main.java:47: error: not a statement
	lli k=1ll,h;
	          ^
Main.java:50: error: not a statement
		cin>>h;
		   ^
Main.java:54: error: not a statement
	if(neg) cout<<"-1";
	            ^
Main.java:55: error: not a statement
	else cout<<k;
	         ^
Main.java:44: error: unnamed classes are a preview feature and are disabled by default.
int main(){
^
  (use --enable-preview to enable unnamed classes)
Main.java:45: error: ';' expected
	fast_io
	       ^
Main.java:47: error: ';' expected
	lli k=1ll,h;
	         ^
Main.java:49: error: ';' expected
	rep(i,n){
	        ^
60 errors