F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_20897160_1786.cpp:2:9: error: expected constructor, destructor, or type conversion before '(' token
    scanf("%lf %lf %lf %lf",&v1,&v2,&r,&d);
         ^
0_0_20897160_1786.cpp:3:4: error: 'w' does not name a type
    w = v1/r;
    ^
0_0_20897160_1786.cpp:4:4: error: 'R' does not name a type
    R = v2/w;
    ^
0_0_20897160_1786.cpp:6:25: error: 'asin' was not declared in this scope
    double ans = asin(tmp);
                         ^
0_0_20897160_1786.cpp:7:4: error: 'ans' does not name a type
    ans = ans * 2.0 * R;
    ^
0_0_20897160_1786.cpp:8:4: error: expected unqualified-id before 'if'
    if(ans-d<=esp)puts("Wake up to code");
    ^
0_0_20897160_1786.cpp:9:4: error: expected unqualified-id before 'else'
    else puts("Why give up treatment");
    ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-12-03 14:31:32, Gzip enabled