modified C codegen template so can have multiple problem structs