#553
Să se determine indicele maximului şi cel al minimului valorilor elementelor unui vector.
| Problema | PozMinMax | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64476037 | Utilizator | |
| Fișier | pozminmax.cpp | Dimensiune | 515 B |
| Data încărcării | 09 Mai 2026, 14:14 | Scor/rezultat | 0 puncte |
pozminmax.cpp: In function ‘int main()’: pozminmax.cpp:25:26: warning: ‘indicemin’ may be used uninitialized [-Wmaybe-uninitialized] 25 | cout<<indicemin<<" "<<indicemax; | ^~~ pozminmax.cpp:5:36: note: ‘indicemin’ was declared here 5 | int x[1001], n, i, imin, imax, indicemin, indicemax; | ^~~~~~~~~ pozminmax.cpp:25:31: warning: ‘indicemax’ may be used uninitialized [-Wmaybe-uninitialized] 25 | cout<<indicemin<<" "<<indicemax; | ^~~~~~~~~ pozminmax.cpp:5:47: note: ‘indicemax’ was declared here 5 | int x[1001], n, i, imin, imax, indicemin, indicemax; | ^~~~~~~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
| 2 | 0.001 secunde | Raspuns gresit. | 40 | 0 | ||
| 3 | 0.002 secunde | Raspuns gresit. | 30 | 0 | ||
| 4 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema PozMinMax 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ă.