#4270
Să se scrie o funcție care concatenează un șir de caracterele cu un alt șir.
| Problema | FConcat | Operații I/O |
fconcat.in/fconcat.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #40177548 | Utilizator | |
| Fișier | fconcat.cpp | Dimensiune | 253 B |
| Data încărcării | 29 Noiembrie 2022, 12:19 | Scor/rezultat | 0 puncte |
fconcat.cpp: In function 'void FConcat(char*, char*)': fconcat.cpp:7:23: warning: NULL used in arithmetic [-Wpointer-arith] while (s[slen] != NULL) { ^ fconcat.cpp:12:20: warning: NULL used in arithmetic [-Wpointer-arith] while (d[i] != NULL) { ^ fconcat.cpp:16:10: warning: converting to non-pointer type 'char' from NULL [-Wconversion-null] s[i] = NULL; ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 2 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 3 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 4 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 5 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 6 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 7 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 8 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 9 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 10 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema FConcat face parte din a doua categorie. Pentru aceste probleme se folosește un program suport, furnizat de propunătorul problemei. 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ă.