Pagini recente » Jetoane 2 | Borderou de evaluare (job #1484180) | Borderou de evaluare (job #2998399) | Borderou de evaluare (job #1422000) | Borderou de evaluare (job #2676228)
Borderou de evaluare (job #2676228)
Raport evaluator
Compilare:
main.cpp: In function 'void heapify(int)':
main.cpp:15:14: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
} else if(heap[node].second < max(heap[2 * node + 1].second, heap[2 * node + 2].second))
^
main.cpp: In function 'void buildbst()':
main.cpp:54:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
while(sum + (1 << i) <= n - 1)
^~~~~
main.cpp:55:31: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
sum += (1 << i++); i = 1;
^
main.cpp: In function 'int main()':
main.cpp:105:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("permsort2.in", "r", stdin);
^
main.cpp:106:42: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("permsort2.out", "w", stdout);
^
main.cpp:107:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
main.cpp:111:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
heap[n - x] = {i, x};
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 2ms | 131kb | OK | 10 |
| 2 | 49ms | 1048kb | OK | 10 |
| 3 | 71ms | 1703kb | OK | 10 |
| 4 | 83ms | 1716kb | OK | 10 |
| 5 | 83ms | 1703kb | OK | 10 |
| 6 | 82ms | 1703kb | OK | 10 |
| 7 | 173ms | 3276kb | OK | 10 |
| 8 | 166ms | 3276kb | OK | 10 |
| 9 | 173ms | 3276kb | OK | 10 |
| 10 | 2ms | 131kb | OK | 10 |
| Punctaj total | 100 |