QOJ.ac
QOJ
The 2nd Universal Cup Finals is coming! Check out our event page, schedule, and competition rules!
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#354745 | #7858. Basic Equation Solving | ucup-team3215 | Compile Error | / | / | C++20 | 3.8kb | 2024-03-15 22:31:15 | 2024-03-15 22:31:16 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘auto& mul(auto:21&&, auto:22)’: answer.code:11:47: error: ‘uint64_t’ was not declared in this scope 11 | auto& mul(auto&& a, auto b) { return a = a * (uint64_t)b % mod; } | ^~~~~~~~ answer.code:5:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? 4 | #include <vector> +++ |+#include <cstdint> 5 | answer.code:11:56: error: expected ‘;’ before ‘b’ 11 | auto& mul(auto&& a, auto b) { return a = a * (uint64_t)b % mod; } | ^ | ; answer.code: In function ‘bool isgr(auto:25&, int, int)’: answer.code:73:3: error: ‘uint64_t’ was not declared in this scope 73 | uint64_t vis = 1ull << a; | ^~~~~~~~ answer.code:73:3: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? answer.code:75:30: error: ‘vis’ was not declared in this scope 75 | for (auto [x, y]: gr) if ((vis >> x & 1) && !(vis >> y & 1)) ch = 1, vis |= 1ull << y; | ^~~ answer.code:76:10: error: ‘vis’ was not declared in this scope 76 | return vis >> b & 1; | ^~~ answer.code: In instantiation of ‘int solve(auto:24&, DSU) [with auto:24 = std::vector<std::array<int, 2> >]’: answer.code:80:50: required from ‘void solve(auto:26, DSU, int) [with auto:26 = std::vector<std::array<int, 2> >]’ answer.code:106:8: required from here answer.code:61:93: warning: narrowing conversion of ‘id.solve<std::vector<std::array<int, 2> > >(std::vector<std::array<int, 2> >&, DSU)::<lambda(int, int)>(c, a)’ from ‘long int’ to ‘int’ [-Wnarrowing] 61 | for (auto [a, b]: gr) if (max(a, b) > 9) { int c = weak(max(a, b)); compe[c].push_back({id(c, a), id(c, b)}); } | ~~^~~~~~ answer.code:61:103: warning: narrowing conversion of ‘id.solve<std::vector<std::array<int, 2> > >(std::vector<std::array<int, 2> >&, DSU)::<lambda(int, int)>(c, b)’ from ‘long int’ to ‘int’ [-Wnarrowing] 61 | for (auto [a, b]: gr) if (max(a, b) > 9) { int c = weak(max(a, b)); compe[c].push_back({id(c, a), id(c, b)}); } | ~~^~~~~~