Issue when starting a .exe compiled by visual studio in others pc [closed]

I found an autoclicker on internet but, if i compile main.cpp other computers can’t run the exe (compiled by visual studio 2019) but can open the .exe directly downloaded from the site… Why? Thanks.