#2928
Se dă numărul real n
. Calculați \( \sqrt{n} \) cu 8
zecimale exacte.
Problema | SqrtXXL | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.6 secunde | Limita memorie |
Total: 64 MB
/
Stivă 64 MB
|
Id soluție | #55624484 | Utilizator | |
Fișier | sqrtxxl.c | Dimensiune | 5.98 KB |
Data încărcării | 20 Ianuarie 2025, 20:34 | Scor / rezultat | Eroare de compilare |
sqrtxxl.c: In function 'sx': sqrtxxl.c:58:9: warning: implicit declaration of function 'swap' [-Wimplicit-function-declaration] swap(str1, str2); ^ sqrtxxl.c:79:5: warning: implicit declaration of function 'strrev' [-Wimplicit-function-declaration] strrev(result); ^ sqrtxxl.c:23:48: warning: variable 'len' set but not used [-Wunused-but-set-variable] int ls = 0, lss = 0, o1 = 0, o2 = 0, lmax, len; ^ sqrtxxl.c:23:42: warning: variable 'lmax' set but not used [-Wunused-but-set-variable] int ls = 0, lss = 0, o1 = 0, o2 = 0, lmax, len; ^ sqrtxxl.c: In function 'srx': sqrtxxl.c:120:9: error: too few arguments to function 'px' dx(temp, px(aux, aux), p); ^ sqrtxxl.c:85:6: note: declared here void px(char *num1, char *num2, char *result) { ^ sqrtxxl.c:162:13: error: too few arguments to function 'px' dx(temp, px(aux, aux), p); ^ sqrtxxl.c:85:6: note: declared here void px(char *num1, char *num2, char *result) { ^ sqrtxxl.c:175:17: warning: implicit declaration of function 'to_string' [-Wimplicit-function-declaration] px(aux, to_string(c), p); ^ sqrtxxl.c:175:17: warning: passing argument 2 of 'px' makes pointer from integer without a cast [enabled by default] sqrtxxl.c:85:6: note: expected 'char *' but argument is of type 'int' void px(char *num1, char *num2, char *result) { ^ sqrtxxl.c:180:13: warning: passing argument 2 of 'px' makes pointer from integer without a cast [enabled by default] px(aux, to_string(c), p); ^ sqrtxxl.c:85:6: note: expected 'char *' but argument is of type 'int' void px(char *num1, char *num2, char *result) { ^ sqrtxxl.c:194:9: warning: passing argument 2 of 'px' makes pointer from integer without a cast [enabled by default] dx(temp, px(aux, to_string(c)), p); ^ sqrtxxl.c:85:6: note: expected 'char *' but argument is of type 'int' void px(char *num1, char *num2, char *result) { ^ sqrtxxl.c:194:9: error: too few arguments to function 'px' dx(temp, px(aux, to_string(c)), p); ^ sqrtxxl.c:85:6: note: declared here void px(char *num1, char *num2, char *result) { ^ sqrtxxl.c:212:5: warning: 'main' is normally a non-static function [-Wmain] int main() { ^ sqrtxxl.c:218:1: error: expected declaration or statement at end of input } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema SqrtXXL 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ă.