Main.c:2:7: error: expected declaration specifiers or ‘...’ before string constant scanf("%d %d",&a,&b); ^ Main.c:2:15: error: expected declaration specifiers or ‘...’ before ‘&’ token scanf("%d %d",&a,&b); ^ Main.c:2:18: error: expected declaration specifiers or ‘...’ before ‘&’ token scanf("%d %d",&a,&b); ^ Main.c:3:8: error: expected declaration specifiers or ‘...’ before string constant printf("%d",a+b); ^ Main.c:3:13: error: ex
大会员可查看代码,点此开通大会员
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a+b);