#1625
ec2
Se citesc de la tastatura 3
valori reale a
, b
, c
. Rezolvați ecuația de gradul doi cu a*x
2
+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 | #16278810 | Utilizator | |
Fișier | ec2.c | Dimensiune | 378 B |
Data încărcării | 02 Iulie 2019, 17:36 | Scor / rezultat | 0 puncte |
ec2.c: In function 'main': ec2.c:6:1: warning: format '%ld' expects argument of type 'long int *', but argument 2 has type 'double *' [-Wformat=] scanf("%ld %ld %ls", &a, &b, &c); ^ ec2.c:6:1: warning: format '%ld' expects argument of type 'long int *', but argument 3 has type 'double *' [-Wformat=] ec2.c:6:1: warning: format '%ls' expects argument of type 'wchar_t *', but argument 4 has type 'double *' [-Wformat=] ec2.c:11:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(d=0) ^ ec2.c:17:3: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'double' [-Wformat=] printf("%ld %ld", x1, x2);} ^ ec2.c:17:3: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'double' [-Wformat=] ec2.c:6:6: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] scanf("%ld %ld %ls", &a, &b, &c); ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
2 | 0 secunde | Raspuns gresit. | 5 | 0 | Exemplu | |
3 | 0 secunde | Raspuns gresit. | 5 | 0 | Exemplu | |
4 | 0 secunde | Raspuns gresit. | 10 | 0 | Exemplu | |
5 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
6 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
7 | 0 secunde | Caught fatal signal 11 | 20 | 0 | ||
Punctaj total | 0 |
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ă.