Borderou de evaluare (job #1216040)

Utilizator Kerriganamihut Kerrigan Data 3 august 2014 03:10:59
Problema Luna Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 15

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:24:97: warning: unused variable ‘x’ [-Wunused-variable] int n, m, k, Moon[nmax][nmax], M[2500][2], Possessors[2500], type, width, len, i, j, row, col, x, y; ^ user.cpp:24:100: warning: unused variable ‘y’ [-Wunused-variable] int n, m, k, Moon[nmax][nmax], M[2500][2], Possessors[2500], type, width, len, i, j, row, col, x, y; ^ user.cpp:26:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("luna.in", "r", stdin); ^ user.cpp:27:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("luna.out", "w", stdout); ^ user.cpp:28:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &m); ^ user.cpp:31:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &Moon[i][j]); ^ user.cpp:74:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &k); ^ user.cpp:77:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &type, &width, &len); ^ user.cpp:56:13: warning: array subscript is above array bounds [-Warray-bounds] M[type][2] = row; ^ user.cpp:79:45: warning: array subscript is above array bounds [-Warray-bounds] else if ((M[type][1] >= width && M[type][2] >= len) || (M[type][2] >= width && M[type][1] >= len))printf("Cererea poate fi satisfacuta!\n"); ^ user.cpp:79:68: warning: array subscript is above array bounds [-Warray-bounds] else if ((M[type][1] >= width && M[type][2] >= len) || (M[type][2] >= width && M[type][1] >= len))printf("Cererea poate fi satisfacuta!\n"); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms436kbOK5
20ms424kbOK5
30ms460kbIncorect0
44ms460kbIncorect0
576ms456kbIncorect0
684ms460kbIncorect0
70ms436kbOK5
80ms436kbIncorect0
98ms432kbIncorect0
100ms432kbIncorect0
118ms428kbIncorect0
124ms432kbIncorect0
130ms436kbIncorect0
1448ms436kbIncorect0
150ms440kbIncorect0
168ms440kbIncorect0
1744ms452kbIncorect0
1864ms452kbIncorect0
1988ms456kbIncorect0
2088ms452kbIncorect0
Punctaj total15

Ceva nu functioneaza?