#3817
ArieTrapez
Se dau lungimile laturilor unui trapez ABCD
cu AB||CD
. Aflati aria acestuia.
matematică
Problema | ArieTrapez | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #55069554 | Utilizator | |
Fișier | arietrapez.cpp | Dimensiune | 1.23 KB |
Data încărcării | 20 Decembrie 2024, 11:20 | Scor / rezultat | Eroare de compilare |
arietrapez.cpp:1:1: error: 'include' does not name a type include <bits/stdc++.h> ^ arietrapez.cpp: In function 'double calculeazaAria(double, double, double, double)': arietrapez.cpp:10:52: error: 'fabs' was not declared in this scope double diferentaBaze = fabs(bazaMare - bazaMica); ^ arietrapez.cpp:14:77: error: 'sqrt' was not declared in this scope double ariaTriunghi = sqrt(s * (s - AD) * (s - BC) * (s - diferentaBaze)); ^ arietrapez.cpp: In function 'bool esteValid(double, double, double, double)': arietrapez.cpp:26:40: error: 'fabs' was not declared in this scope double diferentaBaze = fabs(CD - AB); ^ arietrapez.cpp: In function 'int main()': arietrapez.cpp:32:5: error: 'cin' was not declared in this scope cin >> AB >> BC >> CD >> AD; ^ arietrapez.cpp:35:9: error: 'cout' was not declared in this scope cout << "Imposibil" << endl; ^ arietrapez.cpp:35:32: error: 'endl' was not declared in this scope cout << "Imposibil" << endl; ^ arietrapez.cpp:40:5: error: 'cout' was not declared in this scope cout << fixed << setprecision(2) << aria << endl; ^ arietrapez.cpp:40:13: error: 'fixed' was not declared in this scope cout << fixed << setprecision(2) << aria << endl; ^ arietrapez.cpp:40:36: error: 'setprecision' was not declared in this scope cout << fixed << setprecision(2) << aria << endl; ^ arietrapez.cpp:40:49: error: 'endl' was not declared in this scope cout << fixed << setprecision(2) << aria << endl; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ArieTrapez 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ă.