problem with my code 1

+1
CPP
cpp
OUTPUT