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_37426008_26702.cpp: In function 'int main()':
0_0_37426008_26702.cpp:28:16: error: 'j' was not declared in this scope
    w[0][0]+=st[j-1],w[0][1]+=sp[j-1];
                ^
0_0_37426008_26702.cpp:30:4: error: 'else' without a previous 'if'
    else for(int j=i+2;j<=n;j++)
    ^
0_0_37426008_26702.cpp:36:15: error: invalid types 'int[int]' for array subscript
    w[i][i+1][0]=p[i];
               ^
0_0_37426008_26702.cpp:37:15: error: invalid types 'int[int]' for array subscript
    w[i][i+1][1]=t[i];
               ^
0_0_37426008_26702.cpp:38:21: error: invalid types 'int[int]' for array subscript
    f[i][0]=w[0][i][0]+p[i];
                     ^
0_0_37426008_26702.cpp:39:21: error: invalid types 'int[int]' for array subscript
    f[i][1]=w[0][i][1]+t[i];
                     ^
0_0_37426008_26702.cpp:42:42: error: invalid types 'int[int]' for array subscript
     f[i][0]=min(f[i][0],f[j][0]+w[j][i][0]+p[i]);
                                          ^
0_0_37426008_26702.cpp:43:42: error: invalid types 'int[int]' for array subscript
     f[i][1]=min(f[i][1],f[j][1]+w[j][i][1]+t[i]);
                                          ^


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.001000(s) query 1, Server time : 2025-01-11 01:28:10, Gzip enabled