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_18486735_22275.cpp:75:1: error: expected unqualified-id before numeric constant
 1
 ^
0_0_18486735_22275.cpp:152:11: error: redefinition of 'const int N'
 const int N = 10005;
           ^
0_0_18486735_22275.cpp:8:11: note: 'const int N' previously defined here
 const int N = 10005;
           ^
0_0_18486735_22275.cpp:153:11: error: redefinition of 'const int MOD'
 const int MOD = 1000000007;
           ^
0_0_18486735_22275.cpp:9:11: note: 'const int MOD' previously defined here
 const int MOD = 1000000007;
           ^
0_0_18486735_22275.cpp:155:5: error: redefinition of 'int t'
 int t;
     ^
0_0_18486735_22275.cpp:11:5: note: 'int t' previously declared here
 int t;
     ^
0_0_18486735_22275.cpp:156:5: error: redefinition of 'int pn'
 int pn, prime[N];
     ^
0_0_18486735_22275.cpp:12:5: note: 'int pn' previously declared here
 int pn, prime[N];
     ^
0_0_18486735_22275.cpp:156:16: error: redefinition of 'int prime [10005]'
 int pn, prime[N];
                ^
0_0_18486735_22275.cpp:12:9: note: 'int prime [10005]' previously declared here
 int pn, prime[N];
         ^
0_0_18486735_22275.cpp:157:11: error: redefinition of 'bool vis [10005]'
 bool vis[N];
           ^
0_0_18486735_22275.cpp:13:6: note: 'bool vis [10005]' previously declared here
 bool vis[N];
      ^
0_0_18486735_22275.cpp:158:5: error: redefinition of 'int n'
 int n;
     ^
0_0_18486735_22275.cpp:14:5: note: 'int n' previously declared here
 int n;
     ^
0_0_18486735_22275.cpp:159:10: error: redefinition of 'int fac [10005]'
 int fac[N], fn;
          ^
0_0_18486735_22275.cpp:15:5: note: 'int fac [10005]' previously declared here
 int fac[N], fn;
     ^
0_0_18486735_22275.cpp:159:13: error: redefinition of 'int fn'
 int fac[N], fn;
             ^
0_0_18486735_22275.cpp:15:13: note: 'int fn' previously declared here
 int fac[N], fn;
             ^
0_0_18486735_22275.cpp: In function 'int pow_mod(int, int)':
0_0_18486735_22275.cpp:161:5: error: redefinition of 'int pow_mod(int, int)'
 int pow_mod(int x, int k) {
     ^
0_0_18486735_22275.cpp:17:5: note: 'int pow_mod(int, int)' previously defined here
 int pow_mod(int x, int k) {
     ^
0_0_18486735_22275.cpp: At global scope:
0_0_18486735_22275.cpp:171:5: error: redefinition of 'int r30'
 int r30;
     ^
0_0_18486735_22275.cpp:27:5: note: 'int r30' previously declared here
 int r30;
     ^
0_0_18486735_22275.cpp: In function 'int cal(int)':
0_0_18486735_22275.cpp:173:5: error: redefinition of 'int cal(int)'
 int cal(int n) {
     ^
0_0_18486735_22275.cpp:29:5: note: 'int cal(int)' previously defined here
 int cal(int n) {
     ^
0_0_18486735_22275.cpp: In function 'int main()':
0_0_18486735_22275.cpp:182:5: error: redefinition of 'int main()'
 int main() {
     ^
0_0_18486735_22275.cpp:38:5: note: 'int main()' previously defined here
 int main() {
     ^


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-30 07:57:05, Gzip enabled