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_38687236_26415.cpp:73:6: error: void value not ignored as it ought to be
   55 |     int __ = [] {
      |              ~~~~
   56 |         //初始化阶乘及其逆元
      |         ~~~~~~~~~~~~~~~~
   57 |         // f[0] = inf[0] = 1;//初始化为1
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   58 |         // for(int i = 1;i < N;i++){
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   59 |         //     f[i] = (ll)f[i-1]*i % M;
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   60 |         //     inf[i] = (ll)inf[i-1]*qmi(i, M-2) % M;
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   61 |         // }
      |         ~~~~
   62 |         // return 0;
      |         ~~~~~~~~~~~~
   63 | 
      |       
   64 | 
      |       
   65 |         f[0] = 1;
      |         ~~~~~~~~~
   66 |         for(int i = 1;i <= N-5;i++){
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   67 |             f[i] = f[i-1]*i % M;
      |             ~~~~~~~~~~~~~~~~~~~~
   68 |         }
      |         ~
   69 |         inf[N - 5] = qmi(f[N - 5], M - 2);
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   70 |         for(int i = N-5;i;i--){
      |         ~~~~~~~~~~~~~~~~~~~~~~~
   71 |             inf[i-1] = inf[i] * i % M;
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~
   72 |         }
      |         ~
   73 |     }();
      |     ~^~


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-30 10:27:55, Gzip enabled