Es geht nicht um printf oder scanf.
Es geht um das fehlende "int" vor main.