foo.cc: In function 'int main()':
foo.cc:9:11: error: invalid types 'double [100005][double]' for array subscript
cin>>a[i];
^
foo.cc:10:14: error: invalid operands of types 'double*' and 'double' to binary 'operator+'
sort(a+1,a+1+m+n);
~~~^~
foo.cc:11:10: error: invalid operands of types 'double' and 'int' to binary 'operator%'
if((m+n)%2==1)cout<<a[(m+n)/2+1];
~~~~~^~
foo.cc:11:33: error: invalid types 'double [100005][double]' for array subscript
if((m+n)%2==1)cout<<a[(m+n)/2+1];
^
foo.cc:12:23: error: invalid types 'double [100005][double]' for array subscript
else cout<<(a[(m+n)/2]+a[(m+n)/2+1])/2;
^
foo.cc:12:36: error: invalid types 'double [100005][double]' for array subscript
else cout<<(a[(m+n)/2]+a[(m+n)/2+1])/2;
^
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务