/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'bool spfa(int)':
foo.cc:23:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Node>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   23 |         for (int i = 0; i < edge[u].size(); i++)
      |                         ~~^~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:51:13: warning: 's' is used uninitialized [-Wuninitialized]
   51 |     if (spfa(s))cout << -1;
      |         ~~~~^~~
foo.cc:42:9: note: 's' was declared here
   42 |     int s;
      |         ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Cancelled 0ms 0 Bytes
#2 Runtime Error Segmentation fault 4ms 412.0 KiB
#3 Runtime Error Segmentation fault 4ms 460.0 KiB
#4 Runtime Error Segmentation fault 4ms 412.0 KiB
#5 Runtime Error Segmentation fault 3ms 412.0 KiB
#6 Runtime Error Segmentation fault 4ms 412.0 KiB
#7 Runtime Error Segmentation fault 4ms 412.0 KiB

信息

递交者
类型
递交
题目
P1053 Easy sssp
语言
C++
递交时间
2023-08-29 23:20:55
评测时间
2023-08-29 23:20:55
评测机
分数
0
总耗时
26ms
峰值内存
460.0 KiB