splitpass.cpp now compiles