QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#186649#6740. Functionucup-team580#Compile Error//C++204.7kb2023-09-24 08:50:182023-09-24 08:50:18

详细

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