スポンサード リンク
Microsoft Visual C++にて以下のソースでコンパイルエラーが発生します:
コンパイルエラーメッセージ:
error C2275: 'std::map<std::string,int,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>': この型は演算子として使用できません with [ _Kty=std::string, _Ty=int ]
ソース(バグ有り):
#include <iostream>
#include <string>
#include <map>
using namespace std;
int main
{ |
ソース(修正済み):
#include <iostream>
#include <string>
#include <map>
using namespace std;
int main()
{ |
スポンサード リンク