Borderou de evaluare (job #1494232)

Utilizator deea101Andreea deea101 Data 30 septembrie 2015 20:57:01
Problema Hashuri Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In instantiation of ‘void AVL<T, U>::comp_height(node<T, U>*) [with T = int; U = bool]’: user.cpp:80:19: required from ‘node<T, U>* AVL<T, U>::balance(node<T, U>*) [with T = int; U = bool]’ user.cpp:33:22: required from ‘node<T, U>* AVL<T, U>::priv_insert(node<T, U>*, const T&, const U&) [with T = int; U = bool]’ user.cpp:116:36: required from ‘void AVL<T, U>::insert(const T&, const U&) [with T = int; U = bool]’ user.cpp:146:36: required from here user.cpp:76:44: error: ‘max’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] root->h = 1 + max(root->l->h, root->r->h); ^ In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:129: /usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: ‘template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)’ declared here, later in the translation unit max(const _Tp& __a, const _Tp& __b, _Compare __comp) ^

Ceva nu functioneaza?