0_0_17186336_24350.cpp:49:5: error: redefinition of 'int cas'
int cas;
^
0_0_17186336_24350.cpp:7:5: note: 'int cas' previously defined here
int cas=1,n,m,l,ks,k,low,high,mid;
^
0_0_17186336_24350.cpp:50:14: error: conflicting declaration 'double a'
double x,y,v,a,b,c,ans1,ans2,delta;
^
0_0_17186336_24350.cpp:6:4: note: previous declaration as 'LL a [505]'
LL a[maxn],b[maxn],c[maxn],ab[maxn*maxn];
^
0_0_17186336_24350.cpp:50:16: error: conflicting declaration 'double b'
double x,y,v,a,b,c,ans1,ans2,delta;
^
0_0_17186336_24350.cpp:6:12: note: previous declaration as 'LL b [505]'
LL a[maxn],b[maxn],c[maxn],ab[maxn*maxn];
^
0_0_17186336_24350.cpp:50:18: error: conflicting declaration 'double c'
double x,y,v,a,b,c,ans1,ans2,delta;
^
0_0_17186336_24350.cpp:6:20: note: previous declaration as 'LL c [505]'
LL a[maxn],b[maxn],c[maxn],ab[maxn*maxn];
^
0_0_17186336_24350.cpp: In function 'int main()':
0_0_17186336_24350.cpp:52:5: error: redefinition of 'int main()'
int main(){
^
0_0_17186336_24350.cpp:18:5: note: 'int main()' previously defined here
int main(){
^
0_0_17186336_24350.cpp:63:4: error: incompatible types in assignment of 'double' to 'LL [505] {aka long long int [505]}'
a=g*x*x;
^
0_0_17186336_24350.cpp:64:4: error: incompatible types in assignment of 'double' to 'LL [505] {aka long long int [505]}'
b=-x*2*v*v;
^
0_0_17186336_24350.cpp:65:4: error: incompatible types in assignment of 'double' to 'LL [505] {aka long long int [505]}'
c=2*y*v*v+g*x*x;
^
0_0_17186336_24350.cpp:66:11: error: invalid operands of types 'LL [505] {aka long long int [505]}' and 'LL [505] {aka long long int [505]}' to binary 'operator*'
delta=b*b-4*a*c;
^
0_0_17186336_24350.cpp:66:15: error: invalid operands of types 'int' and 'LL [505] {aka long long int [505]}' to binary 'operator*'
delta=b*b-4*a*c;
^
0_0_17186336_24350.cpp:71:11: error: wrong type argument to unary minus
ans1=(-b-sqrt(b*b-4*a*c))/2/a;
^
0_0_17186336_24350.cpp:71:20: error: invalid operands of types 'LL [505] {aka long long int [505]}' and 'LL [505] {aka long long int [505]}' to binary 'operator*'
ans1=(-b-sqrt(b*b-4*a*c))/2/a;
^
0_0_17186336_24350.cpp:71:24: error: invalid operands of types 'int' and 'LL [505] {aka long long int [505]}' to binary 'operator*'
ans1=(-b-sqrt(b*b-4*a*c))/2/a;
^
0_0_17186336_24350.cpp:72:11: error: wrong type argument to unary minus
ans2=(-b+sqrt(b*b-4*a*c))/2/a;
^
0_0_17186336_24350.cpp:72:20: error: invalid operands of types 'LL [505] {aka long long int [505]}' and 'LL [505] {aka long long int [505]}' to binary 'operator*'
ans2=(-b+sqrt(b*b-4*a*c))/2/a;
^
0_0_17186336_24350.cpp:72:24: error: invalid operands of types 'int' and 'LL [505] {aka long long int [505]}' to binary 'operator*'
ans2=(-b+sqrt(b*b-4*a*c))/2/a;
^
0_0_17186336_24350.cpp: At global scope:
0_0_17186336_24350.cpp:83:8: error: redefinition of 'double x'
double x,y,l,d,mid,midmid,low,high;
^
0_0_17186336_24350.cpp:50:8: note: 'double x' previously declared here
double x,y,v,a,b,c,ans1,ans2,delta;
^
0_0_17186336_24350.cpp:83:10: error: redefinition of 'double y'
double x,y,l,d,mid,midmid,low,high;
^
0_0_17186336_24350.cpp:50:10: note: 'double y' previously declared here
double x,y,v,a,b,c,ans1,ans2,delta;
^
0_0_17186336_24350.cpp:83:12: error: conflicting declaration 'double l'
double x,y,l,d,mid,midmid,low,high;
^
0_0_17186336_24350.cpp:7:15: note: previous declaration as 'int l'
int cas=1,n,m,l,ks,k,low,high,mid;
^
0_0_17186336_24350.cpp:83:16: error: conflicting declaration 'double mid'
double x,y,l,d,mid,midmid,low,high;
^
0_0_17186336_24350.cpp:7:31: note: previous declaration as 'int mid'
int cas=1,n,m,l,ks,k,low,high,mid;
^
0_0_17186336_24350.cpp:83:27: error: conflicting declaration 'double low'
double x,y,l,d,mid,midmid,low,high;
^
0_0_17186336_24350.cpp:7:22: note: previous declaration as 'int low'
int cas=1,n,m,l,ks,k,low,high,mid;
^
0_0_17186336_24350.cpp:83:31: error: conflicting declaration 'double high'
double x,y,l,d,mid,midmid,low,high;
^
0_0_17186336_24350.cpp:7:26: note: previous declaration as 'int high'
int cas=1,n,m,l,ks,k,low,high,mid;
^
0_0_17186336_24350.cpp: In function 'int main()':
0_0_17186336_24350.cpp:87:5: error: redefinition of 'int main()'
int main(){
^
0_0_17186336_24350.cpp:18:5: note: 'int main()' previously defined here
int main(){
^
0_0_17186336_24350.cpp: In function 'int main()':
0_0_17186336_24350.cpp:140:5: error: redefinition of 'int main()'
int main(){
^
0_0_17186336_24350.cpp:18:5: note: 'int main()' previously defined here
int main(){
^
|