Borderou de evaluare (job #3318453)
| Utilizator | Data | 28 octombrie 2025 12:42:32 | |
|---|---|---|---|
| Problema | Parcurgere DFS - componente conexe | 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 fin("dfs.in");
| ^~~~~~~~
main.cpp:4:1: error: 'ofstream' does not name a type
4 | ofstream fout("dfs.out");
| ^~~~~~~~
main.cpp: In function 'void DFS(int)':
main.cpp:12:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
12 | for(int j=0;j<L[nod].size();j++)
| ~^~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:19:5: error: 'fin' was not declared in this scope; did you mean 'sin'?
19 | fin>>n>>m;
| ^~~
| sin
main.cpp:36:5: error: 'fout' was not declared in this scope
36 | fout<<cc;
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
