Borderou de evaluare (job #2140526)

Utilizator 24601Dan Ban 24601 Data 23 februarie 2018 16:29:24
Problema Deque Status done
Runda Arhiva educationala Compilator c | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:17:5: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("deque.in", "r", stdin); ^ user.c:18:5: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("deque.out", "w", stdout); ^ user.c:20:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &n, &k); ^ user.c:25:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &x); ^ user.c:27:32: warning: array subscript is above array bounds [-Warray-bounds] while (t - 1 >= h && dq[t-1].x >= x) { ^ user.c:31:11: warning: array subscript is above array bounds [-Warray-bounds] dq[t].x = x; ^ user.c:32:11: warning: array subscript is above array bounds [-Warray-bounds] dq[t].i = i; ^ user.c:35:24: warning: array subscript is above array bounds [-Warray-bounds] if (i - k >= dq[h].i) { ^ user.c:40:20: warning: array subscript is above array bounds [-Warray-bounds] r += dq[h].x; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms816kbOK55
20ms816kbOK55
30ms816kbOK55
40ms816kbOK55
536ms816kbOK55
636ms812kbOK55
70ms812kbWall time limit exceeded.00
880ms820kbOK5
972ms812kbOK5
100ms816kbWall time limit exceeded.00
1180ms820kbOK5
1272ms820kbOK5
13804ms820kbOK50
140ms932kbWall time limit exceeded.0
15824ms816kbOK5
160ms812kbWall time limit exceeded.0
171528ms812kbOK5
180ms816kbWall time limit exceeded.0
191572ms872kbOK5
201536ms876kbOK5
Punctaj total30

Ceva nu functioneaza?