close, just a few small errors let me just point out
you should be usingnamespace std;, or be useing a lot of std::'s
con has 10 strings, not 8.
nill should be capitolized, as you will be comparing it to a capitalized string
string does not have a toupper member, so delete that line
your string is called roman, not str, so change that in your for loop.
you don't want to just output capitols, but replace each letter with it's capitol, so cout<< toupper(str[i],loc); should be roman[i] = toupper(roman[i]);
you're missing a semicolon after int i = 0 (a common mistake, one I make far to often)
When initializing strings you should use double quotes: const string con[] = {"nill","I","II","III",/* ... */};
In the same line you have [ instead of {