#930
Se dau două segmente în plan, specificate prin coordonatele capetelor. Să se verifice dacă au cel puțin un punct comun.
| Problema | IntersectieSegmente | Operații I/O |
intersectiesegmente.in/intersectiesegmente.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #63626017 | Utilizator | |
| Fișier | intersectiesegmente.cpp | Dimensiune | 1.42 KB |
| Data încărcării | 11 Martie 2026, 18:50 | Scor/rezultat | Eroare de compilare |
intersectiesegmente.cpp:28:69: error: 'P' has not been declared bool verificare(int oA,int oB,int oC,int oD,Punct A,Punct B,Punct C,P unct D){ ^ intersectiesegmente.cpp:28:76: error: expected ',' or '...' before 'D' bool verificare(int oA,int oB,int oC,int oD,Punct A,Punct B,Punct C,P unct D){ ^ intersectiesegmente.cpp: In function 'void Rezolvare()': intersectiesegmente.cpp:41:39: error: cannot convert 'Punct' to 'int' for argument '8' to 'bool verificare(int, int, int, int, Punct, Punct, Punct, int)' if (verificare(oA,oB,oC,oD,A,B,C,D)) ^ intersectiesegmente.cpp: In function 'bool peSegment(Punct, Punct, Punct)': intersectiesegmente.cpp:27:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ intersectiesegmente.cpp: In function 'bool verificare(int, int, int, int, Punct, Punct, Punct, int)': intersectiesegmente.cpp:35:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema IntersectieSegmente 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ă.