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_38767731_12273.cpp: In function 'void initSteinerTree()':
0_0_38767731_12273.cpp:21:9: error: 'cnt' was not declared in this scope; did you mean 'int'?
   21 |         cnt=0;
      |         ^~~
      |         int
0_0_38767731_12273.cpp:22:16: error: 'head' was not declared in this scope
   22 |         memset(head,0,sizeof head);
      |                ^~~~
0_0_38767731_12273.cpp: In function 'void SPFA(int)':
0_0_38767731_12273.cpp:51:12: error: 'que' was not declared in this scope
   51 |     while(!que.empty())
      |            ^~~
0_0_38767731_12273.cpp:62:57: error: 'W' was not declared in this scope
   62 |                     dptree[v][k|state]=dptree[u][state]+W[i];
      |                                                         ^
0_0_38767731_12273.cpp:62:59: error: 'i' was not declared in this scope
   62 |                     dptree[v][k|state]=dptree[u][state]+W[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-10 17:55:21, Gzip enabled