heres the error and the line it talks about
Code:main.cpp: In function ‘int hash(std::string, int)’: main.cpp:76: error: invalid lvalue in assignment make: *** [main] Error 1 int length = item.length(); 75 int answer = 0; 76 if(length % 2 = 0) 77 { 78 answer = item.at(length - 1); 79 length--; 80 } 81