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_30505651_8280.cpp: In function 'int main()':
0_0_30505651_8280.cpp:35:17: error: 'matrix' was not declared in this scope
                 matrix[i][j] = INF;
                 ^
0_0_30505651_8280.cpp:49:25: error: 'matrix' was not declared in this scope
                 if (c < matrix[a][b]) {
                         ^
0_0_30505651_8280.cpp: In function 'void dijkstra(int)':
0_0_30505651_8280.cpp:73:44: error: 'matrix' was not declared in this scope
             if (!marks[i] && new_p != i && matrix[new_p][i] != INF) {
                                            ^
0_0_30505651_8280.cpp: In function 'void dfs(int, int)':
0_0_30505651_8280.cpp:99:38: error: 'matrix' was not declared in this scope
             if (result[cnt] == -1 || matrix[num][result[cnt]] > matrix[num][previous[num][i]]) {
                                      ^
0_0_30505651_8280.cpp: In function 'void print(int)':
0_0_30505651_8280.cpp:113:26: error: 'matrix' was not declared in this scope
             printf("%d", matrix[result[i]][result[i - 1]]);
                          ^
0_0_30505651_8280.cpp:116:27: error: 'matrix' was not declared in this scope
             printf(" %d", matrix[result[i]][result[i - 1]]);
                           ^


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-02-17 06:35:37, Gzip enabled