Borderou de evaluare (job #1318816)

Utilizator thinkphpAdrian Statescu thinkphp Data 16 ianuarie 2015 13:22:01
Problema Sortare prin comparare Status done
Runda Arhiva educationala Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘_mergesort’: user.c:79:16: error: incompatible types when assigning to type ‘uint[(sizetype)(right + 1u)]’ from type ‘uint *’ temp = ( uint* ) malloc(sizeof( uint ) * ( right + 1 )); ^ user.c: In function ‘read’: user.c:33:10: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen(FIN, "r", stdin); ^ user.c:35:8: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &size); ^ user.c:39:34: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] for(i = 0; i < size; ++i) scanf("%d", arr + i); ^ user.c: In function ‘display’: user.c:48:10: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen(FOUT, "w", stdout); ^

Ceva nu functioneaza?