Borderou de evaluare (job #1447725)

Utilizator Player1Player 1 Player1 Data 5 iunie 2015 03:52:09
Problema BFS - Parcurgere in latime Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void BFS(int)’: user.cpp:17:23: error: ‘n’ was not declared in this scope for (int i = 1; i <= n; i++) ^ user.cpp:18:9: error: ‘C’ was not declared in this scope C[i] = -1; ^ user.cpp: In function ‘int main()’: user.cpp:34:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("bfs.in", "r", stdin); ^ user.cpp:35:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("bfs.out", "w", stdout); ^ user.cpp:39:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d ", &N, &M, &Source); ^ user.cpp:43:32: 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?