Borderou de evaluare (job #2796064)

Utilizator niculaandreiNicula Andrei Bogdan niculaandrei Data 7 noiembrie 2021 15:03:06
Problema Traseu4 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'void update(int, int)': main.cpp:3:29: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] 3 | #define lsb(i) (i ^ (i - 1) & i) | ~~~~~~~~^~~~ 4 | | 5 | using namespace std; | ~~~~~~~~~~~~~~~~~~~~ 6 | | 7 | ifstream fin("traseu4.in"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8 | ofstream fout("traseu4.out"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 9 | | 10 | pair <int, int> v[NMAX * NMAX]; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 11 | int N, M, bit[NMAX][NMAX], x, ans = 0; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 12 | | 13 | void update(int x, int y) | ~~~~~~~~~~~~~~~~~~~~~~~~~ 14 | { | ~ 15 | for (int i = x; i <= N; i += lsb(i)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:15:34: note: in expansion of macro 'lsb' 15 | for (int i = x; i <= N; i += lsb(i)) | ^~~ main.cpp:3:29: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] 3 | #define lsb(i) (i ^ (i - 1) & i) | ~~~~~~~~^~~~ 4 | | 5 | using namespace std; | ~~~~~~~~~~~~~~~~~~~~ 6 | | 7 | ifstream fin("traseu4.in"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8 | ofstream fout("traseu4.out"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 9 | | 10 | pair <int, int> v[NMAX * NMAX]; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 11 | int N, M, bit[NMAX][NMAX], x, ans = 0; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
11ms184kbOkay!2
212ms2404kbOkay!13
31ms274kbOkay!7
41ms184kbOkay!17
580ms2703kbOkay!2
678ms2633kbOkay!9
772ms2723kbOkay!11
8104ms2895kbOkay!13
9126ms3301kbOkay!15
101ms184kbOkay!1
111ms184kbOkay!10
Punctaj total100

Ceva nu functioneaza?