#3980
Se citește un număr natural nenul n și apoi se citesc n numere naturale. Calculați suma dintre valoarea minimă și valoarea maximă.
| Problema | MinPlusMax | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #60494181 | Utilizator | |
| Fișier | minplusmax.cpp | Dimensiune | 2.59 KB |
| Data încărcării | 03 Noiembrie 2025, 14:56 | Scor/rezultat | Eroare de compilare |
minplusmax.cpp:1:7: error: expected nested-name-specifier before 'System' using System; ^ minplusmax.cpp:1:7: error: 'System' has not been declared minplusmax.cpp:2:7: error: expected nested-name-specifier before 'System' using System.Collections.Generic; ^ minplusmax.cpp:2:7: error: 'System' has not been declared minplusmax.cpp:2:13: error: expected ';' before '.' token using System.Collections.Generic; ^ minplusmax.cpp:2:13: error: expected unqualified-id before '.' token minplusmax.cpp:3:7: error: expected nested-name-specifier before 'System' using System.Linq; ^ minplusmax.cpp:3:7: error: 'System' has not been declared minplusmax.cpp:3:13: error: expected ';' before '.' token using System.Linq; ^ minplusmax.cpp:3:13: error: expected unqualified-id before '.' token minplusmax.cpp:4:7: error: expected nested-name-specifier before 'System' using System.Text; ^ minplusmax.cpp:4:7: error: 'System' has not been declared minplusmax.cpp:4:13: error: expected ';' before '.' token using System.Text; ^ minplusmax.cpp:4:13: error: expected unqualified-id before '.' token minplusmax.cpp:5:7: error: expected nested-name-specifier before 'System' using System.Threading.Tasks; ^ minplusmax.cpp:5:7: error: 'System' has not been declared minplusmax.cpp:5:13: error: expected ';' before '.' token using System.Threading.Tasks; ^ minplusmax.cpp:5:13: error: expected unqualified-id before '.' token minplusmax.cpp:7:14: error: expected '{' before '.' token namespace _11._3._25 ^ minplusmax.cpp:7:14: error: expected unqualified-id before '.' token minplusmax.cpp:84:1: error: expected '}' at end of input } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema MinPlusMax 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ă.