运行 ID 作者 题号 测评结果 分数 时间 内存 语言 代码长度 提交时间
243439 21软工1班楚梓杰 1577 - 违抗熵增之人 编译错误 0 0 MS 0 KB C++ 1539 3年前
暂时无法获取本题测试点详情。

Main.cc: In function ‘void radixsort(ll)’:
Main.cc:33:17: warning: unused variable ‘sum’ [-Wunused-variable]
33 | for (ll sum = 0, j = 0; j != (1 << 8); ++j)
| ^~~
Main.cc:38:14: warning: capture of variable ‘cnt’ with non-automatic storage duration
38 | [cnt[x[j] >> i & mask]++] = x[j];
| ^~~
Main.cc:18:27: note: ‘ll cnt [256]’ declared here
18 | ll n, a[mn], q, x, b[mn], cnt[1 << 8];
| ^~~
Main.cc:38:17: error: expected ‘,’ before ‘[’ token
38 | [cnt[x[j] >> i & mask]++] = x[j];
| ^
| ,
Main.cc:38:17: error: expected identifier before ‘[’ token
Main.cc: In lambda function:
Main.cc:38:39: error: expected ‘{’ before ‘=’ token
38 | [cnt[x[j] >> i & mask]++] = x[j];
| ^
Main.cc: In function ‘void radixsort(ll)’:
Main.cc:38:44: error: no match for ‘operator=’ (operand types are ‘radixsort(ll)::<lambda()>’ and ‘ll’ {aka ‘int’})
38 | [cnt[x[j] >> i & mask]++] = x[j];
| ^
Main.cc:38:37: note: candidate: ‘radixsort(ll)::<lambda()>& radixsort(ll)::<lambda()>::operator=(const radixsort(ll)::<lambda()>&)’ <deleted>
38 | [cnt[x[j] >> i & mask]++] = x[j];
| ^
Main.cc:38:37: note: no known conversion for argument 1 from ‘ll’ {aka ‘int’} to ‘const radixsort(ll)::<lambda()>&’