0_0_23072050_15338.cpp:6:10: error: expected constructor, destructor, or type conversion before '(' token
scanf("%d%d",&a,&b);
^
0_0_23072050_15338.cpp:7:5: error: 'number' does not name a type
number=0;
^
0_0_23072050_15338.cpp:8:5: error: expected unqualified-id before 'if'
if(a==0&&b==0)
^
0_0_23072050_15338.cpp:10:5: error: expected unqualified-id before 'if'
if(a>b)
^
0_0_23072050_15338.cpp:12:5: error: 'number' does not name a type
number = b - a + 1;
^
0_0_23072050_15338.cpp:13:5: error: expected unqualified-id before 'for'
for(i=a;i<=b;i++)
^
0_0_23072050_15338.cpp:13:13: error: 'i' does not name a type
for(i=a;i<=b;i++)
^
0_0_23072050_15338.cpp:13:18: error: 'i' does not name a type
for(i=a;i<=b;i++)
^
0_0_23072050_15338.cpp:30:11: error: expected constructor, destructor, or type conversion before '(' token
printf("%d\n",number);
^
0_0_23072050_15338.cpp:31:5: error: expected unqualified-id before 'return'
return 0;
^
0_0_23072050_15338.cpp:32:1: error: expected declaration before '}' token
}
^
|