Banner Home Page DIY Contests Problems Ranklist Status Statistics

View Compilation Error

2_30942_2454747_26680.cpp:3:3: error: expected initializer before 'int'
   int a,c;int b=1;
   ^
2_30942_2454747_26680.cpp:4:3: error: expected unqualified-id before 'while'
   while(scanf("%lf",&b)!=EOF)
   ^
2_30942_2454747_26680.cpp:5:11: error: 'a' does not name a type
   for(a=1;a<=b;a++)
           ^
2_30942_2454747_26680.cpp:5:16: error: 'a' does not name a type
   for(a=1;a<=b;a++)
                ^
2_30942_2454747_26680.cpp:7:3: error: expected unqualified-id before 'if'
   if (2016/b==0)
   ^
2_30942_2454747_26680.cpp:9:4: error: expected unqualified-id before 'else'
    else
    ^
2_30942_2454747_26680.cpp:11:3: error: expected unqualified-id before 'return'
   return 0;
   ^
2_30942_2454747_26680.cpp:12:1: error: expected declaration before '}' token
 }
 ^