Borderou de evaluare (job #993763)

Utilizator Stefex09Stefan Teodorescu Stefex09 Data 4 septembrie 2013 13:50:23
Problema Zmeu2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void BFS()’: user.cpp:39:27: warning: narrowing conversion of ‘capete’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing] now = state {1, capete}; ^ user.cpp:46:29: error: ‘Best’ was not declared in this scope Ans = min (Ans, Best[povesti][now.left]); ^ user.cpp: In function ‘int main()’: user.cpp:76:48: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf ("%d %d", duratie + i, taiate + i); ^ user.cpp:76:48: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] user.cpp:68:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("zmeu2.in", "r", stdin); ^ user.cpp:69:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("zmeu2.out", "w", stdout); ^ user.cpp:71:52: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d %d %d", &capete, &povesti, &cupluri); ^ user.cpp:76:49: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d %d", duratie + i, taiate + i); ^ user.cpp:80:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d %d", &a, &b); ^

Ceva nu functioneaza?