QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#451341#1132. Financial Reporthyforces#Compile Error//C++202.5kb2024-06-23 07:28:022024-06-23 07:28:02

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;
      |                  ^~~~~~