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(){
^
|