I couldn’t tell you what’s going on with the MIDI portion of the problem. The USB audio devices are those I guess? The error you are getting uploading to the Arduino is just because you haven’t installed the MCP49xx DAC library yet!
Here is a link to the library DAC library
And then just look up a tutorial for installing libraries into the Arduino IDE, then you should be able to upload to the board no problem. Good luck!