#1359
Scrieţi un program care să citească o ecuație de un anumit tip și care să determine: a) tipul ecuației citite; b) soluția ecuației obținută prin rezolvarea acestei ecuații.
| Problema | ecuatie2 | Operații I/O |
ecuatie2.in/ecuatie2.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64858136 | Utilizator | |
| Fișier | ecuatie2.cpp | Dimensiune | 1.76 KB |
| Data încărcării | 07 Iunie 2026, 20:19 | Scor/rezultat | 0 puncte |
ecuatie2.cpp: In function ‘int main()’: ecuatie2.cpp:66:17: warning: unused variable ‘sol’ [-Wunused-variable] 66 | long a=0,b=0,sol; | ^~~ ecuatie2.cpp: In function ‘int TipEcuatie(char*, int)’: ecuatie2.cpp:54:1: warning: control reaches end of non-void function [-Wreturn-type] 54 | } | ^ ecuatie2.cpp: In function ‘int main()’: ecuatie2.cpp:94:18: warning: ‘poz’ may be used uninitialized [-Wmaybe-uninitialized] 94 | tip=TipEcuatie(s,poz); | ~~~~~~~~~~^~~~~~~ ecuatie2.cpp:64:12: note: ‘poz’ was declared here 64 | int tip,poz; | ^~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 2 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 3 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 4 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 5 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 6 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 7 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 8 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 9 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 10 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 11 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 12 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 13 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 14 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 15 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 16 | 0.002 secunde | Raspuns gresit. | 5 | 0 | ||
| 17 | 0.002 secunde | Raspuns gresit. | 5 | 0 | ||
| 18 | 0.002 secunde | Raspuns gresit. | 5 | 0 | ||
| 19 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 20 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ecuatie2 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ă.