QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#451341 | #1132. Financial Report | hyforces# | Compile Error | / | / | C++20 | 2.5kb | 2024-06-23 07:28:02 | 2024-06-23 07:28:02 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘int main()’: answer.code:69:5: error: reference to ‘ranges’ is ambiguous 69 | ranges.insert({0,n-1}); | ^~~~~~ In file included from /usr/include/c++/13/compare:37, from /usr/include/c++/13/bits/stl_pair.h:65, from /usr/include/c++/13/bits/stl_algobase.h:64, from /usr/include/c++/13/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51, from answer.code:1: /usr/include/c++/13/concepts:179:13: note: candidates are: ‘namespace std::ranges { }’ 179 | namespace ranges | ^~~~~~ answer.code:47:18: note: ‘std::set<Range, std::less<void> > ranges’ 47 | set<Range,less<>>ranges; | ^~~~~~ answer.code:80:17: error: reference to ‘ranges’ is ambiguous 80 | auto it=ranges.lower_bound(i); | ^~~~~~ /usr/include/c++/13/concepts:179:13: note: candidates are: ‘namespace std::ranges { }’ 179 | namespace ranges | ^~~~~~ answer.code:47:18: note: ‘std::set<Range, std::less<void> > ranges’ 47 | set<Range,less<>>ranges; | ^~~~~~ answer.code:83:20: error: reference to ‘ranges’ is ambiguous 83 | if(i>it->l)ranges.insert({it->l,i-1}); | ^~~~~~ /usr/include/c++/13/concepts:179:13: note: candidates are: ‘namespace std::ranges { }’ 179 | namespace ranges | ^~~~~~ answer.code:47:18: note: ‘std::set<Range, std::less<void> > ranges’ 47 | set<Range,less<>>ranges; | ^~~~~~ answer.code:85:14: error: reference to ‘ranges’ is ambiguous 85 | else ranges.erase(it); | ^~~~~~ /usr/include/c++/13/concepts:179:13: note: candidates are: ‘namespace std::ranges { }’ 179 | namespace ranges | ^~~~~~ answer.code:47:18: note: ‘std::set<Range, std::less<void> > ranges’ 47 | set<Range,less<>>ranges; | ^~~~~~