I'm new to programming in C++ and I'm trying to solve the image problem however I don't know what I'm doing wrong
´´´#include <iostream>
using namespace std;
int main(void)
{
int hours, minutes,datetime;
hours=15;
minutes=35;
datetime=" "
if(hours==0)
{
hours=12;
}
if(hours>12)
{
hours=hours-12;
}
if(hours==12)
{
hours=12;
}
if(hours<12)
{
datetime=AM;
}
else if(hours>=12)
{
datetime=PM
}
cout<< hours<<":"<<minutes<<datetime;
return 0;
}´´´