Pagini recente » Borderou de evaluare (job #1822170) | Borderou de evaluare (job #914925) | Borderou de evaluare (job #317022) | Borderou de evaluare (job #1878256) | Borderou de evaluare (job #1246243)
Borderou de evaluare (job #1246243)
Raport evaluator
Compilare:
user.cpp: In function ‘long int query(long int)’:
user.cpp:17: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:24: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:31: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:32: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:34: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:36:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld",&val);
^
user.cpp:42:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%ld",&l);
^
user.cpp:44: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:51: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 | 304kb | Raspuns incorect | 0 |
2 | 88ms | 304kb | Raspuns incorect | 0 |
3 | 88ms | 300kb | Raspuns incorect | 0 |
4 | 92ms | 304kb | Raspuns incorect | 0 |
5 | 88ms | 308kb | Raspuns incorect | 0 |
Punctaj total | 0 |