#553
Să se determine indicele maximului şi cel al minimului valorilor elementelor unui vector.
Problema | PozMinMax | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #57231134 | Utilizator | |
Fișier | pozminmax.cpp | Dimensiune | 490 B |
Data încărcării | 20 Martie 2025, 22:45 | Scor / rezultat | Eroare de compilare |
pozminmax.cpp: In function 'int main()': pozminmax.cpp:14:17: error: invalid operands of types 'long int' and '<unresolved overloaded function type>' to binary 'operator<' if(x[i]<min) ^ pozminmax.cpp:15:16: error: overloaded function with no contextual type information min=x[i]; ^ pozminmax.cpp:16:17: error: invalid operands of types 'long int' and '<unresolved overloaded function type>' to binary 'operator>' if(x[i]>max) ^ pozminmax.cpp:17:16: error: overloaded function with no contextual type information max=x[i]; ^ pozminmax.cpp:21:18: error: invalid operands of types 'long int' and '<unresolved overloaded function type>' to binary 'operator==' if(x[i]==min) ^ pozminmax.cpp:23:18: error: invalid operands of types 'long int' and '<unresolved overloaded function type>' to binary 'operator==' if(x[i]==max) ^
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ă.