QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#319515#6140. 矩阵游戏ZhangYiDeCompile Error//C++143.0kb2024-02-02 17:43:072024-02-02 17:43:07

详细

answer.code: In member function ‘bool SPFA::solve()’:
answer.code:49:23: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   49 |             for (auto [v, w] : adj[u]) {
      |                       ^
answer.code: In function ‘void solve()’:
answer.code:73:17: error: missing template arguments before ‘b’
   73 |     std::vector b(n - 1, std::vector<int>(m - 1));
      |                 ^
answer.code:76:25: error: ‘b’ was not declared in this scope
   76 |             std::cin >> b[i][j];
      |                         ^
answer.code:80:17: error: missing template arguments before ‘a’
   80 |     std::vector a(n, std::vector<i64>(m));
      |                 ^
answer.code:83:13: error: ‘a’ was not declared in this scope
   83 |             a[i][j] = b[i - 1][j - 1] - a[i - 1][j - 1] - a[i - 1][j] - a[i][j - 1];
      |             ^
answer.code:83:23: error: ‘b’ was not declared in this scope
   83 |             a[i][j] = b[i - 1][j - 1] - a[i - 1][j - 1] - a[i - 1][j] - a[i][j - 1];
      |                       ^
answer.code:91:27: error: ‘a’ was not declared in this scope
   91 |                 spfa.add(-a[i][j], i, n + j, 1000000 - a[i][j]);
      |                           ^
answer.code:93:27: error: ‘a’ was not declared in this scope
   93 |                 spfa.add(-a[i][j], n + j, i, 1000000 - a[i][j]);
      |                           ^
answer.code:106:17: error: ‘a’ was not declared in this scope
  106 |                 a[i][j] += spfa.dis[i] - spfa.dis[n + j];
      |                 ^
answer.code:108:17: error: ‘a’ was not declared in this scope
  108 |                 a[i][j] -= spfa.dis[i] - spfa.dis[n + j];
      |                 ^
answer.code:116:26: error: ‘a’ was not declared in this scope
  116 |             std::cout << a[i][j] << " ";
      |                          ^