Borderou de evaluare (job #1691376)
Utilizator | Data | 18 aprilie 2016 10:14:27 | |
---|---|---|---|
Problema | BFS - Parcurgere in latime | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:12:1: error: ‘f’ does not name a type
f.open("bfs.in");
^
user.cpp:13:1: error: ‘g’ does not name a type
g.open("bfs.out");
^
user.cpp: In function ‘void bfs(int)’:
user.cpp:32:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < graph[elem].size();i++)
^
user.cpp:36:16: error: ‘element’ was not declared in this scope
cost[graph[element[i]]] = cost[element] + 1;
^
user.cpp: In function ‘int main()’:
user.cpp:47:7: error: ‘i’ was not declared in this scope
for (i = 0; i < m; i++)
^
user.cpp:54:7: error: ‘i’ was not declared in this scope
for (i = 0; i < n; i++)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !