QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#186495 | #3507. Broken Device 2 | znstz | Compile Error | / | / | C++20 | 1.3kb | 2023-09-23 23:39:36 | 2023-09-23 23:39:36 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
grader_Anna.cpp: In function ‘int main(int, char**)’: grader_Anna.cpp:53:13: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 53 | argv[2] = "/dev/null"; | ^~~~~~~~~~~ grader_Anna.cpp:80:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wformat=] 80 | printf("%d\n", u.size()); | ~^ ~~~~~~~~ | | | | int std::vector<int>::size_type {aka long unsigned int} | %ld /usr/bin/ld: /tmp/ccP6Yu2j.o:(.bss+0x380): multiple definition of `rnd'; /tmp/cc6Gppli.o:(.bss+0x0): first defined here collect2: error: ld returned 1 exit status