Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0; i<(n); i++)
#define rep2(i,x,n) for(int i=x; i<(n); i++)
#define ALL(c) (c).begin(), (c).end()
#define pb push_back
#define eb emplace_back
//const long long INF = 1LL<<60; // 仮想的な無限大の値;
using namespace std;
using ll = int128_t;//long long;
using P  = pair<int, int>;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }

const ll INF = 1000000000000000000;
int main()
{
    int N;
    cin >> N;
    vector<ll> A(N);
    rep(i, N)cin >> A[i];
    sort(ALL(A));
    if(*A.begin() == 0)
    {
        cout << 0 << endl;
        return 0;
    }
    if(*A.rbegin() > INF)
    {
        cout << -1 << endl;
        return 0;
    }
    ll ans = 1;
    rep(i, N) {
        ans *=A[i];
        if(ans > INF) 
        {
            cout << -1 << endl;
            return 0;
        }
    }
    cout << ans << endl;
}


Compiler output:
a.cc:9:12: error: 'int128_t' does not name a type; did you mean 'int8_t'?
    9 | using ll = int128_t;//long long;
      |            ^~~~~~~~
      |            int8_t
a.cc:14:7: error: 'll' does not name a type
   14 | const ll INF = 1000000000000000000;
      |       ^~
a.cc: In function 'int main()':
a.cc:19:12: error: 'll' was not declared in this scope
   19 |     vector<ll> A(N);
      |            ^~
a.cc:19:14: error: template argument 1 is invalid
   19 |     vector<ll> A(N);
      |              ^
a.cc:19:14: error: template argument 2 is invalid
a.cc:20:22: error: invalid types 'int[int]' for array subscript
   20 |     rep(i, N)cin >> A[i];
      |                      ^
a.cc:4:20: error: request for member 'begin' in 'A', which is of non-class type 'int'
    4 | #define ALL(c) (c).begin(), (c).end()
      |                    ^~~~~
a.cc:21:10: note: in expansion of macro 'ALL'
   21 |     sort(ALL(A));
      |          ^~~
a.cc:4:33: error: request for member 'end' in 'A', which is of non-class type 'int'
    4 | #define ALL(c) (c).begin(), (c).end()
      |                                 ^~~
a.cc:21:10: note: in expansion of macro 'ALL'
   21 |     sort(ALL(A));
      |          ^~~
a.cc:22:11: error: request for member 'begin' in 'A', which is of non-class type 'int'
   22 |     if(*A.begin() == 0)
      |           ^~~~~
a.cc:27:11: error: request for member 'rbegin' in 'A', which is of non-class type 'int'
   27 |     if(*A.rbegin() > INF)
      |           ^~~~~~
a.cc:27:22: error: 'INF' was not declared in this scope
   27 |     if(*A.rbegin() > INF)
      |                      ^~~
a.cc:32:7: error: expected ';' before 'ans'
   32 |     ll ans = 1;
      |       ^~~~
      |       ;
a.cc:34:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   34 |         ans *=A[i];
      |         ^~~
      |         abs
a.cc:34:16: error: invalid types 'int[int]' for array subscript
   34 |         ans *=A[i];
      |                ^
a.cc:35:18: error: 'INF' was not declared in this scope
   35 |         if(ans > INF)
      |                  ^~~
a.cc:41:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   41 |     cout << ans << endl;
      |             ^~~
      |             abs