QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#293806#7749. A Simple MST ProblemGuanYunchangCompile Error//C++203.4kb2023-12-29 19:34:492023-12-29 19:34:50

Details

In file included from /usr/include/c++/11/cassert:44,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:33,
                 from answer.code:1:
answer.code: In function ‘int main()’:
answer.code:4:22: error: request for member ‘size’ in ‘lop’, which is of non-class type ‘std::vector<int> [1000005]’
    4 | #define sz(x) (int)x.size()
      |                      ^~~~
answer.code:107:16: note: in expansion of macro ‘sz’
  107 |         assert(sz(lop) <= 7);
      |                ^~