Borderou de evaluare (job #1503045)
Utilizator | Data | 15 octombrie 2015 14:58:21 | |
---|---|---|---|
Problema | Yamstp | Status | done |
Runda | Arhiva ICPC | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘std::pair<long long int, std::vector<int> > reduceTrie(Trie*, int)’:
user.cpp:39:54: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < right.second.second.size(); i++)
^
user.cpp:46:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < right.second.second.size(); i++)
^
user.cpp:47:91: error: no matching function for call to ‘min(long long int&, int)’
minGs = min(minGs, (1 << level) + match(left.first, level, right.second.second[i]));
^
user.cpp:47:91: note: candidates are:
In file included from /usr/include/c++/4.8/algorithm:61:0,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_algobase.h:193:5: note: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)
min(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/4.8/bits/stl_algobase.h:193:5: note: template argument deduction/substitution failed:
user.cpp:47:91: note: deduced conflicting types for parameter ‘const _Tp’ (‘long long int’ and ‘int’)
minGs = min(minGs, (1 << level) + match(left.first, level, right.second.second[i]));
^
In file included from /usr/include/c++/4.8/algorithm:61:0,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_algobase.h:239:5: note: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/include/c++/4.8/bits/stl_algobase.h:239:5: note: template argument deduction/substitution failed:
user.cpp:47:91: note: deduced conflicting types for parameter ‘const _Tp’ (‘long long int’ and ‘int’)
minGs = min(minGs, (1 << level) + match(left.first, level, right.second.second[i]));
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_algo.h:4244:5: note: template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)
min(initializer_list<_Tp> __l)
^
/usr/include/c++/4.8/bits/stl_algo.h:4244:5: note: template argument deduction/substitution failed:
user.cpp:47:91: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘long long int’
minGs = min(minGs, (1 << level) + match(left.first, level, right.second.second[i]));
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_algo.h:4249:5: note: template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)
min(initializer_list<_Tp> __l, _Compare __comp)
^
/usr/include/c++/4.8/bits/stl_algo.h:4249:5: note: template argument deduction/substitution failed:
user.cpp:47:91: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘long long int’
minGs = min(minGs, (1 << level) + match(left.first, level, right.second.second[i]));
^
user.cpp: In function ‘int main()’:
user.cpp:73:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("yamstp.out", "w", stdout);
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !