Pagini recente » Borderou de evaluare (job #241118) | Borderou de evaluare (job #1254885) | Borderou de evaluare (job #1173493) | Borderou de evaluare (job #2916406) | Borderou de evaluare (job #1726987)
Borderou de evaluare (job #1726987)
Raport evaluator
Compilare:
user.cpp: In function ‘void update(int, int)’:
user.cpp:2:27: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
#define zeros(x) (x^(x-1) & x)
^
user.cpp:8:27: note: in expansion of macro ‘zeros’
for(int i=poz;i<=n;i+=zeros(i))
^
user.cpp: In function ‘int query(int)’:
user.cpp:2:27: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
#define zeros(x) (x^(x-1) & x)
^
user.cpp:16:27: note: in expansion of macro ‘zeros’
for(int i=poz;i>=1;i-=zeros(i))
^
user.cpp: In function ‘int main()’:
user.cpp:24:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("inv.in","r",stdin);
^
user.cpp:25:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("inv.out","w",stdout);
^
user.cpp:26:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:29:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&v[i].first);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 1236kb | OK | 10 |
| 2 | 4ms | 1264kb | OK | 10 |
| 3 | 12ms | 1324kb | OK | 10 |
| 4 | 20ms | 1380kb | OK | 10 |
| 5 | 32ms | 1460kb | OK | 10 |
| 6 | 36ms | 1508kb | OK | 10 |
| 7 | 44ms | 1540kb | OK | 10 |
| 8 | 44ms | 1576kb | OK | 10 |
| 9 | 52ms | 1612kb | OK | 10 |
| 10 | 0ms | 1228kb | OK | 10 |
| Punctaj total | 100 |