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_32025555_22259.cpp: In function 'void spfa(int)':
0_0_32025555_22259.cpp:52:13: error: 'inf' was not declared in this scope
  memset(dis,inf,sizeof(dis));
             ^
0_0_32025555_22259.cpp:55:6: error: 's' was not declared in this scope
  dis[s]=0;
      ^
0_0_32025555_22259.cpp: In function 'int main()':
0_0_32025555_22259.cpp:124:10: error: expected unqualified-id before '[' token
     const[i][j]=dis[p[j]];
          ^
0_0_32025555_22259.cpp:125:8: error: decl-specifier invalid in condition
     if(register cost[i][j]==inf)
        ^
0_0_32025555_22259.cpp:125:8: error: expected primary-expression before 'register'
0_0_32025555_22259.cpp:125:8: error: expected ')' before 'register'
0_0_32025555_22259.cpp:139:13: error: 'inf' was not declared in this scope
   memset(dp,inf,sizeof(dp));
             ^
0_0_32025555_22259.cpp:150:47: error: invalid types 'int[int]' for array subscript
       dp[i][j]=min(dp[i][j],dp[i^(1<<j)][kk][j]);
                                               ^


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 15:43:41, Gzip enabled