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_20488638_12450.cpp: In function 'double Evaluate(solve)':
0_0_20488638_12450.cpp:20:73: error: invalid operands of types 'double' and '<unresolved overloaded function type>' to binary 'operator<'
         if ((tt.x-recx[i])*(tt.x-recx[i])+(tt.y-recy[i])*(tt.y-recy[i])<min) min="(tt.x-recx[i])*(tt.x-recx[i])+(tt.y-recy[i])*(tt.y-recy[i]);" return="" min;="" }="" void="" simulated_annealing()="" {="" double="" temper="X+Y,eps=1e-3,dx,dy;" int="" i,j;="" solve="" tmp;="" for="" (i="1;i<=50;i++)" tr[i].x="((rand()%1000+1)*1.0/1000.00)*X;" tr[i].y="((rand()%1000+1)*1.0/1000.00)*Y;" tr[i].val="Evaluate(tr[i]);" while="" (temper="">eps)
                                                                         ^
0_0_20488638_12450.cpp:20:81: error: overloaded function with no contextual type information
         if ((tt.x-recx[i])*(tt.x-recx[i])+(tt.y-recy[i])*(tt.y-recy[i])<min) min="(tt.x-recx[i])*(tt.x-recx[i])+(tt.y-recy[i])*(tt.y-recy[i]);" return="" min;="" }="" void="" simulated_annealing()="" {="" double="" temper="X+Y,eps=1e-3,dx,dy;" int="" i,j;="" solve="" tmp;="" for="" (i="1;i<=50;i++)" tr[i].x="((rand()%1000+1)*1.0/1000.00)*X;" tr[i].y="((rand()%1000+1)*1.0/1000.00)*Y;" tr[i].val="Evaluate(tr[i]);" while="" (temper="">eps)
                                                                                 ^
0_0_20488638_12450.cpp:20:159: error: expected primary-expression before '=' token
         if ((tt.x-recx[i])*(tt.x-recx[i])+(tt.y-recy[i])*(tt.y-recy[i])<min) min="(tt.x-recx[i])*(tt.x-recx[i])+(tt.y-recy[i])*(tt.y-recy[i]);" return="" min;="" }="" void="" simulated_annealing()="" {="" double="" temper="X+Y,eps=1e-3,dx,dy;" int="" i,j;="" solve="" tmp;="" for="" (i="1;i<=50;i++)" tr[i].x="((rand()%1000+1)*1.0/1000.00)*X;" tr[i].y="((rand()%1000+1)*1.0/1000.00)*Y;" tr[i].val="Evaluate(tr[i]);" while="" (temper="">eps)
                                                                                                                                                               ^
0_0_20488638_12450.cpp: At global scope:
0_0_20488638_12450.cpp:20:164: error: expected unqualified-id before '=' token
         if ((tt.x-recx[i])*(tt.x-recx[i])+(tt.y-recy[i])*(tt.y-recy[i])<min) min="(tt.x-recx[i])*(tt.x-recx[i])+(tt.y-recy[i])*(tt.y-recy[i]);" return="" min;="" }="" void="" simulated_annealing()="" {="" double="" temper="X+Y,eps=1e-3,dx,dy;" int="" i,j;="" solve="" tmp;="" for="" (i="1;i<=50;i++)" tr[i].x="((rand()%1000+1)*1.0/1000.00)*X;" tr[i].y="((rand()%1000+1)*1.0/1000.00)*Y;" tr[i].val="Evaluate(tr[i]);" while="" (temper="">eps)
                                                                                                                                                                    ^


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-11-23 10:17:46, Gzip enabled