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