QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#871603#8613. Cardinalityucup-team121#Compile Error//C++207.1kb2025-01-25 21:17:002025-01-25 21:17:01

Details

answer.code: In function ‘int main()’:
answer.code:199:26: error: expected primary-expression before ‘unsigned’
  199 |                 a[i] = { unsigned short(i) };
      |                          ^~~~~~~~
answer.code:199:26: error: expected ‘}’ before ‘unsigned’
  199 |                 a[i] = { unsigned short(i) };
      |                        ~ ^~~~~~~~
answer.code:199:26: error: no match for ‘operator=’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::vector<short unsigned int> >, std::vector<short unsigned int> >::value_type’ {aka ‘std::vector<short unsigned int>’} and ‘<brace-enclosed initializer list>’)
In file included from /usr/include/c++/14/vector:72,
                 from answer.code:4:
/usr/include/c++/14/bits/vector.tcc:210:5: note: candidate: ‘constexpr std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = short unsigned int; _Alloc = std::allocator<short unsigned int>]’
  210 |     vector<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/vector.tcc:211:42: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const std::vector<short unsigned int>&’
  211 |     operator=(const vector<_Tp, _Alloc>& __x)
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66:
/usr/include/c++/14/bits/stl_vector.h:766:7: note: candidate: ‘constexpr std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = short unsigned int; _Alloc = std::allocator<short unsigned int>]’
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:766:26: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<short unsigned int>&&’
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |                 ~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:788:7: note: candidate: ‘constexpr std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = short unsigned int; _Alloc = std::allocator<short unsigned int>]’
  788 |       operator=(initializer_list<value_type> __l)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:788:46: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::initializer_list<short unsigned int>’
  788 |       operator=(initializer_list<value_type> __l)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
answer.code:200:23: error: ‘i’ was not declared in this scope
  200 |                 if (f[i] != -1) bs[i][f[i]] = true;
      |                       ^
answer.code: At global scope:
answer.code:27:19: error: expected unqualified-id before ‘for’
   27 | #define rep(i, n) for (ll i = 0; i < (n); i++)
      |                   ^~~
answer.code:205:9: note: in expansion of macro ‘rep’
  205 |         rep(i, q) {
      |         ^~~
answer.code:205:16: error: ‘q’ was not declared in this scope
  205 |         rep(i, q) {
      |                ^
answer.code:27:39: note: in definition of macro ‘rep’
   27 | #define rep(i, n) for (ll i = 0; i < (n); i++)
      |                                       ^
answer.code:205:16: error: ‘q’ was not declared in this scope
  205 |         rep(i, q) {
      |                ^
answer.code:27:39: note: in definition of macro ‘rep’
   27 | #define rep(i, n) for (ll i = 0; i < (n); i++)
      |                                       ^
answer.code:205:16: error: ‘q’ was not declared in this scope
  205 |         rep(i, q) {
      |                ^
answer.code:27:39: note: in definition of macro ‘rep’
   27 | #define rep(i, n) for (ll i = 0; i < (n); i++)
      |                                       ^
answer.code:205:16: error: ‘q’ was not declared in this scope
  205 |         rep(i, q) {
      |                ^
answer.code:27:39: note: in definition of macro ‘rep’
   27 | #define rep(i, n) for (ll i = 0; i < (n); i++)
      |                                       ^
answer.code:205:16: error: ‘q’ was not declared in this scope
  205 |         rep(i, q) {
      |                ^
answer.code:27:39: note: in definition of macro ‘rep’
   27 | #define rep(i, n) for (ll i = 0; i < (n); i++)
      |                                       ^
answer.code:205:16: error: ‘q’ was not declared in this scope
  205 |         rep(i, q) {
      |                ^
answer.code:27:39: note: in definition of macro ‘rep’
   27 | #define rep(i, n) for (ll i = 0; i < (n); i++)
      |                                       ^
answer.code:205:16: error: ‘q’ was not declared in this scope
  205 |         rep(i, q) {
      |                ^
answer.code:27:39: note: in definition of macro ‘rep’
   27 | #define rep(i, n) for (ll i = 0; i < (n); i++)
      |                                       ^
answer.code:205:16: error: ‘q’ was not declared...