QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#474287#3098. Ancient Machineegypt_ioi2024b_04Compile Error//C++202.7kb2024-07-12 17:07:562024-07-12 17:07:57

Details

Bruno.code: In function ‘void Bruno(int, int, std::vector<int>)’:
Bruno.code:46:5: error: ‘vector’ was not declared in this scope
   46 |     vector<bool> vis(N, false);
      |     ^~~~~~
Bruno.code:46:5: note: suggested alternatives:
In file included from /usr/include/c++/10/vector:67,
                 from Bruno.h:1,
                 from Bruno.code:1:
/usr/include/c++/10/bits/stl_vector.h:389:11: note:   ‘std::vector’
  389 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
In file included from Bruno.h:1,
                 from Bruno.code:1:
/usr/include/c++/10/vector:86:13: note:   ‘std::pmr::vector’
   86 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
Bruno.code:46:12: error: expected primary-expression before ‘bool’
   46 |     vector<bool> vis(N, false);
      |            ^~~~
Bruno.code:50:17: error: ‘vis’ was not declared in this scope
   50 |         while (!vis[j] && j > id) {
      |                 ^~~
Bruno.code:55:9: error: ‘vis’ was not declared in this scope
   55 |         vis[i] = true;
      |         ^~~
Bruno.code:59:13: error: ‘vis’ was not declared in this scope
   59 |         if (vis[i])continue;
      |             ^~~