QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#577368 | #3507. Broken Device 2 | Shui_Dream | Compile Error | / | / | C++23 | 1.1kb | 2024-09-20 10:47:44 | 2024-09-20 10:47:44 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Anna.code: In function ‘std::pair<std::vector<int>, std::vector<int> > Anna(LL)’: Anna.code:20:12: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ 20 | return {s,t}; | ^ In file included from grader_Anna.cpp:3: testlib.h: In member function ‘std::vector<_Tp> random_t::distinct(int, T, T)’: testlib.h:997:9: error: ‘uint64_t’ was not declared in this scope; did you mean ‘u_int64_t’? 997 | uint64_t n = to - from + 1; | ^~~~~~~~ | u_int64_t testlib.h:998:30: error: ‘n’ was not declared in this scope 998 | if (uint64_t(size) > n) | ^ testlib.h:1007:32: error: ‘n’ was not declared in this scope 1007 | expected += double(n) / double(n - i + 1); | ^ testlib.h:1009:31: error: ‘n’ was not declared in this scope 1009 | if (expected < double(n)) { | ^ grader_Anna.cpp: In function ‘int main(int, char**)’: grader_Anna.cpp:53:13: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] 53 | argv[2] = "/dev/null"; | ^~~~~~~~~~~ grader_Anna.cpp:55:24: error: ‘std::chrono’ has not been declared 55 | unsigned seed = std::chrono::steady_clock::now().time_since_epoch().count(); | ^~~~~~ 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 grader_Anna.cpp:81:22: warning: range-based ‘for’ loops only available with ‘-std=c++11’ or ‘-std=gnu++11’ 81 | for (int x : u) | ^ grader_Anna.cpp:81:22: error: forming reference to reference type ‘std::vector<int>&’