Borderou de evaluare (job #1902194)

Utilizator MiricaMateiMirica Matei MiricaMatei Data 4 martie 2017 14:07:56
Problema Tsah Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:20:17: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses] if (A[1 - i & 1][j - 1] == A[i & 1][j] && A[i & 1][j - 1] != A[i & 1][j] && A[1 - i & 1][j] != A[i & 1][j]) ^ user.cpp:20:89: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses] if (A[1 - i & 1][j - 1] == A[i & 1][j] && A[i & 1][j - 1] != A[i & 1][j] && A[1 - i & 1][j] != A[i & 1][j]) ^ user.cpp:21:55: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses] D[i & 1][j] += min(min(D[i & 1][j - 1], D[1 - i & 1][j]), D[1 - i & 1][j - 1]); ^ user.cpp:21:73: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses] D[i & 1][j] += min(min(D[i & 1][j - 1], D[1 - i & 1][j]), D[1 - i & 1][j - 1]); ^ user.cpp:8:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("tsah.in", "r", stdin); ^ user.cpp:9:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("tsah.out", "w", stdout); ^ user.cpp:11:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &T); ^ user.cpp:14:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ", &N); ^ user.cpp:17:25: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(A[i & 1] + 1); ^ In file included from /usr/include/stdio.h:934:0, from /usr/include/c++/4.8/cstdio:42, from user.cpp:1: In function ‘char* gets(char*)’, inlined from ‘int main()’ at user.cpp:17:25: /usr/include/i386-linux-gnu/bits/stdio2.h:230:28: warning: call to ‘__gets_warn’ declared with attribute warning: please use fgets or getline instead, gets can't specify buffer size [enabled by default] return __gets_warn (__str); ^ /tmp/ccbt50RT.o: In function `main': user.cpp:(.text.startup+0xc1): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
196ms316kbOK50100
2224ms312kbOK50
Punctaj total100

Ceva nu functioneaza?