Language: C

n,a,b,h[100000],i,l,r,x,m;main(){for(scanf("%d%d%d",&n,&a,&b),a-=b;i<n;l=1,r=1e9)scanf("%d",h+i++);while(l<r){m=(l+r)/2;for(x=i=0;i<n;++i)h[i]>m*b?x+=(h[i]-m*b+a-1)/a:0;x<=m?r=m:l=m+1;}printf("%d",l);}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | n,a,b,h[100000],i,l,r,x,m;main(){for(scanf("%d%d%d",&n,&a,&b),a-=b;i<n;l=1,r=1e9)scanf("%d",h+i++);while(l<r){m=(l+r)/2;for(x=i=0;i<n;++i)h[i]>m*b?x+=(h[i]-m*b+a-1)/a:0;x<=m?r=m:l=m+1;}printf("%d",l);}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
    1 | n,a,b,h[100000],i,l,r,x,m;main(){for(scanf("%d%d%d",&n,&a,&b),a-=b;i<n;l=1,r=1e9)scanf("%d",h+i++);while(l<r){m=(l+r)/2;for(x=i=0;i<n;++i)h[i]>m*b?x+=(h[i]-m*b+a-1)/a:0;x<=m?r=m:l=m+1;}printf("%d",l);}
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
    1 | n,a,b,h[100000],i,l,r,x,m;main(){for(scanf("%d%d%d",&n,&a,&b),a-=b;i<n;l=1,r=1e9)scanf("%d",h+i++);while(l<r){m=(l+r)/2;for(x=i=0;i<n;++i)h[i]>m*b?x+=(h[i]-m*b+a-1)/a:0;x<=m?r=m:l=m+1;}printf("%d",l);}
      |     ^
main.c:1:7: error: type defaults to 'int' in declaration of 'h' [-Wimplicit-int]
    1 | n,a,b,h[100000],i,l,r,x,m;main(){for(scanf("%d%d%d",&n,&a,&b),a-=b;i<n;l=1,r=1e9)scanf("%d",h+i++);while(l<r){m=(l+r)/2;for(x=i=0;i<n;++i)h[i]>m*b?x+=(h[i]-m*b+a-1)/a:0;x<=m?r=m:l=m+1;}printf("%d",l);}
      |       ^
main.c:1:17: error: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
    1 | n,a,b,h[100000],i,l,r,x,m;main(){for(scanf("%d%d%d",&n,&a,&b),a-=b;i<n;l=1,r=1e9)scanf("%d",h+i++);while(l<r){m=(l+r)/2;for(x=i=0;i<n;++i)h[i]>m*b?x+=(h[i]-m*b+a-1)/a:0;x<=m?r=m:l=m+1;}printf("%d",l);}
      |                 ^
main.c:1:19: error: type defaults to 'int' in declaration of 'l' [-Wimplicit-int]
    1 | n,a,b,h[100000],i,l,r,x,m;main(){for(scanf("%d%d%d",&n,&a,&b),a-=b;i<n;l=1,r=1e9)scanf("%d",h+i++);while(l<r){m=(l+r)/2;for(x=i=0;i<n;++i)h[i]>m*b?x+=(h[i]-m*b+a-1)/a:0;x<=m?r=m:l=m+1;}printf("%d",l);}
      |                   ^
main.c:1:21: error: type defaults to 'int' in declaration of 'r' [-Wimplicit-int]
    1 | n,a,b,h[100000],i,l,r,x,m;main(){for(scanf("%d%d%d",&n,&a,&b),a-=b;i<n;l=1,r=1e9)scanf("%d",h+i++);while(l<r){m=(l+r)/2;for(x=i=0;i<n;++i)h[i]>m*b?x+=(h[i]-m*b+a-1)/a:0;x<=m?r=m:l=m+1;}printf("%d",l);}
      |                     ^
main.c:1:23: error: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
    1 | n,a,b,h[100000],i,l,r,x,m;main(){for(scanf("%d%d%d",&n,&a,&b),a-=b;i<n;l=1,r=1e9)scanf("%d",h+i++);while(l<r){m=(l+r)/2;for(x=i=0;i<n;++i)h[i]>m*b?x+=(h[i]-m*b+a-1)/a:0;x<=m?r=m:l=m+1;}printf("%d",l);}
      |                       ^
main.c:1:25: error: type defaults to 'int' in declaration of 'm' [-Wimplicit-int]
    1 | n,a,b,h[100000],i,l,r,x,m;main(){for(scanf("%d%d%d",&n,&a,&b),a-=b;i<n;l=1,r=1e9)scanf("%d",h+i++);while(l<r){m=(l+r)/2;for(x=i=0;i<n;++i)h[i]>m*b?x+=(h[i]-m*b+a-1)/a:0;x<=m?r=m:l=m+1;}printf("%d",l);}
      |                         ^
main.c:1:27: error: return type defaults to 'int' [-Wimplicit-int]
    1 | n,a,b,h[100000],i,l,r,x,m;main(){for(scanf("%d%d%d",&n,&a,&b),a-=b;i<n;l=1,r=1e9)scanf("%d",h+i++);while(l<r){m=(l+r)/2;for(x=i=0;i<n;++i)h[i]>m*b?x+=(h[i]-m*b+a-1)/a:0;x<=m?r=m:l=m+1;}printf("%d",l);}
      |                           ^~~~
main.c: In function 'main':
main.c:1:38: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | n,a,b,h[100000],i,l,r,x,m;main(){for(scanf("%d%d%d",&n,&a,&b),a-=b;i<n;l=1,r=1e9)scanf("%d",h+i++);while(l<r){m=(l+r)/2;for(x=i=0;i<n;++i)h[i]>m*b?x+=(h[i]-m*b+a-1)/a:0;x<=m?r=m:l=m+1;}printf("%d",l);}
      |                                      ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | n,a,b,h[100000],i,l,r,x,m;main(){for(scanf("%d%d%d",&n,&a,&b),a-=b;i<n;l=1,r=1e9)scanf("%d",h+i++);while(l<r){m=(l+r)/2;for(x=i=0;i<n;++i)h[i]>m*b?x+=(h[i]-m*b+a-1)/a:0;x<=m?r=m:l=m+1;}printf("%d",l);}
main.c:1:38: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | n,a,b,h[100000],i,l,r,x,m;main(){for(scanf("%d%d%d",&n,&a,&b),a-=b;i<n;l=1,r=1e9)scanf("%d",h+i++);while(l<r){m=(l+r)/2;for(x=i=0;i<n;++i)h[i]>m*b?x+=(h[i]-m*b+a-1)/a:0;x<=m?r=m:l=m+1;}printf("%d",l);}
      |                                      ^~~~~
main.c:1:38: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:180: error: lvalue required as left operand of assignment
    1 | n,a,b,h[100000],i,l,r,x,m;main(){for(scanf("%d%d%d",&n,&a,&b),a-=b;i<n;l=1,r=1e9)scanf("%d",h+i++);while(l<r){m=(l+r)/2;for(x=i=0;i<n;++i)h[i]>m*b?x+=(h[i]-m*b+a-1)/a:0;x<=m?r=m:l=m+1;}printf("%d",l);}
      |                                                                                                                                                                                    ^
main.c:1:186: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | n,a,b,h[100000],i,l,r,x,m;main(){for(scanf("%d%d%d",&n,&a,&b),a-=b;i<n;l=1,r=1e9)scanf("%d",h+i++);while(l<r){m=(l+r)/2;for(x=i=0;i<n;++i)h[i]>m*b?x+=(h[i]-m*b+a-1)/a:0;x<=m?r=m:l=m+1;}printf("%d",l);}
      |                                                                                                                                                                                          ^~~~~~
main.c:1:186: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:186: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:186: note: include '<stdio.h>' or provide a declaration of 'printf'