Problem supplies
User boaznumberd5555
Submission Time 2025-07-24 09:29:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

supplies.cpp: In function ‘int main()’:
supplies.cpp:38:13: error: structured binding declaration cannot have type ‘int’
38 | int [d,node] = pq.top();
| ^~~~~~~~
supplies.cpp:38:13: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’
supplies.cpp:76:15: error: ‘dist2’ was not declared in this scope; did you mean ‘dist1’?
76 | if(d!=dist2[node]) continue;
| ^~~~~
| dist1
supplies.cpp:84:16: error: ‘dist2’ was not declared in this scope; did you mean ‘dist1’?
84 | if(dist2[n2] == -1 or dist2[n2]>d2){
| ^~~~~
| dist1
supplies.cpp:96:8: error: ‘dist2’ was not declared in this scope; did you mean ‘dist1’?
96 | if(dist2[h] == -1){
| ^~~~~
| dist1
supplies.cpp:104:15: error: ‘dist2’ was not declared in this scope; did you mean ‘dist1’?
104 |