Language: C

x[101],i,j,n,long long dp[80][80];main(){scanf("%lld",&n);for(i=1;i<=n;i++){scanf("%d",&x[i]);}dp[1][50+x[1]]=1;for(i=2;i<n;i++){for(j=0;j<=20;j++){dp[i][50+j]=dp[i-1][50+j+x[i]]+dp[i-1][50+j-x[i]];}}printf("%lld\n",dp[n-1][50+x[n]]);return 0;}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | x[101],i,j,n,long long dp[80][80];main(){scanf("%lld",&n);for(i=1;i<=n;i++){scanf("%d",&x[i]);}dp[1][50+x[1]]=1;for(i=2;i<n;i++){for(j=0;j<=20;j++){dp[i][50+j]=dp[i-1][50+j+x[i]]+dp[i-1][50+j-x[i]];}}printf("%lld\n",dp[n-1][50+x[n]]);return 0;}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
main.c:1:8: error: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
    1 | x[101],i,j,n,long long dp[80][80];main(){scanf("%lld",&n);for(i=1;i<=n;i++){scanf("%d",&x[i]);}dp[1][50+x[1]]=1;for(i=2;i<n;i++){for(j=0;j<=20;j++){dp[i][50+j]=dp[i-1][50+j+x[i]]+dp[i-1][50+j-x[i]];}}printf("%lld\n",dp[n-1][50+x[n]]);return 0;}
      |        ^
main.c:1:10: error: type defaults to 'int' in declaration of 'j' [-Wimplicit-int]
    1 | x[101],i,j,n,long long dp[80][80];main(){scanf("%lld",&n);for(i=1;i<=n;i++){scanf("%d",&x[i]);}dp[1][50+x[1]]=1;for(i=2;i<n;i++){for(j=0;j<=20;j++){dp[i][50+j]=dp[i-1][50+j+x[i]]+dp[i-1][50+j-x[i]];}}printf("%lld\n",dp[n-1][50+x[n]]);return 0;}
      |          ^
main.c:1:12: error: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
    1 | x[101],i,j,n,long long dp[80][80];main(){scanf("%lld",&n);for(i=1;i<=n;i++){scanf("%d",&x[i]);}dp[1][50+x[1]]=1;for(i=2;i<n;i++){for(j=0;j<=20;j++){dp[i][50+j]=dp[i-1][50+j+x[i]]+dp[i-1][50+j-x[i]];}}printf("%lld\n",dp[n-1][50+x[n]]);return 0;}
      |            ^
main.c:1:14: error: expected identifier or '(' before 'long'
    1 | x[101],i,j,n,long long dp[80][80];main(){scanf("%lld",&n);for(i=1;i<=n;i++){scanf("%d",&x[i]);}dp[1][50+x[1]]=1;for(i=2;i<n;i++){for(j=0;j<=20;j++){dp[i][50+j]=dp[i-1][50+j+x[i]]+dp[i-1][50+j-x[i]];}}printf("%lld\n",dp[n-1][50+x[n]]);return 0;}
      |              ^~~~
main.c:1:35: error: return type defaults to 'int' [-Wimplicit-int]
    1 | x[101],i,j,n,long long dp[80][80];main(){scanf("%lld",&n);for(i=1;i<=n;i++){scanf("%d",&x[i]);}dp[1][50+x[1]]=1;for(i=2;i<n;i++){for(j=0;j<=20;j++){dp[i][50+j]=dp[i-1][50+j+x[i]]+dp[i-1][50+j-x[i]];}}printf("%lld\n",dp[n-1][50+x[n]]);return 0;}
      |                                   ^~~~
main.c: In function 'main':
main.c:1:42: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | x[101],i,j,n,long long dp[80][80];main(){scanf("%lld",&n);for(i=1;i<=n;i++){scanf("%d",&x[i]);}dp[1][50+x[1]]=1;for(i=2;i<n;i++){for(j=0;j<=20;j++){dp[i][50+j]=dp[i-1][50+j+x[i]]+dp[i-1][50+j-x[i]];}}printf("%lld\n",dp[n-1][50+x[n]]);return 0;}
      |                                          ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | x[101],i,j,n,long long dp[80][80];main(){scanf("%lld",&n);for(i=1;i<=n;i++){scanf("%d",&x[i]);}dp[1][50+x[1]]=1;for(i=2;i<n;i++){for(j=0;j<=20;j++){dp[i][50+j]=dp[i-1][50+j+x[i]]+dp[i-1][50+j-x[i]];}}printf("%lld\n",dp[n-1][50+x[n]]);return 0;}
main.c:1:42: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | x[101],i,j,n,long long dp[80][80];main(){scanf("%lld",&n);for(i=1;i<=n;i++){scanf("%d",&x[i]);}dp[1][50+x[1]]=1;for(i=2;i<n;i++){for(j=0;j<=20;j++){dp[i][50+j]=dp[i-1][50+j+x[i]]+dp[i-1][50+j-x[i]];}}printf("%lld\n",dp[n-1][50+x[n]]);return 0;}
      |                                          ^~~~~
main.c:1:42: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:96: error: 'dp' undeclared (first use in this function)
    1 | x[101],i,j,n,long long dp[80][80];main(){scanf("%lld",&n);for(i=1;i<=n;i++){scanf("%d",&x[i]);}dp[1][50+x[1]]=1;for(i=2;i<n;i++){for(j=0;j<=20;j++){dp[i][50+j]=dp[i-1][50+j+x[i]]+dp[i-1][50+j-x[i]];}}printf("%lld\n",dp[n-1][50+x[n]]);return 0;}
      |                                                                                                ^~
main.c:1:96: note: each undeclared identifier is reported only once for each function it appears in
main.c:1:201: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | x[101],i,j,n,long long dp[80][80];main(){scanf("%lld",&n);for(i=1;i<=n;i++){scanf("%d",&x[i]);}dp[1][50+x[1]]=1;for(i=2;i<n;i++){for(j=0;j<=20;j++){dp[i][50+j]=dp[i-1][50+j+x[i]]+dp[i-1][50+j-x[i]];}}printf("%lld\n",dp[n-1][50+x[n]]);return 0;}
      |                                                                                                                                                                                                         ^~~~~~
main.c:1:201: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:201: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:201: note: include '<stdio.h>' or provide a declaration of 'printf'