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_33682347_3915.cpp:129:29: error: ISO C++ forbids in-class initialization of non-const static member 'Combinator::m'
  static constexpr int m = ::mod;
                             ^
0_0_33682347_3915.cpp:130:32: error: ISO C++ forbids in-class initialization of non-const static member 'Combinator::Maxn'
  static constexpr int Maxn = ::maxn;
                                ^
0_0_33682347_3915.cpp:131:14: error: array bound is not an integer constant before ']' token
  ll Fact[Maxn], Inv_Fact[Maxn];
              ^
0_0_33682347_3915.cpp:131:30: error: array bound is not an integer constant before ']' token
  ll Fact[Maxn], Inv_Fact[Maxn];
                              ^
0_0_33682347_3915.cpp: In constructor 'Combinator::Combinator(int)':
0_0_33682347_3915.cpp:132:48: error: class 'Combinator' does not have any field named 'Fact'
  constexpr Combinator(const int n = Maxn - 1) :Fact(), Inv_Fact()
                                                ^
0_0_33682347_3915.cpp:132:56: error: class 'Combinator' does not have any field named 'Inv_Fact'
  constexpr Combinator(const int n = Maxn - 1) :Fact(), Inv_Fact()
                                                        ^
0_0_33682347_3915.cpp:134:3: error: 'Fact' was not declared in this scope
   Fact[0] = 1;
   ^
0_0_33682347_3915.cpp:137:3: error: 'Inv_Fact' was not declared in this scope
   Inv_Fact[0] = 1;
   ^
0_0_33682347_3915.cpp: In member function 'll Combinator::Comb(int, int) const':
0_0_33682347_3915.cpp:144:33: error: 'Fact' was not declared in this scope
   return (a < 0 || b < 0) ? 1 : Fact[a] * Inv_Fact[b] % m * Inv_Fact[a - b] % m;
                                 ^
0_0_33682347_3915.cpp:144:43: error: 'Inv_Fact' was not declared in this scope
   return (a < 0 || b < 0) ? 1 : Fact[a] * Inv_Fact[b] % m * Inv_Fact[a - b] % m;
                                           ^
0_0_33682347_3915.cpp: At global scope:
0_0_33682347_3915.cpp:149:32: error: ISO C++ forbids in-class initialization of non-const static member 'PrimeTable::Maxn'
  static constexpr int Maxn = ::maxn;
                                ^
0_0_33682347_3915.cpp:150:16: error: array bound is not an integer constant before ']' token
  int prime[Maxn], cnt;
                ^
0_0_33682347_3915.cpp:151:20: error: array bound is not an integer constant before ']' token
  bool notprime[Maxn];
                    ^
0_0_33682347_3915.cpp: In constructor 'PrimeTable::PrimeTable()':
0_0_33682347_3915.cpp:152:34: error: class 'PrimeTable' does not have any field named 'prime'
  constexpr PrimeTable() :cnt(0), prime(), notprime()
                                  ^
0_0_33682347_3915.cpp:152:43: error: class 'PrimeTable' does not have any field named 'notprime'
  constexpr PrimeTable() :cnt(0), prime(), notprime()
                                           ^
0_0_33682347_3915.cpp:154:3: error: 'notprime' was not declared in this scope
   notprime[0] = notprime[1] = true;
   ^
0_0_33682347_3915.cpp:158:4: error: 'prime' was not declared in this scope
    prime[cnt++] = i;
    ^


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-23 05:14:42, Gzip enabled