Borderou de evaluare (job #3321009)
| Utilizator | Data | 7 noiembrie 2025 21:29:50 | |
|---|---|---|---|
| Problema | Parcurgere DFS - componente conexe | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:6:17: error: 'n' was not declared in this scope; did you mean 'yn'?
6 | vector<int> adj[n];
| ^
| yn
main.cpp: In function 'void dfs(int)':
main.cpp:11:18: error: 'adj' was not declared in this scope
11 | for(auto x : adj[nod])
| ^~~
main.cpp: In function 'int main()':
main.cpp:26:9: error: 'adj' was not declared in this scope
26 | adj[a].push_back(b);
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
