Language: C

b,i,j;main(n){float a,x;char t[9],l[9];for(;;){for(i=0;i<9;i++)t[i]=l[i]='0';scanf("%f",&a);if(a<0)break;b=a;for(i=0;b;)t[i++]='0'+b%2,b/=2;b=a;a-=b;x=0.5;for(j=0;a>0 && j<5;j++){a-x>=0&&l[j]='1',a-=x;x/=2;}if(j>4)puts("NA");else{for(b=0;b++<8-i;)printf("0");for(;i;)printf("%c",t[--i]);printf(".");for(;j>i;)printf("%c",l[i++]);for(;4>i++;)printf("0");puts("");}}exit(0);}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | b,i,j;main(n){float a,x;char t[9],l[9];for(;;){for(i=0;i<9;i++)t[i]=l[i]='0';scanf("%f",&a);if(a<0)break;b=a;for(i=0;b;)t[i++]='0'+b%2,b/=2;b=a;a-=b;x=0.5;for(j=0;a>0 && j<5;j++){a-x>=0&&l[j]='1',a-=x;x/=2;}if(j>4)puts("NA");else{for(b=0;b++<8-i;)printf("0");for(;i;)printf("%c",t[--i]);printf(".");for(;j>i;)printf("%c",l[i++]);for(;4>i++;)printf("0");puts("");}}exit(0);}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
    1 | b,i,j;main(n){float a,x;char t[9],l[9];for(;;){for(i=0;i<9;i++)t[i]=l[i]='0';scanf("%f",&a);if(a<0)break;b=a;for(i=0;b;)t[i++]='0'+b%2,b/=2;b=a;a-=b;x=0.5;for(j=0;a>0 && j<5;j++){a-x>=0&&l[j]='1',a-=x;x/=2;}if(j>4)puts("NA");else{for(b=0;b++<8-i;)printf("0");for(;i;)printf("%c",t[--i]);printf(".");for(;j>i;)printf("%c",l[i++]);for(;4>i++;)printf("0");puts("");}}exit(0);}
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 'j' [-Wimplicit-int]
    1 | b,i,j;main(n){float a,x;char t[9],l[9];for(;;){for(i=0;i<9;i++)t[i]=l[i]='0';scanf("%f",&a);if(a<0)break;b=a;for(i=0;b;)t[i++]='0'+b%2,b/=2;b=a;a-=b;x=0.5;for(j=0;a>0 && j<5;j++){a-x>=0&&l[j]='1',a-=x;x/=2;}if(j>4)puts("NA");else{for(b=0;b++<8-i;)printf("0");for(;i;)printf("%c",t[--i]);printf(".");for(;j>i;)printf("%c",l[i++]);for(;4>i++;)printf("0");puts("");}}exit(0);}
      |     ^
main.c:1:7: error: return type defaults to 'int' [-Wimplicit-int]
    1 | b,i,j;main(n){float a,x;char t[9],l[9];for(;;){for(i=0;i<9;i++)t[i]=l[i]='0';scanf("%f",&a);if(a<0)break;b=a;for(i=0;b;)t[i++]='0'+b%2,b/=2;b=a;a-=b;x=0.5;for(j=0;a>0 && j<5;j++){a-x>=0&&l[j]='1',a-=x;x/=2;}if(j>4)puts("NA");else{for(b=0;b++<8-i;)printf("0");for(;i;)printf("%c",t[--i]);printf(".");for(;j>i;)printf("%c",l[i++]);for(;4>i++;)printf("0");puts("");}}exit(0);}
      |       ^~~~
main.c: In function 'main':
main.c:1:7: error: type of 'n' defaults to 'int' [-Wimplicit-int]
main.c:1:78: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | b,i,j;main(n){float a,x;char t[9],l[9];for(;;){for(i=0;i<9;i++)t[i]=l[i]='0';scanf("%f",&a);if(a<0)break;b=a;for(i=0;b;)t[i++]='0'+b%2,b/=2;b=a;a-=b;x=0.5;for(j=0;a>0 && j<5;j++){a-x>=0&&l[j]='1',a-=x;x/=2;}if(j>4)puts("NA");else{for(b=0;b++<8-i;)printf("0");for(;i;)printf("%c",t[--i]);printf(".");for(;j>i;)printf("%c",l[i++]);for(;4>i++;)printf("0");puts("");}}exit(0);}
      |                                                                              ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | b,i,j;main(n){float a,x;char t[9],l[9];for(;;){for(i=0;i<9;i++)t[i]=l[i]='0';scanf("%f",&a);if(a<0)break;b=a;for(i=0;b;)t[i++]='0'+b%2,b/=2;b=a;a-=b;x=0.5;for(j=0;a>0 && j<5;j++){a-x>=0&&l[j]='1',a-=x;x/=2;}if(j>4)puts("NA");else{for(b=0;b++<8-i;)printf("0");for(;i;)printf("%c",t[--i]);printf(".");for(;j>i;)printf("%c",l[i++]);for(;4>i++;)printf("0");puts("");}}exit(0);}
main.c:1:78: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | b,i,j;main(n){float a,x;char t[9],l[9];for(;;){for(i=0;i<9;i++)t[i]=l[i]='0';scanf("%f",&a);if(a<0)break;b=a;for(i=0;b;)t[i++]='0'+b%2,b/=2;b=a;a-=b;x=0.5;for(j=0;a>0 && j<5;j++){a-x>=0&&l[j]='1',a-=x;x/=2;}if(j>4)puts("NA");else{for(b=0;b++<8-i;)printf("0");for(;i;)printf("%c",t[--i]);printf(".");for(;j>i;)printf("%c",l[i++]);for(;4>i++;)printf("0");puts("");}}exit(0);}
      |                                                                              ^~~~~
main.c:1:78: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:192: error: lvalue required as left operand of assignment
    1 | b,i,j;main(n){float a,x;char t[9],l[9];for(;;){for(i=0;i<9;i++)t[i]=l[i]='0';scanf("%f",&a);if(a<0)break;b=a;for(i=0;b;)t[i++]='0'+b%2,b/=2;b=a;a-=b;x=0.5;for(j=0;a>0 && j<5;j++){a-x>=0&&l[j]='1',a-=x;x/=2;}if(j>4)puts("NA");else{for(b=0;b++<8-i;)printf("0");for(;i;)printf("%c",t[--i]);printf(".");for(;j>i;)printf("%c",l[i++]);for(;4>i++;)printf("0");puts("");}}exit(0);}
      |                                                                                                                                                                                                ^
main.c:1:215: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    1 | b,i,j;main(n){float a,x;char t[9],l[9];for(;;){for(i=0;i<9;i++)t[i]=l[i]='0';scanf("%f",&a);if(a<0)break;b=a;for(i=0;b;)t[i++]='0'+b%2,b/=2;b=a;a-=b;x=0.5;for(j=0;a>0 && j<5;j++){a-x>=0&&l[j]='1',a-=x;x/=2;}if(j>4)puts("NA");else{for(b=0;b++<8-i;)printf("0");for(;i;)printf("%c",t[--i]);printf(".");for(;j>i;)printf("%c",l[i++]);for(;4>i++;)printf("0");puts("");}}exit(0);}
      |                                                                                                                                                                                                                       ^~~~
main.c:1:215: note: include '<stdio.h>' or provide a declaration of 'puts'
main.c:1:248: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | b,i,j;main(n){float a,x;char t[9],l[9];for(;;){for(i=0;i<9;i++)t[i]=l[i]='0';scanf("%f",&a);if(a<0)break;b=a;for(i=0;b;)t[i++]='0'+b%2,b/=2;b=a;a-=b;x=0.5;for(j=0;a>0 && j<5;j++){a-x>=0&&l[j]='1',a-=x;x/=2;}if(j>4)puts("NA");else{for(b=0;b++<8-i;)printf("0");for(;i;)printf("%c",t[--i]);printf(".");for(;j>i;)printf("%c",l[i++]);for(;4>i++;)printf("0");puts("");}}exit(0);}
      |                                                                                                                                                                                                                                                        ^~~~~~
main.c:1:248: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:248: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:248: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:268: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    1 | b,i,j;main(n){float a,x;char t[9],l[9];for(;;){for(i=0;i<9;i++)t[i]=l[i]='0';scanf("%f",&a);if(a<0)break;b=a;for(i=0;b;)t[i++]='0'+b%2,b/=2;b=a;a-=b;x=0.5;for(j=0;a>0 && j<5;j++){a-x>=0&&l[j]='1',a-=x;x/=2;}if(j>4)puts("NA");else{for(b=0;b++<8-i;)printf("0");for(;i;)printf("%c",t[--i]);printf(".");for(;j>i;)printf("%c",l[i++]);for(;4>i++;)printf("0");puts("");}}exit(0);}
      |                                                                                                                                                                                                                                                                            ^~~~~~
main.c:1:268: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:288: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    1 | b,i,j;main(n){float a,x;char t[9],l[9];for(;;){for(i=0;i<9;i++)t[i]=l[i]='0';scanf("%f",&a);if(a<0)break;b=a;for(i=0;b;)t[i++]='0'+b%2,b/=2;b=a;a-=b;x=0.5;for(j=0;a>0 && j<5;j++){a-x>=0&&l[j]='1',a-=x;x/=2;}if(j>4)puts("NA");else{for(b=0;b++<8-i;)printf("0");for(;i;)printf("%c",t[--i]);printf(".");for(;j>i;)printf("%c",l[i++]);for(;4>i++;)printf("0");puts("");}}exit(0);}
      |                                                                                                                                                                                                                                                                                                ^~~~~~
main.c:1:288: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:365: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
    1 | b,i,j;main(n){float a,x;char t[9],l[9];for(;;){for(i=0;i<9;i++)t[i]=l[i]='0';scanf("%f",&a);if(a<0)break;b=a;for(i=0;b;)t[i++]='0'+b%2,b/=2;b=a;a-=b;x=0.5;for(j=0;a>0 && j<5;j++){a-x>=0&&l[j]='1',a-=x;x/=2;}if(j>4)puts("NA");else{for(b=0;b++<8-i;)printf("0");for(;i;)printf("%c",t[--i]);printf(".");for(;j>i;)printf("%c",l[i++]);for(;4>i++;)printf("0");puts("");}}exit(0);}
      |                                                                                                                                                                                                                                                                                                                                                                             ^~~~
main.c:1:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
  +++ |+#include <stdlib.h>
    1 | b,i,j;main(n){float a,x;char t[9],l[9];for(;;){for(i=0;i<9;i++)t[i]=l[i]='0';scanf("%f",&a);if(a<0)break;b=a;for(i=0;b;)t[i++]='0'+b%2,b/=2;b=a;a-=b;x=0.5;for(j=0;a>0 && j<5;j++){a-x>=0&&l[j]='1',a-=x;x/=2;}if(j>4)puts("NA");else{for(b=0;b++<8-i;)printf("0");for(;i;)printf("%c",t[--i]);printf(".");for(;j>i;)printf("%c",l[i++]);for(;4>i++;)printf("0");puts("");}}exit(0);}
main.c:1:365: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
    1 | b,i,j;main(n){float a,x;char t[9],l[9];for(;;){for(i=0;i<9;i++)t[i]=l[i]='0';scanf("%f",&a);if(a<0)break;b=a;for(i=0;b;)t[i++]='0'+b%2,b/=2;b=a;a-=b;x=0.5;for(j=0;a>0 && j<5;j++){a-x>=0&&l[j]='1',a-=x;x/=2;}if(j>4)puts("NA");else{for(b=0;b++<8-i;)printf("0");for(;i;)printf("%c",t[--i]);printf(".");for(;j>i;)printf("%c",l[i++]);for(;4>i++;)printf("0");puts("");}}exit(0);}
      |                                                                                                                                                                                                                                                                                                                                                                             ^~~~
main.c:1:365: note: include '<stdlib.h>' or provide a declaration of 'e