Borderou de evaluare (job #1988515)

Utilizator MoodyFaresFares Mohamad MoodyFares Data 3 iunie 2017 11:07:47
Problema Elicop Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void par(int, int, int, int)’: user.cpp:17:7: warning: variable ‘cx1’ set but not used [-Wunused-but-set-variable] int cx1, cy2, cx2, cy1; ^ user.cpp:17:17: warning: variable ‘cx2’ set but not used [-Wunused-but-set-variable] int cx1, cy2, cx2, cy1; ^ user.cpp: In function ‘int main()’: user.cpp:162:23: warning: statement has no effect [-Wunused-value] a[lin][col] == 1; ^ user.cpp:106:42: warning: variable ‘cx1’ set but not used [-Wunused-but-set-variable] int i, j, x1, y1, x2, y2, dir, xf, yf, cx1, cx2, cy1, cy2, c, ip, ar, lin, col, n1 = 0, n2 = 0, k; ^ user.cpp:106:47: warning: variable ‘cx2’ set but not used [-Wunused-but-set-variable] int i, j, x1, y1, x2, y2, dir, xf, yf, cx1, cx2, cy1, cy2, c, ip, ar, lin, col, n1 = 0, n2 = 0, k; ^ user.cpp:106:52: warning: variable ‘cy1’ set but not used [-Wunused-but-set-variable] int i, j, x1, y1, x2, y2, dir, xf, yf, cx1, cx2, cy1, cy2, c, ip, ar, lin, col, n1 = 0, n2 = 0, k; ^ user.cpp:106:57: warning: variable ‘cy2’ set but not used [-Wunused-but-set-variable] int i, j, x1, y1, x2, y2, dir, xf, yf, cx1, cx2, cy1, cy2, c, ip, ar, lin, col, n1 = 0, n2 = 0, k; ^ user.cpp:106:65: warning: variable ‘ip’ set but not used [-Wunused-but-set-variable] int i, j, x1, y1, x2, y2, dir, xf, yf, cx1, cx2, cy1, cy2, c, ip, ar, lin, col, n1 = 0, n2 = 0, k; ^ user.cpp:104:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ( "elicop.in","r",stdin ); ^ user.cpp:105:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ( "elicop.out","w",stdout ); ^ user.cpp:107:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ( "%d%d",&n,&m ); ^ user.cpp:110:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ( "%d",&a[i][j] ); ^ user.cpp:111:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ( "%d",&k ); ^ user.cpp:114:48: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ( "%d%d%d%d%d",&x1,&y1,&x2,&y2,&dir ); ^ user.cpp:146:20: warning: ‘yf’ may be used uninitialized in this function [-Wmaybe-uninitialized] if ( yf > y2 || yf > y1 ) ^ user.cpp:142:20: warning: ‘xf’ may be used uninitialized in this function [-Wmaybe-uninitialized] if ( xf > x2 || xf > x1 ) ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms284kbLike a boss !10
20ms288kbLike a boss !10
30ms296kbLike a boss !10
40ms296kbLike a boss !10
50ms296kbLike a boss !10
60ms292kbLike a boss !10
70ms476kbLike a boss !10
80ms332kbLike a boss !10
90ms348kbLike a boss !10
100ms528kbLike a boss !10
Punctaj total100

Ceva nu functioneaza?