#179
triunghi
Să se scrie un program care citeşte trei numere reale şi verifică dacă aceste numere pot fi lungimile laturilor unui triunghi.
Problema | triunghi | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #13529852 | Utilizator | |
Fișier | triunghi.cpp | Dimensiune | 285 B |
Data încărcării | 26 Ianuarie 2019, 12:09 | Scor / rezultat | Eroare de compilare |
triunghi.cpp:5:1: error: stray '\302' in program float x,y,z; ^ triunghi.cpp:5:1: error: stray '\240' in program triunghi.cpp:5:1: error: stray '\302' in program triunghi.cpp:5:1: error: stray '\240' in program triunghi.cpp:6:1: error: stray '\302' in program cout<<"x="; ^ triunghi.cpp:6:1: error: stray '\240' in program triunghi.cpp:6:1: error: stray '\302' in program triunghi.cpp:6:1: error: stray '\240' in program triunghi.cpp:12:1: error: stray '\302' in program if((x+y>z)&&(x+z>y)&&(y+z>x)&&(x>0)&&(y>0)&&(z>0)){ ^ triunghi.cpp:12:1: error: stray '\240' in program triunghi.cpp:12:1: error: stray '\302' in program triunghi.cpp:12:1: error: stray '\240' in program triunghi.cpp:13:1: error: stray '\302' in program cout<<"da";} ^ triunghi.cpp:13:1: error: stray '\240' in program triunghi.cpp:13:1: error: stray '\302' in program triunghi.cpp:13:1: error: stray '\240' in program triunghi.cpp:14:1: error: stray '\302' in program else{ ^ triunghi.cpp:14:1: error: stray '\240' in program triunghi.cpp:15:1: error: stray '\302' in program cout<<"Nu";} ^ triunghi.cpp:15:1: error: stray '\240' in program triunghi.cpp:16:1: error: stray '\302' in program return 0; ^ triunghi.cpp:16:1: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema triunghi 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ă.