#179
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 | #63597406 | Utilizator | |
| Fișier | triunghi.cpp | Dimensiune | 250 B |
| Data încărcării | 10 Martie 2026, 20:31 | Scor/rezultat | Eroare de compilare |
triunghi.cpp:10:9: error: stray '\342' in program cout << “da”; ^ triunghi.cpp:10:9: error: stray '\200' in program triunghi.cpp:10:9: error: stray '\234' in program triunghi.cpp:10:9: error: stray '\342' in program triunghi.cpp:10:9: error: stray '\200' in program triunghi.cpp:10:9: error: stray '\235' in program triunghi.cpp:12:9: error: stray '\342' in program cout << “nu”; ^ triunghi.cpp:12:9: error: stray '\200' in program triunghi.cpp:12:9: error: stray '\234' in program triunghi.cpp:12:9: error: stray '\342' in program triunghi.cpp:12:9: error: stray '\200' in program triunghi.cpp:12:9: error: stray '\235' in program triunghi.cpp: In function 'int main()': triunghi.cpp:10:20: error: 'da' was not declared in this scope cout << “da”; ^ triunghi.cpp:12:20: error: 'nu' was not declared in this scope cout << “nu”; ^
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ă.