Borderou de evaluare (job #1351964)

Utilizator corul_barbatescUNIBUC Kira96 lockmihai corul_barbatesc Data 21 februarie 2015 11:48:09
Problema Por Costel si Pinball Status done
Runda ONIS 2015, Runda 1 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘node Merge(const node&, const node&)’: user.cpp:25:21: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if (a.lef < b.lef && !(b.st & 2) || a.lef == b.lef || a.lef > b.lef && (b.st & 2)) { ^ user.cpp:25:71: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if (a.lef < b.lef && !(b.st & 2) || a.lef == b.lef || a.lef > b.lef && (b.st & 2)) { ^ user.cpp:28:30: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses] else { res.st = 2 | b.st & 1; res.has = b.has + 1; } ^ user.cpp:30:21: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if (a.rig < b.rig && (a.st & 1) || a.rig == b.rig || a.rig > b.rig && !(a.st & 1)) { ^ user.cpp:30:70: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if (a.rig < b.rig && (a.st & 1) || a.rig == b.rig || a.rig > b.rig && !(a.st & 1)) { ^ user.cpp:32:45: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses] } else if (a.rig < b.rig) { res.st = a.st & 2 | 1; res.has = a.has + 1; } ^ user.cpp:35:17: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses] res.st = a.st & 2 | b.st & 1; ^ user.cpp:38:33: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if ((a.st & 1) && !(b.st & 2) && a.rig > b.lef || !(a.st & 1) && (b.st & 2) && a.rig < b.lef) res.has += 2; ^ user.cpp: In function ‘void Create(int, int, int)’: user.cpp:47:13: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses] int m = l + r >> 1; ^ user.cpp: In function ‘node getNode(int, int, int, int, int)’: user.cpp:57:13: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses] int m = l + r >> 1; ^ user.cpp: In function ‘void Change(int, int, int, int, int)’: user.cpp:68:13: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses] int m = l + r >> 1; ^ user.cpp: In function ‘int main()’: user.cpp:79:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("pinball.in", "r", stdin); ^ user.cpp:80:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("pinball.out", "w", stdout); ^ user.cpp:82:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:84:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &A[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
144ms8820kbWall time limit exceeded.0
Punctaj total0

Ceva nu functioneaza?