QOJ.ac

QOJ

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

詳細信息

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;
      |                      ~~~^~~~~~~~~~