#1625
Se citesc de la tastatura 3 valori reale a, b , c. Rezolvați ecuația de gradul doi cu a*x2+b*x+c=0
| Problema | ec2 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #63725427 | Utilizator | |
| Fișier | ec2.cpp | Dimensiune | 866 B |
| Data încărcării | 16 Martie 2026, 19:31 | Scor/rezultat | Eroare de compilare |
ec2.cpp: In function 'int main()': ec2.cpp:28:19: error: expected primary-expression before '}' token if(x11>x22)} ^ ec2.cpp:28:19: error: expected ';' before '}' token ec2.cpp:29:15: error: 'x11' was not declared in this scope {cout<<x11/100%10<<"."<<x11/10%10<<<<x11%10<<" "; ^ ec2.cpp:29:43: error: expected primary-expression before '<<' token {cout<<x11/100%10<<"."<<x11/10%10<<<<x11%10<<" "; ^ ec2.cpp:30:26: error: 'x22' was not declared in this scope cout<<x22/100%10<<"."<<x22/10%10<<x22%10; ^ ec2.cpp:32:8: error: 'else' without a previous 'if' else {cout<<x22/100%10<<"."<<x22/10%10<<x22%10<<" "; ^ ec2.cpp:32:20: error: 'x22' was not declared in this scope else {cout<<x22/100%10<<"."<<x22/10%10<<x22%10<<" "; ^ ec2.cpp:33:14: error: 'x11' was not declared in this scope cout<<x11/100%10<<"."<<x11/10%10<<<<x11%10;} ^ ec2.cpp:33:42: error: expected primary-expression before '<<' token cout<<x11/100%10<<"."<<x11/10%10<<<<x11%10;} ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ec2 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ă.