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_19831928_12179.cpp:6:20: error: expected ']' before ';' token
 #define MOD 1000003;
                    ^
0_0_19831928_12179.cpp:21:9: note: in expansion of macro 'MOD'
 int Jie[MOD + 10], Ni[MOD + 10];
         ^
0_0_19831928_12179.cpp:21:13: error: expected unqualified-id before '+' token
 int Jie[MOD + 10], Ni[MOD + 10];
             ^
0_0_19831928_12179.cpp:21:27: error: expected unqualified-id before '+' token
 int Jie[MOD + 10], Ni[MOD + 10];
                           ^
0_0_19831928_12179.cpp: In function 'void DfsGetMul(int, int, int)':
0_0_19831928_12179.cpp:6:20: error: expected ')' before ';' token
 #define MOD 1000003;
                    ^
0_0_19831928_12179.cpp:64:50: note: in expansion of macro 'MOD'
    DfsGetMul(data[i], now, 1ll * tree * v[now] % MOD);
                                                  ^
0_0_19831928_12179.cpp:64:53: error: expected primary-expression before ')' token
    DfsGetMul(data[i], now, 1ll * tree * v[now] % MOD);
                                                     ^
0_0_19831928_12179.cpp: In function 'void solve(int)':
0_0_19831928_12179.cpp:6:20: error: expected ')' before ';' token
 #define MOD 1000003;
                    ^
0_0_19831928_12179.cpp:86:30: note: in expansion of macro 'MOD'
  if (1ll * v[now] * v[now] % MOD == k) update(now, now);
                              ^
0_0_19831928_12179.cpp:86:34: error: expected primary-expression before '==' token
  if (1ll * v[now] * v[now] % MOD == k) update(now, now);
                                  ^
0_0_19831928_12179.cpp:92:21: error: 'Ni' was not declared in this scope
   int NiNow = 1ll * Ni[v[now]] * Jie[v[now] - 1] % MOD;
                     ^
0_0_19831928_12179.cpp:92:34: error: 'Jie' was not declared in this scope
   int NiNow = 1ll * Ni[v[now]] * Jie[v[now] - 1] % MOD;
                                  ^
0_0_19831928_12179.cpp: In function 'int main()':
0_0_19831928_12179.cpp:155:3: error: 'Jie' was not declared in this scope
   Jie[0] = 1;
   ^
0_0_19831928_12179.cpp:156:26: error: expected primary-expression before ';' token
   for (int i = 1; i < MOD; i++) Jie[i] = 1ll * Jie[i - 1] * i % MOD;
                          ^
0_0_19831928_12179.cpp:156:26: error: expected ')' before ';' token
0_0_19831928_12179.cpp:156:28: error: 'i' was not declared in this scope
   for (int i = 1; i < MOD; i++) Jie[i] = 1ll * Jie[i - 1] * i % MOD;
                            ^
0_0_19831928_12179.cpp:158:3: error: 'Ni' was not declared in this scope
   Ni[MOD - 1] = power(Jie[MOD - 1], MOD - 2, MOD); Ni[0] = 1;
   ^
0_0_19831928_12179.cpp:6:20: error: expected ']' before ';' token
 #define MOD 1000003;
                    ^
0_0_19831928_12179.cpp:158:6: note: in expansion of macro 'MOD'
   Ni[MOD - 1] = power(Jie[MOD - 1], MOD - 2, MOD); Ni[0] = 1;
      ^
0_0_19831928_12179.cpp:158:13: error: expected ';' before ']' token
   Ni[MOD - 1] = power(Jie[MOD - 1], MOD - 2, MOD); Ni[0] = 1;
             ^
0_0_19831928_12179.cpp:158:34: error: expected ';' before ']' token
   Ni[MOD - 1] = power(Jie[MOD - 1], MOD - 2, MOD); Ni[0] = 1;
                                  ^
0_0_19831928_12179.cpp:158:49: error: expected primary-expression before ')' token
   Ni[MOD - 1] = power(Jie[MOD - 1], MOD - 2, MOD); Ni[0] = 1;
                                                 ^
0_0_19831928_12179.cpp:159:31: error: expected ')' before ';' token
   for (int i = MOD - 2; i >= 1; i--) Ni[i] = 1ll * Ni[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-25 16:18:31, Gzip enabled