Pagini recente » Borderou de evaluare (job #673552) | Borderou de evaluare (job #910534) | Borderou de evaluare (job #984663) | Borderou de evaluare (job #1755545) | Borderou de evaluare (job #1863440)
Borderou de evaluare (job #1863440)
Raport evaluator
Compilare:
user.cpp: In function ‘void update(int, int, int)’:
user.cpp:2:27: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
#define zeroes(x) (x^(x-1)&x)
^
user.cpp:7:26: note: in expansion of macro ‘zeroes’
for (int i=x; i<= n; i+=zeroes(i))
^
user.cpp: In function ‘int query(int)’:
user.cpp:2:27: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
#define zeroes(x) (x^(x-1)&x)
^
user.cpp:17:26: note: in expansion of macro ‘zeroes’
for(int i=x; i>0; i-=zeroes(i))
^
user.cpp: In function ‘int main()’:
user.cpp:25: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:26: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:27:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&m);
^
user.cpp:30:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ",&x);
^
user.cpp:35:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &op);
^
user.cpp:38:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&day,&value);
^
user.cpp:43:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&left,&right);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 88ms | 320kb | Corect! | 20 |
2 | 88ms | 324kb | Corect! | 20 |
3 | 88ms | 316kb | Corect! | 20 |
4 | 88ms | 320kb | Corect! | 20 |
5 | 88ms | 320kb | Corect! | 20 |
Punctaj total | 100 |