#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 | #57595292 | Utilizator | |
Fișier | intersectiesegmente.cpp | Dimensiune | 1.63 KB |
Data încărcării | 07 Aprilie 2025, 01:44 | Scor / rezultat | Eroare de compilare |
intersectiesegmente.cpp: In function 'int det(int, int, int, int, int, int)': intersectiesegmente.cpp:9:14: error: 'x1' was not declared in this scope return(x1 - x2) * (y2 - y3) - (y1 - y2) * (x2 - x3); ^ intersectiesegmente.cpp:9:19: error: 'x2' was not declared in this scope return(x1 - x2) * (y2 - y3) - (y1 - y2) * (x2 - x3); ^ intersectiesegmente.cpp:9:26: error: 'y2' was not declared in this scope return(x1 - x2) * (y2 - y3) - (y1 - y2) * (x2 - x3); ^ intersectiesegmente.cpp:9:31: error: 'y3' was not declared in this scope return(x1 - x2) * (y2 - y3) - (y1 - y2) * (x2 - x3); ^ intersectiesegmente.cpp:9:55: error: 'x3' was not declared in this scope return(x1 - x2) * (y2 - y3) - (y1 - y2) * (x2 - x3); ^ intersectiesegmente.cpp:10: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ă.