Pagini recente » Borderou de evaluare (job #1048093) | Borderou de evaluare (job #1721858) | Borderou de evaluare (job #1223047) | Borderou de evaluare (job #1746941) | Borderou de evaluare (job #1246248)
Borderou de evaluare (job #1246248)
Raport evaluator
Compilare:
user.cpp: In function ‘long int query(long int)’:
user.cpp:14:30: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
for (; x; x -= x ^ (x-1) & x)
^
user.cpp: In function ‘void update(long int, long int)’:
user.cpp:21:35: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
for (; x <= n; x += x^(x-1) & x)
^
user.cpp: In function ‘int main()’:
user.cpp:28:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("datorii.in","r",stdin);
^
user.cpp:29:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("datorii.out","w",stdout);
^
user.cpp:31:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld %ld",&n,&m);
^
user.cpp:33:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld",&val);
^
user.cpp:39:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%ld",&l);
^
user.cpp:41:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld %ld",&st,&dr);
^
user.cpp:48:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld %ld",&ind,&val);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 88ms | 308kb | Corect! | 20 |
2 | 84ms | 312kb | Corect! | 20 |
3 | 84ms | 304kb | Corect! | 20 |
4 | 84ms | 308kb | Corect! | 20 |
5 | 88ms | 308kb | Corect! | 20 |
Punctaj total | 100 |