Pagini recente » Borderou de evaluare (job #797716) | Borderou de evaluare (job #321860) | Borderou de evaluare (job #826313) | Borderou de evaluare (job #360719) | Borderou de evaluare (job #2910690)
Borderou de evaluare (job #2910690)
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 |
| 1 | 1ms | 184kb | OK! | 5 |
| 2 | 1ms | 184kb | OK! | 5 |
| 3 | 1ms | 184kb | Suma lungimilor codurilor incorecta! | 0 |
| 4 | 1ms | 184kb | OK! | 5 |
| 5 | 14ms | 1810kb | Suma lungimilor codurilor incorecta! | 0 |
| 6 | 13ms | 1847kb | Suma lungimilor codurilor incorecta! | 0 |
| 7 | 78ms | 6852kb | Suma lungimilor codurilor incorecta! | 0 |
| 8 | 83ms | 6909kb | Suma lungimilor codurilor incorecta! | 0 |
| 9 | 282ms | 22118kb | Suma lungimilor codurilor incorecta! | 0 |
| 10 | 406ms | 22126kb | Suma lungimilor codurilor incorecta! | 0 |
| 11 | 734ms | 39002kb | Suma lungimilor codurilor incorecta! | 0 |
| 12 | 519ms | 38969kb | Suma lungimilor codurilor incorecta! | 0 |
| 13 | 852ms | 65556kb | Memory limit exceeded | 0 |
| 14 | 526ms | 65556kb | Memory limit exceeded | 0 |
| 15 | 802ms | 65552kb | Memory limit exceeded | 0 |
| 16 | 584ms | 65552kb | Memory limit exceeded | 0 |
| 17 | 614ms | 65556kb | Memory limit exceeded | 0 |
| 18 | 513ms | 65552kb | Memory limit exceeded | 0 |
| 19 | 561ms | 65556kb | Memory limit exceeded | 0 |
| 20 | 853ms | 65556kb | Memory limit exceeded | 0 |
| Punctaj total | 15 |