Borderou de evaluare (job #1717682)

Utilizator stefanchistefan chiper stefanchi Data 15 iunie 2016 16:02:33
Problema Parcurgere DFS - componente conexe Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void citire()’: user.cpp:18:9: error: ‘g’ was not declared in this scope g[x].push_back(y); ^ user.cpp: In function ‘void dfs(int)’: user.cpp:28:14: error: ‘g’ was not declared in this scope for(it = g[x].begin(), it != g[x].end(), ++it) ^ user.cpp:28:50: error: expected ‘;’ before ‘)’ token for(it = g[x].begin(), it != g[x].end(), ++it) ^ user.cpp:33:1: error: expected primary-expression before ‘}’ token } ^ user.cpp:33:1: error: expected ‘;’ before ‘}’ token user.cpp:33:1: error: expected primary-expression before ‘}’ token user.cpp:33:1: error: expected ‘)’ before ‘}’ token user.cpp:33:1: error: expected primary-expression before ‘}’ token user.cpp:33:1: error: expected ‘;’ before ‘}’ token user.cpp: In function ‘void citire()’: user.cpp:12:26: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("","r",stdin); ^ user.cpp:13:27: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("","w",stdout); ^ user.cpp:14:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &n , &m); ^ user.cpp:17:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&x,&y); ^

Ceva nu functioneaza?