Borderou de evaluare (job #1608704)

Utilizator cristii2000cristiiPanaite Cristian cristii2000cristii Data 22 februarie 2016 12:03:00
Problema Reactivi Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘bool cmp(frig, frig)’: user.cpp:19:33: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] return a.x<b.x || a.x== b.x && a.y>b.y; ^ user.cpp: In function ‘void frigidere(int)’: user.cpp:29:35: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(subst[i].x<=f[j].x && subst[i].y<=f[j].y || f[j].x<=subst[i].y && f[j].y>=subst[i].x || f[j].x>=subst[i].x && f[j].y<=subst[i].y || f[j].x>=subst[i].x && f[j].y<=subst[i].y) ^ user.cpp:29:123: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(subst[i].x<=f[j].x && subst[i].y<=f[j].y || f[j].x<=subst[i].y && f[j].y>=subst[i].x || f[j].x>=subst[i].x && f[j].y<=subst[i].y || f[j].x>=subst[i].x && f[j].y<=subst[i].y) ^ user.cpp:29:167: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(subst[i].x<=f[j].x && subst[i].y<=f[j].y || f[j].x<=subst[i].y && f[j].y>=subst[i].x || f[j].x>=subst[i].x && f[j].y<=subst[i].y || f[j].x>=subst[i].x && f[j].y<=subst[i].y) ^ user.cpp: In function ‘void citire(int)’: user.cpp:14:51: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &subst[i].x, &subst[i].y); ^ user.cpp: In function ‘int main()’: user.cpp:44:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("reactivi.in","r",stdin); ^ user.cpp:45:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("reactivi.out","w",stdout); ^ user.cpp:46:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms440kbOK1010
20ms440kbOK1010
30ms448kbOK1010
44ms492kbOK1010
50ms464kbOK1060
60ms440kbOK10
74ms496kbOK10
80ms448kbOK10
94ms504kbOK10
100ms436kbOK10
Punctaj total100

Ceva nu functioneaza?