Compile Error
/in/foo.cc: In function 'void spfa(int)': /in/foo.cc:21:32: error: 'memset' was not declared in this scope memset(&inf, 0x3f, sizeof(inf)); ^ /in/foo.cc:33:25: error: 'weight' was not declared in this scope if(dis[v] > dis[u] + weight){ ^~~~~~ /in/foo.cc:32:22: warning: unused variable 'w' [-Wunused-variable] int v = es[i].to, w = es[i].weight; ^
信息
- 递交者
- 类型
- 自测
- 题目
- 「一本通 3.2 练习 7」道路和航线
- 语言
- C++
- 递交时间
- 2019-10-31 21:09:50
- 评测时间
- 2019-10-31 21:09:50
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes