Language: C

#define $ scanf("%d",
a[100],l,r,p,n;main(c){for(;l=$&r)*r;printf("%d\n",c)){for(;c=l;)$--l+a);for($&n;l<r&&!++c|a[p=l+r>>1]-n;)a[p]<n?r=p:(l=p+1);}}

Compiler output:
main.c:2:1: warning: data definition has no type or storage class
    2 | a[100],l,r,p,n;main(c){for(;l=$&r)*r;printf("%d\n",c)){for(;c=l;)$--l+a);for($&n;l<r&&!++c|a[p=l+r>>1]-n;)a[p]<n?r=p:(l=p+1);}}
      | ^
main.c:2:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:2:8: error: type defaults to 'int' in declaration of 'l' [-Wimplicit-int]
    2 | a[100],l,r,p,n;main(c){for(;l=$&r)*r;printf("%d\n",c)){for(;c=l;)$--l+a);for($&n;l<r&&!++c|a[p=l+r>>1]-n;)a[p]<n?r=p:(l=p+1);}}
      |        ^
main.c:2:10: error: type defaults to 'int' in declaration of 'r' [-Wimplicit-int]
    2 | a[100],l,r,p,n;main(c){for(;l=$&r)*r;printf("%d\n",c)){for(;c=l;)$--l+a);for($&n;l<r&&!++c|a[p=l+r>>1]-n;)a[p]<n?r=p:(l=p+1);}}
      |          ^
main.c:2:12: error: type defaults to 'int' in declaration of 'p' [-Wimplicit-int]
    2 | a[100],l,r,p,n;main(c){for(;l=$&r)*r;printf("%d\n",c)){for(;c=l;)$--l+a);for($&n;l<r&&!++c|a[p=l+r>>1]-n;)a[p]<n?r=p:(l=p+1);}}
      |            ^
main.c:2:14: error: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
    2 | a[100],l,r,p,n;main(c){for(;l=$&r)*r;printf("%d\n",c)){for(;c=l;)$--l+a);for($&n;l<r&&!++c|a[p=l+r>>1]-n;)a[p]<n?r=p:(l=p+1);}}
      |              ^
main.c:2:16: error: return type defaults to 'int' [-Wimplicit-int]
    2 | a[100],l,r,p,n;main(c){for(;l=$&r)*r;printf("%d\n",c)){for(;c=l;)$--l+a);for($&n;l<r&&!++c|a[p=l+r>>1]-n;)a[p]<n?r=p:(l=p+1);}}
      |                ^~~~
main.c: In function 'main':
main.c:2:16: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:11: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | #define $ scanf("%d",
      |           ^~~~~
main.c:2:31: note: in expansion of macro '$'
    2 | a[100],l,r,p,n;main(c){for(;l=$&r)*r;printf("%d\n",c)){for(;c=l;)$--l+a);for($&n;l<r&&!++c|a[p=l+r>>1]-n;)a[p]<n?r=p:(l=p+1);}}
      |                               ^
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #define $ scanf("%d",
main.c:1:11: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | #define $ scanf("%d",
      |           ^~~~~
main.c:2:31: note: in expansion of macro '$'
    2 | a[100],l,r,p,n;main(c){for(;l=$&r)*r;printf("%d\n",c)){for(;c=l;)$--l+a);for($&n;l<r&&!++c|a[p=l+r>>1]-n;)a[p]<n?r=p:(l=p+1);}}
      |                               ^
main.c:1:11: note: include '<stdio.h>' or provide a declaration of 'scanf'
    1 | #define $ scanf("%d",
      |           ^~~~~
main.c:2:31: note: in expansion of macro '$'
    2 | a[100],l,r,p,n;main(c){for(;l=$&r)*r;printf("%d\n",c)){for(;c=l;)$--l+a);for($&n;l<r&&!++c|a[p=l+r>>1]-n;)a[p]<n?r=p:(l=p+1);}}
      |                               ^
main.c:2:38: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    2 | a[100],l,r,p,n;main(c){for(;l=$&r)*r;printf("%d\n",c)){for(;c=l;)$--l+a);for($&n;l<r&&!++c|a[p=l+r>>1]-n;)a[p]<n?r=p:(l=p+1);}}
      |                                      ^~~~~~
main.c:2:38: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:2:38: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:2:38: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:2:81: error: expected ')' before ';' token
    2 | a[100],l,r,p,n;main(c){for(;l=$&r)*r;printf("%d\n",c)){for(;c=l;)$--l+a);for($&n;l<r&&!++c|a[p=l+r>>1]-n;)a[p]<n?r=p:(l=p+1);}}
      |                                                                                 ^
      |                                                                                 )
main.c:1:16: note: to match this '('
    1 | #define $ scanf("%d",
      |                ^
main.c:2:78: note: in expansion of macro '$'
    2 | a[100],l,r,p,n;main(c){for(;l=$&r)*r;printf("%d\n",c)){for(;c=l;)$--l+a);for($&n;l<r&&!++c|a[p=l+r>>1]-n;)a[p]<n?r=p:(l=p+1);}}
      |                                                                              ^
main.c:2:107: error: expected ';' before 'a'
    2 | a[100],l,r,p,n;main(c){for(;l=$&r)*r;printf("%d\n",c)){for(;c=l;)$--l+a);for($&n;l<r&&!++c|a[p=l+r>>1]-n;)a[p]<n?r=p:(l=p+1);}}
      |                                                                                                           ^
      |                                                                                                           ;
main.c:2:126: error: expected expression before '}' token
    2 | a[100],l,r,p,n;main(c){for(;l=$&r)*r;printf("%d\n",c)){for(;c=l;)$--l+a);for($&n;l<r&&!++c|a[p=l+r>>1]-n;)a[p]<n?r=p:(l=p+1);}}
      |                                                                                                                              ^
main.c:2:126: error: expected expression before '}' token
main.c:2:126: error: expected expression before '}' token