Detalii evaluare #54643008

Rezumat problemă

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.

Detalii

Problema Puncte Operații I/O tastatură/ecran
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #54643008 Utilizator Măgdălin Maria (maria_magdalin)
Fișier puncte.cpp Dimensiune 611 B
Data încărcării 04 Decembrie 2024, 13:27 Scor / rezultat Eroare de compilare

Evaluare


Mesaj 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<<setprecision(4)<<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

Cum funcționează evaluarea?

www.pbinfo.ro permite evaluarea a două tipuri de probleme:

  • probleme la care rezolvarea presupune scrierea unui program complet
  • probleme la care rezolvarea presupune scrierea unei secvențe de program - câteva instrucțiuni, o listă de declarații, una sau mai multe funcții, etc.

Problema Puncte face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:

  • Programul sursă este compilat folosind compilatorul corespunzător. Dacă în urma compilării se obțin erori sau avertismente, acestea sunt afișate în această pagină.
  • Dacă programul a fost compilat, executabilul obținut va fi rulat, furnizându-i-se unul sau mai multe seturi de date de intrare, în concordanță cu restricțiile specifice problemei. Pentru fiecare set de date se obține un anumit punctaj, în raport cu corectitudinea soluției tale.

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ă.