Borderou de evaluare (job #1436325)
Utilizator | Data | 15 mai 2015 19:01:52 | |
---|---|---|---|
Problema | Fotbal2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void euler(int)’:
user.cpp:12:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0;i<graph[vertex].size();++i)
^
user.cpp: In function ‘int main()’:
user.cpp:31:51: error: no matching function for call to ‘make_pair(int&, int&)’
graph[x].push_back(std::make_pair<int, int>(y, i));
^
user.cpp:31:51: note: candidate is:
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0,
from /usr/include/c++/4.8/bits/char_traits.h:39,
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:1:
/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:31:51: note: cannot convert ‘y’ (type ‘int’) to type ‘int&&’
graph[x].push_back(std::make_pair<int, int>(y, i));
^
user.cpp:32:51: error: no matching function for call to ‘make_pair(int&, int&)’
graph[y].push_back(std::make_pair<int, int>(x, i));
^
user.cpp:32:51: note: candidate is:
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0,
from /usr/include/c++/4.8/bits/char_traits.h:39,
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:1:
/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:32:51: note: cannot convert ‘x’ (type ‘int’) to type ‘int&&’
graph[y].push_back(std::make_pair<int, int>(x, i));
^
user.cpp:41:54: error: no matching function for call to ‘make_pair(int&, int&)’
graph[0].push_back(std::make_pair<int, int>(i, ++k));
^
user.cpp:41:54: note: candidate is:
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0,
from /usr/include/c++/4.8/bits/char_traits.h:39,
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:1:
/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&&)
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !