Borderou de evaluare (job #2767295)

Utilizator tryharderulbrebenel mihnea stefan tryharderul Data 5 august 2021 15:32:18
Problema Bleach Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void heapsort(int*, int, int)': main.cpp:68:17: error: 'smaller' was not declared in this scope heap<int> h(smaller); ^~~~~~~ main.cpp: In function 'int main()': main.cpp:93:18: error: too few arguments to function 'void heapsort(int*, int, int)' heapsort(v, n); ^ main.cpp:67:6: note: declared here void heapsort(int *v, int n, int k) { ^~~~~~~~ main.cpp:87:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("bleach.in","r",stdin); ^ main.cpp:88:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("bleach.out","w",stdout); ^ main.cpp:89:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&n,&k); ^ main.cpp:91:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&v[i]); ^ Non zero exit status: 1

Ceva nu functioneaza?