QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#670398#8338. Quad Kingdoms Chessucup-team3600Compile Error//C++232.6kb2024-10-23 21:34:122024-10-23 21:34:13

Details

answer.code: In member function ‘long long int linetree::calc_ans(long long int, long long int, long long int)’:
answer.code:72:80: error: expected ‘;’ before ‘)’ token
   72 |                 return (calc_ans(r(now),val,pos)*dp[len(l(now))])%M+ans(l(now)))%M;
      |                                                                                ^
answer.code:72:80: error: expected primary-expression before ‘)’ token
answer.code: In member function ‘void linetree::pp(long long int)’:
answer.code:81:69: error: expected ‘;’ before ‘)’ token
   81 |                 ans(now)=(ans(l(now))+ans(r(now))*dp[len(l(now))])%M)%M;
      |                                                                     ^