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_30448035_19213.cpp:124:11: error: redefinition of 'const int N'
 const int N = 1e5 + 10;
           ^
0_0_30448035_19213.cpp:6:11: note: 'const int N' previously defined here
 const int N = 1e5 + 10;
           ^
0_0_30448035_19213.cpp:125:11: error: redefinition of 'const int M'
 const int M = 1e7 + 10;
           ^
0_0_30448035_19213.cpp:7:11: note: 'const int M' previously defined here
 const int M = 1e7 + 10;
           ^
0_0_30448035_19213.cpp:126:5: error: redefinition of 'int n'
 int n, q, a[N], pri[M];
     ^
0_0_30448035_19213.cpp:8:5: note: 'int n' previously declared here
 int n, q, a[N], pri[M];
     ^
0_0_30448035_19213.cpp:126:8: error: redefinition of 'int q'
 int n, q, a[N], pri[M];
        ^
0_0_30448035_19213.cpp:8:8: note: 'int q' previously declared here
 int n, q, a[N], pri[M];
        ^
0_0_30448035_19213.cpp:126:14: error: redefinition of 'int a [100010]'
 int n, q, a[N], pri[M];
              ^
0_0_30448035_19213.cpp:8:11: note: 'int a [100010]' previously declared here
 int n, q, a[N], pri[M];
           ^
0_0_30448035_19213.cpp:126:22: error: redefinition of 'int pri [10000010]'
 int n, q, a[N], pri[M];
                      ^
0_0_30448035_19213.cpp:8:17: note: 'int pri [10000010]' previously declared here
 int n, q, a[N], pri[M];
                 ^
0_0_30448035_19213.cpp:127:13: error: redefinition of 'bool check [10000010]'
 bool check[M];
             ^
0_0_30448035_19213.cpp:9:6: note: 'bool check [10000010]' previously declared here
 bool check[M];
      ^
0_0_30448035_19213.cpp: In function 'void sieve()':
0_0_30448035_19213.cpp:128:6: error: redefinition of 'void sieve()'
 void sieve() {
      ^
0_0_30448035_19213.cpp:10:6: note: 'void sieve()' previously defined here
 void sieve() {
      ^
0_0_30448035_19213.cpp: At global scope:
0_0_30448035_19213.cpp:144:23: error: redefinition of 'std::vector<int> pri_fac [100010]'
 vector <int> pri_fac[N], fac[N];
                       ^
0_0_30448035_19213.cpp:26:14: note: 'std::vector<int> pri_fac [100010]' previously declared here
 vector <int> pri_fac[N], fac[N];
              ^
0_0_30448035_19213.cpp:144:31: error: redefinition of 'std::vector<int> fac [100010]'
 vector <int> pri_fac[N], fac[N];
                               ^
0_0_30448035_19213.cpp:26:26: note: 'std::vector<int> fac [100010]' previously declared here
 vector <int> pri_fac[N], fac[N];
                          ^
0_0_30448035_19213.cpp: In function 'void get_pri_fac(int, std::vector<int>&)':
0_0_30448035_19213.cpp:145:6: error: redefinition of 'void get_pri_fac(int, std::vector<int>&)'
 void get_pri_fac(int x, vector <int> &vec) {
      ^
0_0_30448035_19213.cpp:27:6: note: 'void get_pri_fac(int, std::vector<int>&)' previously defined here
 void get_pri_fac(int x, vector <int> &vec) {
      ^
0_0_30448035_19213.cpp: In function 'void get_fac(std::vector<int>&, std::vector<int>&)':
0_0_30448035_19213.cpp:153:6: error: redefinition of 'void get_fac(std::vector<int>&, std::vector<int>&)'
 void get_fac(vector <int> &pri_fac, vector <int> &fac) {
      ^
0_0_30448035_19213.cpp:35:6: note: 'void get_fac(std::vector<int>&, std::vector<int>&)' previously defined here
 void get_fac(vector <int> &pri_fac, vector <int> &fac) {
      ^
0_0_30448035_19213.cpp: At global scope:
0_0_30448035_19213.cpp:170:8: error: redefinition of 'struct Mo'
 struct Mo {
        ^
0_0_30448035_19213.cpp:52:8: error: previous definition of 'struct Mo'
 struct Mo {
        ^
0_0_30448035_19213.cpp:215:4: error: invalid type in declaration before ';' token
 }mo;
    ^
0_0_30448035_19213.cpp:215:4: error: conflicting declaration 'int mo'
0_0_30448035_19213.cpp:97:2: note: previous declaration as 'Mo mo'
 }mo;
  ^
0_0_30448035_19213.cpp: In function 'int main()':
0_0_30448035_19213.cpp:217:5: error: redefinition of 'int main()'
 int main() {
     ^
0_0_30448035_19213.cpp:99:5: note: 'int main()' previously defined here
 int main() {
     ^
0_0_30448035_19213.cpp: At global scope:
0_0_30448035_19213.cpp:242:11: error: redefinition of 'const int N'
 const int N = 1e5 + 10;
           ^
0_0_30448035_19213.cpp:6:11: note: 'const int N' previously defined here
 const int N = 1e5 + 10;
           ^
0_0_30448035_19213.cpp:243:11: error: redefinition of 'const int M'
 const int M = 1e7 + 10;
           ^
0_0_30448035_19213.cpp:7:11: note: 'const int M' previously defined here
 const int M = 1e7 + 10;
           ^
0_0_30448035_19213.cpp:244:5: error: redefinition of 'int n'
 int n, q, a[N], pri[M];
     ^
0_0_30448035_19213.cpp:8:5: note: 'int n' previously declared here
 int n, q, a[N], pri[M];
     ^
0_0_30448035_19213.cpp:244:8: error: redefinition of 'int q'
 int n, q, a[N], pri[M];
        ^
0_0_30448035_19213.cpp:8:8: note: 'int q' previously declared here
 int n, q, a[N], pri[M];
        ^
0_0_30448035_19213.cpp:244:14: error: redefinition of 'int a [100010]'
 int n, q, a[N], pri[M];
              ^
0_0_30448035_19213.cpp:8:11: note: 'int a [100010]' previously declared here
 int n, q, a[N], pri[M];
           ^
0_0_30448035_19213.cpp:244:22: error: redefinition of 'int pri [10000010]'
 int n, q, a[N], pri[M];
                      ^
0_0_30448035_19213.cpp:8:17: note: 'int pri [10000010]' previously declared here
 int n, q, a[N], pri[M];
                 ^
0_0_30448035_19213.cpp:245:13: error: redefinition of 'bool check [10000010]'
 bool check[M];
             ^
0_0_30448035_19213.cpp:9:6: note: 'bool check [10000010]' previously declared here
 bool check[M];
      ^
0_0_30448035_19213.cpp: In function 'void sieve()':
0_0_30448035_19213.cpp:246:6: error: redefinition of 'void sieve()'
 void sieve() {
      ^
0_0_30448035_19213.cpp:10:6: note: 'void sieve()' previously defined here
 void sieve() {
      ^
0_0_30448035_19213.cpp: At global scope:
0_0_30448035_19213.cpp:262:23: error: redefinition of 'std::vector<int> pri_fac [100010]'
 vector <int> pri_fac[N], fac[N];
                       ^
0_0_30448035_19213.cpp:26:14: note: 'std::vector<int> pri_fac [100010]' previously declared here
 vector <int> pri_fac[N], fac[N];
              ^
0_0_30448035_19213.cpp:262:31: error: redefinition of 'std::vector<int> fac [100010]'
 vector <int> pri_fac[N], fac[N];
                               ^
0_0_30448035_19213.cpp:26:26: note: 'std::vector<int> fac [100010]' previously declared here
 vector <int> pri_fac[N], fac[N];
                          ^
0_0_30448035_19213.cpp: In function 'void get_pri_fac(int, std::vector<int>&)':
0_0_30448035_19213.cpp:263:6: error: redefinition of 'void get_pri_fac(int, std::vector<int>&)'
 void get_pri_fac(int x, vector <int> &vec) {
      ^
0_0_30448035_19213.cpp:27:6: note: 'void get_pri_fac(int, std::vector<int>&)' previously defined here
 void get_pri_fac(int x, vector <int> &vec) {
      ^
0_0_30448035_19213.cpp: In function 'void get_fac(std::vector<int>&, std::vector<int>&)':
0_0_30448035_19213.cpp:271:6: error: redefinition of 'void get_fac(std::vector<int>&, std::vector<int>&)'
 void get_fac(vector <int> &pri_fac, vector <int> &fac) {
      ^
0_0_30448035_19213.cpp:35:6: note: 'void get_fac(std::vector<int>&, std::vector<int>&)' previously defined here
 void get_fac(vector <int> &pri_fac, vector <int> &fac) {
      ^
0_0_30448035_19213.cpp: At global scope:
0_0_30448035_19213.cpp:288:8: error: redefinition of 'struct Mo'
 struct Mo {
        ^
0_0_30448035_19213.cpp:52:8: error: previous definition of 'struct Mo'
 struct Mo {
        ^
0_0_30448035_19213.cpp:333:4: error: invalid type in declaration before ';' token
 }mo;
    ^
0_0_30448035_19213.cpp:333:4: error: conflicting declaration 'int mo'
0_0_30448035_19213.cpp:97:2: note: previous declaration as 'Mo mo'
 }mo;
  ^
0_0_30448035_19213.cpp: In function 'int main()':
0_0_30448035_19213.cpp:335:5: error: redefinition of 'int main()'
 int main() {
     ^
0_0_30448035_19213.cpp:99: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-11-26 11:00:36, Gzip enabled