QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#436525#8781. Element-Wise Comparisonucup-team3665#Compile Error//C++142.3kb2024-06-09 01:26:202024-06-09 01:26:27

Details

answer.code: In function ‘int main()’:
answer.code:16:10: error: missing template arguments before ‘g’
   16 |   vector g(N, vector<int>());
      |          ^
answer.code:35:5: error: ‘g’ was not declared in this scope
   35 |     g[x].push_back(i), g[y].push_back(i);
      |     ^
answer.code: In lambda function:
answer.code:57:23: error: ‘g’ was not declared in this scope
   57 |       for (auto &id : g[x]) {
      |                       ^
answer.code: In function ‘int main()’:
answer.code:84:17: error: ‘g’ was not declared in this scope
   84 |         shuffle(g[i].begin(), g[i].end(), engine);
      |                 ^