QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#636364 | #8939. Permutation | ucup-team3627 | Compile Error | / | / | C++23 | 4.4kb | 2024-10-12 23:36:34 | 2024-10-12 23:36:34 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘int findSecondMaxPosition(int, int)’: answer.code:41:16: error: ‘INT_MIN’ was not declared in this scope 41 | int max1 = INT_MIN, max2 = INT_MIN; | ^~~~~~~ answer.code:19:1: note: ‘INT_MIN’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’? 18 | #include <fstream> +++ |+#include <climits> 19 | answer.code:46:13: error: ‘max2’ was not declared in this scope; did you mean ‘max1’? 46 | max2 = max1; | ^~~~ | max1 answer.code:51:37: error: ‘max2’ was not declared in this scope; did you mean ‘max1’? 51 | } else if (permutation[i] > max2) { | ^~~~ | max1