Compile Error
/in/foo.cc: In function 'int main()':
/in/foo.cc:11:22: error: '__gnu_cxx::__alloc_traits<std::allocator<xpy>, xpy>::value_type' {aka 'struct xpy'} has no member named 'push_back'
11 | a[i].push_back(xpy{x,y,z});
| ^~~~~~~~~
/in/foo.cc: In lambda function:
/in/foo.cc:13:76: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
13 | sort(a.begin(),a.end(),[](xpy x,xpy y){return x.yw>y.yw||x.yw==y.yw&&x.sx>y.sx;});
| ~~~~~~~~~~^~~~~~~~~~~
信息
- 递交者
- 类型
- 递交
- 题目
- P2423 学生成绩(students)
- 语言
- C++
- 递交时间
- 2026-07-20 10:05:41
- 评测时间
- 2026-07-20 10:05:41
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes