foo.cc: In function 'int main()':
foo.cc:107:9: error: 'sort' was not declared in this scope
sort(xx,xx+tot);//排序后再去重
^~~~
foo.cc:107:9: note: suggested alternative: 'qsort'
sort(xx,xx+tot);//排序后再去重
^~~~
qsort
foo.cc:109:13: error: 'unique' was not declared in this scope
ans=unique(xx,xx+tot)-xx;//去重
^~~~~~
foo.cc:109:13: note: suggested alternative: 'union'
ans=unique(xx,xx+tot)-xx;//去重
^~~~~~
union
foo.cc:119:30: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%I64d\n",maxx);//输出要处理一下
^
foo.cc:87:11: warning: unused variable 'j' [-Wunused-variable]
int i,j,k,m,tot,ans;
^
foo.cc:87:13: warning: unused variable 'k' [-Wunused-variable]
int i,j,k,m,tot,ans;
^
foo.cc:87:15: warning: unused variable 'm' [-Wunused-variable]
int i,j,k,m,tot,ans;
^
foo.cc:94:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld%lld",&x,&y,&d);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务