Borderou de evaluare (job #3269338)

Utilizator stefanrotaruRotaru Stefan-Florin stefanrotaru Data 18 ianuarie 2025 18:57:04
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:19:22: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 19 | if (it.first == k) { | ~~~~~~~~~^~~~ main.cpp: In function 'void eraseHash(int)': main.cpp:35:35: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 35 | if (hashMap[key][i].first == k && hashMap[key][i].second == 1) { main.cpp:40:40: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 40 | else if (hashMap[key][i].first == k && hashMap[key][i].second > 1) { main.cpp: In function 'bool searchHash(int)': main.cpp:53:22: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 53 | if (it.first == k && it.second == 1) { | ~~~~~~~~~^~~~ 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:82:25: /usr/include/c++/12.2.1/bits/stl_vector.h:1601:24: warning: iteration 666012 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:81:23: note: within this loop 81 | for (int i = 1; i <= MOD; ++i) { | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
13ms303kbIncorect0
23ms303kbIncorect0
33ms303kbIncorect0
44ms303kbIncorect0
54ms303kbIncorect0
64ms303kbIncorect0
79ms303kbIncorect0
89ms303kbIncorect0
99ms303kbIncorect0
10182ms36200kbIncorect0
Punctaj total0

Ceva nu functioneaza?