Borderou de evaluare (job #1508805)

Utilizator George-AndreiGeorge Andrei George-Andrei Data 22 octombrie 2015 23:28:00
Problema Jocul Flip Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int flip(int)’: user.cpp:10:15: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses] k = (z >> m + i) % 2; ^ user.cpp:12:20: warning: suggest parentheses around ‘-’ inside ‘>>’ [-Wparentheses] l = (z >> m - j - 1) % 2; ^ user.cpp: In function ‘void preflip()’: user.cpp:23:17: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] a = a << m + n - 1; ^ user.cpp: In function ‘int main()’: user.cpp:42:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d", &v[i][j]); ^ user.cpp:46:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d", MAX); ^ user.cpp:35:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("flip.in", "r", stdin); ^ user.cpp:36:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("flip.out", "w", stdout); ^ user.cpp:37:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:38:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &m); ^ user.cpp:42:25: 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
10ms260kbOk!10
232ms264kbOk!10
324ms260kbOk!10
412ms260kbOk!10
5Depăşit236kbTime limit exceeded.0
6Depăşit236kbTime limit exceeded.0
7Depăşit232kbTime limit exceeded.0
8Depăşit232kbTime limit exceeded.0
9Depăşit240kbTime limit exceeded.0
10Depăşit240kbTime limit exceeded.0
Punctaj total40

Ceva nu functioneaza?