F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_38762841_14186.cpp:3:7: error: 'll' does not name a type
    3 | const ll mod = 998244353;
      |       ^~
0_0_38762841_14186.cpp: In function 'long long int C(int, int)':
0_0_38762841_14186.cpp:21:38: error: 'mod' was not declared in this scope; did you mean 'modf'?
   21 |         return fact[b] * infact[a] % mod * infact[b - a] % mod;
      |                                      ^~~
      |                                      modf
0_0_38762841_14186.cpp: In function 'int main()':
0_0_38762841_14186.cpp:29:41: error: 'mod' was not declared in this scope; did you mean 'modf'?
   29 |             fact[i] = fact[i - 1] * i % mod;
      |                                         ^~~
      |                                         modf
0_0_38762841_14186.cpp:39:26: error: 'mod' was not declared in this scope; did you mean 'modf'?
   39 |             ani = qmi(a, mod - 2, mod);
      |                          ^~~
      |                          modf
0_0_38762841_14186.cpp:44:17: error: incompatible types in assignment of 'll' {aka 'long long int'} to 'll [1000010]' {aka 'long long int [1000010]'}
   44 |             yin = bni;
      |             ~~~~^~~~~
0_0_38762841_14186.cpp:48:40: error: invalid operands of types 'long long int' and 'll [1000010]' {aka 'long long int [1000010]'} to binary 'operator*'
   48 |                 ans = (ans + ((C(i, n) * yin % mod) * shu % mod) * sum % mod) % mod;
      |                                ~~~~~~~ ^ ~~~
      |                                 |        |
      |                                 |        ll [1000010] {aka long long int [1000010]}
      |                                 long long int
0_0_38762841_14186.cpp:49:28: error: invalid operands of types 'll [1000010]' {aka 'long long int [1000010]'} and 'll' {aka 'long long int'} to binary 'operator*'
   49 |                 shu = (shu * bani % mod) * b % mod;
      |                        ~~~ ^ ~~~~
      |                        |     |
      |                        |     ll {aka long long int}
      |                        ll [1000010] {aka long long int [1000010]}
0_0_38762841_14186.cpp:50:28: error: invalid operands of types 'll [1000010]' {aka 'long long int [1000010]'} and 'll' {aka 'long long int'} to binary 'operator*'
   50 |                 yin = (yin * bni % mod) * a % mod;
      |                        ~~~ ^ ~~~
      |                        |     |
      |                        |     ll {aka long long int}
      |                        ll [1000010] {aka long long int [1000010]}


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-06-29 12:15:35, Gzip enabled