Pagini recente » Borderou de evaluare (job #1998811) | Borderou de evaluare (job #189571) | Borderou de evaluare (job #1854283) | Borderou de evaluare (job #1175435) | Borderou de evaluare (job #1248292)
Borderou de evaluare (job #1248292)
Raport evaluator
Compilare:
user.cpp: In member function ‘void Heap::down(int)’:
user.cpp:33:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (left_child(i) < heap.size())
^
user.cpp:36:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (right_child(i) < heap.size() && is_less(right_child(i), next))
^
user.cpp: In function ‘int main()’:
user.cpp:65:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("heapuri.in", "r", stdin);
^
user.cpp:66:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("heapuri.out", "w", stdout);
^
user.cpp:70:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &q);
^
user.cpp:72:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &op);
^
user.cpp:74:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x);
^
user.cpp:78:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &i);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 256kb | OK | 10 | 10 |
2 | 0ms | 260kb | OK | 10 | 10 |
3 | 0ms | 264kb | OK | 10 | 10 |
4 | 4ms | 344kb | OK | 10 | 10 |
5 | 28ms | 600kb | OK | 10 | 60 |
6 | 52ms | 836kb | OK | 10 |
7 | 116ms | 1692kb | OK | 10 |
8 | 100ms | 1348kb | OK | 10 |
9 | 112ms | 1152kb | OK | 10 |
10 | 108ms | 1152kb | OK | 10 |
Punctaj total | 100 |