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_32863473_14617.cpp:6:1: error: 'doubled' does not name a type
 doubled[1<<22];
 ^
0_0_32863473_14617.cpp:7:1: error: 'boolvis' does not name a type
 boolvis[1<<22];
 ^
0_0_32863473_14617.cpp:17:13: error: 'inti' was not declared in this scope
 double dist(inti,int j)//返回从起点到i,j的最短距离
             ^
0_0_32863473_14617.cpp:17:18: error: expected primary-expression before 'int'
 double dist(inti,int j)//返回从起点到i,j的最短距离
                  ^
0_0_32863473_14617.cpp:17:23: error: expression list treated as compound expression in initializer [-fpermissive]
 double dist(inti,int j)//返回从起点到i,j的最短距离
                       ^
0_0_32863473_14617.cpp:18:1: error: expected ',' or ';' before '{' token
 {
 ^
0_0_32863473_14617.cpp: In function 'int main()':
0_0_32863473_14617.cpp:40:20: error: 'vis' was not declared in this scope
             memset(vis,0,sizeof(vis));
                    ^
0_0_32863473_14617.cpp:42:13: error: 'd' was not declared in this scope
             d[0]=0.0;//初始为0
             ^
0_0_32863473_14617.cpp:50:62: error: 'dist' cannot be used as a function
                            d[S|(1<<i)|(1<<j)] = d[S]+dist(i,j);
                                                              ^
0_0_32863473_14617.cpp:52:87: error: 'dist' cannot be used as a function
                            d[S|(1<<i)|(1<<j)] = min( d[S|(1<<i)|(1<<j)] ,d[S]+dist(i,j) );
                                                                                       ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-01-10 04:01:48, Gzip enabled