QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#742061 | #9738. Make It Divisible | ucup-team5481# | Compile Error | / | / | C++14 | 1.6kb | 2024-11-13 15:45:18 | 2024-11-13 15:45:27 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code: In function ‘int main()’: answer.code:47:2: error: expected ‘;’ before ‘scanf’ 47 | 2 scanf("%d", &T); | ^ ~~~~~ | ; answer.code:64:22: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘ll’ {aka ‘long long int’} [-Wformat=] 64 | printf("%d %lld\n", k, (k + 1) * k / 2); | ~^ ~ | | | | int ll {aka long long int} | %lld answer.code:55:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 55 | scanf("%d%lld", &n, &k); | ~~~~~^~~~~~~~~~~~~~~~~~ answer.code:58:18: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 58 | scanf("%d", &b[i]); | ~~~~~^~~~~~~~~~~~~