Borderou de evaluare (job #1447724)

Utilizator Player1Player 1 Player1 Data 5 iunie 2015 03:50:23
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:31: error: ‘memset’ was not declared in this scope memset(Cost, -1, sizeof(Cost)); ^ 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?