QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#125587#91. Secret PermutationQwerty1232Compile Error//C++20190b2023-07-16 22:33:092023-07-16 22:33:11

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-07-16 22:33:11]
  • 评测
  • [2023-07-16 22:33:09]
  • 提交

answer

#include <bits/stdc++.h>

#include "permutation.h"

std::mt19937 rnd;

void solve(int n) {
    vector<int> vec(n);
    // std::shuffle(vec.begin(), vec.end(), rnd);
    return;
}

Details

answer.code: In function ‘void solve(int)’:
answer.code:8:5: error: ‘vector’ was not declared in this scope
    8 |     vector<int> vec(n);
      |     ^~~~~~
answer.code:8:5: note: suggested alternatives:
In file included from /usr/include/c++/11/vector:67,
                 from /usr/include/c++/11/functional:62,
                 from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/11/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from answer.code:1:
/usr/include/c++/11/bits/stl_vector.h:389:11: note:   ‘std::vector’
  389 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
In file included from /usr/include/c++/11/functional:62,
                 from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/11/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from answer.code:1:
/usr/include/c++/11/vector:86:13: note:   ‘std::pmr::vector’
   86 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
answer.code:8:12: error: expected primary-expression before ‘int’
    8 |     vector<int> vec(n);
      |            ^~~