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_32020179_25575.cpp:8:30: error: expected constructor, destructor, or type conversion before ';' token
 const int INF = 1 << 20;  // INF 的设置一定要足够的大
                              ^
0_0_32020179_25575.cpp: In function 'void Init()':
0_0_32020179_25575.cpp:16:2: error: 'nbsp' was not declared in this scope
     for (int i = 0; i < maxn; i++)  // 只能小于,不能等于,否则会TLE!!
  ^
0_0_32020179_25575.cpp:19:47: error: 'i' was not declared in this scope
             map[i][j] = (i == j ? 0 : INF);
                                               ^
0_0_32020179_25575.cpp:19:50: error: 'j' was not declared in this scope
             map[i][j] = (i == j ? 0 : INF);
                                                  ^
0_0_32020179_25575.cpp: In function 'void Dijkstra()':
0_0_32020179_25575.cpp:47:2: error: 'nbsp' was not declared in this scope
     for (int i = 0; i <= n; i++)  // 从0改为1
  ^
0_0_32020179_25575.cpp:48:34: error: 'i' was not declared in this scope
         dist[i] = map[0][i];  // 以草儿家和她相邻的点作为起点,求出该起点到相邻点的时间
                                  ^
0_0_32020179_25575.cpp:56:52: error: 'j' was not declared in this scope
             if (!vis[j] && dist[j] < maxx)
                                                    ^
0_0_32020179_25575.cpp:57:71: error: 'j' was not declared in this scope
                 maxx = dist[u=j];
                                                                       ^
0_0_32020179_25575.cpp:62:52: error: 'j' was not declared in this scope
             if (dist[j] > dist[u] + map[u][j])
                                                    ^
0_0_32020179_25575.cpp:63:68: error: 'j' was not declared in this scope
                  dist[j] = dist[u] + map[u][j];
                                                                    ^
0_0_32020179_25575.cpp: In function 'int main()':
0_0_32020179_25575.cpp:71:2: error: 'nbsp' was not declared in this scope
     while (scanf("%d%d%d", &T, &S, &D) != EOF)
  ^


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-17 08:40:46, Gzip enabled