QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#566483 | #111. Amusement Park | 3un_larryfunc | Compile Error | / | / | C++23 | 15.9kb | 2024-09-16 00:14:57 | 2024-09-16 00:14:58 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Joi.code: In function ‘void {anonymous}::InitialSubtree(int, int, std::vector<int>&)’: Joi.code:52:15: warning: range-based ‘for’ loops only available with ‘-std=c++11’ or ‘-std=gnu++11’ 52 | for (int q : tree[p]) if (q != rt) { | ^~~~ Joi.code:52:21: error: forming reference to reference type ‘std::vector<int>&’ 52 | for (int q : tree[p]) if (q != rt) { | ^ Joi.code: In function ‘void {anonymous}::ComputeSubtrees(int, int, std::vector<std::pair<int, int> >)’: Joi.code:59:12: error: ‘v’ does not name a type 59 | for (auto v : sub) if (v.first == p) has = true; | ^ Joi.code:59:50: error: expected ‘;’ before ‘if’ 59 | for (auto v : sub) if (v.first == p) has = true; | ^ | ; 60 | 61 | if (!has) { | ~~ Joi.code:61:2: error: expected primary-expression before ‘if’ 61 | if (!has) { | ^~ Joi.code:59:50: error: expected ‘;’ before ‘if’ 59 | for (auto v : sub) if (v.first == p) has = true; | ^ | ; 60 | 61 | if (!has) { | ~~ Joi.code:61:2: error: expected primary-expression before ‘if’ 61 | if (!has) { | ^~ Joi.code:59:50: error: expected ‘)’ before ‘if’ 59 | for (auto v : sub) if (v.first == p) has = true; | ~ ^ | ) 60 | 61 | if (!has) { | ~~ Joi.code:83:12: error: ‘v’ does not name a type 83 | for (auto v : sub) subtree[p].push_back(v.first); | ^ Joi.code:83:51: error: expected ‘;’ before ‘for’ 83 | for (auto v : sub) subtree[p].push_back(v.first); | ^ | ; 84 | for (int q : tree[p]) if (q != rt) { | ~~~ Joi.code:84:2: error: expected primary-expression before ‘for’ 84 | for (int q : tree[p]) if (q != rt) { | ^~~ Joi.code:83:51: error: expected ‘;’ before ‘for’ 83 | for (auto v : sub) subtree[p].push_back(v.first); | ^ | ; 84 | for (int q : tree[p]) if (q != rt) { | ~~~ Joi.code:84:2: error: expected primary-expression before ‘for’ 84 | for (int q : tree[p]) if (q != rt) { | ^~~ Joi.code:83:51: error: expected ‘)’ before ‘for’ 83 | for (auto v : sub) subtree[p].push_back(v.first); | ~ ^ | ) 84 | for (int q : tree[p]) if (q != rt) { | ~~~ Joi.code:84:15: warning: range-based ‘for’ loops only available with ‘-std=c++11’ or ‘-std=gnu++11’ 84 | for (int q : tree[p]) if (q != rt) { | ^~~~ Joi.code:84:21: error: forming reference to reference type ‘std::vector<int>&’ 84 | for (int q : tree[p]) if (q != rt) { | ^ Joi.code: In function ‘void {anonymous}::CommonProc(int, int, int*, int*)’: Joi.code:101:22: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ 101 | tree_deg.push_back({ tree[i], deg }); | ^ Joi.code:101:38: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ 101 | tree_deg.push_back({ tree[i], deg }); | ^ In file included from grader_Joi.cpp:2: testlib.h: In member function ‘std::vector<T> 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_Joi.cpp: In function ‘int {anonymous}::Move(int)’: grader_Joi.cpp:30:19: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ 30 | if (!edges.count({ pos, dest })) { | ^ grader_Joi.cpp:30:32: warning: extended initializer lists only availabl...