Submisie


Utilizator
Problema
Data
Compilator
Scor
10 August 2023, 18:37
c++20
100.0

Mesaj compilare

        main.cpp: In function ‘void update(int, int, int)’:
main.cpp:25:40: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
   25 |    for( ; px <= n; px += px ^ (px - 1) & px)
      |                               ~~~~~~~~~^~~~
main.cpp:26:59: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
   26 |                 for(py = sy; py <= n; py += py ^ (py - 1) & py)
      |                                                  ~~~~~~~~~^~~~
main.cpp: In function ‘int query(int, int)’:
main.cpp:34:36: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
   34 |     for( ; px; px -= px ^ (px - 1) & px)
      |                           ~~~~~~~~~^~~~
main.cpp:35:46: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
   35 |         for(py = sy; py; py -= py ^ (py - 1) & py)
      |                                     ~~~~~~~~~^~~~

    

Detalii evaluare

Test
Mesaj evaluator
Timp execuție
Memorie
Scor
1
correct
0,014
24.26MB
10,0
2
correct
0,012
24.54MB
10,0
3
correct
0,015
24.54MB
10,0
4
correct
0,055
28.34MB
10,0
5
correct
0,052
28.9MB
10,0
6
correct
0,244
46.45MB
10,0
7
correct
0,228
44.09MB
10,0
8
correct
0,248
46.4MB
10,0
9
correct
0,239
43.44MB
10,0
10
correct
0,25
46.42MB
10,0