Problem heatwv
User haroldpyh
Submission Time 2025-12-26 16:16:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

heatwv.cpp: In function ‘int main()’:
heatwv.cpp:12:29: error: ‘n’ was not declared in this scope
12 | vector<pair<int, int>> adj[n];
| ^
heatwv.cpp:16:3: error: ‘adj’ was not declared in this scope
16 | adj[a].push_back({w,b});
| ^~~
heatwv.cpp:22:3: error: ‘dist’ was not declared in this scope
22 | dist[i] = INT_MAX;
| ^~~~
heatwv.cpp:24:2: error: ‘dist’ was not declared in this scope
24 | dist[s] = 0;
| ^~~~
heatwv.cpp:31:17: error: ‘adj’ was not declared in this scope
31 | for (auto it: adj[node]) {
| ^~~
heatwv.cpp:36:33: error: no matching function for call to ‘std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> >, std::greater<std::pair<long long int, long long int> > >::push(<brace-enclosed initializer list>)’
3