#930
IntersectieSegmente
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 | #50005070 | Utilizator | |
Fișier | intersectiesegmente.cpp | Dimensiune | 1.33 KB |
Data încărcării | 23 Martie 2024, 10:34 | Scor / rezultat | Eroare de compilare |
intersectiesegmente.cpp: In function 'int main()': intersectiesegmente.cpp:32:40: error: 'X4' was not declared in this scope if (punctPeSegment(X1, Y1, X2, Y2, X4, Y4)) { ^ intersectiesegmente.cpp:32:44: error: 'Y4' was not declared in this scope if (punctPeSegment(X1, Y1, X2, Y2, X4, Y4)) { ^ intersectiesegmente.cpp:36:32: error: 'X4' was not declared in this scope if (punctPeSegment(X3, Y3, X4, Y4, X1, Y1)) { ^ intersectiesegmente.cpp:36:36: error: 'Y4' was not declared in this scope if (punctPeSegment(X3, Y3, X4, Y4, X1, Y1)) { ^ intersectiesegmente.cpp:40:32: error: 'X4' was not declared in this scope if (punctPeSegment(X3, Y3, X4, Y4, X2, Y2)) { ^ intersectiesegmente.cpp:40:36: error: 'Y4' was not declared in this scope if (punctPeSegment(X3, Y3, X4, Y4, X2, Y2)) { ^ intersectiesegmente.cpp:44:5: error: 'd1' was not declared in this scope d1 = det(X3, Y3, X4, Y4, X1, Y1); ^ intersectiesegmente.cpp:44:22: error: 'X4' was not declared in this scope d1 = det(X3, Y3, X4, Y4, X1, Y1); ^ intersectiesegmente.cpp:44:26: error: 'Y4' was not declared in this scope d1 = det(X3, Y3, X4, Y4, X1, Y1); ^ intersectiesegmente.cpp:45:5: error: 'd2' was not declared in this scope d2 = det(X3, Y3, X4, Y4, X2, Y2); ^ intersectiesegmente.cpp:46:5: error: 'd3' was not declared in this scope d3 = det(X1, Y1, X2, Y2, X3, Y3); ^ intersectiesegmente.cpp:47:5: error: 'd4' was not declared in this scope d4 = det(X1, Y1, X2, Y2, X4, Y4); ^ intersectiesegmente.cpp:51:5: error: 'else' without a previous 'if' else ^
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ă.