#1458
ecuatii_grad_2
Dându-se o ecuaţie de gradul 2, să se scrie un program care determină soluţiile acestei ecuaţii.
Problema | ecuatii_grad_2 | Operații I/O |
ecuatii.in /ecuatii.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #1771130 | Utilizator | |
Fișier | ecuatii_grad_2.cpp | Dimensiune | 1.15 KB |
Data încărcării | 05 Februarie 2016, 12:47 | Scor / rezultat | 90 puncte |
ecuatii_grad_2.cpp: In function 'int main()': ecuatii_grad_2.cpp:12:5: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations] gets(a); ^ ecuatii_grad_2.cpp:12:11: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations] gets(a); ^ ecuatii_grad_2.cpp:10:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("ecuatii.in","r",stdin); ^ ecuatii_grad_2.cpp:11:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("ecuatii.out","w",stdout); ^ ecuatii_grad_2.cpp:12:12: warning: ignoring return value of 'char* gets(char*)', declared with attribute warn_unused_result [-Wunused-result] gets(a); ^ /tmp/cciRYzcD.o: In function \`main': ecuatii_grad_2.cpp:(.text.startup+0x4e): warning: the \`gets' function is dangerous and should not be used.
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 5 | 5 | Exemplu | |
2 | 0 secunde | OK. | 5 | 5 | Exemplu | |
3 | 0 secunde | OK. | 5 | 5 | Exemplu | |
4 | 0 secunde | OK. | 5 | 5 | Exemplu | |
5 | 0 secunde | OK. | 5 | 5 | Exemplu | |
6 | 0 secunde | OK. | 5 | 5 | Exemplu | |
7 | 0 secunde | OK. | 10 | 10 | ||
8 | 0 secunde | OK. | 10 | 10 | ||
9 | 0 secunde | OK. | 10 | 10 | ||
10 | 0 secunde | OK. | 10 | 10 | ||
11 | 0 secunde | OK. | 10 | 10 | ||
12 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
13 | 0 secunde | OK. | 10 | 10 | ||
Punctaj total | 90 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ecuatii_grad_2 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ă.