Language: C

N,P,I;main(){while(true){scanf("%d",&N);if(N==0){break;}for(I=0;I<9;I++){scanf("%d",&P);N-=P;}printf("%d\n",N);}}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | N,P,I;main(){while(true){scanf("%d",&N);if(N==0){break;}for(I=0;I<9;I++){scanf("%d",&P);N-=P;}printf("%d\n",N);}}
      | ^
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 'P' [-Wimplicit-int]
    1 | N,P,I;main(){while(true){scanf("%d",&N);if(N==0){break;}for(I=0;I<9;I++){scanf("%d",&P);N-=P;}printf("%d\n",N);}}
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 'I' [-Wimplicit-int]
    1 | N,P,I;main(){while(true){scanf("%d",&N);if(N==0){break;}for(I=0;I<9;I++){scanf("%d",&P);N-=P;}printf("%d\n",N);}}
      |     ^
main.c:1:7: error: return type defaults to 'int' [-Wimplicit-int]
    1 | N,P,I;main(){while(true){scanf("%d",&N);if(N==0){break;}for(I=0;I<9;I++){scanf("%d",&P);N-=P;}printf("%d\n",N);}}
      |       ^~~~
main.c: In function 'main':
main.c:1:20: error: 'true' undeclared (first use in this function)
    1 | N,P,I;main(){while(true){scanf("%d",&N);if(N==0){break;}for(I=0;I<9;I++){scanf("%d",&P);N-=P;}printf("%d\n",N);}}
      |                    ^~~~
main.c:1:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
  +++ |+#include <stdbool.h>
    1 | N,P,I;main(){while(true){scanf("%d",&N);if(N==0){break;}for(I=0;I<9;I++){scanf("%d",&P);N-=P;}printf("%d\n",N);}}
main.c:1:20: note: each undeclared identifier is reported only once for each function it appears in
    1 | N,P,I;main(){while(true){scanf("%d",&N);if(N==0){break;}for(I=0;I<9;I++){scanf("%d",&P);N-=P;}printf("%d\n",N);}}
      |                    ^~~~
main.c:1:26: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | N,P,I;main(){while(true){scanf("%d",&N);if(N==0){break;}for(I=0;I<9;I++){scanf("%d",&P);N-=P;}printf("%d\n",N);}}
      |                          ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | N,P,I;main(){while(true){scanf("%d",&N);if(N==0){break;}for(I=0;I<9;I++){scanf("%d",&P);N-=P;}printf("%d\n",N);}}
main.c:1:26: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | N,P,I;main(){while(true){scanf("%d",&N);if(N==0){break;}for(I=0;I<9;I++){scanf("%d",&P);N-=P;}printf("%d\n",N);}}
      |                          ^~~~~
main.c:1:26: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:95: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | N,P,I;main(){while(true){scanf("%d",&N);if(N==0){break;}for(I=0;I<9;I++){scanf("%d",&P);N-=P;}printf("%d\n",N);}}
      |                                                                                               ^~~~~~
main.c:1:95: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:95: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:95: note: include '<stdio.h>' or provide a declaration of 'printf'