QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#416965 | #1454. Um nik's Algorithm | qiuzx | Compile Error | / | / | C++20 | 3.7kb | 2024-05-22 11:41:30 | 2024-05-22 11:41:31 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code:5:30: warning: ‘-fwhole-program’ is not an option that controls warnings [-Wpragmas] 5 | #pragma GCC diagnostic error "-fwhole-program" | ^~~~~~~~~~~~~~~~~ answer.code:6:30: warning: ‘-fcse-skip-blocks’ is not an option that controls warnings [-Wpragmas] 6 | #pragma GCC diagnostic error "-fcse-skip-blocks" | ^~~~~~~~~~~~~~~~~~~ answer.code:7:30: warning: ‘-funsafe-loop-optimizations’ is not an option that controls warnings [-Wpragmas] 7 | #pragma GCC diagnostic error "-funsafe-loop-optimizations" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ answer.code: In function ‘int main()’: answer.code:167:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wformat=] 167 | printf("%d\n",ans.size()); | ~^ ~~~~~~~~~~ | | | | int std::vector<int>::size_type {aka long unsigned int} | %ld answer.code:177:17: error: ‘ord’ was not declared in this scope 177 | ord[i]=i; | ^~~ answer.code:179:17: error: ‘ord’ was not declared in this scope 179 | shuffle(ord+1,ord+m+1,rnd); | ^~~ answer.code:189:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wformat=] 189 | printf("%d\n",ans.size()); | ~^ ~~~~~~~~~~ | | | | int std::vector<int>::size_type {aka long unsigned int} | %ld