#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 | #54643019 | Utilizator | |
Fișier | puncte.cpp | Dimensiune | 594 B |
Data încărcării | 04 Decembrie 2024, 13:27 | Scor / rezultat | Eroare de compilare |
puncte.cpp:7:1: error: stray '\302' in program int x,y; ^ puncte.cpp:7:1: error: stray '\240' in program puncte.cpp:7:1: error: stray '\302' in program puncte.cpp:7:1: error: stray '\240' in program puncte.cpp:8:1: error: stray '\302' in program float dist; ^ puncte.cpp:8:1: error: stray '\240' in program puncte.cpp:8:1: error: stray '\302' in program puncte.cpp:8:1: error: stray '\240' in program puncte.cpp:12:1: error: stray '\302' in program int n,i,nr=0; ^ puncte.cpp:12:1: error: stray '\240' in program puncte.cpp:12:1: error: stray '\302' in program puncte.cpp:12:1: error: stray '\240' in program puncte.cpp:13:1: error: stray '\302' in program float distmax=0; ^ puncte.cpp:13:1: error: stray '\240' in program puncte.cpp:13:1: error: stray '\302' in program puncte.cpp:13:1: error: stray '\240' in program puncte.cpp:14:1: error: stray '\302' in program cin>>n; ^ puncte.cpp:14:1: error: stray '\240' in program puncte.cpp:14:1: error: stray '\302' in program puncte.cpp:14:1: error: stray '\240' in program puncte.cpp:15:1: error: stray '\302' in program for(i=1; i<=n; i++) ^ puncte.cpp:15:1: error: stray '\240' in program puncte.cpp:15:1: error: stray '\302' in program puncte.cpp:15:1: error: stray '\240' in program puncte.cpp:16:1: error: stray '\302' in program { ^ puncte.cpp:16:1: error: stray '\240' in program puncte.cpp:16:1: error: stray '\302' in program puncte.cpp:16:1: error: stray '\240' in program puncte.cpp:17:1: error: stray '\302' in program cin>>p.x>>p.y; ^ puncte.cpp:17:1: error: stray '\240' in program puncte.cpp:17:1: error: stray '\302' in program puncte.cpp:17:1: error: stray '\240' in program puncte.cpp:17:1: error: stray '\302' in program puncte.cpp:17:1: error: stray '\240' in program puncte.cpp:17:1: error: stray '\302' in program puncte.cpp:17:1: error: stray '\240' in program puncte.cpp:18:1: error: stray '\302' in program p.dist=sqrt(p.x*p.x+p.y*p.y); ^ puncte.cpp:18:1: error: stray '\240' in program puncte.cpp:18:1: error: stray '\302' in program puncte.cpp:18:1: error: stray '\240' in program puncte.cpp:18:1: error: stray '\302' in program puncte.cpp:18:1: error: stray '\240' in program puncte.cpp:18:1: error: stray '\302' in program puncte.cpp:18:1: error: stray '\240' in program puncte.cpp:19:1: error: stray '\302' in program if(p.dist>distmax) ^ puncte.cpp:19:1: error: stray '\240' in program puncte.cpp:19:1: error: stray '\302' in program puncte.cpp:19:1: error: stray '\240' in program puncte.cpp:19:1: error: stray '\302' in program puncte.cpp:19:1: error: stray '\240' in program puncte.cpp:19:1: error: stray '\302' in program puncte.cpp:19:1: error: stray '\240' in program puncte.cpp:20:1: error: stray '\302' in program { ^ puncte.cpp:20:1: error: stray '\240' in program puncte.cpp:20:1: error: stray '\302' in program puncte.cpp:20:1: error: stray '\240' in program puncte.cpp:20:1: error: stray '\302' in program puncte.cpp:20:1: error: stray '\240' in program puncte.cpp:20:1: error: stray '\302' in program puncte.cpp:20:1: error: stray '\240' in program puncte.cpp:21:1: error: stray '\302' in program distmax=p.dist; ^ puncte.cpp:21:1: error: stray '\240' in program puncte.cpp:21:1: error: stray '\302' in program puncte.cpp:21:1: error: stray '\240' in program puncte.cpp:21:1: error: stray '\302' in program puncte.cpp:21:1: error: stray '\240' in program puncte.cpp:21:1: error: stray '\302' in program puncte.cpp:21:1: error: stray '\240' in program puncte.cpp:21:1: error: stray '\302' in program puncte.cpp:21:1: error: stray '\240' in program puncte.cpp:21:1: error: stray '\302' in program puncte.cpp:21:1: error: stray '\240' in program puncte.cpp:22:1: error: stray '\302' in program nr=1; ^ puncte.cpp:22:1: error: stray '\240' in program puncte.cpp:22:1: error: stray '\302' in program puncte.cpp:22:1: error: stray '\240' in program puncte.cpp:22:1: error: stray '\302' in program puncte.cpp:22:1: error: stray '\240' in program puncte.cpp:22:1: error: stray '\302' in program puncte.cpp:22:1: error: stray '\240' in program puncte.cpp:22:1: error: stray '\302' in program puncte.cpp:22:1: error: stray '\240' in program puncte.cpp:22:1: error: stray '\302' in program puncte.cpp:22:1: error: stray '\240' in program puncte.cpp:23:1: error: stray '\302' in program } ^ puncte.cpp:23:1: error: stray '\240' in program puncte.cpp:23:1: error: stray '\302' in program puncte.cpp:23:1: error: stray '\240' in program puncte.cpp:23:1: error: stray '\302' in program puncte.cpp:23:1: error: stray '\240' in program puncte.cpp:23:1: error: stray '\302' in program puncte.cpp:23:1: error: stray '\240' in program puncte.cpp:24:1: error: stray '\302' in program else ^ puncte.cpp:24:1: error: stray '\240' in program puncte.cpp:24:1: error: stray '\302' in program puncte.cpp:24:1: error: stray '\240' in program puncte.cpp:24:1: error: stray '\302' in program puncte.cpp:24:1: error: stray '\240' in program puncte.cpp:24:1: error: stray '\302' in program puncte.cpp:24:1: error: stray '\240' in program puncte.cpp:25:1: error: stray '\302' in program if(p.dist==distmax) ^ puncte.cpp:25:1: error: stray '\240' in program puncte.cpp:25:1: error: stray '\302' in program puncte.cpp:25:1: error: stray '\240' in program puncte.cpp:25:1: error: stray '\302' in program puncte.cpp:25:1: error: stray '\240' in program puncte.cpp:25:1: error: stray '\302' in program puncte.cpp:25:1: error: stray '\240' in program puncte.cpp:25:1: error: stray '\302' in program puncte.cpp:25:1: error: stray '\240' in program puncte.cpp:25:1: error: stray '\302' in program puncte.cpp:25:1: error: stray '\240' in program puncte.cpp:26:1: error: stray '\302' in program nr++; ^ puncte.cpp:26:1: error: stray '\240' in program puncte.cpp:26:1: error: stray '\302' in program puncte.cpp:26:1: error: stray '\240' in program puncte.cpp:26:1: error: stray '\302' in program puncte.cpp:26:1: error: stray '\240' in program puncte.cpp:26:1: error: stray '\302' in program puncte.cpp:26:1: error: stray '\240' in program puncte.cpp:26:1: error: stray '\302' in program puncte.cpp:26:1: error: stray '\240' in program puncte.cpp:26:1: error: stray '\302' in program puncte.cpp:26:1: error: stray '\240' in program puncte.cpp:26:1: error: stray '\302' in program puncte.cpp:26:1: error: stray '\240' in program puncte.cpp:26:1: error: stray '\302' in program puncte.cpp:26:1: error: stray '\240' in program puncte.cpp:27:1: error: stray '\302' in program } ^ puncte.cpp:27:1: error: stray '\240' in program puncte.cpp:27:1: error: stray '\302' in program puncte.cpp:27:1: error: stray '\240' in program puncte.cpp:28:1: error: stray '\302' in program cout<<distmax<<" "<<nr; ^ puncte.cpp:28:1: error: stray '\240' in program puncte.cpp:28:1: error: stray '\302' in program puncte.cpp:28:1: error: stray '\240' in program puncte.cpp:29:1: error: stray '\302' in program return 0; ^ puncte.cpp:29:1: error: stray '\240' in program puncte.cpp:29:1: error: stray '\302' in program puncte.cpp:29:1: error: stray '\240' in program
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ă.