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_38284088_17441.cpp:12:22: error: expected ',' or '...' before '.' token
 double solve(double l.double r){
                      ^
0_0_38284088_17441.cpp: In function 'double solve(double)':
0_0_38284088_17441.cpp:14:14: error: 'r' was not declared in this scope
  while(l+eps<r){ //r-l>1e-7 误差允许范围 
              ^
0_0_38284088_17441.cpp:16:20: error: 'rmid' was not declared in this scope
   if(val(lmid)<val(rmid)){
                    ^
0_0_38284088_17441.cpp: In function 'int main()':
0_0_38284088_17441.cpp:31:32: error: too many arguments to function 'double solve(double)'
   printf("%.4f\n",solve(0,100.0)); 
                                ^
0_0_38284088_17441.cpp:12:8: note: declared here
 double solve(double l.double r){
        ^


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-07-03 17:42:21, Gzip enabled