QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#653847 | #7941. Jackpot | ZhaoZiLong | Compile Error | / | / | C++11 | 421b | 2024-10-18 20:44:21 | 2024-10-18 20:44:44 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘int main()’: answer.code:18:25: error: ‘abs’ was not declared in this scope 18 | sum = sum + abs(arr[i] - arr[2 * n - i + 1]); | ^~~ answer.code:5:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%d", &t); | ~~~~~^~~~~~~~~~ answer.code:9:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 9 | scanf("%d", &n); | ~~~~~^~~~~~~~~~ answer.code:14:18: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 14 | scanf("%d", &arr[i]); | ~~~~~^~~~~~~~~~~~~~~