Problem heatwv
User FIips
Submission Time 2025-02-24 14:57:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

heatwv.cpp: In function ‘int32_t main()’:
heatwv.cpp:31:23: error: ‘x’ was not declared in this scope
31 | pq.push(make_pair(0, x));
| ^
heatwv.cpp:36:30: error: ‘class std::priority_queue<std::pair<long long int, long long int> >’ has no member named ‘first’
36 | int x = cur.second, w = pq.first;
| ^~~~~
heatwv.cpp:47:15: error: ‘y’ was not declared in this scope
47 | cout << dist[y - 1];
| ^