QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#879447 | #9695. Trash Problem | ucup-team5101# | Compile Error | / | / | C++23 | 4.9kb | 2025-02-02 02:37:43 | 2025-02-02 02:37:45 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘void Solve()’: answer.code:142:29: error: no matching function for call to ‘min(int&, long unsigned int)’ 142 | MX = min(MX, idx-1); | ~~~^~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from answer.code:1: /usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: ‘template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)’ 233 | min(const _Tp& __a, const _Tp& __b) | ^~~ /usr/include/c++/14/bits/stl_algobase.h:233:5: note: template argument deduction/substitution failed: answer.code:142:29: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘long unsigned int’) 142 | MX = min(MX, idx-1); | ~~~^~~~~~~~~~~ /usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: ‘template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)’ 281 | min(const _Tp& __a, const _Tp& __b, _Compare __comp) | ^~~ /usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate expects 3 arguments, 2 provided In file included from /usr/include/c++/14/algorithm:61: /usr/include/c++/14/bits/stl_algo.h:5685:5: note: candidate: ‘template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)’ 5685 | min(initializer_list<_Tp> __l) | ^~~ /usr/include/c++/14/bits/stl_algo.h:5685:5: note: candidate expects 1 argument, 2 provided /usr/include/c++/14/bits/stl_algo.h:5695:5: note: candidate: ‘template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)’ 5695 | min(initializer_list<_Tp> __l, _Compare __comp) | ^~~ /usr/include/c++/14/bits/stl_algo.h:5695:5: note: template argument deduction/substitution failed: answer.code:142:29: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘int’ 142 | MX = min(MX, idx-1); | ~~~^~~~~~~~~~~ answer.code:147:30: error: ‘Find_First’ was not declared in this scope 147 | int ff = Find_First(T); | ^~~~~~~~~~ answer.code:82:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 82 | scanf("%d",&n); | ~~~~~^~~~~~~~~ answer.code:84:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 84 | scanf("%s",p[i]); | ~~~~~^~~~~~~~~~~