#include <stdio.h> main() { int k = 0, i; while (i>0) { read (i); k=k+i;} write(k;) return 0; }
Standard input is empty
prog.c:3:1: warning: return type defaults to ‘int’ [-Wimplicit-int] main() ^~~~ prog.c: In function ‘main’: prog.c:8:2: warning: implicit declaration of function ‘read’ [-Wimplicit-function-declaration] read (i); ^~~~ prog.c:11:2: warning: implicit declaration of function ‘write’ [-Wimplicit-function-declaration] write(k;) ^~~~~ prog.c:11:9: error: expected ‘)’ before ‘;’ token write(k;) ^ prog.c:12:2: error: expected ‘;’ before ‘return’ return 0; ^~~~~~
Standard output is empty