Pagini recente » Borderou de evaluare (job #1324948) | Borderou de evaluare (job #2267543) | Borderou de evaluare (job #2876734) | Borderou de evaluare (job #537854) | Borderou de evaluare (job #2676231)
Borderou de evaluare (job #2676231)
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:44:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
while(sum + (1 << i) <= n - 1)
^~~~~
main.cpp:45: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:90: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:91: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:92:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
main.cpp:96: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 | 48ms | 1048kb | OK | 10 |
3 | 81ms | 1703kb | OK | 10 |
4 | 66ms | 1703kb | OK | 10 |
5 | 82ms | 1703kb | OK | 10 |
6 | 81ms | 1703kb | OK | 10 |
7 | 167ms | 3338kb | OK | 10 |
8 | 159ms | 3276kb | OK | 10 |
9 | 162ms | 3276kb | OK | 10 |
10 | 2ms | 131kb | OK | 10 |
Punctaj total | 100 |