Borderou de evaluare (job #1447729)

Utilizator Player1Player 1 Player1 Data 5 iunie 2015 04:09:20
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()’: user.cpp:30:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < A[nod].size(); i++) ^ user.cpp:34:35: error: ‘C’ was not declared in this scope Cost[A[nod][i]] = C[nod] + 1; ^ user.cpp: In function ‘int main()’: user.cpp:42: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:43: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:47: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:51: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?