Lỗi LNK2019 khi chạy code trên VS

Mình là newbie ai giúp mình sửa cái lỗi này với
Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol WinMain referenced in function “int __cdecl invoke_main(void)” (?invoke_main@@YAHXZ) test C:\Users\Administrator\source\repos\test\test\MSVCRTD.lib(exe_winmain.obj) 1

#include <windows.h>
#include <cstdio>

struct monster
{
	char unk[0x710];
	bool is_valid()
	{
		return (bool)unk[0x304];
	}
	//0x3E
	short get_id()
	{
		return *(short*)(&unk[0x3E]);
	}
};
const auto constructor = (void(__fastcall*)(void* buffer, int C1, int packetId))0xAC6C39;
const auto append_to_packet = (void(__fastcall*)(void* buffer, char byte))0x439105;
const auto data_send = (void(__fastcall*)(void* buffer, int zero1, int zero2))0xAC7035;
const auto get_singleton = (void* (*)())0x437080;
const auto get_by_id = (monster&(__fastcall*)(void* singleton, int id))0x957EFC;

void Autokill()
{
	while (1)
	{
		if (GetAsyncKeyState(VK_F1))
		{
			void* singleton = get_singleton();
			for (int i = 0; i < 400; ++i)
			{
				monster& current_monster = get_by_id(singleton, i);
				if (!current_monster.is_valid())
					continue;
				short current_id = current_monster.get_id();
				if ((current_id >> 8) > 0x20)
				{
					printf("We have found a high id object, it is player most porbably!\n");
						continue;
				}
				char packet_buffer[0x2000];
				constructor(packet_buffer, 0xC1, 0X11);
				append_to_packet(packet_buffer, current_id >> 8);
				append_to_packet(packet_buffer, current_id & 0xFF);
				append_to_packet(packet_buffer, 0x78);
				append_to_packet(packet_buffer, 0x10);
				data_send(packet_buffer, 0, 0);
				printf("we have attacked a monster with id %d", (int)current_id);
			}
			Sleep(500);
		}
	}
}

DWORD WINAPI DllMain(HINSTANCE hInst, DWORD reason, LPVOID q)
{
	switch (reason)
	{
	case DLL_PROCESS_ATTACH:
		AllocConsole();
		freopen("$CONOUT", "w", stdout);
		printf("Loaded!\n");
		break;
	}
	return 1;
}
83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?