Borderou de evaluare (job #1604048)

Utilizator andreea_zahariaAndreea Zaharia andreea_zaharia Data 17 februarie 2016 22:01:17
Problema Lacusta Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:19:34: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=] scanf ("%d", &a[i][j]); ^ user.cpp:30:36: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (d[2][j] < d[2][mind1[2]]) { ^ user.cpp:35:40: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (d[2][j] < d[2][mind2[2]]) { ^ user.cpp:47:49: warning: array subscript has type ‘char’ [-Wchar-subscripts] d[i][j] += d[i - 1][mind1[i - 1]]; ^ user.cpp:50:49: warning: array subscript has type ‘char’ [-Wchar-subscripts] d[i][j] += d[i - 1][mind2[i - 1]]; ^ user.cpp:53:40: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (d[i][j] < d[i][mind1[i]]) { ^ user.cpp:58:44: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (d[i][j] < d[i][mind2[i]]) { ^ user.cpp:66:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] printf ("%d\n", d[N][mind1[N]] + a[N][M]); ^ user.cpp:69:48: warning: array subscript has type ‘char’ [-Wchar-subscripts] printf ("%d\n", a[N][M] + d[N][mind2[N]]); ^ user.cpp:13:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("lacusta.in", "r", stdin); ^ user.cpp:14:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("lacusta.out", "w", stdout); ^ user.cpp:16:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d%d", &N, &M); ^ user.cpp:19:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &a[i][j]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
112ms620kbIncorect00
28ms552kbIncorect0
30ms356kbOK10
40ms352kbOK1030
50ms416kbOK10
60ms376kbOK10
70ms336kbIncorect00
80ms404kbIncorect0
90ms412kbIncorect0
1012ms588kbIncorect0
Punctaj total30

Ceva nu functioneaza?