Borderou de evaluare (job #2504703)

Utilizator SochuDarabaneanu Liviu Eugen Sochu Data 5 decembrie 2019 13:24:54
Problema Arbori indexati binar Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'void Add(int, int)': main.cpp:2:30: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] #define zero(x) (x ^ (x - 1) & x) ~~~~~~~~^~~~~ #define NMAX 100005 ~~~~~~~~~~~~~~~~~~~~ ~ using namespace std; ~~~~~~~~~~~~~~~~~~~~~ ~ ifstream f ("aib.in"); ~~~~~~~~~~~~~~~~~~~~~~~ ofstream g ("aib.out"); ~~~~~~~~~~~~~~~~~~~~~~~~ ~ int n , m , x , y; ~~~~~~~~~~~~~~~~~~~ short type; ~~~~~~~~~~~~ int a[NMAX]; ~~~~~~~~~~~~~ ~ void Add(int poz , int value) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ { ~~ for(int i = poz ; i <= n ; i += zero(i)) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:16:37: note: in expansion of macro 'zero' for(int i = poz ; i <= n ; i += zero(i)) ^~~~ main.cpp: In function 'int Sum(int)': main.cpp:2:30: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] #define zero(x) (x ^ (x - 1) & x) ~~~~~~~~^~~~~ #define NMAX 100005 ~~~~~~~~~~~~~~~~~~~~ ~ using namespace std; ~~~~~~~~~~~~~~~~~~~~~ ~ ifstream f ("aib.in"); ~~~~~~~~~~~~~~~~~~~~~~~ ofstream g ("aib.out");
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK10
23ms131kbOK10
38ms131kbOK10
432ms393kbOK10
585ms552kbOK10
6144ms770kbOK10
7120ms786kbOK10
8211ms987kbOK10
9185ms954kbOK10
10174ms917kbOK10
Punctaj total100

Ceva nu functioneaza?