QOJ.ac
QOJ
The 2nd Universal Cup Finals is coming! Check out our event page, schedule, and competition rules!
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#534965 | #8038. Hammer to Fall | MaMengQi | Compile Error | / | / | C++20 | 1.7kb | 2024-08-27 18:04:01 | 2024-08-27 18:04:03 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:27:19: error: ‘std::vector<std::pair<long long int, long long int> > link [100010]’ redeclared as different kind of entity 27 | vector<pii> link[N]; | ^ In file included from /usr/include/c++/13/bits/atomic_wait.h:44, from /usr/include/c++/13/bits/atomic_base.h:42, from /usr/include/c++/13/bits/shared_ptr_atomic.h:33, from /usr/include/c++/13/memory:81, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:56, from answer.code:2: /usr/include/unistd.h:789:12: note: previous declaration ‘int link(const char*, const char*)’ 789 | extern int link (const char *__from, const char *__to) | ^~~~ answer.code: In function ‘void sol()’: answer.code:45:19: warning: pointer to a function used in arithmetic [-Wpointer-arith] 45 | link[i].push_back({v, w}); | ^ answer.code:45:21: error: request for member ‘push_back’ in ‘*(link + ((sizetype)i))’, which is of non-class type ‘int(const char*, const char*) noexcept’ 45 | link[i].push_back({v, w}); | ^~~~~~~~~ answer.code:50:33: warning: pointer to a function used in arithmetic [-Wpointer-arith] 50 | for(auto [v, w] : link[u]) s[v].erase(s[v].find({f[u] + w, u})); | ^ answer.code:50:33: error: ‘begin’ was not declared in this scope answer.code:50:33: note: suggested alternatives: In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:166: /usr/include/c++/13/valarray:1232:5: note: ‘std::begin’ 1232 | begin(const valarray<_Tp>& __va) noexcept | ^~~~~ In file included from /usr/include/c++/13/bits/ranges_algobase.h:38, from /usr/include/c++/13/bits/ranges_algo.h:38, from /usr/include/c++/13/algorithm:63, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51: /usr/include/c++/13/bits/ranges_base.h:489:44: note: ‘std::ranges::__cust::begin’ 489 | inline constexpr __cust_access::_Begin begin{}; | ^~~~~ In file included from /usr/include/c++/13/filesystem:50, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:200: /usr/include/c++/13/bits/fs_dir.h:607:3: note: ‘std::filesystem::__cxx11::begin’ 607 | begin(recursive_directory_iterator __iter) noexcept | ^~~~~ In file included from /usr/include/c++/13/bits/stl_iterator_base_types.h:71, from /usr/include/c++/13/bits/stl_algobase.h:65, from /usr/include/c++/13/algorithm:60: /usr/include/c++/13/bits/iterator_concepts.h:969:10: note: ‘std::ranges::__cust_access::begin’ 969 | void begin(const auto&) = delete; | ^~~~~ answer.code:50:33: error: ‘end’ was not declared in this scope 50 | for(auto [v, w] : link[u]) s[v].erase(s[v].find({f[u] + w, u})); | ^ answer.code:50:33: note: suggested alternatives: /usr/include/c++/13/valarray:1259:5: note: ‘std::end’ 1259 | end(const valarray<_Tp>& __va) noexcept | ^~~ /usr/include/c++/13/bits/ranges_base.h:490:42: note: ‘std::ranges::__cust::end’ 490 | inline constexpr __cust_access::_End end{}; | ^~~ /usr/include/c++/13/bits/fs_dir.h:612:3: note: ‘std::filesystem::__cxx11::end’ 612 | end(recursive_directory_iterator) noexcept | ^~~ /usr/include/c++/13/bits/ranges_base.h:137:10: note: ‘std::ranges::__cust_access::end’ 137 | void end(const auto&) = delete; | ^~~ answer.code:59:33: warning: pointer to a function used in arithmetic [-Wpointer-arith] 59 | for(auto [v, w] : link[u]) s[v].insert({f[u] + w, u}); | ^ answer.code:59:33: error: ‘begin’ was not declared in this scope answer.code:59:33: note: suggested alternatives: /usr/include/c++/13/valarray:1232:5: note: ‘std::begin’ 1232 | begin(const valarray<_Tp>& __va) noexcept | ^~~~~ /usr/include/c++/13/bits/ranges_base.h:489:44: note: ‘std::ranges::__cust::begin’ 489 | inline constexpr __cust_access::_Begin begin{}; | ^~~~~ /usr/include/c++/13/bits/fs_dir.h:607:3: note: ‘std::filesystem::__cxx11::begin’ 607 | begin(recursive_directory_iterator __iter) noexcept | ^~~~~ /usr/include/c++/13/bits/iterator_concepts.h:969:10: note: ‘std::ranges::__cust_access::begin’ 969 | void begin(const auto&) = delete; | ^~~~~ answer.code:59:33: error: ‘end’ was not declared in this scope 59 | for(auto [v, w] : link[u]) s[v].insert({f[u] + w, u}); | ^ answer.code:59:33: note: suggested alternatives: /usr/include/c++/13/valarray:1259:5: note: ‘std::end’ 1259 | end(const valarray<_Tp>& __va) noexcept ...