Borderou de evaluare (job #3142364)

Utilizator NightCrawler92Alexandru Stefanica NightCrawler92 Data 20 iulie 2023 19:10:11
Problema Arbori indexati binar Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In constructor 'BinaryIndexTree::BinaryIndexTree(size_t)': main.cpp:10:44: warning: narrowing conversion of 'N' from 'size_t' {aka 'long unsigned int'} to 'BinaryIndexTree::t' {aka 'int'} [-Wnarrowing] 10 | explicit BinaryIndexTree(size_t N): N_{N}, tree_(N, 0) {} | ^ main.cpp: In member function 'int BinaryIndexTree::findPosFor(t) const': main.cpp:31:35: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'const BinaryIndexTree::t' {aka 'const int'} [-Wsign-compare] 31 | for (bitMask = 1; bitMask <= N_; bitMask <<= 1); | ~~~~~~~~^~~~~ main.cpp:33:34: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'const BinaryIndexTree::t' {aka 'const int'} [-Wsign-compare] 33 | if ( (idx + bitMask) <= N_ && tree_[idx + bitMask - 1] < ssum) { | ~~~~~~~~~~~~~~~~^~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK10
20ms303kbOK10
31ms303kbOK10
45ms557kbOK10
59ms557kbOK10
614ms815kbOK10
719ms978kbOK10
824ms1089kbOK10
924ms1114kbOK10
1024ms1085kbOK10
Punctaj total100

Ceva nu functioneaza?