Pagini recente » Borderou de evaluare (job #384919) | Borderou de evaluare (job #965341) | Borderou de evaluare (job #549654) | Borderou de evaluare (job #403651) | Borderou de evaluare (job #1264841)
Borderou de evaluare (job #1264841)
Raport evaluator
Compilare:
user.cpp: In function ‘void update(int, int)’:
user.cpp:7:27: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
for(; poz<=n; poz+=poz&(poz-1)^poz)
^
user.cpp: In function ‘void decrease(int, int)’:
user.cpp:14:27: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
for(; poz<=n; poz+=poz&(poz-1)^poz)
^
user.cpp: In function ‘int query(int, int)’:
user.cpp:22:27: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
for(; day2; day2-=day2&(day2-1)^day2)
^
user.cpp:24:34: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
for(day1-=1; day1; day1-=day1&(day1-1)^day1)
^
user.cpp: In function ‘int main()’:
user.cpp:30: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:31: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:33:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&m);
^
user.cpp:36:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&sum);
^
user.cpp:41:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&operation);
^
user.cpp:45:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&day1,&sum);
^
user.cpp:49:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&day1,&day2);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 88ms | 296kb | Corect! | 20 |
2 | 88ms | 296kb | Corect! | 20 |
3 | 88ms | 300kb | Corect! | 20 |
4 | 92ms | 296kb | Corect! | 20 |
5 | 88ms | 300kb | Corect! | 20 |
Punctaj total | 100 |