This is my first time using QMap and I don't know what I'm doing wrong.
#include <QMap>
QMap<QString, int> name_sec_age;
name_sec_age.insert("willy", 593381460);
my errors are: "unknown type name 'name_sec_age'" and "expected unqualified id"
I'm using Qt Creator 4.0 with Qt 5.6 on a mac. Side note: the run button on Qt Creator isn't available. To run my app I build it and then open the app from its path in finder. rather annoying.