Problem heatwv
User CKCodeBreaker55
Submission Time 2025-04-24 14:38:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

heatwv.cpp:6:10: error: conversion from ‘double’ to ‘long unsigned int’ in a converted constant expression
6 | int dist[1e5];
| ^~~
heatwv.cpp:6:10: error: could not convert ‘1.0e+5’ from ‘double’ to ‘long unsigned int’
heatwv.cpp:6:10: error: size of array ‘dist’ has non-integral type ‘double’
heatwv.cpp:7:34: error: template argument 1 is invalid
7 | vector<pair<int, pair<int, int>> edges;
| ^~~~~
heatwv.cpp:7:34: error: template argument 2 is invalid
heatwv.cpp: In function ‘void bellman_ford()’:
heatwv.cpp:14:17: error: ‘edges’ was not declared in this scope
14 | for (auto j : edges)
| ^~~~~
heatwv.cpp: In function ‘int main()’:
heatwv.cpp:36:3: error: ‘edges’ was not declared in this scope
36 | edges.push_back(p);
| ^~~~~