Borderou de evaluare (job #1622905)

Utilizator marcdariaDaria Marc marcdaria Data 1 martie 2016 15:42:32
Problema Galagie Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:26:10: error: ‘a’ was not declared in this scope sort(a+1,a+n+1); ^ user.cpp:27:8: error: conflicting declaration ‘int k’ int k=1; ^ user.cpp:17:35: error: ‘k’ has a previous declaration as ‘long long int k’ long long g[MX],n,i,sum=0,rez,k=1; ^ user.cpp:30:8: error: ‘q’ was not declared in this scope q+=pq.top()*(n-k); ^ user.cpp:36:5: error: ‘s’ was not declared in this scope s+=a[i]*u; ^ user.cpp:38:10: error: ‘q’ was not declared in this scope fout<<q-s; ^ user.cpp:38:12: error: ‘s’ was not declared in this scope fout<<q-s; ^ user.cpp:17:25: warning: unused variable ‘sum’ [-Wunused-variable] long long g[MX],n,i,sum=0,rez,k=1; ^ user.cpp:17:31: warning: unused variable ‘rez’ [-Wunused-variable] long long g[MX],n,i,sum=0,rez,k=1; ^

Ceva nu functioneaza?