Pagini recente » Borderou de evaluare (job #1421789) | Borderou de evaluare (job #1367753) | Borderou de evaluare (job #2532571) | Borderou de evaluare (job #618366) | Borderou de evaluare (job #3269339)
Borderou de evaluare (job #3269339)
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 |
1 | 4ms | 303kb | Incorect | 0 |
2 | 4ms | 303kb | Incorect | 0 |
3 | 3ms | 303kb | Incorect | 0 |
4 | 5ms | 303kb | Incorect | 0 |
5 | 3ms | 303kb | Incorect | 0 |
6 | 8ms | 303kb | Incorect | 0 |
7 | 13ms | 442kb | Incorect | 0 |
8 | 14ms | 442kb | Incorect | 0 |
9 | 14ms | 434kb | Incorect | 0 |
10 | 220ms | 36335kb | Incorect | 0 |
Punctaj total | 0 |