Borderou de evaluare (job #1849772)

Utilizator 1475369147896537415369Andrei Udriste 1475369147896537415369 Data 17 ianuarie 2017 20:11:48
Problema Sortare prin comparare Status done
Runda Arhiva educationala Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘part’: user.c:8:9: error: ‘a’ undeclared (first use in this function) p = a [m]; ^ user.c:8:9: note: each undeclared identifier is reported only once for each function it appears in user.c:5:14: warning: variable ‘m’ set but not used [-Wunused-but-set-variable] int aux, m, p, i, j; ^ user.c: In function ‘QuickSort’: user.c:24:9: warning: unused variable ‘m’ [-Wunused-variable] int m, sp; ^ user.c: In function ‘main’: user.c:38:11: warning: unused variable ‘x’ [-Wunused-variable] int N, i, x, A[500004]; ^ user.c:35:8: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("algsort.in", "r", stdin); ^ user.c:36:8: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("algsort.out", "w", stdout); ^ user.c:40:6: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &N); ^ user.c:43:10: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &A[i]); ^

Ceva nu functioneaza?