QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#536727#141. 8 染色egypt_ioi2024b_04#Compile Error//C++20895b2024-08-29 16:04:232024-08-29 16:04:23

详细

Alice.code: In function ‘std::vector<int> Alice(int, int, std::vector<int>, std::vector<int>, std::vector<int>)’:
Alice.code:12:5: error: ‘vector’ was not declared in this scope
   12 |     vector<int> ret;
      |     ^~~~~~
Alice.code:12: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 Alice.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 Alice.code:1:
/usr/include/c++/11/vector:86:13: note:   ‘std::pmr::vector’
   86 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
Alice.code:12:12: error: expected primary-expression before ‘int’
   12 |     vector<int> ret;
      |            ^~~
Alice.code:15:13: error: ‘ret’ was not declared in this scope
   15 |             ret.push_back(((C[i] & (1 << j)) > 0));
      |             ^~~
Alice.code:18:12: error: ‘ret’ was not declared in this scope
   18 |     return ret;
      |            ^~~