Borderou de evaluare (job #1976260)
Utilizator | Data | 2 mai 2017 23:43:28 | |
---|---|---|---|
Problema | Carte | Status | done |
Runda | Arhiva ICPC | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:35:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1; i <= pattern.size(); i++)
^
user.cpp:40:13: warning: unused variable ‘nr_sol’ [-Wunused-variable]
int nr_sol = 0;
^
user.cpp:58:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < text.size(); i++)
^
user.cpp:68:22: error: no matching function for call to ‘swap(std::vector<short int> [3010], std::vector<int> [3010])’
swap(first, e);
^
user.cpp:68:22: note: candidates are:
In file included from /usr/include/c++/4.8/bits/stl_pair.h:59:0,
from /usr/include/c++/4.8/bits/stl_algobase.h:64,
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/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:1:
/usr/include/c++/4.8/bits/move.h:166:5: note: template<class _Tp> void std::swap(_Tp&, _Tp&)
swap(_Tp& __a, _Tp& __b)
^
/usr/include/c++/4.8/bits/move.h:166:5: note: template argument deduction/substitution failed:
user.cpp:68:22: note: deduced conflicting types for parameter ‘_Tp’ (‘std::vector<short int> [3010]’ and ‘std::vector<int> [3010]’)
swap(first, e);
^
In file included from /usr/include/c++/4.8/bits/stl_pair.h:59:0,
from /usr/include/c++/4.8/bits/stl_algobase.h:64,
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/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:1:
/usr/include/c++/4.8/bits/move.h:185:5: note: template<class _Tp, unsigned int _Nm> void std::swap(_Tp (&)[_Nm], _Tp (&)[_Nm])
swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
^
/usr/include/c++/4.8/bits/move.h:185:5: note: template argument deduction/substitution failed:
user.cpp:68:22: note: deduced conflicting types for parameter ‘_Tp’ (‘std::vector<short int>’ and ‘std::vector<int>’)
swap(first, e);
^
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/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_pair.h:254:5: note: template<class _T1, class _T2> void std::swap(std::pair<_T1, _T2>&, std::pair<_T1, _T2>&)
swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y)
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !