mardi 20 août 2019

Problem in compiling c++11 for iterative printing of map [duplicate]

This question already has an answer here:

Error in running c++11: cc1plus.exe: error: unrecognized command line option "-std=c++11"

I was trying to iteratively print c++ map using for(auto it: mymap), but it was giving an error: .\file.cpp:42:18: error: 'it' does not name a type

Also tried using g++ -std=c++11 .\file.cpp. So I get a new error: cc1plus.exe: error: unrecognized command line option "-std=c++11"

Aucun commentaire:

Enregistrer un commentaire