#2667
ec2i
Fie aX^2+bX+c=0
o ecuație de gradul al doilea. Determinați soluțiile complexe ale acestei ecuații.
Problema | ec2i | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #13676589 | Utilizator | |
Fișier | ec2i.cpp | Dimensiune | 3.35 KB |
Data încărcării | 01 Februarie 2019, 14:50 | Scor / rezultat | 84 puncte |
ec2i.cpp: In function 'char ReverseArray()': ec2i.cpp:29:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i<strlen(nr)/2; ++i) ^ ec2i.cpp:35:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ ec2i.cpp: In function 'void Eliminare(int, int)': ec2i.cpp:42:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j=i;j<strlen(v);j++) ^ ec2i.cpp: In function 'int Caut_a()': ec2i.cpp:85:10: warning: variable 'ok1' set but not used [-Wunused-but-set-variable] bool ok1=false,ok2=false; ^ ec2i.cpp: In function 'int Caut_b()': ec2i.cpp:128:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(k=0;k<strlen(v);k++) ^ ec2i.cpp:124:10: warning: variable 'ok1' set but not used [-Wunused-but-set-variable] bool ok1=false,ok2=false; ^ ec2i.cpp: In function 'int main()': ec2i.cpp:199:5: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations] gets(v);fflush(stdin); ^ ec2i.cpp:199:11: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations] gets(v);fflush(stdin); ^ ec2i.cpp:199:12: warning: ignoring return value of 'char* gets(char*)', declared with attribute warn_unused_result [-Wunused-result] gets(v);fflush(stdin); ^ /tmp/cc2RHKGe.o: In function \`main': ec2i.cpp:(.text.startup+0x11): warning: the \`gets' function is dangerous and should not be used.
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Corect ! | 0 | 0 | Exemplu | |
2 | 0 secunde | Corect ! | 0 | 0 | Exemplu | |
3 | 0 secunde | Corect ! | 0 | 0 | Exemplu | |
4 | 0 secunde | Incorect ! | 2 | 0 | ||
5 | 0 secunde | Incorect ! | 3 | 0 | ||
6 | 0 secunde | Incorect ! | 4 | 0 | ||
7 | 0 secunde | Corect ! | 5 | 5 | ||
8 | 0 secunde | Corect ! | 6 | 6 | ||
9 | 0 secunde | Prima linie trebuia sa fie reale, nu imaginare | 7 | 0 | ||
10 | 0 secunde | Corect ! | 8 | 8 | ||
11 | 0 secunde | Corect ! | 9 | 9 | ||
12 | 0 secunde | Corect ! | 10 | 10 | ||
13 | 0 secunde | Corect ! | 11 | 11 | ||
14 | 0 secunde | Corect ! | 12 | 12 | ||
15 | 0 secunde | Corect ! | 13 | 13 | ||
16 | 0 secunde | Corect ! | 10 | 10 | ||
Punctaj total | 84 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ec2i 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ă.