#4146
Se dă un vector cu n elemente, numere naturale. Afișați în ordine descrescătoare valorile divizibile cu 10 din acest vector.
| Problema | Sort10 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64567999 | Utilizator | |
| Fișier | sort10.cpp | Dimensiune | 190 B |
| Data încărcării | 14 Mai 2026, 18:29 | Scor/rezultat | Eroare de compilare |
sort10.cpp:3:10: error: cannot resolve overloaded function ‘max’ based on conversion to type ‘long unsigned int’ 3 | int v[max],v[min],v[1000],n,d,v[i] | ^ sort10.cpp:3:5: error: size of array ‘v’ has non-integral type ‘<unresolved overloaded function type>’ 3 | int v[max],v[min],v[1000],n,d,v[i] | ^ sort10.cpp:3:17: error: cannot resolve overloaded function ‘min’ based on conversion to type ‘long unsigned int’ 3 | int v[max],v[min],v[1000],n,d,v[i] | ^ sort10.cpp:3:12: error: size of array ‘v’ has non-integral type ‘<unresolved overloaded function type>’ 3 | int v[max],v[min],v[1000],n,d,v[i] | ^ sort10.cpp:3:12: error: redefinition of ‘int v [1]’ sort10.cpp:3:5: note: ‘int v [1]’ previously declared here 3 | int v[max],v[min],v[1000],n,d,v[i] | ^ sort10.cpp:3:19: error: conflicting declaration ‘int v [1000]’ 3 | int v[max],v[min],v[1000],n,d,v[i] | ^ sort10.cpp:3:5: note: previous declaration as ‘int v [1]’ 3 | int v[max],v[min],v[1000],n,d,v[i] | ^ sort10.cpp:3:33: error: ‘i’ was not declared in this scope 3 | int v[max],v[min],v[1000],n,d,v[i] | ^ sort10.cpp:4:1: error: expected initializer before ‘int’ 4 | int main() | ^~~
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Sort10 face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.