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