#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 | #48502772 | Utilizator | |
Fișier | ecuatii_grad_2.cpp | Dimensiune | 3.59 KB |
Data încărcării | 27 Ianuarie 2024, 18:47 | Scor / rezultat | Eroare de compilare |
ecuatii_grad_2.cpp:89:13: error: redefinition of 'std::ifstream fin' ifstream fin("ecuatii.in"); ^ ecuatii_grad_2.cpp:9:10: error: 'std::ifstream fin' previously declared here ifstream fin("ecuatii.in"); ^ ecuatii_grad_2.cpp:90:14: error: redefinition of 'std::ofstream fout' ofstream fout("ecuatii.out"); ^ ecuatii_grad_2.cpp:10:10: error: 'std::ofstream fout' previously declared here ofstream fout("ecuatii.out"); ^ ecuatii_grad_2.cpp:92:12: error: redefinition of 'char s [256]' char s[NMAX],*p; ^ ecuatii_grad_2.cpp:12:6: error: 'char s [256]' previously declared here char s[NMAX],*p; ^ ecuatii_grad_2.cpp:92:15: error: redefinition of 'char* p' char s[NMAX],*p; ^ ecuatii_grad_2.cpp:12:15: error: 'char* p' previously declared here char s[NMAX],*p; ^ ecuatii_grad_2.cpp:93:5: error: redefinition of 'int a' int a,b,c; ^ ecuatii_grad_2.cpp:13:5: error: 'int a' previously declared here int a,b,c; ^ ecuatii_grad_2.cpp:93:7: error: redefinition of 'int b' int a,b,c; ^ ecuatii_grad_2.cpp:13:7: error: 'int b' previously declared here int a,b,c; ^ ecuatii_grad_2.cpp:93:9: error: redefinition of 'int c' int a,b,c; ^ ecuatii_grad_2.cpp:13:9: error: 'int c' previously declared here int a,b,c; ^ ecuatii_grad_2.cpp:94:8: error: redefinition of 'double x1' double x1,x2; ^ ecuatii_grad_2.cpp:14:8: error: 'double x1' previously declared here double x1,x2; ^ ecuatii_grad_2.cpp:94:11: error: redefinition of 'double x2' double x1,x2; ^ ecuatii_grad_2.cpp:14:11: error: 'double x2' previously declared here double x1,x2; ^ ecuatii_grad_2.cpp: In function 'int main()': ecuatii_grad_2.cpp:97:5: error: redefinition of 'int main()' int main() ^ ecuatii_grad_2.cpp:17:5: error: 'int main()' previously defined here int main() ^ ecuatii_grad_2.cpp: In function 'void separare(char*, int&, int&, int&)': ecuatii_grad_2.cpp:123:6: error: redefinition of 'void separare(char*, int&, int&, int&)' void separare(char s[], int &a, int &b, int &c) ^ ecuatii_grad_2.cpp:43:6: error: 'void separare(char*, int&, int&, int&)' previously defined here void separare(char s[], int &a, int &b, int &c) ^ ecuatii_grad_2.cpp: In function 'int determinare(char*, int)': ecuatii_grad_2.cpp:148:5: error: redefinition of 'int determinare(char*, int)' int determinare(char sirInitial[], int verificare=1) ^ ecuatii_grad_2.cpp:68:5: error: 'int determinare(char*, int)' previously defined here int determinare(char sirInitial[], int verificare=1) ^
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ă.