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_36912165_18616.cpp:78:11: error: redefinition of 'const int N'
 const int N = 1e5+10;
           ^
0_0_36912165_18616.cpp:7:11: note: 'const int N' previously defined here
 const int N = 1e5+10;
           ^
0_0_36912165_18616.cpp: In function 'll gcd(ll, ll)':
0_0_36912165_18616.cpp:79:4: error: redefinition of 'll gcd(ll, ll)'
 ll gcd(ll a,ll b){
    ^
0_0_36912165_18616.cpp:8:4: note: 'll gcd(ll, ll)' previously defined here
 ll gcd(ll a,ll b){
    ^
0_0_36912165_18616.cpp: At global scope:
0_0_36912165_18616.cpp:82:8: error: redefinition of 'struct Line'
 struct Line{
        ^
0_0_36912165_18616.cpp:11:8: error: previous definition of 'struct Line'
 struct Line{
        ^
0_0_36912165_18616.cpp:107:9: error: invalid type in declaration before ';' token
 }line[N];
         ^
0_0_36912165_18616.cpp:107:9: error: conflicting declaration 'int line [100010]'
0_0_36912165_18616.cpp:36:2: note: previous declaration as 'Line line [100010]'
 }line[N];
  ^
0_0_36912165_18616.cpp:108:10: error: redefinition of 'int cnt [100010]'
 int cnt[N];
          ^
0_0_36912165_18616.cpp:37:5: note: 'int cnt [100010]' previously declared here
 int cnt[N];
     ^
0_0_36912165_18616.cpp:109:10: error: redefinition of 'int sum [100010]'
 int sum[N];
          ^
0_0_36912165_18616.cpp:38:5: note: 'int sum [100010]' previously declared here
 int sum[N];
     ^
0_0_36912165_18616.cpp: In function 'bool cmp(int, int)':
0_0_36912165_18616.cpp:110:6: error: redefinition of 'bool cmp(int, int)'
 bool cmp(int a,int b){return a>b;}
      ^
0_0_36912165_18616.cpp:39:6: note: 'bool cmp(int, int)' previously defined here
 bool cmp(int a,int b){return a>b;}
      ^
0_0_36912165_18616.cpp: In function 'int main()':
0_0_36912165_18616.cpp:111:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_36912165_18616.cpp:40: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-10-01 07:33:42, Gzip enabled