#include <stdio.h> int main() { int n,a,b; sacnf("%d",&n); while(scanf("%d %d",a,b!)=EOF) printf("%d",a+b); } /* Main.c: In function 'main': Main.c:5:4: warning: implicit declaration of function 'sacnf' [-Wimplicit-function-declaration] sacnf("%d",&n); ^ Main.c:6:34: error: expected ')' before '!' token while(scanf("%d %d",a,b!)=EOF) ^ Main.c:6:34: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=] Main.c:6:34: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=] Main.c:6:36: error: lvalue required as left operand of assignment while(scanf("%d %d",a,b!)=EOF) ^ */ |
Double click to view unformatted code.