Borderou de evaluare (job #3269346)

Utilizator stefanrotaruRotaru Stefan-Florin stefanrotaru Data 18 ianuarie 2025 19:07:21
Problema Secventa 5 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'void insertHash(int)': main.cpp:20:22: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 20 | if (it.first == k) { | ~~~~~~~~~^~~~ main.cpp: In function 'void eraseHash(int)': main.cpp:36:35: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 36 | if (hashMap[key][i].first == k && hashMap[key][i].second == 1) { main.cpp:41:40: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 41 | else if (hashMap[key][i].first == k && hashMap[key][i].second > 1) { main.cpp: In function 'bool searchHash(int)': main.cpp:54:22: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 54 | if (it.first == k && it.second == 1) { | ~~~~~~~~~^~~~ main.cpp: In function 'long long int twoPointers(int)': main.cpp:73:19: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 73 | while (sz > i && st <= dr) { | ~~~^~~ In file included from /usr/include/c++/12.2.1/vector:64, from main.cpp:2: In member function 'constexpr void std::vector<_Tp, _Alloc>::clear() [with _Tp = std::pair<unsigned int, int>; _Alloc = std::allocator<std::pair<unsigned int, int> >]', inlined from 'long long int twoPointers(int)' at main.cpp:87:25: /usr/include/c++/12.2.1/bits/stl_vector.h:1601:24: warning: iteration 666013 invokes undefined behavior [-Waggressive-loop-optimizations] 1601 | { _M_erase_at_end(this->_M_impl._M_start); } | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'long long int twoPointers(int)': main.cpp:86:23: note: within this loop 86 | for (int i = 0; i <= MOD; ++i) { | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
110ms483kbKilled by Signal 110
26ms491kbKilled by Signal 110
36ms495kbKilled by Signal 110
47ms679kbKilled by Signal 110
513ms823kbKilled by Signal 110
622ms1474kbKilled by Signal 110
743ms3104kbKilled by Signal 110
851ms3637kbKilled by Signal 110
962ms4431kbKilled by Signal 110
10243ms36339kbIncorect0
Punctaj total0

Ceva nu functioneaza?