Compile Error
/in/foo.cc: In function 'void spfa()':
/in/foo.cc:23:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0; i<q.size(); i++) {
~^~~~~~~~~
/in/foo.cc: In function 'int f(int, int)':
/in/foo.cc:48:16: error: no match for 'operator[]' (operand types are 'std::pair<int, int>' and 'int')
int u = edge[0], w = edge[1];
^
/in/foo.cc:49:23: error: 'w' was not declared in this scope
ans = (ans + f(d - w, u)) % P;
^
信息
- 递交者
- 类型
- 自测
- 题目
- P2030 逛公园
- 语言
- C++
- 递交时间
- 2018-02-05 15:36:16
- 评测时间
- 2018-02-05 15:36:16
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes