Language: C


c[];main(a,b){
	for(;~scanf("%d%d",&a,&b);printf("%d\n",strlen(itoa(a+b,c,10))));
}

Compiler output:
main.c:2:1: warning: data definition has no type or storage class
    2 | c[];main(a,b){
      | ^
main.c:2:1: error: type defaults to 'int' in declaration of 'c' [-Wimplicit-int]
main.c:2:5: error: return type defaults to 'int' [-Wimplicit-int]
    2 | c[];main(a,b){
      |     ^~~~
main.c: In function 'main':
main.c:2:5: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:2:5: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:3:15: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |         for(;~scanf("%d%d",&a,&b);printf("%d\n",strlen(itoa(a+b,c,10))));
      |               ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | 
main.c:3:15: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |         for(;~scanf("%d%d",&a,&b);printf("%d\n",strlen(itoa(a+b,c,10))));
      |               ^~~~~
main.c:3:15: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:35: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    3 |         for(;~scanf("%d%d",&a,&b);printf("%d\n",strlen(itoa(a+b,c,10))));
      |                                   ^~~~~~
main.c:3:35: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:3:35: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:3:35: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:3:49: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
    3 |         for(;~scanf("%d%d",&a,&b);printf("%d\n",strlen(itoa(a+b,c,10))));
      |                                                 ^~~~~~
main.c:1:1: note: include '<string.h>' or provide a declaration of 'strlen'
  +++ |+#include <string.h>
    1 | 
main.c:3:49: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
    3 |         for(;~scanf("%d%d",&a,&b);printf("%d\n",strlen(itoa(a+b,c,10))));
      |                                                 ^~~~~~
main.c:3:49: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:3:56: error: implicit declaration of function 'itoa' [-Wimplicit-function-declaration]
    3 |         for(;~scanf("%d%d",&a,&b);printf("%d\n",strlen(itoa(a+b,c,10))));
      |                                                        ^~~~
main.c:3:56: error: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Wint-conversion]
    3 |         for(;~scanf("%d%d",&a,&b);printf("%d\n",strlen(itoa(a+b,c,10))));
      |                                                        ^~~~~~~~~~~~~~
      |                                                        |
      |                                                        int
main.c:3:56: note: expected 'const char *' but argument is of type 'int'
main.c: At top level:
main.c:2:1: warning: array 'c' assumed to have one element
    2 | c[];main(a,b){
      | ^