Borderou de evaluare (job #1230797)

Utilizator dariusdariusMarian Darius dariusdarius Data 19 septembrie 2014 11:39:06
Problema Treespotting Status done
Runda Infoarena Cup 2014 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:14:5: error: ‘int index’ redeclared as different kind of symbol int index; ^ In file included from /usr/include/c++/4.8/cstring:42:0, from user.cpp:1: /usr/include/string.h:482:1: error: previous declaration of ‘const char* index(const char*, int)’ index (__const char *__s, int __c) __THROW ^ user.cpp: In function ‘int cmp(const int&, const int&)’: user.cpp:16:39: error: no matching function for call to ‘make_pair(const int&, <unresolved overloaded function type>)’ return (s.count(make_pair(a, index)) || s.count(make_pair(index, a))) > (s.count(make_pair(b, index)) || s.count(make_pair(index, b))); ^ user.cpp:16:39: note: candidate is: In file included from /usr/include/c++/4.8/utility:70:0, from /usr/include/c++/4.8/algorithm:60, from user.cpp:3: /usr/include/c++/4.8/bits/stl_pair.h:276:5: note: template<class _T1, class _T2> constexpr std::pair<typename std::__decay_and_strip<_Tp>::__type, typename std::__decay_and_strip<_T2>::__type> std::make_pair(_T1&&, _T2&&) make_pair(_T1&& __x, _T2&& __y) ^ /usr/include/c++/4.8/bits/stl_pair.h:276:5: note: template argument deduction/substitution failed: user.cpp:16:39: note: couldn't deduce template parameter ‘_T2’ return (s.count(make_pair(a, index)) || s.count(make_pair(index, a))) > (s.count(make_pair(b, index)) || s.count(make_pair(index, b))); ^ user.cpp:16:71: error: no matching function for call to ‘make_pair(<unresolved overloaded function type>, const int&)’ return (s.count(make_pair(a, index)) || s.count(make_pair(index, a))) > (s.count(make_pair(b, index)) || s.count(make_pair(index, b))); ^ user.cpp:16:71: note: candidate is: In file included from /usr/include/c++/4.8/utility:70:0, from /usr/include/c++/4.8/algorithm:60, from user.cpp:3: /usr/include/c++/4.8/bits/stl_pair.h:276:5: note: template<class _T1, class _T2> constexpr std::pair<typename std::__decay_and_strip<_Tp>::__type, typename std::__decay_and_strip<_T2>::__type> std::make_pair(_T1&&, _T2&&) make_pair(_T1&& __x, _T2&& __y) ^ /usr/include/c++/4.8/bits/stl_pair.h:276:5: note: template argument deduction/substitution failed: user.cpp:16:71: note: couldn't deduce template parameter ‘_T1’ return (s.count(make_pair(a, index)) || s.count(make_pair(index, a))) > (s.count(make_pair(b, index)) || s.count(make_pair(index, b))); ^ user.cpp:16:104: error: no matching function for call to ‘make_pair(const int&, <unresolved overloaded function type>)’ return (s.count(make_pair(a, index)) || s.count(make_pair(index, a))) > (s.count(make_pair(b, index)) || s.count(make_pair(index, b))); ^ user.cpp:16:104: note: candidate is: In file included from /usr/include/c++/4.8/utility:70:0, from /usr/include/c++/4.8/algorithm:60, from user.cpp:3: /usr/include/c++/4.8/bits/stl_pair.h:276:5: note: template<class _T1, class _T2> constexpr std::pair<typename std::__decay_and_strip<_Tp>::__type, typename std::__decay_and_strip<_T2>::__type> std::make_pair(_T1&&, _T2&&) make_pair(_T1&& __x, _T2&& __y) ^ /usr/include/c++/4.8/bits/stl_pair.h:276:5: note: template argument deduction/substitution failed: user.cpp:16:104: note: couldn't deduce template parameter ‘_T2’ return (s.count(make_pair(a, index)) || s.count(make_pair(index, a))) > (s.count(make_pair(b, index)) || s.count(make_pair(index, b)));

Ceva nu functioneaza?