Borderou de evaluare (job #2763708)

Utilizator puica2018Puica Andrei puica2018 Data 16 iulie 2021 11:38:06
Problema Bisortare 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:22: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] #define g(x) (x^(x-1)&x) ~~~~~^~~~ ~ using namespace std; ~~~~~~~~~~~~~~~~~~~~~ ~ ifstream fin("bisortare.in"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ofstream fout("bisortare.out"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ int c,n,k; ~~~~~~~~~~~ int a[100005],bit[100005]; ~~~~~~~~~~~~~~~~~~~~~~~~~~~ int st[100005],dr[100005]; ~~~~~~~~~~~~~~~~~~~~~~~~~~~ long long best[100005]; ~~~~~~~~~~~~~~~~~~~~~~~~ ~ void update(int p,int v) ~~~~~~~~~~~~~~~~~~~~~~~~~ { ~~ for(int i=p; i<=n; i+=g(i)) ~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:17:27: note: in expansion of macro 'g' for(int i=p; i<=n; i+=g(i)) ^ main.cpp: In function 'int query(int)': main.cpp:3:22: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] #define g(x) (x^(x-1)&x) ~~~~~^~~~ ~ using namespace std; ~~~~~~~~~~~~~~~~~~~~~ ~ ifstream fin("bisortare.in"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ofstream fout("bisortare.out"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
13ms262kbOK!13
24ms262kbOK!1
34ms262kbOK!1
465ms2097kbOK!13
578ms2310kbOK!1
680ms2490kbOK!1
74ms262kbOK!13
84ms262kbOK!1
94ms262kbOK!1
1070ms2228kbOK!13
1176ms2359kbOK!1
1287ms2490kbOK!1
132ms131kbOK!39
142ms131kbOK!3
152ms131kbOK!3
162ms131kbOK!311
172ms131kbOK!3
182ms131kbOK!5
193ms131kbOK!413
202ms131kbOK!4
212ms131kbOK!5
223ms131kbOK!514
233ms131kbOK!5
243ms131kbOK!4
255ms262kbOK!515
265ms262kbOK!5
275ms262kbOK!5
2894ms3145kbOK!926
2994ms3538kbOK!9
30119ms3670kbOK!8
Punctaj total100

Ceva nu functioneaza?