记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
P1283 Stars in your window
比赛
2021苏青奥赛集训营(2021/7/25训练赛)
语言
C++
递交时间
2021-07-25 10:24:57
评测时间
2021-07-25 10:24:57
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes