Borderou de evaluare (job #2906508)

Utilizator utilizator20052022utilizatorr utilizator20052022 Data 26 mai 2022 14:20:43
Problema Heapuri Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 10

Raport evaluator

Compilare: main.cpp: In function 'bool hasParent(std::vector<int>, int)': main.cpp:20:60: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 20 | if(getParentIndex(index) >= 0 && getParentIndex(index) < h.size()) return true; | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ main.cpp: In function 'bool hasRightChild(std::vector<int>, int)': main.cpp:55:62: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 55 | if (rightChildIndex(index) > 0 && rightChildIndex(index) < h.size() ) return true; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ main.cpp: In function 'bool hasLeftChild(std::vector<int>, int)': main.cpp:61:60: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 61 | if (leftChildIndex(index) > 0 && leftChildIndex(index) < h.size() ) return true; | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ main.cpp: In function 'int getIndex(std::vector<int>&, int)': main.cpp:102:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 102 | for(int i = 0; i < h.size(); ++i){ | ~~^~~~~~~~~~ main.cpp:105:1: warning: control reaches end of non-void function [-Wreturn-type] 105 | } | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
11ms184kbOK1010
2255ms962kbTime limit exceeded00
3257ms1003kbTime limit exceeded00
4253ms1052kbTime limit exceeded00
5253ms1019kbTime limit exceeded00
6250ms1187kbTime limit exceeded0
7252ms1482kbTime limit exceeded0
8250ms1384kbTime limit exceeded0
9250ms1196kbTime limit exceeded0
10250ms1306kbTime limit exceeded0
Punctaj total10

Ceva nu functioneaza?