QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#855758#8629. 寻宝treeCompile Error//C++14301b2025-01-13 10:27:152025-01-13 10:27:17

Judging History

你现在查看的是最新测评结果

  • [2025-01-13 10:27:17]
  • 评测
  • [2025-01-13 10:27:15]
  • 提交

answer

void Alice(const int testid, const int n, const int m, const int x, const int u[], const int v[], bool dir[])
{
    dir[0] = true;
    for(int i = 1; i < m; ++i)
        dir[i] = false;
}

int Bob(const int testid, const int n)
{
    vector<pair<int,bool>> e = discover(0); 
    return 0;
}

Details

answer.code: In function ‘int Bob(int, int)’:
answer.code:10:5: error: ‘vector’ was not declared in this scope
   10 |     vector<pair<int,bool>> e = discover(0);
      |     ^~~~~~
answer.code:10:12: error: ‘pair’ was not declared in this scope
   10 |     vector<pair<int,bool>> e = discover(0);
      |            ^~~~
answer.code:10:17: error: expected primary-expression before ‘int’
   10 |     vector<pair<int,bool>> e = discover(0);
      |                 ^~~