Borderou de evaluare (job #1464115)

Utilizator dex4Darjan Catalin dex4 Data 22 iulie 2015 13:07:20
Problema Parcurgere DFS - componente conexe Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:1: error: ‘e’ does not name a type e ^ user.cpp: In function ‘void build()’: user.cpp:14:10: error: ‘nrNodes’ was not declared in this scope f >> nrNodes >> nrPairs; ^ user.cpp:14:21: error: ‘nrPairs’ was not declared in this scope f >> nrNodes >> nrPairs; ^ user.cpp:16:14: error: ‘x’ was not declared in this scope f >> x >> y; ^ user.cpp:16:19: error: ‘y’ was not declared in this scope f >> x >> y; ^ user.cpp: In function ‘void dfs(int)’: user.cpp:24:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<graph[x].size(); i++){ ^ user.cpp: In function ‘int main()’: user.cpp:34:21: error: ‘nrNodes’ was not declared in this scope for(int i=1; i<=nrNodes; i++) ^ user.cpp:36:13: error: ‘nrComps’ was not declared in this scope nrComps++; ^ user.cpp:40:10: error: ‘nrComps’ was not declared in this scope g << nrComps << "\n"; ^

Ceva nu functioneaza?