Borderou de evaluare (job #3370931)
| Utilizator | Data | 27 octombrie 2026 22:03:49 | |
|---|---|---|---|
| Problema | BFS - Parcurgere in latime | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:3:1: error: 'ifstream' does not name a type
3 | ifstream in("bfs.in");
| ^~~~~~~~
main.cpp:4:1: error: 'ofstream' does not name a type
4 | ofstream out("bfs.out");
| ^~~~~~~~
main.cpp: In function 'void read()':
main.cpp:12:9: error: 'in' was not declared in this scope; did you mean 'yn'?
12 | in>>noduri>>muchii>>nod_dat;
| ^~
| yn
main.cpp:16:17: error: 'graf' was not declared in this scope
16 | graf[x].push_back(y);
| ^~~~
main.cpp: In function 'void bfs(int, int)':
main.cpp:24:20: error: 'cnt' was not declared in this scope; did you mean 'int'?
24 | if(cnt < minim)
| ^~~
| int
main.cpp:28:37: error: 'graf' was not declared in this scope
28 | for(int nod_vecin : graf[nod])
| ^~~~
main.cpp:23:11: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
23 | if(nod == nod_cautat)
| ^
main.cpp: In function 'int main()':
main.cpp:49:17: error: 'cnt' was not declared in this scope; did you mean 'int'?
49 | cnt=0;
| ^~~
| int
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
