Compile Error
/in/foo.cc: In function 'newpair ZKW_DFS(int, int, int)': /in/foo.cc:128:34: error: cannot bind non-const lvalue reference of type 'unsigned int&' to a value of type 'int' 128 | for (unsigned int& z = head[x]; z < edge[x].size(); z++) { | ~~~~~~^ /in/foo.cc: In function 'void costflow()': /in/foo.cc:154:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 154 | while (ans = ZKW_DFS(0, st, inf)) { | ~~~~^~~~~~~~~~~~~~~~~~~~~
信息
- 递交者
- 类型
- 递交
- 题目
- P1525 生命之泉
- 语言
- C++
- 递交时间
- 2025-04-15 14:49:34
- 评测时间
- 2025-04-15 14:49:34
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes