QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#455850#2214. Link Cut Digraphegypt_ioi2024_12Compile Error//C++202.3kb2024-06-26 21:45:342024-06-26 21:45:34

详细

answer.code: In member function ‘bool DSU::unite(int, int)’:
answer.code:59:25: error: expression cannot be used as a function
   59 |         ans-=(sz[p1]*1LL(sz[p1]-1))/2;
      |                      ~~~^~~~~~~~~~
answer.code:60:25: error: expression cannot be used as a function
   60 |         ans-=(sz[p2]*1LL(sz[p2]-1))/2;
      |                      ~~~^~~~~~~~~~
answer.code:63:25: error: expression cannot be used as a function
   63 |         ans+=(sz[p2]*1LL(sz[p2]-1))/2;
      |                      ~~~^~~~~~~~~~
answer.code: In function ‘int main()’:
answer.code:87:74: error: no matching function for call to ‘std::bitset<100005>::_Find_next()’
   87 |         for(int i=(a[v]&b[u])._Find_first();i<=n;i=(a[v]&b[u])._Find_next()){
      |                                                    ~~~~~~~~~~~~~~~~~~~~~~^~
In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:52,
                 from answer.code:5:
/usr/include/c++/13/bitset:1461:7: note: candidate: ‘std::size_t std::bitset<_Nb>::_Find_next(std::size_t) const [with long unsigned int _Nb = 100005; std::size_t = long unsigned int]’
 1461 |       _Find_next(size_t __prev) const _GLIBCXX_NOEXCEPT
      |       ^~~~~~~~~~
/usr/include/c++/13/bitset:1461:7: note:   candidate expects 1 argument, 0 provided