cannot open audacity because of XP error

Windows XP is obsolete. Please see this post: https://forum.audacityteam.org/t/important-information-for-windows-xp-users/37650/1
For 32-bit XP, Audacity requires SP3. See this FAQ: http://manual.audacityteam.org/o/man/faq_installation_and_plug_ins.html#entry_point