#553
PozMinMax
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 | #24302690 | Utilizator | |
Fișier | pozminmax.cpp | Dimensiune | 955 B |
Data încărcării | 05 Octombrie 2020, 01:12 | Scor / rezultat | Eroare de compilare |
pozminmax.cpp:1:7: error: expected nested-name-specifier before 'System' using System; ^ pozminmax.cpp:1:7: error: 'System' has not been declared pozminmax.cpp:2:7: error: expected nested-name-specifier before 'System' using System.Collections.Generic; ^ pozminmax.cpp:2:7: error: 'System' has not been declared pozminmax.cpp:2:13: error: expected ';' before '.' token using System.Collections.Generic; ^ pozminmax.cpp:2:13: error: expected unqualified-id before '.' token pozminmax.cpp:3:7: error: expected nested-name-specifier before 'System' using System.Linq; ^ pozminmax.cpp:3:7: error: 'System' has not been declared pozminmax.cpp:3:13: error: expected ';' before '.' token using System.Linq; ^ pozminmax.cpp:3:13: error: expected unqualified-id before '.' token pozminmax.cpp:4:7: error: expected nested-name-specifier before 'System' using System.Text; ^ pozminmax.cpp:4:7: error: 'System' has not been declared pozminmax.cpp:4:13: error: expected ';' before '.' token using System.Text; ^ pozminmax.cpp:4:13: error: expected unqualified-id before '.' token pozminmax.cpp:5:7: error: expected nested-name-specifier before 'System' using System.Threading.Tasks; ^ pozminmax.cpp:5:7: error: 'System' has not been declared pozminmax.cpp:5:13: error: expected ';' before '.' token using System.Threading.Tasks; ^ pozminmax.cpp:5:13: error: expected unqualified-id before '.' token pozminmax.cpp:11:26: error: 'string' has not been declared static void Main(string[] args) ^ pozminmax.cpp:11:35: error: expected ',' or '...' before 'args' static void Main(string[] args) ^ pozminmax.cpp:35:5: error: expected ';' after class definition } ^ pozminmax.cpp: In static member function 'static void _553::Program::Main(int*)': pozminmax.cpp:13:16: error: expected unqualified-id before '[' token int[] v= new int[1001]; ^ pozminmax.cpp:14:21: error: 'Convert' was not declared in this scope int n = Convert.ToInt32(Console.ReadLine()); ^ pozminmax.cpp:14:37: error: 'Console' was not declared in this scope int n = Convert.ToInt32(Console.ReadLine()); ^ pozminmax.cpp:16:17: error: 'v' was not declared in this scope v[i] = Convert.ToInt32(Console.ReadLine()); ^ pozminmax.cpp:17:24: error: 'v' was not declared in this scope int minn = v[1], maxx = v[1]; ^ pozminmax.cpp:26:28: error: 'maxx' was not declared in this scope if (v[i] > maxx) ^
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ă.