Language: C

b,i,j,q;main(n){float a,x;char t[9],l[9],g[20];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(q=b=0;b++<8-i;)g[q++]='0';for(;i;)g[q++]=t[--i];g[q++]='.';for(;j>i;)g[q++]=l[i++];for(;4>i++;)g[q++]='0'g[q]='\0';puts(g);}}exit(0);}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | b,i,j,q;main(n){float a,x;char t[9],l[9],g[20];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(q=b=0;b++<8-i;)g[q++]='0';for(;i;)g[q++]=t[--i];g[q++]='.';for(;j>i;)g[q++]=l[i++];for(;4>i++;)g[q++]='0'g[q]='\0';puts(g);}}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,q;main(n){float a,x;char t[9],l[9],g[20];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(q=b=0;b++<8-i;)g[q++]='0';for(;i;)g[q++]=t[--i];g[q++]='.';for(;j>i;)g[q++]=l[i++];for(;4>i++;)g[q++]='0'g[q]='\0';puts(g);}}exit(0);}
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 'j' [-Wimplicit-int]
    1 | b,i,j,q;main(n){float a,x;char t[9],l[9],g[20];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(q=b=0;b++<8-i;)g[q++]='0';for(;i;)g[q++]=t[--i];g[q++]='.';for(;j>i;)g[q++]=l[i++];for(;4>i++;)g[q++]='0'g[q]='\0';puts(g);}}exit(0);}
      |     ^
main.c:1:7: error: type defaults to 'int' in declaration of 'q' [-Wimplicit-int]
    1 | b,i,j,q;main(n){float a,x;char t[9],l[9],g[20];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(q=b=0;b++<8-i;)g[q++]='0';for(;i;)g[q++]=t[--i];g[q++]='.';for(;j>i;)g[q++]=l[i++];for(;4>i++;)g[q++]='0'g[q]='\0';puts(g);}}exit(0);}
      |       ^
main.c:1:9: error: return type defaults to 'int' [-Wimplicit-int]
    1 | b,i,j,q;main(n){float a,x;char t[9],l[9],g[20];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(q=b=0;b++<8-i;)g[q++]='0';for(;i;)g[q++]=t[--i];g[q++]='.';for(;j>i;)g[q++]=l[i++];for(;4>i++;)g[q++]='0'g[q]='\0';puts(g);}}exit(0);}
      |         ^~~~
main.c: In function 'main':
main.c:1:9: error: type of 'n' defaults to 'int' [-Wimplicit-int]
main.c:1:86: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | b,i,j,q;main(n){float a,x;char t[9],l[9],g[20];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(q=b=0;b++<8-i;)g[q++]='0';for(;i;)g[q++]=t[--i];g[q++]='.';for(;j>i;)g[q++]=l[i++];for(;4>i++;)g[q++]='0'g[q]='\0';puts(g);}}exit(0);}
      |                                                                                      ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | b,i,j,q;main(n){float a,x;char t[9],l[9],g[20];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(q=b=0;b++<8-i;)g[q++]='0';for(;i;)g[q++]=t[--i];g[q++]='.';for(;j>i;)g[q++]=l[i++];for(;4>i++;)g[q++]='0'g[q]='\0';puts(g);}}exit(0);}
main.c:1:86: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | b,i,j,q;main(n){float a,x;char t[9],l[9],g[20];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(q=b=0;b++<8-i;)g[q++]='0';for(;i;)g[q++]=t[--i];g[q++]='.';for(;j>i;)g[q++]=l[i++];for(;4>i++;)g[q++]='0'g[q]='\0';puts(g);}}exit(0);}
      |                                                                                      ^~~~~
main.c:1:86: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:198: error: lvalue required as left operand of assignment
    1 | b,i,j,q;main(n){float a,x;char t[9],l[9],g[20];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(q=b=0;b++<8-i;)g[q++]='0';for(;i;)g[q++]=t[--i];g[q++]='.';for(;j>i;)g[q++]=l[i++];for(;4>i++;)g[q++]='0'g[q]='\0';puts(g);}}exit(0);}
      |                                                                                                                                                                                                      ^
main.c:1:221: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    1 | b,i,j,q;main(n){float a,x;char t[9],l[9],g[20];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(q=b=0;b++<8-i;)g[q++]='0';for(;i;)g[q++]=t[--i];g[q++]='.';for(;j>i;)g[q++]=l[i++];for(;4>i++;)g[q++]='0'g[q]='\0';puts(g);}}exit(0);}
      |                                                                                                                                                                                                                             ^~~~
main.c:1:221: note: include '<stdio.h>' or provide a declaration of 'puts'
main.c:1:346: error: expected ';' before 'g'
    1 | b,i,j,q;main(n){float a,x;char t[9],l[9],g[20];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(q=b=0;b++<8-i;)g[q++]='0';for(;i;)g[q++]=t[--i];g[q++]='.';for(;j>i;)g[q++]=l[i++];for(;4>i++;)g[q++]='0'g[q]='\0';puts(g);}}exit(0);}
      |                                                                                                                                                                                                                                                                                                                                                          ^
      |                                                                                                                                                                                                                                                                                                                                                          ;
main.c:1:366: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
    1 | b,i,j,q;main(n){float a,x;char t[9],l[9],g[20];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(q=b=0;b++<8-i;)g[q++]='0';for(;i;)g[q++]=t[--i];g[q++]='.';for(;j>i;)g[q++]=l[i++];for(;4>i++;)g[q++]='0'g[q]='\0';puts(g);}}exit(0);}
      |                                                                                                                                                                                                                                                                                                                                                                              ^~~~
main.c:1:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
  +++ |+#include <stdlib.h>
    1 | b,i,j,q;main(n){float a,x;char t[9],l[9],g[20];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(q=b=0;b++<8-i;)g[q++]='0';for(;i;)g[q++]=t[--i];g[q++]='.';for(;j>i;)g[q++]=l[i++];for(;4>i++;)g[q++]='0'g[q]='\0';puts(g);}}exit(0);}
main.c:1:366: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
    1 | b,i,j,q;main(n){float a,x;char t[9],l[9],g[20];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(q=b=0;b++<8-i;)g[q++]='0';for(;i;)g[q++]=t[--i];g[q++]='.';for(;j>i;)g[q++]=l[i++];for(;4>i++;)g[q++]='0'g[q]='\0';puts(g);}}exit(0);}
      |                                                                                                                                                                                                                                                                                                                                                                              ^~~~
main.c:1:366: note: include '<stdlib.h>' or provide a declaration of 'exit'