Am I getting this error because i declared ‘n’ as an int, and then asking it…

Am I getting this error because i declared ‘n’ as an int, and
then asking it to make it a double?
This is the coude:
#include “stdafx.h”
#include