0_0_36896806_709.cpp: In member function 'void SAM::solve()': 0_0_36896806_709.cpp:149:9: error: 'sam' was not declared in this scope sam.getEndpos(); ^