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_22151012_23742.cpp:102:11: error: redefinition of 'const int N'
 const int N = 45;  
           ^
0_0_22151012_23742.cpp:2:11: note: 'const int N' previously defined here
 const int N=100010,M=262150;
           ^
0_0_22151012_23742.cpp:112:8: error: redefinition of 'int n'
 int t, n, v;  
        ^
0_0_22151012_23742.cpp:3:5: note: 'int n' previously declared here
 int n,i,y,f[N],g[N],nxt[N],d[N],size[N],son[N],loc[N],top[N],q[N],dfn;
     ^
0_0_22151012_23742.cpp:112:11: error: conflicting declaration 'int v'
 int t, n, v;  
           ^
0_0_22151012_23742.cpp:4:12: note: previous declaration as 'int v [262150]'
 int len[M],v[M],mx[M][2],tag[M][2],rev[M];
            ^
0_0_22151012_23742.cpp: In function 'double solve()':
0_0_22151012_23742.cpp:116:31: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
     if (sb[i].b && sb[i].a >= v) return -1;  
                               ^
0_0_22151012_23742.cpp:120:57: error: invalid operands of types 'double' and 'int*' to binary 'operator/'
     ans = ans + (sb[i].b + sb[i].a * ans) / (v - sb[i].a);  
                                                         ^
0_0_22151012_23742.cpp: In function 'int main()':
0_0_22151012_23742.cpp:125:5: error: redefinition of 'int main()'
 int main() {  
     ^
0_0_22151012_23742.cpp:84: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 08:40:44, Gzip enabled