Problem heatwv
User yuanbin
Submission Time 2026-08-01 09:52:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

heatwv.cpp: In function ‘int main()’:
heatwv.cpp:14:42: error: expected ‘;’ before ‘dist’
14 | for (int i=1; i<N; i++) dist[i]=2e9+5
| ^
| ;
15 | dist[start]=0;
| ~~~~
heatwv.cpp:21:17: error: expected ‘;’ before ‘if’
21 | pq.pop()
| ^
| ;
22 | if (dist[u]!=d) continue;
| ~~
heatwv.cpp:30:26: error: expected ‘;’ before ‘}’ token
30 | cout<<dist[end]<<'\n'
| ^
| ;
31 | }
| ~