Program to read and execute local time of the device ! ERROR!

I WAS TRYING TO EXECUTE THE CODE GIVEN IN A STUDY MATERIALS
the code:

#define _CRT_SECURE_NO_WARNING
#include<stdio.h>
#include<time.h>
using namespace std;
int main(int,char*[])
{
	time_t now;
	struct tm* mytm;
	time(&now);
	mytm = localtime(&now);
	printf("local timme is", asctime(mytm));
return 0;
}

To print the time, use cout statement.

cout<<"local timme is: "<< asctime(mytm) <<endl;

And, also use Header file for it
#include<iostream>