QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#139146 | #2670. Arranging shoes | Qwerty1232# | Compile Error | / | / | C++20 | 135b | 2023-08-12 18:22:21 | 2024-07-04 01:39:46 |
Judging History
answer
#include "shoes.h"
long long count_swaps(std::vector<int> s) {
int n = s.size() / 2;
return int64_t(n) * (n - 1) / 2;
}
详细
answer.code: In function ‘long long int count_swaps(std::vector<int>)’: answer.code:5:12: error: ‘int64_t’ was not declared in this scope 5 | return int64_t(n) * (n - 1) / 2; | ^~~~~~~ answer.code:2:1: note: ‘int64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? 1 | #include "shoes.h" +++ |+#include <cstdint> 2 |