Borderou de evaluare (job #1923600)

Utilizator hevelebalazshevele balazs hevelebalazs Data 11 martie 2017 18:09:09
Problema Dreptunghi2 Status done
Runda Arhiva ICPC Compilator c | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:4:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("dreptunghi2.in", "r", stdin); ^ user.c:5:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("dreptunghi2.out", "w", stdout); ^ user.c:8:10: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%i", &t); ^ user.c:14:14: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%i", &n); ^ user.c:17:18: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%i%i", &x, &y); ^ user.c:25:26: warning: ‘max2’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (!i || v2 > max2) max2 = v2; ^ user.c:24:26: warning: ‘min2’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (!i || v2 < min2) min2 = v2; ^ user.c:23:26: warning: ‘max1’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (!i || v1 > max1) max1 = v1; ^ user.c:28:32: warning: ‘min1’ may be used uninitialized in this function [-Wmaybe-uninitialized] printf("%.3f\n", (max1 - min1) * (max2 - min2) / 2.0); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1156ms288kbOK100
Punctaj total100

Ceva nu functioneaza?