Borderou de evaluare (job #1677993)

Utilizator GinguIonutGinguIonut GinguIonut Data 6 aprilie 2016 22:15:13
Problema Sortare prin comparare Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void read()’: user.cpp:6:5: error: ‘fin’ was not declared in this scope fin>>n; ^ user.cpp:6:10: error: ‘n’ was not declared in this scope fin>>n; ^ user.cpp:9:14: error: ‘v’ was not declared in this scope fin>>v[i]; ^ user.cpp: In function ‘void mergesort(int, int)’: user.cpp:16:12: error: ‘v’ was not declared in this scope if(v[st]>v[dr]) ^ user.cpp:23:33: error: expected primary-expression before ‘)’ token for(int ii=st, jj=mid+1;ii<=) ^ user.cpp:23:33: error: expected ‘;’ before ‘)’ token user.cpp:24:1: error: expected primary-expression before ‘}’ token } ^ user.cpp:24:1: error: expected ‘;’ before ‘}’ token user.cpp:23:20: warning: unused variable ‘jj’ [-Wunused-variable] for(int ii=st, jj=mid+1;ii<=) ^ user.cpp: In function ‘int main()’: user.cpp:28:18: error: ‘n’ was not declared in this scope mergesort(1, n); ^

Ceva nu functioneaza?