Borderou de evaluare (job #2910690)

Utilizator dey44andIoja Andrei-Iosif dey44and Data 24 iunie 2022 13:29:35
Problema Coduri Huffman Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 15

Raport evaluator

Compilare: main.cpp: In static member function 'static std::unordered_map<long unsigned int, std::__cxx11::basic_string<char> > CodesMachine::getPrefixCodes(Vertex*)': main.cpp:103:34: warning: comparison of integer expressions of different signedness: 'uint64_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 103 | if(head.first->getChar() == -1) { | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ main.cpp: In function 'Vertex* getHuffmanTree(const std::unordered_map<long unsigned int, long unsigned int>&)': main.cpp:10:43: warning: comparison of integer expressions of different signedness: 'int' and 'std::unordered_map<long unsigned int, long unsigned int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 10 | #define forRange(a, b) for(int it = a; it < b; it++) | ~~~^~~~~~~~~~ 11 | | 12 | using namespace std; | ~~~~~~~~~~~~~~~~~~~~ 13 | | 14 | class Vertex { | ~~~~~~~~~~~~~~ 15 | public: | ~~~~~~~ 16 | virtual uint64_t getFreq() = 0; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 17 | virtual uint64_t getChar() = 0; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 18 | virtual Vertex* getLeftChild() = 0; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 19 | virtual Vertex* getRightChild() = 0; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 20 | }; | ~~ 21 | | 22 | class Nil : public Vertex { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 23 | public: | ~~~~~~~ 24 | uint64_t getFreq() override; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 25 | uint64_t getChar() override; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 26 | Vertex* getLeftChild() override; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 27 | Vertex* getRightChild() override; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 28 | }; | ~~ 29 | | 30 | class Node : public Vertex { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | private: | ~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
11ms184kbOK!5
21ms184kbOK!5
31ms184kbSuma lungimilor codurilor incorecta!0
41ms184kbOK!5
514ms1810kbSuma lungimilor codurilor incorecta!0
613ms1847kbSuma lungimilor codurilor incorecta!0
778ms6852kbSuma lungimilor codurilor incorecta!0
883ms6909kbSuma lungimilor codurilor incorecta!0
9282ms22118kbSuma lungimilor codurilor incorecta!0
10406ms22126kbSuma lungimilor codurilor incorecta!0
11734ms39002kbSuma lungimilor codurilor incorecta!0
12519ms38969kbSuma lungimilor codurilor incorecta!0
13852ms65556kbMemory limit exceeded0
14526ms65556kbMemory limit exceeded0
15802ms65552kbMemory limit exceeded0
16584ms65552kbMemory limit exceeded0
17614ms65556kbMemory limit exceeded0
18513ms65552kbMemory limit exceeded0
19561ms65556kbMemory limit exceeded0
20853ms65556kbMemory limit exceeded0
Punctaj total15

Ceva nu functioneaza?