QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#640001 | #2933. Sequinary Numerals | ZhangYiDe | Compile Error | / | / | C++17 | 1.2kb | 2024-10-14 01:27:12 | 2024-10-14 01:27:12 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code:33:1: error: ‘uint64_t’ does not name a type 33 | uint64_t P2[34] = {0}; | ^~~~~~~~ answer.code:16:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? 15 | #include <numeric> +++ |+#include <cstdint> 16 | using namespace std; answer.code:34:1: error: ‘uint64_t’ does not name a type 34 | uint64_t P3[34] = {0}; | ^~~~~~~~ answer.code:34:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? answer.code: In function ‘int main()’: answer.code:41:5: error: ‘P2’ was not declared in this scope 41 | P2[0] = 1; | ^~ answer.code:42:5: error: ‘P3’ was not declared in this scope 42 | P3[0] = 1; | ^~ answer.code:52:5: error: ‘uint64_t’ was not declared in this scope 52 | uint64_t num = 0; | ^~~~~~~~ answer.code:52:5: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? answer.code:55:9: error: ‘num’ was not declared in this scope; did you mean ‘enum’? 55 | num += (S[i] - '0') * P3[i] * P2[S.length() - 1 - i]; | ^~~ | enum answer.code:58:13: error: expected ‘;’ before ‘den’ 58 | uint64_t den = P2[S.length() - 1]; | ^~~~ | ; answer.code:60:8: error: ‘num’ was not declared in this scope; did you mean ‘enum’? 60 | if(num % den == 0) | ^~~ | enum answer.code:60:14: error: ‘den’ was not declared in this scope 60 | if(num % den == 0) | ^~~ answer.code:65:17: error: expected ‘;’ before ‘rem’ 65 | uint64_t rem = num % den; | ^~~~ | ; answer.code:66:17: error: expected ‘;’ before ‘g’ 66 | uint64_t g = __gcd(rem, den); | ^~ | ; answer.code:67:38: error: ‘rem’ was not declared in this scope; did you mean ‘drem’? 67 | OUT << num / den << " " << (rem/g) << "/" << (den/g) << std::endl; | ^~~ | drem answer.code:67:42: error: ‘g’ was not declared in this scope 67 | OUT << num / den << " " << (rem/g) << "/" << (den/g) << std::endl; | ^