# include(stdio.h) int main(void) { int i,j; for(;i!=0&&j!=0;) { scanf("%d %d",&i,&j); printf("%d\n"i+j); } return 0; } /* Main.c:1:10: error: #include expects "FILENAME" or <FILENAME> # include(stdio.h) ^ Main.c: In function 'main': Main.c:7:5: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] scanf("%d %d",&i,&j); ^ Main.c:7:5: warning: incompatible implicit declaration of built-in function 'scanf' Main.c:8:5: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] printf("%d\n"i+j); ^ Main.c:8:5: warning: incompatible implicit declaration of built-in function 'printf' Main.c:8:18: error: expected ')' before 'i' printf("%d\n"i+j); ^ Main.c:8:18: warning: format '%d' expects a matching 'int' argument [-Wformat=] */ |
Double click to view unformatted code.