prog.cpp: In function ‘int getPossibilities(int)’:
prog.cpp:3:13: error: ‘L’ was not declared in this scope
if(i == L.length()) {
^
prog.cpp:10:19: error: ‘validEncodings’ was not declared in this scope
for(int j=0;j<validEncodings.size();j++){
^~~~~~~~~~~~~~
prog.cpp:11:12: error: ‘L’ was not declared in this scope
if(L.substr(i, validEncodings[j].length()) == validEncodings[j]) {
^