Borderou de evaluare (job #823541)

Utilizator avatar Radu_Balas Radu Andrei Balas Radu_Balas IP ascuns
Problemă Selecţie (clasa a 6-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 11 mai 2025 21:12:16 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:13:10: error: 'sort' is not a member of 'std'; did you mean 'qsort'? 13 | std::sort(v,v+n); | ^~~~ | qsort main.cpp:9:9: warning: unused variable 'max' [-Wunused-variable] 9 | int max,u,n,i,p,k; | ^~~ main.cpp:9:13: warning: unused variable 'u' [-Wunused-variable] 9 | int max,u,n,i,p,k; | ^ main.cpp:9:19: warning: unused variable 'p' [-Wunused-variable] 9 | int max,u,n,i,p,k; | ^ main.cpp:10:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 10 | fscanf(fin,"%d%d",&n,&k); | ~~~~~~^~~~~~~~~~~~~~~~~~ main.cpp:12:15: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 12 | fscanf(fin,"%d",&v[i]); | ~~~~~~^~~~~~~~~~~~~~~~