0xC0000005: Access violation executing location 0x00000000. When trying to access the insert function of multimap
问题 I was coding for one of the problems in USACO Training Page, and when I tried to debug my code: #include <iostream> #include<fstream> #include<string> #include<map> #include<math.h> using namespace std; int translate(string &s) { int n = s.length(); int result = 0; for (int i = 0; i < s.length(); i++) { int n1 = 0; if (s.at(i) == 'Q' || s.at(i) == 'Z') { return -1; } switch (s.at(i)) { case 'A': case 'B': case'C': result = result + 2 * pow(10, n-1); n--; break; case 'D': case 'E': case'F':