Prova ad aggiungere "#include <stdio.h>"