#3812
Inaltimi2
Se dau lungimile laturilor unui triunghi ABC
. Calculati lungimile inaltimilor duse din A, B, C
.
matematică
Problema | Inaltimi2 | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #49036661 | Utilizator | |
Fișier | inaltimi2.cpp | Dimensiune | 439 B |
Data încărcării | 13 Februarie 2024, 12:57 | Scor / rezultat | Eroare de compilare |
inaltimi2.cpp: In function 'int main()': inaltimi2.cpp:9:17: error: 'AB' was not declared in this scope double SP=(AB+BC+AC)/2; ^ inaltimi2.cpp:9:20: error: 'BC' was not declared in this scope double SP=(AB+BC+AC)/2; ^ inaltimi2.cpp:9:23: error: 'AC' was not declared in this scope double SP=(AB+BC+AC)/2; ^ inaltimi2.cpp:9:13: warning: unused variable 'SP' [-Wunused-variable] double SP=(AB+BC+AC)/2; ^ inaltimi2.cpp:10:15: error: 'SP' was not declared in this scope int Aria=sqrt(SP*(SP-BC)*(SP-AC)*(SP-AB)); ^ inaltimi2.cpp:10:22: error: 'BC' was not declared in this scope int Aria=sqrt(SP*(SP-BC)*(SP-AC)*(SP-AB)); ^ inaltimi2.cpp:10:30: error: 'AC' was not declared in this scope int Aria=sqrt(SP*(SP-BC)*(SP-AC)*(SP-AB)); ^ inaltimi2.cpp:10:38: error: 'AB' was not declared in this scope int Aria=sqrt(SP*(SP-BC)*(SP-AC)*(SP-AB)); ^ inaltimi2.cpp:10:41: error: 'sqrt' was not declared in this scope int Aria=sqrt(SP*(SP-BC)*(SP-AC)*(SP-AB)); ^ inaltimi2.cpp:11:17: error: 'A' was not declared in this scope Aria=(AB*AC*sin(A))/2; ^ inaltimi2.cpp:11:18: error: 'sin' was not declared in this scope Aria=(AB*AC*sin(A))/2; ^ inaltimi2.cpp:12:17: error: 'B' was not declared in this scope Aria=(AB*BC*sin(B))/2; ^ inaltimi2.cpp:13:17: error: 'C' was not declared in this scope Aria=(AC*BC*sin(C))/2; ^ inaltimi2.cpp:22:10: error: expected ';' before ':' token return 0: ^ inaltimi2.cpp:22:10: error: expected primary-expression before ':' token inaltimi2.cpp:22:10: error: expected ';' before ':' token inaltimi2.cpp:22:10: error: expected '}' at end of input
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Inaltimi2 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ă.