Pagini recente » Borderou de evaluare (job #281803) | Borderou de evaluare (job #2135626) | Borderou de evaluare (job #985901) | Borderou de evaluare (job #1990996) | Borderou de evaluare (job #2016629)
Borderou de evaluare (job #2016629)
Raport evaluator
Compilare:
user.cpp: In function ‘int zeros(int)’:
user.cpp:10:20: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
return (x^(x-1)&x);
^
user.cpp: In function ‘int main()’:
user.cpp:29:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("aib.in", "r", stdin);
^
user.cpp:30:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("aib.out", "w", stdout);
^
user.cpp:33:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:36:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &m);
^
user.cpp:39:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a);
^
user.cpp:44:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &cd);
^
user.cpp:46:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &a, &b);
^
user.cpp:48:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
else scanf("%d", &a);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 440kb | OK | 10 |
2 | 0ms | 440kb | OK | 10 |
3 | 8ms | 460kb | OK | 10 |
4 | 32ms | 540kb | OK | 10 |
5 | 72ms | 584kb | OK | 10 |
6 | 104ms | 692kb | Incorect | 0 |
7 | 116ms | 776kb | Incorect | 0 |
8 | 164ms | 828kb | Incorect | 0 |
9 | 168ms | 828kb | Incorect | 0 |
10 | 164ms | 828kb | Incorect | 0 |
Punctaj total | 50 |