Borderou de evaluare (job #2928633)
Utilizator | Data | 23 octombrie 2022 15:46:53 | |
---|---|---|---|
Problema | BFS - Parcurgere in latime | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:1: error: expected ',' or ';' before 'ofstream'
5 | ofstream g("bfs.out");
| ^~~~~~~~
main.cpp: In function 'void BFS(int)':
main.cpp:7:14: error: 'g' was not declared in this scope
7 | #define cout g
| ^
main.cpp:36:4: note: in expansion of macro 'cout'
36 | cout<<"-1 ";
| ^~~~
main.cpp:7:14: error: 'g' was not declared in this scope
7 | #define cout g
| ^
main.cpp:38:4: note: in expansion of macro 'cout'
38 | cout<<visited[i].second<<' ';
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !