QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#186649 | #6740. Function | ucup-team580# | Compile Error | / | / | C++20 | 4.7kb | 2023-09-24 08:50:18 | 2023-09-24 08:50:18 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘void get_ranges()’: answer.code:198:17: error: reference to ‘ranges’ is ambiguous 198 | ranges.push_back({l, val, ans[ptr]}); | ^~~~~~ In file included from /usr/include/c++/11/compare:39, from /usr/include/c++/11/bits/stl_pair.h:65, from /usr/include/c++/11/bits/stl_algobase.h:64, from /usr/include/c++/11/bits/specfun.h:45, from /usr/include/c++/11/cmath:1935, from answer.code:10: /usr/include/c++/11/concepts:163:13: note: candidates are: ‘namespace std::ranges { }’ 163 | namespace ranges | ^~~~~~ answer.code:158:15: note: ‘std::vector<Range> ranges’ 158 | vector<Range> ranges; | ^~~~~~ answer.code:205:13: error: reference to ‘ranges’ is ambiguous 205 | ranges.push_back({val, val, ans[n / val]}); | ^~~~~~ In file included from /usr/include/c++/11/compare:39, from /usr/include/c++/11/bits/stl_pair.h:65, from /usr/include/c++/11/bits/stl_algobase.h:64, from /usr/include/c++/11/bits/specfun.h:45, from /usr/include/c++/11/cmath:1935, from answer.code:10: /usr/include/c++/11/concepts:163:13: note: candidates are: ‘namespace std::ranges { }’ 163 | namespace ranges | ^~~~~~ answer.code:158:15: note: ‘std::vector<Range> ranges’ 158 | vector<Range> ranges; | ^~~~~~ answer.code: In function ‘void solve()’: answer.code:219:27: error: reference to ‘ranges’ is ambiguous 219 | for (auto range : ranges) { | ^~~~~~ In file included from /usr/include/c++/11/compare:39, from /usr/include/c++/11/bits/stl_pair.h:65, from /usr/include/c++/11/bits/stl_algobase.h:64, from /usr/include/c++/11/bits/specfun.h:45, from /usr/include/c++/11/cmath:1935, from answer.code:10: /usr/include/c++/11/concepts:163:13: note: candidates are: ‘namespace std::ranges { }’ 163 | namespace ranges | ^~~~~~ answer.code:158:15: note: ‘std::vector<Range> ranges’ 158 | vector<Range> ranges; | ^~~~~~