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_33525443_32676.cpp:10:15: error: uninitialized const 'f' [-fpermissive]
 constexpr int f[maxn + 10], invf[maxn + 10];
               ^
0_0_33525443_32676.cpp:10:29: error: uninitialized const 'invf' [-fpermissive]
 constexpr int f[maxn + 10], invf[maxn + 10];
                             ^
0_0_33525443_32676.cpp: In function 'void init()':
0_0_33525443_32676.cpp:34:7: error: assignment of read-only location 'f[0]'
  f[0] = 1; 
       ^
0_0_33525443_32676.cpp:37:8: error: assignment of read-only location 'f[i]'
   f[i] = 1ll * f[i - 1] * i % mod;
        ^
0_0_33525443_32676.cpp:39:13: error: assignment of read-only location 'invf[100010]'
  invf[maxn] = ksm(f[maxn], mod - 2, mod);
             ^
0_0_33525443_32676.cpp:42:11: error: assignment of read-only location 'invf[i]'
   invf[i] = 1ll * invf[i + 1] * (i + 1) % mod;
           ^


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-11-27 00:02:24, Gzip enabled