Borderou de evaluare (job #1353313)

Utilizator GG_FacilUNIBUC GG Facil GG_Facil Data 21 februarie 2015 14:04:03
Problema Por Costel si Livada Status done
Runda ONIS 2015, Runda 1 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void rez()’: user.cpp:25:47: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses] d[i & 1][st][dr] = max (mid[i - 1 & 1][st][dr], max (left[i - 1 & 1][st][dr], right[i - 1 & 1][st][dr])) + sp[i][dr] - sp[i][st - 1]; ^ user.cpp:25:77: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses] d[i & 1][st][dr] = max (mid[i - 1 & 1][st][dr], max (left[i - 1 & 1][st][dr], right[i - 1 & 1][st][dr])) + sp[i][dr] - sp[i][st - 1]; ^ user.cpp:25:103: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses] d[i & 1][st][dr] = max (mid[i - 1 & 1][st][dr], max (left[i - 1 & 1][st][dr], right[i - 1 & 1][st][dr])) + sp[i][dr] - sp[i][st - 1]; ^ user.cpp: In function ‘int main()’: user.cpp:50:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("livada2.in", "r", stdin); ^ user.cpp:51:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("livada2.out", "w", stdout); ^ user.cpp:54:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &t); ^ user.cpp:57:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d %d\n", &n, &m); ^ user.cpp:64:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &v[i][j]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1Depăşit3848kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?