Borderou de evaluare (job #3316869)

Utilizator mihneadrgDragomir Mihnea mihneadrg Data 21 octombrie 2025 13:04:27
Problema Parcurgere DFS - componente conexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:25: error: expected ',' or ';' before ':' token 8 | ofstream fout("dfs.out"): | ^ main.cpp:14:1: error: expected initializer before 'void' 14 | void dfs(int u) { | ^~~~ main.cpp: In function 'void solve()': main.cpp:24:16: error: 'N' was not declared in this scope 24 | fin >> N >> M; | ^ main.cpp:24:21: error: 'M' was not declared in this scope 24 | fin >> N >> M; | ^ main.cpp:33:18: error: 'vizitat' was not declared in this scope 33 | if (!vizitat[i]) { | ^~~~~~~ main.cpp:35:17: error: 'dfs' was not declared in this scope 35 | dfs(i); | ^~~ Non zero exit status: 1

Ceva nu functioneaza?