QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#475846#6736. Alice and BobZhaoZiLongCompile Error//C++11799b2024-07-13 16:50:592024-07-13 16:50:59

Details

cc1plus: error: ‘::main’ must return ‘int’
answer.code: In function ‘int main()’:
answer.code:40:30: error: ‘fac’ was not declared in this scope
   40 |                 sum = (sum + fac[n - i] * fac[n - i] % 998244353 * ifac[n - 2 * i + 1] % 998244353) % 998244353;
      |                              ^~~
answer.code:40:68: error: ‘ifac’ was not declared in this scope
   40 |                 sum = (sum + fac[n - i] * fac[n - i] % 998244353 * ifac[n - 2 * i + 1] % 998244353) % 998244353;
      |                                                                    ^~~~