0_0_24507093_6996.cpp: In function 'int solve()': 0_0_24507093_6996.cpp:83:37: error: 'height' was not declared in this scope sum += (len-1)-sa.sa[i]-height[i]; ^