Borderou de evaluare (job #2018833)
Utilizator | Data | 6 septembrie 2017 00:30:15 | |
---|---|---|---|
Problema | Treemis | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void match(std::vector<int>&, std::vector<int>&)’:
user.cpp:30:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < small->size(); ++i)
^
user.cpp: In function ‘void dfs(int)’:
user.cpp:38:11: warning: narrowing conversion of ‘-1.000000001e+9’ from ‘double’ to ‘int’ inside { } [-Wnarrowing]
up[x] = {-1e9-1}, down[x] = {1e9+1};
^
user.cpp:38:11: warning: narrowing conversion of ‘-1.000000001e+9’ from ‘double’ to ‘int’ inside { } [-Wnarrowing]
user.cpp:38:31: warning: narrowing conversion of ‘1.000000001e+9’ from ‘double’ to ‘int’ inside { } [-Wnarrowing]
up[x] = {-1e9-1}, down[x] = {1e9+1};
^
user.cpp:38:31: warning: narrowing conversion of ‘1.000000001e+9’ from ‘double’ to ‘int’ inside { } [-Wnarrowing]
user.cpp:48:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < up[y].size(); ++i) up[x] = min(up[x], up[y]);
^
user.cpp:49:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < down[y].size(); ++i) down[x] = max(down[x], down[y]); }
^
user.cpp:54:54: error: no matching function for call to ‘max(<brace-enclosed initializer list>)’
rez = max({rez, up[x].size()-1, down[x].size()-1}); }
^
user.cpp:54:54: note: candidates are:
In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/sstream:38,
from /usr/include/c++/4.8/complex:45,
from /usr/include/c++/4.8/ccomplex:38,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:52,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template argument deduction/substitution failed:
user.cpp:54:54: note: candidate expects 2 arguments, 1 provided
rez = max({rez, up[x].size()-1, down[x].size()-1}); }
^
In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/sstream:38,
from /usr/include/c++/4.8/complex:45,
from /usr/include/c++/4.8/ccomplex:38,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:52,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: template argument deduction/substitution failed:
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !