Borderou de evaluare (job #1988271)

Utilizator retrogradLucian Bicsi retrograd Data 2 iunie 2017 16:07:51
Problema Euro Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In member function ‘void LinearFunSet<T>::AddFunction(int, int)’: user.cpp:117:13: error: no match for ‘operator!’ (operand type is ‘std::pair<__gnu_pbds::detail::bin_search_tree_const_it_<__gnu_pbds::detail::rb_tree_node_<long long int, unsigned int, std::allocator<char> >*, long long int, long long int*, const long long int*, long long int&, const long long int&, true, std::allocator<char> >, bool>’) if (!fenwick.insert(pos) and intercepts[pos] >= intercept) ^ user.cpp:117:13: note: candidate is: user.cpp:117:13: note: operator!(bool) <built-in> user.cpp:117:13: note: no known conversion for argument 1 from ‘std::pair<__gnu_pbds::detail::bin_search_tree_const_it_<__gnu_pbds::detail::rb_tree_node_<long long int, unsigned int, std::allocator<char> >*, long long int, long long int*, const long long int*, long long int&, const long long int&, true, std::allocator<char> >, bool>’ to ‘bool’ user.cpp: In instantiation of ‘LinearFunSet<T>::LinearFunSet(std::vector<_Tp>) [with T = long long int]’: user.cpp:145:44: required from here user.cpp:34:59: error: no matching function for call to ‘__gnu_pbds::tree<long long int, __gnu_pbds::null_type, std::less<long long int>, __gnu_pbds::rb_tree_tag, __gnu_pbds::tree_order_statistics_node_update>::tree(std::vector<long long int>::size_type)’ LinearFunSet(vector<T> slopes) : fenwick(slopes.size()) { ^ user.cpp:34:59: note: candidates are: In file included from user.cpp:13:0: /usr/include/c++/4.8/ext/pb_ds/assoc_container.hpp:667:5: note: __gnu_pbds::tree<Key, Mapped, Cmp_Fn, Tag, Node_Update, _Alloc>::tree(const __gnu_pbds::tree<Key, Mapped, Cmp_Fn, Tag, Node_Update, _Alloc>&) [with Key = long long int; Mapped = __gnu_pbds::null_type; Cmp_Fn = std::less<long long int>; Tag = __gnu_pbds::rb_tree_tag; Node_Update = __gnu_pbds::tree_order_statistics_node_update; _Alloc = std::allocator<char>] tree(const tree& other) ^ /usr/include/c++/4.8/ext/pb_ds/assoc_container.hpp:667:5: note: no known conversion for argument 1 from ‘std::vector<long long int>::size_type {aka unsigned int}’ to ‘const __gnu_pbds::tree<long long int, __gnu_pbds::null_type, std::less<long long int>, __gnu_pbds::rb_tree_tag, __gnu_pbds::tree_order_statistics_node_update>&’ /usr/include/c++/4.8/ext/pb_ds/assoc_container.hpp:663:5: note: template<class It> __gnu_pbds::tree<Key, Mapped, Cmp_Fn, Tag, Node_Update, _Alloc>::tree(It, It, const cmp_fn&) tree(It first, It last, const cmp_fn& c) ^ /usr/include/c++/4.8/ext/pb_ds/assoc_container.hpp:663:5: note: template argument deduction/substitution failed: user.cpp:34:59: note: candidate expects 3 arguments, 1 provided LinearFunSet(vector<T> slopes) : fenwick(slopes.size()) { ^ In file included from user.cpp:13:0: /usr/include/c++/4.8/ext/pb_ds/assoc_container.hpp:655:5: note: template<class It> __gnu_pbds::tree<Key, Mapped, Cmp_Fn, Tag, Node_Update, _Alloc>::tree(It, It) tree(It first, It last) ^ /usr/include/c++/4.8/ext/pb_ds/assoc_container.hpp:655:5: note: template argument deduction/substitution failed: user.cpp:34:59: note: candidate expects 2 arguments, 1 provided LinearFunSet(vector<T> slopes) : fenwick(slopes.size()) { ^ In file included from user.cpp:13:0: /usr/include/c++/4.8/ext/pb_ds/assoc_container.hpp:648:5: note: __gnu_pbds::tree<Key, Mapped, Cmp_Fn, Tag, Node_Update, _Alloc>::tree(const cmp_fn&) [with Key = long long int; Mapped = __gnu_pbds::null_type; Cmp_Fn = std::less<long long int>; Tag = __gnu_pbds::rb_tree_tag; Node_Update = __gnu_pbds::tree_order_statistics_node_update; _Alloc = std::allocator<char>; __gnu_pbds::tree<Key, Mapped, Cmp_Fn, Tag, Node_Update, _Alloc>::cmp_fn = std::less<long long int>] tree(const cmp_fn& c) ^ /usr/include/c++/4.8/ext/pb_ds/assoc_container.hpp:648:5: note: no known conversion for argument 1 from ‘std::vector<long long int>::size_type {aka unsigned int}’ to ‘const cmp_fn& {aka const std::less<long long int>&}’ /usr/include/c++/4.8/ext/pb_ds/assoc_container.hpp:644:5: note: __gnu_pbds::tree<Key, Mapped, Cmp_Fn, Tag, Node_Update, _Alloc>::tree() [with Key = long long int; Mapped = __gnu_pbds::null_type; Cmp_Fn = std::less<long long int>; Tag = __gnu_pbds::rb_tree_tag; Node_Update = __gnu_pbds::tree_order_statistics_node_update; _Alloc = std::allocator<char>] tree() { } ^ /usr/include/c++/4.8/ext/pb_ds/assoc_container.hpp:644:5: note: candidate expects 0 arguments, 1 provided user.cpp: In function ‘int main()’: user.cpp:126:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("euro.in", "r", stdin); ^ user.cpp:127:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("euro.out", "w", stdout); ^

Ceva nu functioneaza?