我对程序作了补充但不能运行 请各位帮我看看问题出在哪里
#include <iostream>
#include <stdlib.h>
using namespace std;
namespace myNum //这里想要用户输入一个数值并判断是奇数还是偶数
int main();
{
cout << "请输入一个数值" << endl;
// ??bool????isOdd,?????
bool isFlag = false;
if(myNum::x % 2 == 0)
{
//???????,???false
isFlag = false;
}
else
{
//???????,???true
isFlag = true;
}
// ???????
cin >> myNum::x;
if(isFlag == true)
{
// ????????true,?????x???
cout << "x is odd" << endl;
}
else
{
// ????????false,?????x???
cout << "x is even" << endl;
}
return 0;
}