Borderou de evaluare (job #1686021)

Utilizator catu_bogdan_99Catu Bogdan catu_bogdan_99 Data 11 aprilie 2016 23:44:13
Problema Alpin Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:26:12: warning: unused variable ‘m’ [-Wunused-variable] int n, m, i, j, s, t, d, k, ma, x, y, x_aa, y_aa; ^ user.cpp:26:21: warning: unused variable ‘s’ [-Wunused-variable] int n, m, i, j, s, t, d, k, ma, x, y, x_aa, y_aa; ^ user.cpp:26:27: warning: unused variable ‘d’ [-Wunused-variable] int n, m, i, j, s, t, d, k, ma, x, y, x_aa, y_aa; ^ user.cpp:23:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("alpin.in","r",stdin); ^ user.cpp:24:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("alpin.out","w",stdout); ^ user.cpp:30:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:33:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&best[i][j][1]); ^ user.cpp:47:89: warning: array subscript is above array bounds [-Warray-bounds] best[x_aa][y_aa][2] = maxim( best[x_aa][y_aa][2], best[v[i].x][v[i].y][2] + 1 ); ^ user.cpp:47:95: warning: array subscript is above array bounds [-Warray-bounds] best[x_aa][y_aa][2] = maxim( best[x_aa][y_aa][2], best[v[i].x][v[i].y][2] + 1 ); ^ user.cpp:47:35: warning: array subscript is above array bounds [-Warray-bounds] best[x_aa][y_aa][2] = maxim( best[x_aa][y_aa][2], best[v[i].x][v[i].y][2] + 1 ); ^ user.cpp:70:51: warning: array subscript is above array bounds [-Warray-bounds] if( v[ma].val < best[x_aa][y_aa][2] ){ ^ user.cpp:60:8: warning: array subscript is below array bounds [-Warray-bounds] v[t].x = x; ^ user.cpp:61:8: warning: array subscript is below array bounds [-Warray-bounds] v[t].y = y; ^ user.cpp:60:15: warning: ‘x’ may be used uninitialized in this function [-Wmaybe-uninitialized] v[t].x = x; ^ user.cpp:61:15: warning: ‘y’ may be used uninitialized in this function [-Wmaybe-uninitialized] v[t].y = y; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms336kbAlpinistul si-a indeplinit sarcina!10
20ms332kbWall time limit exceeded.0
30ms308kbWall time limit exceeded.0
40ms304kbWall time limit exceeded.0
50ms272kbWall time limit exceeded.0
60ms272kbWall time limit exceeded.0
70ms268kbWall time limit exceeded.0
80ms264kbWall time limit exceeded.0
90ms264kbWall time limit exceeded.0
100ms260kbWall time limit exceeded.0
Punctaj total10

Ceva nu functioneaza?