Fix loop implementations in line 9, 14. Change commas in for loops to semi-colons.
Fix in streamsize width, properly implemented with this edit. Compile and run checks pass.
Alternate implementation, changed "int" on line 13 to "streamsize" - as "streamsize" is a specific type to repersent sizes and character counts in streams. It is a typdef of a fundamental intergral type.