1 2 3 4 5 6 7 8 | #include <stdio.h> /*count characters in input, 2nd version*/ main(){ double n; for (n = 0; getchar() != EOF; ++n); printf("%.0f\n", n); } |
I2luY2x1ZGUgPHN0ZGlvLmg+Ci8qY291bnQgY2hhcmFjdGVycyBpbiBpbnB1dCwgMm5kIHZlcnNpb24qLwptYWluKCl7CiAgICBkb3VibGUgbjsKICAgIGZvciAobiA9IDA7IGdldGNoYXIoKSAhPSBFT0Y7ICsrbik7CiAgICBwcmludGYoIiUuMGZcbiIsIG4pOwp9Cg==
prog.c:3: warning: return type defaults to ‘int’ prog.c: In function ‘main’: prog.c:7: warning: control reaches end of non-void function
-
upload with new input
-
result: Success time: 0s memory: 1724 kB returned value: 2
foobar
6


