divyang4481 / mipt-hw

Automatically exported from code.google.com/p/mipt-hw
0 stars 0 forks source link

task11_TRBTree Жилинская #265

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
/zhilinskaya_valentina/task11_TRBTree/

Original issue reported on code.google.com by zhilinskaya.valentina on 25 May 2013 at 11:38

GoogleCodeExporter commented 9 years ago
Не собирается:
TRBTree.cpp: In member function 'const TRBTree<T, TCompare>::TIterator 
TRBTree<T, TCompare>::TIterator::operator--(int)':
TRBTree.cpp:279:73: error: 'itr' was not declared in this scope
TRBTree.cpp: In constructor 'TRBTree<T, TCompare>::TRBTree(const TRBTree<T>&)':
TRBTree.cpp:306:8: error: need 'typename' before 'TRBTree<T>::TCIterator' 
because 'TRBTree<T>' is a dependent scope
TRBTree.cpp:306:31: error: expected ';' before 'it'
TRBTree.cpp:306:50: error: 'it' was not declared in this scope
TRBTree.cpp: In member function 'TRBTree<T, TCompare>& TRBTree<T, 
TCompare>::operator=(const TRBTree<T>&)':
TRBTree.cpp:313:8: error: need 'typename' before 'TRBTree<T>::TCIterator' 
because 'TRBTree<T>' is a dependent scope
TRBTree.cpp:313:31: error: expected ';' before 'it'
TRBTree.cpp:313:50: error: 'it' was not declared in this scope
TRBTree.cpp: In instantiation of 'TRBTree<T, TCompare>::TRBTree() [with T = 
int; TCompare = std::less<int>]':
TRBTree.cpp:449:15:   required from here
TRBTree.cpp:37:11: warning: 'TRBTree<int>::cmp' will be initialized after 
[-Wreorder]
TRBTree.cpp:36:6: warning:   'int TRBTree<int>::size' [-Wreorder]
TRBTree.cpp:303:2: warning:   when initialized here [-Wreorder]
TRBTree.cpp: In instantiation of 'TRBTree<T, TCompare>::TRBTree(const 
TRBTree<T>&) [with T = int; TCompare = std::less<int>]':
TRBTree.cpp:453:20:   required from here
TRBTree.cpp:37:11: warning: 'TRBTree<int>::cmp' will be initialized after 
[-Wreorder]
TRBTree.cpp:36:6: warning:   'int TRBTree<int>::size' [-Wreorder]
TRBTree.cpp:304:2: warning:   when initialized here [-Wreorder]
TRBTree.cpp:306:48: error: dependent-name 'TRBTree<T>::TCIterator' is parsed as 
a non-type, but instantiation yields a type
TRBTree.cpp:306:48: note: say 'typename TRBTree<T>::TCIterator' if a type is 
meant
TRBTree.cpp: In instantiation of 'TRBTree<T, TCompare>& TRBTree<T, 
TCompare>::operator=(const TRBTree<T>&) [with T = int; TCompare = 
std::less<int>; TRBTree<T, TCompare> = TRBTree<int>]':
TRBTree.cpp:464:10:   required from here
TRBTree.cpp:313:48: error: dependent-name 'TRBTree<T>::TCIterator' is parsed as 
a non-type, but instantiation yields a type
TRBTree.cpp:313:48: note: say 'typename TRBTree<T>::TCIterator' if a type is 
meant

Original comment by aivyu...@gmail.com on 26 May 2013 at 3:00

GoogleCodeExporter commented 9 years ago

Original comment by zhilinskaya.valentina on 26 May 2013 at 4:12

GoogleCodeExporter commented 9 years ago
Не вижу тестов на утечки памяти.

Решение не принято.

Original comment by aivyu...@gmail.com on 26 May 2013 at 8:34

GoogleCodeExporter commented 9 years ago

Original comment by zhilinskaya.valentina on 27 May 2013 at 12:03

GoogleCodeExporter commented 9 years ago
Решение принято.

Оценка: 0.6 балла.

Original comment by aivyu...@gmail.com on 27 May 2013 at 10:25