Borderou de evaluare (job #1331728)

Utilizator charmpitzAndrei Pit charmpitz Data 1 februarie 2015 01:23:55
Problema Heapuri Status done
Runda Arhiva educationala Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c:59:1: error: unknown type name ‘per’ per x[200001], aux; ^ user.c: In function ‘main’: user.c:85:10: error: request for member ‘val’ in something not a structure or union x[nx].val = val; ^ user.c:86:10: error: request for member ‘pos’ in something not a structure or union x[nx].pos = c; ^ user.c:90:30: error: request for member ‘val’ in something not a structure or union while ((j > 1) && (x[j/2].val > x[j].val)) ^ user.c:90:41: error: request for member ‘val’ in something not a structure or union while ((j > 1) && (x[j/2].val > x[j].val)) ^ user.c:96:16: error: request for member ‘pos’ in something not a structure or union pos[x[j/2].pos] = j/2; ^ user.c:97:14: error: request for member ‘pos’ in something not a structure or union pos[x[j].pos] = j; ^ user.c:108:14: error: request for member ‘pos’ in something not a structure or union pos[x[nx].pos] = j; ^ user.c:114:32: error: request for member ‘val’ in something not a structure or union if ((j*2 <= nx) && (x[j*2].val < min)) ^ user.c:116:19: error: request for member ‘val’ in something not a structure or union min = x[j*2].val; ^ user.c:120:35: error: request for member ‘val’ in something not a structure or union if ((j*2+1 <=nx) && (x[j*2+1].val < min)) ^ user.c:122:21: error: request for member ‘val’ in something not a structure or union min = x[j*2+1].val; ^ user.c:126:14: error: request for member ‘val’ in something not a structure or union if (x[j].val > min) ^ user.c:132:16: error: request for member ‘pos’ in something not a structure or union pos[x[pj].pos] = pj; ^ user.c:133:15: error: request for member ‘pos’ in something not a structure or union pos[x[j].pos] = j; ^ user.c:146:30: error: request for member ‘val’ in something not a structure or union fprintf(out, "%d\n", x[1].val); ^ user.c:69:8: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]

Ceva nu functioneaza?