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_38684364_11552.cpp:34:6: error: void value not ignored as it ought to be
   22 |     int __ = []
      |              ~~
   23 |     {
      |     ~ 
   24 |         f[0] = inf[0] = 1;
      |         ~~~~~~~~~~~~~~~~~~
   25 |     for (int i = 1; i <= 1000; i++)
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   26 |     {
      |     ~ 
   27 |         f[i] = 1ll * f[i - 1] * i % mod;
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   28 |     }
      |     ~ 
   29 |     inf[1000] = fpow(f[1000], mod - 2);
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   30 |     for (int i = 1000 - 1; i >= 0; i--)
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   31 |     {
      |     ~ 
   32 |         inf[i] = 1ll * inf[i + 1] * (i + 1) % mod;
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   33 |     }
      |     ~ 
   34 |     }();
      |     ~^~


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-19 19:56:15, Gzip enabled