Pagini recente » Borderou de evaluare (job #260928) | Borderou de evaluare (job #468698) | Borderou de evaluare (job #1778536) | Borderou de evaluare (job #1112229) | Borderou de evaluare (job #1464731)
Borderou de evaluare (job #1464731)
Raport evaluator
Compilare:
user.cpp: In function ‘void update(int, int)’:
user.cpp:6:10: warning: statement has no effect [-Wunused-value]
for(x;x<=n;x+=(x^(x-1)&x))
^
user.cpp:6:27: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
for(x;x<=n;x+=(x^(x-1)&x))
^
user.cpp: In function ‘int query(int)’:
user.cpp:12:10: warning: statement has no effect [-Wunused-value]
for(x;x>0;x-=(x^(x-1)&x))
^
user.cpp:12:26: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
for(x;x>0;x-=(x^(x-1)&x))
^
user.cpp: In function ‘int main()’:
user.cpp:59:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("scmax.in", "r", stdin);
^
user.cpp:60:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("scmax.out", "w", stdout);
^
user.cpp:62:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:64:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&v[i]);
^
user.cpp:85:20: warning: ‘poz’ may be used uninitialized in this function [-Wmaybe-uninitialized]
poz=up[poz];
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 336kb | Corect! | 10 | 10 |
2 | 0ms | 368kb | Corect! | 10 | 10 |
3 | 0ms | 304kb | Corect! | 10 | 10 |
4 | 0ms | 316kb | Corect! | 10 | 10 |
5 | 0ms | 320kb | Corect! | 10 | 10 |
6 | 0ms | 336kb | Corect! | 10 | 10 |
7 | 0ms | 348kb | Corect! | 10 | 10 |
8 | 96ms | 3000kb | Corect! | 10 | 0 |
9 | Depăşit | 1928kb | Time limit exceeded. | 0 |
10 | 92ms | 3004kb | Corect! | 10 |
Punctaj total | 70 |