Borderou de evaluare (job #2820721)

Utilizator mircea_007Mircea Rebengiuc mircea_007 Data 21 decembrie 2021 12:25:53
Problema Arbore partial de cost minim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:6: warning: "MAXM" redefined 6 | #define MAXM | main.cpp:5: note: this is the location of the previous definition 5 | #define MAXM 800000 | main.cpp:9:5: error: storage size of 'ea' isn't known 9 | int ea[MAXM]; | ^~ main.cpp:10:5: error: storage size of 'eb' isn't known 10 | int eb[MAXM]; | ^~ main.cpp:11:5: error: storage size of 'ec' isn't known 11 | int ec[MAXM]; | ^~ main.cpp:13:5: error: storage size of 'reza' isn't known 13 | int reza[MAXM]; | ^~~~ main.cpp:14:5: error: storage size of 'rezb' isn't known 14 | int rezb[MAXM]; | ^~~~ main.cpp: In function 'void myqsort(int, int)': main.cpp:29:5: error: 'aux' was not declared in this scope 29 | aux = ec[b]; | ^~~ main.cpp: In function 'int main()': main.cpp:64:27: error: 'a' was not declared in this scope 64 | fscanf(fin, "%d%d%d", a + i, b + i, c + i); | ^ main.cpp:64:34: error: 'b' was not declared in this scope 64 | fscanf(fin, "%d%d%d", a + i, b + i, c + i); | ^ main.cpp:64:41: error: 'c' was not declared in this scope 64 | fscanf(fin, "%d%d%d", a + i, b + i, c + i); | ^ main.cpp:71:19: error: 'a' was not declared in this scope 71 | if( (u = find(a[i])) != (v = find(b[i])) ){ | ^ main.cpp:71:39: error: 'b' was not declared in this scope 71 | if( (u = find(a[i])) != (v = find(b[i])) ){ | ^ main.cpp:72:25: error: expected ']' before ';' token 72 | reza[rez = a[i]; | ^ | ] main.cpp:75:15: error: 'c' was not declared in this scope 75 | cost += c[i]; | ^ main.cpp:58:10: warning: unused variable 'm' [-Wunused-variable] 58 | int n, m, i, u, v, rez, cost; Non zero exit status: 1

Ceva nu functioneaza?