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_38684571_6969.cpp:154:15: error: uninitialized 'const f' [-fpermissive]
  154 | constexpr i64 f[N],inf[N];
      |               ^
0_0_38684571_6969.cpp:154:20: error: uninitialized 'const inf' [-fpermissive]
  154 | constexpr i64 f[N],inf[N];
      |                    ^~~
0_0_38684571_6969.cpp: In function 'void inin()':
0_0_38684571_6969.cpp:178:19: error: assignment of read-only location 'inf[0]'
  178 |     f[0] = inf[0] = 1;
      |            ~~~~~~~^~~
0_0_38684571_6969.cpp:181:14: error: assignment of read-only location 'f[i]'
  181 |         f[i] = 1ll * f[i - 1] * i % mod;
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
0_0_38684571_6969.cpp:183:15: error: assignment of read-only location 'inf[1000]'
  183 |     inf[1000] = ksm(f[1000], mod - 2, mod);
      |     ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
0_0_38684571_6969.cpp:186:16: error: assignment of read-only location 'inf[i]'
  186 |         inf[i] = 1ll * inf[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-09-18 19:31:55, Gzip enabled