Pagini recente » Borderou de evaluare (job #2941475) | Borderou de evaluare (job #3180964) | Borderou de evaluare (job #2367529) | Borderou de evaluare (job #2388224) | Borderou de evaluare (job #1902194)
Borderou de evaluare (job #1902194)
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 |
1 | 96ms | 316kb | OK | 50 | 100 |
2 | 224ms | 312kb | OK | 50 |
Punctaj total | 100 |