Language: C

#include<stdio.h>longlonga[100010];intmain(){intn;scanf("%d",&n);for(inti=0;i<n;i++)scanf("%lld",&a[i]);intzero=0;2
for(inti=0;i<n;i++)if(a[i]==0)zero++;if(zero >0){printf("0\n");return0;}longlongprod=1;for(inti=0;i<n;i++){if(a[i]<=1000000000000000000/prod){prod*=a[i];}else{printf("-1\n");return0;}}printf("%lld\n",prod);}

Compiler output:
main.c:1:18: warning: extra tokens at end of #include directive
    1 | #include<stdio.h>longlonga[100010];intmain(){intn;scanf("%d",&n);for(inti=0;i<n;i++)scanf("%lld",&a[i]);intzero=0;2
      |                  ^~~~~~~~~
main.c:2:1: error: expected identifier or '(' before 'for'
    2 | for(inti=0;i<n;i++)if(a[i]==0)zero++;if(zero >0){printf("0\n");return0;}longlongprod=1;for(inti=0;i<n;i++){if(a[i]<=1000000000000000000/prod){prod*=a[i];}else{printf("-1\n");return0;}}printf("%lld\n",prod);}
      | ^~~
main.c:2:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    2 | for(inti=0;i<n;i++)if(a[i]==0)zero++;if(zero >0){printf("0\n");return0;}longlongprod=1;for(inti=0;i<n;i++){if(a[i]<=1000000000000000000/prod){prod*=a[i];}else{printf("-1\n");return0;}}printf("%lld\n",prod);}
      |             ^
main.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    2 | for(inti=0;i<n;i++)if(a[i]==0)zero++;if(zero >0){printf("0\n");return0;}longlongprod=1;for(inti=0;i<n;i++){if(a[i]<=1000000000000000000/prod){prod*=a[i];}else{printf("-1\n");return0;}}printf("%lld\n",prod);}
      |                 ^~
main.c:2:38: error: expected identifier or '(' before 'if'
    2 | for(inti=0;i<n;i++)if(a[i]==0)zero++;if(zero >0){printf("0\n");return0;}longlongprod=1;for(inti=0;i<n;i++){if(a[i]<=1000000000000000000/prod){prod*=a[i];}else{printf("-1\n");return0;}}printf("%lld\n",prod);}
      |                                      ^~
main.c:2:73: warning: data definition has no type or storage class
    2 | for(inti=0;i<n;i++)if(a[i]==0)zero++;if(zero >0){printf("0\n");return0;}longlongprod=1;for(inti=0;i<n;i++){if(a[i]<=1000000000000000000/prod){prod*=a[i];}else{printf("-1\n");return0;}}printf("%lld\n",prod);}
      |                                                                         ^~~~~~~~~~~~
main.c:2:73: error: type defaults to 'int' in declaration of 'longlongprod' [-Wimplicit-int]
main.c:2:88: error: expected identifier or '(' before 'for'
    2 | for(inti=0;i<n;i++)if(a[i]==0)zero++;if(zero >0){printf("0\n");return0;}longlongprod=1;for(inti=0;i<n;i++){if(a[i]<=1000000000000000000/prod){prod*=a[i];}else{printf("-1\n");return0;}}printf("%lld\n",prod);}
      |                                                                                        ^~~
main.c:2:100: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    2 | for(inti=0;i<n;i++)if(a[i]==0)zero++;if(zero >0){printf("0\n");return0;}longlongprod=1;for(inti=0;i<n;i++){if(a[i]<=1000000000000000000/prod){prod*=a[i];}else{printf("-1\n");return0;}}printf("%lld\n",prod);}
      |                                                                                                    ^
main.c:2:104: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    2 | for(inti=0;i<n;i++)if(a[i]==0)zero++;if(zero >0){printf("0\n");return0;}longlongprod=1;for(inti=0;i<n;i++){if(a[i]<=1000000000000000000/prod){prod*=a[i];}else{printf("-1\n");return0;}}printf("%lld\n",prod);}
      |                                                                                                        ^~
main.c:2:192: error: expected declaration specifiers or '...' before string constant
    2 | for(inti=0;i<n;i++)if(a[i]==0)zero++;if(zero >0){printf("0\n");return0;}longlongprod=1;for(inti=0;i<n;i++){if(a[i]<=1000000000000000000/prod){prod*=a[i];}else{printf("-1\n");return0;}}printf("%lld\n",prod);}
      |                                                                                                                                                                                                ^~~~~~~~
main.c:2:201: error: unknown type name 'prod'
    2 | for(inti=0;i<n;i++)if(a[i]==0)zero++;if(zero >0){printf("0\n");return0;}longlongprod=1;for(inti=0;i<n;i++){if(a[i]<=1000000000000000000/prod){prod*=a[i];}else{printf("-1\n");return0;}}printf("%lld\n",prod);}
      |                                                                                                                                                                                                         ^~~~
main.c:2:207: error: expected identifier or '(' before '}' token
    2 | for(inti=0;i<n;i++)if(a[i]==0)zero++;if(zero >0){printf("0\n");return0;}longlongprod=1;for(inti=0;i<n;i++){if(a[i]<=1000000000000000000/prod){prod*=a[i];}else{printf("-1\n");return0;}}printf("%lld\n",prod);}
      |                                                                                                                                                                                                               ^