Borderou de evaluare (job #1260885)

Utilizator thinkphpAdrian Statescu thinkphp Data 11 noiembrie 2014 18:47:37
Problema Sortare prin comparare Status done
Runda Arhiva educationala Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘bubblesort’: user.c:53:15: error: ‘a’ undeclared (first use in this function) x = vec[ a ] ^ vec[ b ]; ^ user.c:53:15: note: each undeclared identifier is reported only once for each function it appears in user.c:53:26: error: ‘b’ undeclared (first use in this function) x = vec[ a ] ^ vec[ b ]; ^ user.c: In function ‘read’: user.c:18:13: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen(FIN, "r", stdin); ^ user.c:20:11: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.c:22:34: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] for(i = 0; i < n; i++) scanf("%d", &vec[ i ]); ^ user.c: In function ‘write’: user.c:31:13: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen(FOUT, "w", stdout); ^

Ceva nu functioneaza?