0_0_30932300_16613.cpp:4:8: error: 'b' has not been declared
int a,b,sum;
^
0_0_30932300_16613.cpp:4:10: error: 'sum' has not been declared
int a,b,sum;
^
0_0_30932300_16613.cpp:4:13: error: expected ')' before ';' token
int a,b,sum;
^
0_0_30932300_16613.cpp:4:13: error: expected constructor, destructor, or type conversion before ';' token
0_0_30932300_16613.cpp:5:3: error: 'a' does not name a type
a=123;
^
0_0_30932300_16613.cpp:6:4: error: 'b' does not name a type
b=456;
^
0_0_30932300_16613.cpp:7:4: error: 'sum' does not name a type
sum=a+b;
^
0_0_30932300_16613.cpp:8:9: error: expected constructor, destructor, or type conversion before '(' token
printf("%d\n",sum);
^
0_0_30932300_16613.cpp:9:2: error: expected unqualified-id before 'return'
return 0;
^
0_0_30932300_16613.cpp:10:1: error: expected unqualified-id before ')' token
)
^
|