记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:27:35: error: missing template arguments before '(' token
   27 |     sort(v.begin(),v.end(),greater());
      |                                   ^
foo.cc:28:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, std::__cxx11::basic_string<char> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   28 |     for(int i = 0; i<v.size(); i++)
      |                    ~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
比赛
2022春 面向对象程序设计方法的上机作业
语言
C++
递交时间
2022-05-12 22:06:29
评测时间
2022-05-12 22:06:29
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes