( uid_6201 | 2018. 04. 07., szo – 11:28 )

Ha C++ kód a feladat, akkor a #include <stdio.h> és a malloc() eleve felejtős.