QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#161726 | #7105. Pixel Art | ucup-team1378# | Compile Error | / | / | C++14 | 5.0kb | 2023-09-03 01:44:14 | 2023-09-03 01:44:14 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘void solve()’: answer.code:18:5: error: ‘unordered_map’ was not declared in this scope 18 | unordered_map<int, vector<array<int,3>>> cl; | ^~~~~~~~~~~~~ answer.code:9:1: note: ‘std::unordered_map’ is defined in header ‘<unordered_map>’; did you forget to ‘#include <unordered_map>’? 8 | #include <vector> +++ |+#include <unordered_map> 9 | #include <array> answer.code:18:19: error: expected primary-expression before ‘int’ 18 | unordered_map<int, vector<array<int,3>>> cl; | ^~~ answer.code:22:15: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ 22 | auto &[a,b,c,d] = v[i]; | ^ answer.code:31:13: error: ‘cl’ was not declared in this scope; did you mean ‘c’? 31 | cl[b].push_back({a,c,i}); | ^~ | c answer.code:38:18: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ 38 | for(auto [a,b,id]: rg[i]){ | ^ answer.code:39:26: error: ‘cl’ was not declared in this scope; did you mean ‘ll’? 39 | if(a > 0 && !cl[a-1].empty()){ | ^~ | ll answer.code:50:28: error: ‘cl’ was not declared in this scope; did you mean ‘ll’? 50 | if(b < M-1 && !cl[b+1].empty()){ | ^~ | ll answer.code:72:14: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ 72 | for(auto [i, cur]: cl){ | ^ answer.code:72:24: error: ‘cl’ was not declared in this scope; did you mean ‘ll’? 72 | for(auto [i, cur]: cl){ | ^~ | ll answer.code:75:18: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ 75 | for(auto [a,b,id]: cur){ | ^ answer.code:77:97: error: no matching function for call to ‘std::array<int, 3>::array(<brace-enclosed initializer list>)’ 77 | auto ub = lower_bound(rg[a-1].begin(), rg[a-1].end(), array<int,3>({i + 1, 0, 0})); | ^ In file included from /usr/include/c++/11/tuple:39, from /usr/include/c++/11/bits/stl_map.h:63, from /usr/include/c++/11/map:61, from answer.code:2: /usr/include/c++/11/array:95:12: note: candidate: ‘std::array<int, 3>::array()’ 95 | struct array | ^~~~~ /usr/include/c++/11/array:95:12: note: candidate expects 0 arguments, 1 provided /usr/include/c++/11/array:95:12: note: candidate: ‘constexpr std::array<int, 3>::array(const std::array<int, 3>&)’ /usr/include/c++/11/array:95:12: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const std::array<int, 3>&’ /usr/include/c++/11/array:95:12: note: candidate: ‘constexpr std::array<int, 3>::array(std::array<int, 3>&&)’ /usr/include/c++/11/array:95:12: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::array<int, 3>&&’ answer.code:87:99: error: no matching function for call to ‘std::array<int, 3>::array(<brace-enclosed initializer list>)’ 87 | auto ub = lower_bound(rg[b + 1].begin(), rg[b+1].end(), array<int,3>({i + 1, 0, 0})); | ^ In file included from /usr/include/c++/11/tuple:39, from /usr/include/c++/11/bits/stl_map.h:63, from /usr/include/c++/11/map:61, from answer.code:2: /usr/include/c++/11/array:95:12: note: candidate: ‘std::array<int, 3>::array()’ 95 | struct array | ^~~~~ /usr/include/c++/11/array:95:12: note: candidate expects 0 arguments, 1 provided /usr/include/c++/11/array:95:12: note: candidate: ‘constexpr std::array<int, 3>::array(const std::array<int, 3>&)’ /usr/include/c++/11/array:95:12: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const std::array<int, 3>&’ /usr/include/c++/11/array:95:12: note: candidate: ‘constexpr std::array<int, 3>::array(std::array<int, 3>&&)’ /usr/include/c++/11/array:95:12: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::array<int, 3>&&’ answer.code:108:15: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ 108 | for(auto &[id, x]: cl){ | ^ answer.code:108:24: error: ‘cl’ was not declared in this scope; did you mean ‘ll’? 108 | for(auto &[id, x]: cl){ | ^~ | ll answer.code:149:18: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ 149 | for(auto...