Borderou de evaluare (job #1608703)

Utilizator alex2kamebossPuscasu Alexandru alex2kameboss Data 22 februarie 2016 12:02:43
Problema Reactivi Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘bool cmp(frig, frig)’: user.cpp:17:34: 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:31: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:31: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:31: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:12: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:45: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:46: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:47: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
54ms492kbKilled by signal 11(SIGSEGV).00
60ms436kbOK10
74ms500kbOK10
80ms452kbOK10
98ms500kbOK10
100ms436kbOK10
Punctaj total40

Ceva nu functioneaza?