#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 | #50300355 | Utilizator | |
Fișier | puncte.cpp | Dimensiune | 526 B |
Data încărcării | 03 Aprilie 2024, 19:38 | Scor / rezultat | Eroare de compilare |
puncte.cpp:8:9: error: expected unqualified-id before ',' token int , x , y; ^ puncte.cpp: In function 'int main()': puncte.cpp:15:21: error: 'struct plan' has no member named 'x' cin >> v[i].x >> v[i].y ; ^ puncte.cpp:15:31: error: 'struct plan' has no member named 'y' cin >> v[i].x >> v[i].y ; ^ puncte.cpp:16:21: error: 'struct plan' has no member named 'x' d=sqrt(v[i].x*v[i].x+v[i].y*v[i].y); ^ puncte.cpp:16:28: error: 'struct plan' has no member named 'x' d=sqrt(v[i].x*v[i].x+v[i].y*v[i].y); ^ puncte.cpp:16:35: error: 'struct plan' has no member named 'y' d=sqrt(v[i].x*v[i].x+v[i].y*v[i].y); ^ puncte.cpp:16:42: error: 'struct plan' has no member named 'y' d=sqrt(v[i].x*v[i].x+v[i].y*v[i].y); ^ puncte.cpp:22:22: error: 'struct plan' has no member named 'x' d=sqrt(v[i].x*v[i].x+v[i].y*v[i].y); ^ puncte.cpp:22:29: error: 'struct plan' has no member named 'x' d=sqrt(v[i].x*v[i].x+v[i].y*v[i].y); ^ puncte.cpp:22:36: error: 'struct plan' has no member named 'y' d=sqrt(v[i].x*v[i].x+v[i].y*v[i].y); ^ puncte.cpp:22:43: error: 'struct plan' has no member named 'y' d=sqrt(v[i].x*v[i].x+v[i].y*v[i].y); ^
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ă.