#934
Se dau în plan, un punct și un segment. Să se determine distanța minimă de la punctul dat la un punct aparținând segmentului.
| Problema | DistantaPunctSegment | Operații I/O |
distantapunctsegment.in/distantapunctsegment.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #59876883 | Utilizator | |
| Fișier | distantapunctsegment.cpp | Dimensiune | 931 B |
| Data încărcării | 11 Octombrie 2025, 21:55 | Scor/rezultat | Eroare de compilare |
distantapunctsegment.cpp:4:3: error: invalid preprocessing directive #ifstream #ifstream.fin("distantapunctsegment.in"); ^ distantapunctsegment.cpp:5:3: error: invalid preprocessing directive #ofstream #ofstream.fout("distantapunctsegment.out"); ^ distantapunctsegment.cpp: In function 'int main()': distantapunctsegment.cpp:8:5: error: 'fin' was not declared in this scope fin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3; ^ distantapunctsegment.cpp:38:5: error: 'fout' was not declared in this scope fout << p << "."; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema DistantaPunctSegment 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ă.