QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#44919 | #4561. Catfish Farm | MaMengQi | Compile Error | / | / | C++17 | 360b | 2022-08-22 11:40:31 | 2022-08-22 11:40:34 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘long long int max_weights(int, int, int*, int*, int*)’: answer.code:16:22: error: ‘begin’ was not declared in this scope 16 | for (auto i: W) sum += i; | ^ answer.code:16:22: note: suggested alternatives: In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95, from answer.code:1: /usr/include/c++/11/valarray:1224:5: note: ‘std::begin’ 1224 | begin(const valarray<_Tp>& __va) | ^~~~~ In file included from /usr/include/c++/11/filesystem:46, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:129, from answer.code:1: /usr/include/c++/11/bits/fs_dir.h:549:3: note: ‘std::filesystem::__cxx11::begin’ 549 | begin(recursive_directory_iterator __iter) noexcept | ^~~~~ answer.code:16:22: error: ‘end’ was not declared in this scope 16 | for (auto i: W) sum += i; | ^ answer.code:16:22: note: suggested alternatives: In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95, from answer.code:1: /usr/include/c++/11/valarray:1244:5: note: ‘std::end’ 1244 | end(const valarray<_Tp>& __va) | ^~~ In file included from /usr/include/c++/11/filesystem:46, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:129, from answer.code:1: /usr/include/c++/11/bits/fs_dir.h:554:3: note: ‘std::filesystem::__cxx11::end’ 554 | end(recursive_directory_iterator) noexcept | ^~~