Borderou de evaluare (job #1508793)

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

Raport evaluator

Compilare: user.cpp: In function ‘void flip(int)’: user.cpp:20:16: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses] k = (z >> m + i) % 2; ^ user.cpp:22:21: warning: suggest parentheses around ‘-’ inside ‘>>’ [-Wparentheses] l = (z >> m - j - 1) % 2; ^ user.cpp: In function ‘void preflip()’: user.cpp:37:17: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] a = a << m + n - 1; ^ user.cpp:36:6: warning: unused variable ‘x’ [-Wunused-variable] int x, i, j, a = 1; ^ user.cpp:36:9: warning: unused variable ‘i’ [-Wunused-variable] int x, i, j, a = 1; ^ user.cpp:36:12: warning: unused variable ‘j’ [-Wunused-variable] int x, i, j, a = 1; ^ user.cpp: In function ‘int main()’: user.cpp:56:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d", &v[i][j]); ^ user.cpp:60:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d", MAX); ^ user.cpp:49: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:50: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:51:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:52:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &m); ^ user.cpp:56: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
10ms264kbOk!10
240ms264kbOk!10
336ms256kbOk!10
412ms256kbOk!10
5Depăşit232kbTime limit exceeded.0
6Depăşit236kbTime limit exceeded.0
7Depăşit236kbTime limit exceeded.0
8Depăşit236kbTime limit exceeded.0
9Depăşit236kbTime limit exceeded.0
10Depăşit236kbTime limit exceeded.0
Punctaj total40

Ceva nu functioneaza?