QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#176311#7185. Poor Studentsucup-team1414Compile Error//C++146.7kb2023-09-11 15:08:382023-09-11 15:08:38

详细

answer.code: In function ‘int main()’:
answer.code:192:13: error: missing template arguments before ‘g’
  192 |     mcSFlow g(n+k+2, 0, n+k+1);
      |             ^
answer.code:195:9: error: ‘g’ was not declared in this scope
  195 |         g.add_edge(0, i, 0, 1);
      |         ^
answer.code:203:13: error: ‘g’ was not declared in this scope
  203 |             g.add_edge(i, j+n, cost, 1);
      |             ^
answer.code:211:9: error: ‘g’ was not declared in this scope
  211 |         g.add_edge(j+n, n+k+1, 0, maxCap);
      |         ^
answer.code:214:11: error: ‘g’ was not declared in this scope
  214 |     cout<<g.minCostMaxFlow().second;
      |           ^