#927
DistantaPuncte
Se dau coordonatele în plan a două puncte. Să se afișeze pătratul distanței dintre ele.
Problema | DistantaPuncte | Operații I/O |
![]() distantapuncte.in /distantapuncte.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51417297 | Utilizator | |
Fișier | distantapuncte.cpp | Dimensiune | 259 B |
Data încărcării | 14 Iunie 2024, 11:18 | Scor / rezultat | Eroare de compilare |
distantapuncte.cpp: In function 'int main()': distantapuncte.cpp:10:5: error: expected ',' or ';' before 'int' int a,b,c,d,s,p; ^ distantapuncte.cpp:11:8: error: 'a' was not declared in this scope f>>a>>b>>c>>d; ^ distantapuncte.cpp:11:11: error: 'b' was not declared in this scope f>>a>>b>>c>>d; ^ distantapuncte.cpp:11:14: error: 'c' was not declared in this scope f>>a>>b>>c>>d; ^ distantapuncte.cpp:11:17: error: 'd' was not declared in this scope f>>a>>b>>c>>d; ^ distantapuncte.cpp:12:5: error: 's' was not declared in this scope s=c-a; ^ distantapuncte.cpp:13:5: error: 'p' was not declared in this scope p=d-b; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema DistantaPuncte 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ă.