#922
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 |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #56200521 | Utilizator | |
Fișier | puncte.cpp | Dimensiune | 664 B |
Data încărcării | 10 Februarie 2025, 10:52 | Scor / rezultat | Eroare de compilare |
puncte.cpp: In function 'int main()': puncte.cpp:15:19: error: 'struct fractie' has no member named 'x' cin>>v[i].x>>v[i].y; ^ puncte.cpp:15:27: error: 'struct fractie' has no member named 'y' cin>>v[i].x>>v[i].y; ^ puncte.cpp:19:33: error: 'struct fractie' has no member named 'x' D=(double)sqrt(v[i].x*v[i].x+v[i].y*v[i].y) ^ puncte.cpp:19:40: error: 'struct fractie' has no member named 'x' D=(double)sqrt(v[i].x*v[i].x+v[i].y*v[i].y) ^ puncte.cpp:19:47: error: 'struct fractie' has no member named 'y' D=(double)sqrt(v[i].x*v[i].x+v[i].y*v[i].y) ^ puncte.cpp:19:54: error: 'struct fractie' has no member named 'y' D=(double)sqrt(v[i].x*v[i].x+v[i].y*v[i].y) ^ puncte.cpp:20:13: error: expected ';' before 'if' if(D>Max) ^ puncte.cpp:28:19: error: 'struct fractie' has no member named 'x' cin>>v[i].x>>v[i].y; ^ puncte.cpp:28:27: error: 'struct fractie' has no member named 'y' cin>>v[i].x>>v[i].y; ^ puncte.cpp:32:33: error: 'struct fractie' has no member named 'x' D=(double)sqrt(v[i].x*v[i].x+v[i].y*v[i].y) ^ puncte.cpp:32:40: error: 'struct fractie' has no member named 'x' D=(double)sqrt(v[i].x*v[i].x+v[i].y*v[i].y) ^ puncte.cpp:32:47: error: 'struct fractie' has no member named 'y' D=(double)sqrt(v[i].x*v[i].x+v[i].y*v[i].y) ^ puncte.cpp:32:54: error: 'struct fractie' has no member named 'y' D=(double)sqrt(v[i].x*v[i].x+v[i].y*v[i].y) ^ puncte.cpp:33:13: error: expected ';' before 'if' if(D>Max) ^ puncte.cpp:36:15: error: 'Max' was not declared in this scope cout<<Max<<nr; ^ puncte.cpp:38:1: error: expected '}' at end of input } ^
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ă.