QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#789938#5367. 递增树列KangliyangCompile Error//C++142.7kb2024-11-27 22:57:232024-11-27 22:57:25

Details

answer.code:3:3: error: stray ‘##’ in program
    3 | */###################
      |   ^~
answer.code:3:5: error: stray ‘##’ in program
    3 | */###################
      |     ^~
answer.code:3:7: error: stray ‘##’ in program
    3 | */###################
      |       ^~
answer.code:3:9: error: stray ‘##’ in program
    3 | */###################
      |         ^~
answer.code:3:11: error: stray ‘##’ in program
    3 | */###################
      |           ^~
answer.code:3:13: error: stray ‘##’ in program
    3 | */###################
      |             ^~
answer.code:3:15: error: stray ‘##’ in program
    3 | */###################
      |               ^~
answer.code:3:17: error: stray ‘##’ in program
    3 | */###################
      |                 ^~
answer.code:3:19: error: stray ‘##’ in program
    3 | */###################
      |                   ^~
answer.code:3:21: error: stray ‘#’ in program
    3 | */###################
      |                     ^
answer.code: In function ‘int main()’:
answer.code:88:25: error: incompatible types in assignment of ‘int’ to ‘mint [110]’ {aka ‘modint<1000000007> [110]’}
   88 |         for(int i=fac[0]=1;i<=n;i++) fac[i]=fac[i-1]*i;
      |                   ~~~~~~^~
answer.code:88:53: error: invalid operands of types ‘mint [110]’ {aka ‘modint<1000000007> [110]’} and ‘long long int’ to binary ‘operator*’
   88 |         for(int i=fac[0]=1;i<=n;i++) fac[i]=fac[i-1]*i;
      |                                             ~~~~~~~~^~
      |                                                    | |
      |                                                    | long long int
      |                                                    mint [110] {aka modint<1000000007> [110]}
answer.code:95:20: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘mint’ {aka ‘modint<1000000007>’} [-Wformat=]
   95 |         printf("%lld\n",dp[1][n]);
      |                 ~~~^    ~~~~~~~~
      |                    |           |
      |                    |           mint {aka modint<1000000007>}
      |                    long long int