prog.cpp:1: error: storage size of ‘next’ isn't known
prog.cpp:2: error: expected unqualified-id before ‘for’
prog.cpp:2: error: expected constructor, destructor, or type conversion before ‘>=’ token
prog.cpp:2: error: expected constructor, destructor, or type conversion before ‘--’ token