QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#68298#4585. Greedy KnapsackGuanYunchangCompile Error//C++1.9kb2022-12-15 17:18:412022-12-15 17:18:43

詳細信息

answer.code: In function ‘bool spfa()’:
answer.code:80:31: error: expected ‘}’ at end of input
   80 |     if (dis[T]==inf) return 0;
      |                               ^
answer.code:58:1: note: to match this ‘{’
   58 | {
      | ^
answer.code:80:31: warning: control reaches end of non-void function [-Wreturn-type]
   80 |     if (dis[T]==inf) return 0;
      |                               ^