Borderou de evaluare (job #3142349)

Utilizator NightCrawler92Alexandru Stefanica NightCrawler92 Data 20 iulie 2023 17:59:58
Problema Arbori indexati binar Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 50

Raport evaluator

Compilare: main.cpp: In constructor 'BinaryIndexTree::BinaryIndexTree(const std::vector<int>&)': main.cpp:13:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 13 | for (int i = 0; i < v.size(); ++i) { | ~~^~~~~~~~~~ main.cpp: In member function 'void BinaryIndexTree::update(int, int)': main.cpp:19:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 19 | for (; pos <= tree_.size(); pos += (pos & -pos)) { | ~~~~^~~~~~~~~~~~~~~ main.cpp: In member function 'int BinaryIndexTree::findPos(int) const': main.cpp:47:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 47 | if (tIdx > tree_.size()) continue; | ~~~~~^~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK10
20ms303kbOK10
31ms303kbOK10
45ms557kbOK10
59ms819kbOK10
614ms1085kbIncorect0
719ms1314kbIncorect0
824ms1490kbIncorect0
924ms1507kbIncorect0
1024ms1482kbIncorect0
Punctaj total50

Ceva nu functioneaza?