Borderou de evaluare (job #2099629)

Utilizator MiricaMateiMirica Matei MiricaMatei Data 4 ianuarie 2018 16:01:02
Problema Pavare Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘bool liber(int, int, int)’: user.cpp:14:121: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] if (a[i][j] == 0 && a[i][j - 1] == 0 && a[i - 1][j] == 0 && a[i - 1][j - 1] == 0 && conf & (1 << j) && conf & (1 << j - 1)) ^ user.cpp: In function ‘int main()’: user.cpp:50:89: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] dp[i][j][conf] = max(dp[i][j][conf], dp[i][j - 2][conf ^ (1 << j) ^ (1 << j - 1)] + 1); ^ user.cpp:48:12: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if (j > 0 && liber(i, j, conf)) ^ user.cpp:20:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("pavare.in", "r", stdin); ^ user.cpp:21:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("pavare.out", "w", stdout); ^ user.cpp:24:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &m); ^ user.cpp:26:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &k); ^ user.cpp:29:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &x, &y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms404kbOk!10
20ms912kbRaspuns gresit0
30ms1860kbRaspuns gresit0
44ms2552kbRaspuns gresit0
54ms3300kbOk!10
64ms5684kbOk!10
716ms11040kbRaspuns gresit0
832ms19936kbRaspuns gresit0
936ms27036kbRaspuns gresit0
10104msDepăşitMemory limit exceeded.0
Punctaj total30

Ceva nu functioneaza?