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_25393665_18283.cpp: In function 'void floyd()':
0_0_25393665_18283.cpp:12:17: error: 'n' was not declared in this scope
  for(int k=0;k<=n;++k)
                 ^
0_0_25393665_18283.cpp: In function 'int main()':
0_0_25393665_18283.cpp:40:104: error: 'sqrt' was not declared in this scope
     else dis[i][j]=sqrt((loc[i].x-loc[j].x)*(loc[i].x-loc[j].x)+(loc[i].y-loc[j].y)*(loc[i].y-loc[j].y));
                                                                                                        ^
0_0_25393665_18283.cpp:48:47: error: 'sqrt' was not declared in this scope
    if(sqrt(loc[i].x*loc[i].x+loc[i].y*loc[i].y)<7.5+d)
                                               ^
0_0_25393665_18283.cpp:50:75: error: 'sqrt' was not declared in this scope
    if(sqrt((loc[i].x-50.0)*(loc[i].x-50.0)+(loc[i].y-50.0)*(loc[i].y-50.0))<d) 
                                                                           ^
0_0_25393665_18283.cpp:55:4: error: 'mp' was not declared in this scope
    mp[0][a[i]]=sqrt(loc[i].x*loc[i].x+loc[i].y*loc[i].y)-7.5;
    ^
0_0_25393665_18283.cpp:55:56: error: 'sqrt' was not declared in this scope
    mp[0][a[i]]=sqrt(loc[i].x*loc[i].x+loc[i].y*loc[i].y)-7.5;
                                                        ^
0_0_25393665_18283.cpp:57:16: error: invalid types 'int [1001][double]' for array subscript
    step[0][a[i]]=1;
                ^
0_0_25393665_18283.cpp:58:13: error: invalid types 'int [1001][1001][double]' for array subscript
    step[a[i]][0]=1;
             ^
0_0_25393665_18283.cpp:62:4: error: 'mp' was not declared in this scope
    mp[b[i]][n]=sqrt((loc[i].x-50.0)*(loc[i].x-50.0)+(loc[i].y-50.0)*(loc[i].y-50.0);
    ^
0_0_25393665_18283.cpp:62:84: error: expected ')' before ';' token
    mp[b[i]][n]=sqrt((loc[i].x-50.0)*(loc[i].x-50.0)+(loc[i].y-50.0)*(loc[i].y-50.0);
                                                                                    ^
0_0_25393665_18283.cpp:63:84: error: expected ')' before ';' token
    mp[n][b[i]]=sqrt((loc[i].x-50.0)*(loc[i].x-50.0)+(loc[i].y-50.0)*(loc[i].y-50.0);
                                                                                    ^


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-25 11:52:53, Gzip enabled