#928
AriaTriunghi
Se dau coordonatele în plan a trei puncte. Să se afișeze valoarea ariei triunghiului pe care îl formează.
Problema | AriaTriunghi | Operații I/O |
![]() ariatriunghi.in /ariatriunghi.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51580518 | Utilizator | |
Fișier | ariatriunghi.cpp | Dimensiune | 466 B |
Data încărcării | 15 Iulie 2024, 18:41 | Scor / rezultat | 0 puncte |
ariatriunghi.cpp: In function 'int main()': ariatriunghi.cpp:9:16: warning: right operand of comma operator has no effect [-Wunused-value] fin>>xa,ya,xb,yb,xc,yc; ^ ariatriunghi.cpp:9:19: warning: right operand of comma operator has no effect [-Wunused-value] fin>>xa,ya,xb,yb,xc,yc; ^ ariatriunghi.cpp:9:22: warning: right operand of comma operator has no effect [-Wunused-value] fin>>xa,ya,xb,yb,xc,yc; ^ ariatriunghi.cpp:9:25: warning: right operand of comma operator has no effect [-Wunused-value] fin>>xa,ya,xb,yb,xc,yc; ^ ariatriunghi.cpp:9:27: warning: right operand of comma operator has no effect [-Wunused-value] fin>>xa,ya,xb,yb,xc,yc; ^ ariatriunghi.cpp:10:20: warning: 'yb' may be used uninitialized in this function [-Wmaybe-uninitialized] a=sqrt((yb-ya)*(yb-ya)+(xb-xa)*(xb-xa)); ^ ariatriunghi.cpp:10:20: warning: 'ya' may be used uninitialized in this function [-Wmaybe-uninitialized] ariatriunghi.cpp:10:36: warning: 'xb' may be used uninitialized in this function [-Wmaybe-uninitialized] a=sqrt((yb-ya)*(yb-ya)+(xb-xa)*(xb-xa)); ^ ariatriunghi.cpp:11:20: warning: 'yc' may be used uninitialized in this function [-Wmaybe-uninitialized] b=sqrt((ya-yc)*(ya-yc)+(xa-xc)*(xa-xc)); ^ ariatriunghi.cpp:11:36: warning: 'xc' may be used uninitialized in this function [-Wmaybe-uninitialized] b=sqrt((ya-yc)*(ya-yc)+(xa-xc)*(xa-xc)); ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema AriaTriunghi 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ă.