Borderou de evaluare (job #1392788)

Utilizator Toast97Calin Farcas Toast97 Data 18 martie 2015 21:39:11
Problema Ecuatii Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:11:7: error: expected initializer before ‘w1’ } far w1, far w2; ^ user.cpp:15:32: error: expected ‘,’ or ‘...’ before ‘*’ token void sift(struct workspace far *w, int *hp, int i) ^ user.cpp: In function ‘void sift(workspace)’: user.cpp:19:9: error: ‘i’ was not declared in this scope while((i <<= 1) <= N2) { ^ user.cpp:20:19: error: ‘w’ was not declared in this scope if((i < N2) && (w->val[hp[i]] > w->val[hp[i + 1]])) ^ user.cpp:20:26: error: ‘hp’ was not declared in this scope if((i < N2) && (w->val[hp[i]] > w->val[hp[i + 1]])) ^ user.cpp:22:6: error: ‘w’ was not declared in this scope if(w->val[hp[i]] >= w->val[hp[i >> 1]]) ^ user.cpp:22:13: error: ‘hp’ was not declared in this scope if(w->val[hp[i]] >= w->val[hp[i >> 1]]) ^ user.cpp:24:9: error: ‘hp’ was not declared in this scope tmp = hp[i], hp[i] = hp[i >> 1], hp[i >> 1] = tmp; ^ user.cpp: At global scope: user.cpp:40:49: error: expected ‘,’ or ‘...’ before ‘*’ token void init(int *hp, int *a, struct workspace far *w) ^ user.cpp: In function ‘void init(int*, int*, workspace)’: user.cpp:47:3: error: ‘w’ was not declared in this scope w->next[i] = -50; ^ user.cpp:51:8: error: ‘w’ was not declared in this scope sift(w, hp, i); ^ user.cpp:42:9: warning: unused variable ‘j’ [-Wunused-variable] int i, j; ^ user.cpp:43:7: warning: unused variable ‘v1’ [-Wunused-variable] long v1, v2; ^ user.cpp:43:11: warning: unused variable ‘v2’ [-Wunused-variable] long v1, v2; ^ user.cpp: At global scope: user.cpp:54:52: error: expected ‘,’ or ‘...’ before ‘*’ token void extract(int *hp, int *a, struct workspace far *w) ^ user.cpp: In function ‘void extract(int*, int*, workspace)’:

Ceva nu functioneaza?