Language: C++

#define int long long
#include <bits/stdc++.h>
using namespace std;

signed main(){
  int N;
  cin >> N;
  int a;
  int ans = 0;
  for (int i = 0; i < N; i++) {
    cin >> a;
    ans *= a;
  }
  if (ans <= 1000000000000000000)
    cout << ans << endl;
  else
    cout << -1 << endl;
}


Compiler output:
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:13: error: 'long' and 'short' specified together
    1 | #define int long long
      |             ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:13: error: 'long' and 'short' specified together
    1 | #define int long long
      |             ^~~~
a.cc:1:13: error: 'long' and 'short' specified together
    1 | #define int long long
      |             ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:13: error: 'long' and 'short' specified together
    1 | #define int long long
      |             ^~~~
a.cc:1:13: error: 'long' and 'short' specified together
    1 | #define int long long
      |             ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41,
                 from a.cc:2:
/usr/include/c++/14/cstddef:89:21: error: redefinition of 'struct std::__byte_operand<long long int>'
   89 |   template<> struct __byte_operand<long long> { using __type = byte; };
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/cstddef:85:21: note: previous definition of 'struct std::__byte_operand<long long int>'
   85 |   template<> struct __byte_operand<int> { using __type = byte; };
      |                     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/cstddef:90:21: error: redefinition of 'struct std::__byte_operand<long long unsigned int>'
   90 |   template<> struct __byte_operand<unsigned long long> { using __type = byte; };
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/cstddef:86:21: note: previous definition of 'struct std::__byte_operand<long long unsigned int>'
   86 |   template<> struct __byte_operand<unsigned int> { using __type = byte; };
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:13: error: 'long long long' is too long for GCC
    1 | #define int long long
      |             ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:13: error: 'long long long' is too long for GCC
    1 | #define int long long
      |             ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:13: error: 'long long long' is too long for GCC
    1 | #define int long long
      |             ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:13: error: 'long long long' is too long for GCC
    1 | #define int long long
      |             ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:13: error: 'long long long' is too long for GCC
    1 | #define int long long
      |             ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:13: error: 'long long long' is too long for GCC
    1 | #define int long long
      |             ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:13: error: 'long long long' is too long for GCC
    1 | #define int long long
      |             ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:13: error: 'long long long' is too long for GCC
    1 | #define int long long
      |             ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:13: error: 'long long long' is too long for GCC
    1 | #define int long long
      |             ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:13: error: 'long long long' is too long for GCC
    1 | #define int long long
      |             ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:13: error: 'long long long' is too long for GCC
    1 | #define int long long
      |             ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:13: error: 'long long long' is too long for GCC
    1 | #define int long long
      |             ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:13: error: 'long long long' is too long for GCC
    1 | #define int long long
      |             ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long' is too long for GCC
    1 | #define int long long
      |                  ^~~~
a.cc:1:18: error: 'long long long