Pagini recente » Borderou de evaluare (job #704655) | Borderou de evaluare (job #2190600) | Borderou de evaluare (job #2975315) | Borderou de evaluare (job #603548) | Borderou de evaluare (job #1260327)
Borderou de evaluare (job #1260327)
Raport evaluator
Compilare:
user.cpp: In function ‘void update(int, int)’:
user.cpp:7:26: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
for(; poz<=n;poz+=poz&(poz-1)^poz)
^
user.cpp: In function ‘int query(int)’:
user.cpp:13:23: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
for(; poz;poz-=poz&(poz-1)^poz)
^
user.cpp: In function ‘int main()’:
user.cpp:19: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:20: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:22: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:25:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x);
^
user.cpp:30:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&ok,&t,&v);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 80ms | 296kb | Corect! | 20 |
2 | 80ms | 300kb | Corect! | 20 |
3 | 80ms | 300kb | Corect! | 20 |
4 | 80ms | 304kb | Corect! | 20 |
5 | 80ms | 300kb | Corect! | 20 |
Punctaj total | 100 |