0_0_28187042_3837.cpp:1:6: error: variable or field 'main' declared void
void main{
^
0_0_28187042_3837.cpp:2:1: error: expected primary-expression before 'int'
int a,b,c;
^
0_0_28187042_3837.cpp:2:1: error: expected '}' before 'int'
0_0_28187042_3837.cpp:3:6: error: expected constructor, destructor, or type conversion before '(' token
scand("请输入整数值%d",&a);
^
0_0_28187042_3837.cpp:4:6: error: expected constructor, destructor, or type conversion before '(' token
scand("请输入整数值%d",&b);
^
0_0_28187042_3837.cpp:5:1: error: 'c' does not name a type
c=a+b;
^
0_0_28187042_3837.cpp:6:6: error: expected constructor, destructor, or type conversion before '(' token
print("俩个整数之和为%d",c);
^
0_0_28187042_3837.cpp:7:1: error: expected unqualified-id before 'return'
return 0;
^
0_0_28187042_3837.cpp:8:1: error: expected declaration before '}' token
}
^
|