#922
Puncte
Se dau coordonatele carteziene a n
puncte în plan. Să se determine distanța maximă dintre un punct dat și originea sistemului de coordonate și numărul de puncte situate la acea distanță față de origine.
Problema | Puncte | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #6090732 | Utilizator | |
Fișier | puncte.cpp | Dimensiune | 1.19 KB |
Data încărcării | 12 Octombrie 2017, 11:53 | Scor / rezultat | Eroare de compilare |
puncte.cpp:1:7: error: expected nested-name-specifier before 'System' using System; ^ puncte.cpp:1:7: error: 'System' has not been declared puncte.cpp:2:7: error: expected nested-name-specifier before 'System' using System.Collections.Generic; ^ puncte.cpp:2:7: error: 'System' has not been declared puncte.cpp:2:13: error: expected ';' before '.' token using System.Collections.Generic; ^ puncte.cpp:2:13: error: expected unqualified-id before '.' token puncte.cpp:3:7: error: expected nested-name-specifier before 'System' using System.Linq; ^ puncte.cpp:3:7: error: 'System' has not been declared puncte.cpp:3:13: error: expected ';' before '.' token using System.Linq; ^ puncte.cpp:3:13: error: expected unqualified-id before '.' token puncte.cpp:4:7: error: expected nested-name-specifier before 'System' using System.Text; ^ puncte.cpp:4:7: error: 'System' has not been declared puncte.cpp:4:13: error: expected ';' before '.' token using System.Text; ^ puncte.cpp:4:13: error: expected unqualified-id before '.' token puncte.cpp:5:7: error: expected nested-name-specifier before 'System' using System.Threading.Tasks; ^ puncte.cpp:5:7: error: 'System' has not been declared puncte.cpp:5:13: error: expected ';' before '.' token using System.Threading.Tasks; ^ puncte.cpp:5:13: error: expected unqualified-id before '.' token puncte.cpp:12:26: error: 'string' has not been declared static void Main(string[] args) ^ puncte.cpp:12:35: error: expected ',' or '...' before 'args' static void Main(string[] args) ^ puncte.cpp:47:5: error: expected ';' after class definition } ^ puncte.cpp: In static member function 'static void puncte::Program::Main(int*)': puncte.cpp:27:13: error: 'punct' was not declared in this scope punct p; ^ puncte.cpp:27:19: error: expected ';' before 'p' punct p; ^ puncte.cpp:30:17: error: expected primary-expression before 'int' n = int.Parse(Console.ReadLine()); ^ puncte.cpp:30:17: error: expected ';' before 'int' puncte.cpp:34:17: error: 'string' was not declared in this scope string s = Console.ReadLine(); ^ puncte.cpp:34:24: error: expected ';' before 's' string s = Console.ReadLine(); ^ puncte.cpp:35:17: error: 'p' was not declared in this scope p = new punct(s); ^ puncte.cpp:35:25: error: expected type-specifier before 'punct' p = new punct(s); ^ puncte.cpp:35:25: error: expected ';' before 'punct' puncte.cpp:43:13: error: 'Console' was not declared in this scope Console.WriteLine(dmax + " " + c); ^ puncte.cpp:43:38: error: invalid operands of types 'double' and 'const char [2]' to binary 'operator+' Console.WriteLine(dmax + " " + c); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Puncte 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ă.