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_38554711_31984.cpp:11:1: error: expected ',' or ';' before 'double'
 double r1, r2, v, hh;
 ^
0_0_38554711_31984.cpp: In function 'bool check(double)':
0_0_38554711_31984.cpp:14:23: error: 'r2' was not declared in this scope
      double rr=1.0 * (r2-r1)*h/hh+r1;
                       ^
0_0_38554711_31984.cpp:14:26: error: 'r1' was not declared in this scope
      double rr=1.0 * (r2-r1)*h/hh+r1;
                          ^
0_0_38554711_31984.cpp:14:32: error: 'hh' was not declared in this scope
      double rr=1.0 * (r2-r1)*h/hh+r1;
                                ^
0_0_38554711_31984.cpp:18:16: error: 'v' was not declared in this scope
     if(temp >= v) return true;
                ^
0_0_38554711_31984.cpp: In function 'int main()':
0_0_38554711_31984.cpp:28:16: error: 'r1' was not declared in this scope
         cin >> r1 >> r2 >> hh >> v;
                ^
0_0_38554711_31984.cpp:28:22: error: 'r2' was not declared in this scope
         cin >> r1 >> r2 >> hh >> v;
                      ^
0_0_38554711_31984.cpp:28:28: error: 'hh' was not declared in this scope
         cin >> r1 >> r2 >> hh >> v;
                            ^
0_0_38554711_31984.cpp:28:34: error: 'v' was not declared in this scope
         cin >> r1 >> r2 >> hh >> v;
                                  ^


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-09-29 01:28:11, Gzip enabled