QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#541777#9102. Zayin and ElementsZhangYiDeCompile Error//C++203.2kb2024-08-31 20:56:162024-08-31 20:56:17

詳細信息

answer.code: In function ‘void solve()’:
answer.code:96:33: error: ‘g’ was not declared in this scope
   96 |                                 g[x].push_back(j);
      |                                 ^
answer.code:106:33: error: ‘g’ was not declared in this scope
  106 |                                 g[x].push_back(j);
      |                                 ^
answer.code:116:33: error: ‘g’ was not declared in this scope
  116 |                                 g[x].push_back(j);
      |                                 ^
answer.code: In lambda function:
answer.code:126:25: error: ‘g’ was not declared in this scope
  126 |                         g[i].clear();
      |                         ^
answer.code: In function ‘void solve()’:
answer.code:129:29: error: cannot convert ‘std::vector<int> [1500]’ to ‘const std::vector<std::vector<int> >&’
  129 |         int ans = T.run(cu, G);
      |                             ^
      |                             |
      |                             std::vector<int> [1500]
answer.code:8:59: note:   initializing argument 2 of ‘int Blossom::run(int, const std::vector<std::vector<int> >&)’
    8 |                 int run(int n, const vector<vector<int>> &G) {
      |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~^