QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#474232#3098. Ancient Machineegypt_ioi2024b_04Compile Error//C++202.5kb2024-07-12 16:49:472024-07-12 16:49:48

詳細信息

Bruno.code: In function ‘void Bruno(int, int, std::vector<int>)’:
Bruno.code:34:22: error: ‘min’ was not declared in this scope
   34 |                 id = min(id, j);
      |                      ^~~
Bruno.code:34:22: note: suggested alternatives:
In file included from /usr/include/c++/10/vector:62,
                 from Bruno.h:1,
                 from Bruno.code:1:
/usr/include/c++/10/bits/stl_algo.h:3479:5: note:   ‘std::min’
 3479 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
In file included from /usr/include/c++/10/algorithm:64,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
                 from Bruno.code:2:
/usr/include/c++/10/bits/ranges_algo.h:3165:29: note:   ‘std::ranges::min’
 3165 |   inline constexpr __min_fn min{};
      |                             ^~~