QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#474223 | #3098. Ancient Machine | egypt_ioi2024b_04 | Compile Error | / | / | C++23 | 2.5kb | 2024-07-12 16:46:15 | 2024-07-12 16:46:15 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
Anna.code: In function ‘void Anna(int, std::vector<char>)’: Anna.code:30:22: error: ‘max’ was not declared in this scope; did you mean ‘std::max’? 30 | v[i] = 1ll + max(sum[0], sum[1]); | ^~~ | std::max In file included from /usr/include/c++/10/vector:60, from Anna.h:1, from Anna.code:1: /usr/include/c++/10/bits/stl_algobase.h:300:5: note: ‘std::max’ declared here 300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp) | ^~~ Anna.code:34:24: error: ‘min’ was not declared in this scope; did you mean ‘std::min’? 34 | int l = i, r = min(N-1, i + 39); | ^~~ | std::min In file included from /usr/include/c++/10/vector:60, from Anna.h:1, from Anna.code:1: /usr/include/c++/10/bits/stl_algobase.h:278:5: note: ‘std::min’ declared here 278 | min(const _Tp& __a, const _Tp& __b, _Compare __comp) | ^~~ grader_Anna.cpp: In function ‘int main()’: grader_Anna.cpp:67:16: warning: range-based ‘for’ loops only available with ‘-std=c++11’ or ‘-std=gnu++11’ 67 | for (int x : send_array) | ^~~~~~~~~~ grader_Anna.cpp:67:16: error: forming reference to reference type ‘std::vector<int>&’