The 5-year/60,000-mile Hyundai basic warranty will likely cover your AC compressor, as most are supposed to last 12 to 15 years. Because you’ve only had your car for a year or so, you’re under warranty, so scheduling an appointment for a proper diagnosis and repair is your best bet.
Before you do that, however, you may want to do a bit of troubleshooting on your own. Using your owner’s manual, you should see where the compressor actually plugs into your car’s power system and where the fuse is. These are two easy fixes that are often the culprit, especially considering how young your car is.