Borderou de evaluare (job #1706755)
Utilizator | Data | 23 mai 2016 08:55:23 | |
---|---|---|---|
Problema | BFS - Parcurgere in latime | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void bfs(int)’:
user.cpp:21:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<graph[element].size();i++) {
^
user.cpp:24:38: error: no match for call to ‘(std::vector<bool>) (__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type&)’
visited(graph[element][i])=true;
^
user.cpp: In function ‘int main()’:
user.cpp:43:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<visited.size() && i<n;i++)
^
user.cpp:32:14: warning: unused variable ‘nr’ [-Wunused-variable]
int x,y,nr=0;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !