Borderou de evaluare (job #1254276)

Utilizator MrWindowsBill Gates MrWindows Data 2 noiembrie 2014 14:27:18
Problema Alee Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:30:71: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf ("%d %d %d %d", &intrare.x, &intrare.y, &iesire.x, &iesire.y); // aici citim locul de intrare si de iesire din parc ^ user.cpp:30:71: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] user.cpp:30:71: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:30:71: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘short int*’ [-Wformat=] user.cpp:21:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("alee.in", "r", stdin); // deschidem fisierul pentru citire ^ user.cpp:22:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d %d", &N, &C); // citim dimensiunea parcului si numarul de copaci ^ user.cpp:26:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d %d", &x, &y); // citim coordonatele copacilor ^ user.cpp:30:72: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d %d %d %d", &intrare.x, &intrare.y, &iesire.x, &iesire.y); // aici citim locul de intrare si de iesire din parc ^ user.cpp:64:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("alee.out", "w", stdout); // deschidem fisierul pentru scriere ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms272kbIncorect0
20ms280kbIncorect0
30ms312kbIncorect0
40ms280kbKilled by signal 11(SIGSEGV).0
50ms352kbIncorect0
60ms548kbIncorect0
74ms560kbIncorect0
80ms620kbIncorect0
90ms424kbIncorect0
100ms348kbIncorect0
Punctaj total0

Ceva nu functioneaza?