Borderou de evaluare (job #1956790)
Utilizator | Data | 7 aprilie 2017 01:07:38 | |
---|---|---|---|
Problema | Mesaj 3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void DFS(int, int)’:
user.cpp:32:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < G[node].size(); i++)
^
user.cpp: In function ‘void DFS2(int, int)’:
user.cpp:68:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j < G[node].size(); j++)
^
user.cpp:81:49: error: no matching function for call to ‘min(int, std::vector<int>::size_type)’
for(int j = 0; j < min(7, R[node].size()); j++)
^
user.cpp:81:49: 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/fstream:38,
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:81:49: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘std::vector<int>::size_type {aka unsigned int}’)
for(int j = 0; j < min(7, R[node].size()); j++)
^
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/fstream:38,
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:81:49: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘std::vector<int>::size_type {aka unsigned int}’)
for(int j = 0; j < min(7, R[node].size()); j++)
^
user.cpp:97:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j < G[node].size(); j++)
^
user.cpp:103:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k = 0; k < R[neighb].size(); k++)
^
user.cpp: In function ‘void Read()’:
user.cpp:15:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
^
user.cpp:19:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &x, &y);
^
user.cpp:23:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !