Language: C

n,i=110,j;main(){while(scanf("%d",&n),n){int mi=999;while(i--)for(int j=1;j<1010;j++)mi=fmin(mi,(n<i*i*i+j*j?999:i+j+n-i*i*i-j*j));printf("%d\n",mi);}return 0;}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | n,i=110,j;main(){while(scanf("%d",&n),n){int mi=999;while(i--)for(int j=1;j<1010;j++)mi=fmin(mi,(n<i*i*i+j*j?999:i+j+n-i*i*i-j*j));printf("%d\n",mi);}return 0;}
      | ^
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 'i' [-Wimplicit-int]
    1 | n,i=110,j;main(){while(scanf("%d",&n),n){int mi=999;while(i--)for(int j=1;j<1010;j++)mi=fmin(mi,(n<i*i*i+j*j?999:i+j+n-i*i*i-j*j));printf("%d\n",mi);}return 0;}
      |   ^
main.c:1:9: error: type defaults to 'int' in declaration of 'j' [-Wimplicit-int]
    1 | n,i=110,j;main(){while(scanf("%d",&n),n){int mi=999;while(i--)for(int j=1;j<1010;j++)mi=fmin(mi,(n<i*i*i+j*j?999:i+j+n-i*i*i-j*j));printf("%d\n",mi);}return 0;}
      |         ^
main.c:1:11: error: return type defaults to 'int' [-Wimplicit-int]
    1 | n,i=110,j;main(){while(scanf("%d",&n),n){int mi=999;while(i--)for(int j=1;j<1010;j++)mi=fmin(mi,(n<i*i*i+j*j?999:i+j+n-i*i*i-j*j));printf("%d\n",mi);}return 0;}
      |           ^~~~
main.c: In function 'main':
main.c:1:24: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | n,i=110,j;main(){while(scanf("%d",&n),n){int mi=999;while(i--)for(int j=1;j<1010;j++)mi=fmin(mi,(n<i*i*i+j*j?999:i+j+n-i*i*i-j*j));printf("%d\n",mi);}return 0;}
      |                        ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | n,i=110,j;main(){while(scanf("%d",&n),n){int mi=999;while(i--)for(int j=1;j<1010;j++)mi=fmin(mi,(n<i*i*i+j*j?999:i+j+n-i*i*i-j*j));printf("%d\n",mi);}return 0;}
main.c:1:24: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | n,i=110,j;main(){while(scanf("%d",&n),n){int mi=999;while(i--)for(int j=1;j<1010;j++)mi=fmin(mi,(n<i*i*i+j*j?999:i+j+n-i*i*i-j*j));printf("%d\n",mi);}return 0;}
      |                        ^~~~~
main.c:1:24: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:89: error: implicit declaration of function 'fmin' [-Wimplicit-function-declaration]
    1 | n,i=110,j;main(){while(scanf("%d",&n),n){int mi=999;while(i--)for(int j=1;j<1010;j++)mi=fmin(mi,(n<i*i*i+j*j?999:i+j+n-i*i*i-j*j));printf("%d\n",mi);}return 0;}
      |                                                                                         ^~~~
main.c:1:1: note: include '<math.h>' or provide a declaration of 'fmin'
  +++ |+#include <math.h>
    1 | n,i=110,j;main(){while(scanf("%d",&n),n){int mi=999;while(i--)for(int j=1;j<1010;j++)mi=fmin(mi,(n<i*i*i+j*j?999:i+j+n-i*i*i-j*j));printf("%d\n",mi);}return 0;}
main.c:1:89: warning: incompatible implicit declaration of built-in function 'fmin' [-Wbuiltin-declaration-mismatch]
    1 | n,i=110,j;main(){while(scanf("%d",&n),n){int mi=999;while(i--)for(int j=1;j<1010;j++)mi=fmin(mi,(n<i*i*i+j*j?999:i+j+n-i*i*i-j*j));printf("%d\n",mi);}return 0;}
      |                                                                                         ^~~~
main.c:1:89: note: include '<math.h>' or provide a declaration of 'fmin'
main.c:1:132: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | n,i=110,j;main(){while(scanf("%d",&n),n){int mi=999;while(i--)for(int j=1;j<1010;j++)mi=fmin(mi,(n<i*i*i+j*j?999:i+j+n-i*i*i-j*j));printf("%d\n",mi);}return 0;}
      |                                                                                                                                    ^~~~~~
main.c:1:132: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:132: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:132: note: include '<stdio.h>' or provide a declaration of 'printf'