Borderou de evaluare (job #2171187)

Utilizator ioanavasilescuIoana Vasilescu ioanavasilescu Data 15 martie 2018 11:30:59
Problema AI Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 51

Raport evaluator

Compilare: user.cpp: In function ‘void apara(int, int, int&, int&)’: user.cpp:58:22: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(y>=s2 && y<t2 || y<=s2 && y>t2) ^ user.cpp:63:22: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(x>=s1 && x<t1 || x<=s1 && x>t1) ^ user.cpp:66:22: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] else if(x>s1 && x<t1 || x<s1 && x>t1) ^ user.cpp:67:21: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(y>s2 && y<t2 || y<s2 && y>t2) ^ user.cpp:55:11: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if((x-s1)*(t2-s2)==(y-s2)*(t1-s1)) ^ user.cpp:74:22: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(y>=s4 && y<t2 || y<=s4 && y>t2) ^ user.cpp:79:22: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(x>=s3 && x<t1 || x<=s3 && x>t1) ^ user.cpp:82:22: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] else if(x>s3 && x<t1 || x<s3 && x>t1) ^ user.cpp:83:21: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(y>s4 && y<t2 || y<s4 && y>t2) ^ user.cpp:71:11: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if((x-s3)*(t2-s4)==(y-s4)*(t1-s3)) ^ user.cpp: In function ‘void ziduri()’: user.cpp:22:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d",&k); ^ user.cpp:26:34: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d %d",&x,&y); ^ user.cpp: In function ‘int main()’: user.cpp:117:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d",&n); ^ user.cpp:118:79: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d%d%d%d%d%d%d%d%d%d",&t1,&t2,&s1,&s2,&s3,&s4,&r1,&r2,&r3,&r4); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms2964kbOK5
24ms3004kbPrimul numar corect1
34ms3032kbOK5
424ms3612kbOK5
532ms3720kbOK5
676ms4148kbOK5
78ms3212kbOK5
84ms3104kbOK5
940ms3668kbOK5
10164ms6636kbOK5
11168ms6624kbOK5
12Depăşit6560kbTime limit exceeded.0
13Depăşit6456kbTime limit exceeded.0
14Depăşit6492kbTime limit exceeded.0
15Depăşit6636kbTime limit exceeded.0
16Depăşit6628kbTime limit exceeded.0
17Depăşit6508kbTime limit exceeded.0
18Depăşit6664kbTime limit exceeded.0
19Depăşit6588kbTime limit exceeded.0
20Depăşit6620kbTime limit exceeded.0
Punctaj total51

Ceva nu functioneaza?