Borderou de evaluare (job #2799036)
Utilizator | Data | 12 noiembrie 2021 11:29:03 | |
---|---|---|---|
Problema | Parcurgere DFS - componente conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'void Graf::codBFS(int)':
main.cpp:79:13: error: 'g' was not declared in this scope
79 | g<<-1<<' ';
| ^
main.cpp:81:13: error: 'g' was not declared in this scope
81 | g<<distanta[i]<<' ';
| ^
main.cpp: In member function 'void Graf::codDFS(int)':
main.cpp:86:5: error: 'vizitat' was not declared in this scope
86 | vizitat[nod]=true;
| ^~~~~~~
main.cpp:89:13: error: 'DFS' was not declared in this scope
89 | DFS(i);
| ^~~
main.cpp: In member function 'void Graf::ComponenteConexe()':
main.cpp:96:12: error: 'vizitat' was not declared in this scope
96 | if(vizitat[i]==false)
| ^~~~~~~
main.cpp: In function 'void Dfs()':
main.cpp:129:10: warning: unused variable 'vizitat' [-Wunused-variable]
129 | bool vizitat[n+1] = {false};
| ^~~~~~~
main.cpp: In function 'int main()':
main.cpp:145:5: error: 'f' was not declared in this scope
145 | f.close();
| ^
main.cpp:146:5: error: 'g' was not declared in this scope
146 | g.close();
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !