Borderou de evaluare (job #2301894)
Utilizator | Data | 13 decembrie 2018 17:14:42 | |
---|---|---|---|
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 function 'int main()':
main.cpp:33:12: error: conflicting declaration 'Graph* g'
Graph *g = new Graph(n);
^
main.cpp:30:14: note: previous declaration as 'std::ofstream g'
ofstream g("dfs.out");
^
main.cpp:36:10: error: base operand of '->' has non-pointer type 'std::ofstream {aka std::basic_ofstream<char>}'
g->addEdge(x,y);
^~
main.cpp:44:14: error: base operand of '->' has non-pointer type 'std::ofstream {aka std::basic_ofstream<char>}'
g->DFS(i,visited);
^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !