foo.cc: In function 'int main()':
foo.cc:10:20: error: invalid types 'double [10005][double]' for array subscript
10 | cnt[a[i]]++;
| ^
foo.cc:12:19: error: invalid operands of types 'double [200005]' and 'double' to binary 'operator+'
12 | sort(a+1,a+n+1);
| ~^~
| | |
| | double
| double [200005]
foo.cc:14:23: error: invalid types 'double [10005][double]' for array subscript
14 | if(cnt[a[i]]!=0)
| ^
foo.cc:16:45: error: invalid types 'double [10005][double]' for array subscript
16 | cout<<a[i]<<" "<<cnt[a[i]]<<endl;
| ^
foo.cc:17:28: error: invalid types 'double [10005][double]' for array subscript
17 | cnt[a[i]]=0;
| ^
[Hydro](https://hydro.ac)提供评测服务