Compile Error
foo.cc: In function 'int main()': foo.cc:22:28: error: 'greater' was not declared in this scope 22 | sort(a + 1, a + 1 + n, greater<int>); | ^~~~~~~ foo.cc:22:36: error: expected primary-expression before 'int' 22 | sort(a + 1, a + 1 + n, greater<int>); | ^~~ foo.cc:26:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 26 | if (!(n & 1)) | ^
[Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
- 类型
- 递交
- 题目
- P1011 选数
- 语言
- C++
- 递交时间
- 2022-09-29 23:34:39
- 评测时间
- 2022-09-29 23:34:39
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes