QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#374171 | #4071. Galactic Collegiate Programming Contest | ZhaoZiLong | Compile Error | / | / | C++98 | 1.5kb | 2024-04-02 12:31:56 | 2024-04-02 12:31:57 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘int main()’: answer.code:23:18: error: ‘it’ does not name a type; did you mean ‘int’? 23 | for(auto it = mp.begin(); it != mp.end(); ++it){ | ^~ | int answer.code:23:34: error: expected ‘;’ before ‘it’ 23 | for(auto it = mp.begin(); it != mp.end(); ++it){ | ^~~ | ; answer.code:23:35: error: ‘it’ was not declared in this scope; did you mean ‘t’? 23 | for(auto it = mp.begin(); it != mp.end(); ++it){ | ^~ | t answer.code:26:31: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions] 26 | scoreboard.insert({it->second, it->first}); | ^ answer.code:26:30: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions] 26 | scoreboard.insert({it->second, it->first}); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ answer.code:26:30: error: cannot convert ‘<brace-enclosed initializer list>’ to ‘__gnu_pbds::detail::rb_tree_map<int, int, std::greater_equal<int>, __gnu_pbds::detail::tree_traits<int, int, std::greater_equal<int>, __gnu_pbds::tree_order_statistics_node_update, __gnu_pbds::rb_tree_tag, std::allocator<char> >, std::allocator<char> >::const_reference’ {aka ‘const std::pair<const int, int>&’} In file included from /usr/include/c++/13/ext/pb_ds/detail/rb_tree_map_/rb_tree_.hpp:235, from /usr/include/c++/13/ext/pb_ds/detail/container_base_dispatch.hpp:68, from /usr/include/c++/13/ext/pb_ds/assoc_container.hpp:48, from /usr/include/x86_64-linux-gnu/c++/13/bits/extc++.h:74, from answer.code:2: /usr/include/c++/13/ext/pb_ds/detail/rb_tree_map_/insert_fn_imps.hpp:46:24: note: initializing argument 1 of ‘std::pair<typename __gnu_pbds::detail::bin_search_tree_map<Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc>::point_iterator, bool> __gnu_pbds::detail::rb_tree_map<Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc>::insert(const_reference) [with Key = int; Mapped = int; Cmp_Fn = std::greater_equal<int>; Node_And_It_Traits = __gnu_pbds::detail::tree_traits<int, int, std::greater_equal<int>, __gnu_pbds::tree_order_statistics_node_update, __gnu_pbds::rb_tree_tag, std::allocator<char> >; _Alloc = std::allocator<char>; typename __gnu_pbds::detail::bin_search_tree_map<Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc>::point_iterator = __gnu_pbds::detail::bin_search_tree_it_<__gnu_pbds::detail::rb_tree_node_<std::pair<const int, int>, long unsigned int, std::allocator<char> >*, std::pair<const int, int>, std::pair<const int, int>*, const std::pair<const int, int>*, std::pair<const int, int>&, const std::pair<const int, int>&, true, std::allocator<char> >; const_reference = const std::pair<const int, int>&]’ 46 | insert(const_reference r_value) | ~~~~~~~~~~~~~~~~^~~~~~~ answer.code:29:18: error: ‘it’ does not name a type; did you mean ‘int’? 29 | for(auto it = penalty.begin(); it != penalty.end(); ++it){ | ^~ | int answer.code:29:39: error: expected ‘;’ before ‘it’ 29 | for(auto it = penalty.begin(); it != penalty.end(); ++it){ | ^~~ | ; answer.code:29:40: error: ‘it’ was not declared in this scope; did you mean ‘t’? 29 | for(auto it = penalty.begin(); it != penalty.end(); ++it){ | ^~ | t answer.code:32:24: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions] 32 | pen.insert({it->second, it->first}); | ^ answer.code:32:23: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions] 32 | pen.insert({it->second, it->first}); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ answer.code:32:23: error: cannot convert ‘<brace-enclosed initializer list>’ to ‘__gnu_pbds::detail::rb_tree_map<int, int, std::less_equal<int>, __gnu_pbds::detail::tree_traits<int, int, std::less_equal<int>, __gnu_pbds::tree_order_statistics_node_update, __gnu_pbds::rb_tree_tag, std::allocator<char> >, std::allocator<char> >::const_reference’ {aka ‘const std::pair<const int, int>&’} /usr/include/c++/13/ext/pb_ds/detail/rb_tree_map_/insert_fn_imps.hpp:46:24: note: initializing argument 1 of ‘std::pair<typename __gnu_pbds::detail::bin_search_tree_map<Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc>::point_iterator, bool> __gnu_pbds::detail::rb_tree_map<Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc>::insert(const_reference...