Pagini recente » Borderou de evaluare (job #2661298) | Borderou de evaluare (job #1237138) | Borderou de evaluare (job #1181373) | Borderou de evaluare (job #70244) | Borderou de evaluare (job #2638516)
Borderou de evaluare (job #2638516)
Raport evaluator
Compilare:
main.cpp: In member function 'void heap::downheap(int)':
main.cpp:18:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (index >= data.size()) {
~~~~~~^~~~~~~~~~~~~~
main.cpp:25:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (left_child < data.size()) {
~~~~~~~~~~~^~~~~~~~~~~~~
main.cpp:28:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (right_child < data.size() && data[right_child] < data[left_child]) {
~~~~~~~~~~~~^~~~~~~~~~~~~
main.cpp: In member function 'void heap::print()':
main.cpp:98:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < data.size(); i++) {
~~^~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:127:23: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%i", &n);
^
main.cpp:135:24: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%i", &x);
^
main.cpp:139:27: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%i", &num);
^
main.cpp:143:27: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%i", &num);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 131kb | OK | 10 | 10 |
2 | 2ms | 131kb | OK | 10 | 10 |
3 | 3ms | 131kb | OK | 10 | 10 |
4 | 14ms | 262kb | OK | 10 | 10 |
5 | 4ms | 131kb | Incorect | 0 | 0 |
6 | 112ms | 786kb | OK | 10 |
7 | 251ms | 9113kb | Time limit exceeded | 0 |
8 | 183ms | 5005kb | OK | 10 |
9 | 224ms | 1572kb | OK | 10 |
10 | 219ms | 1572kb | OK | 10 |
Punctaj total | 40 |