0_0_32973029_13403.cpp: In function 'int main(int, const char**)': 0_0_32973029_13403.cpp:26:52: error: 'tmp' was not declared in this scope for(int j = i; i <= n; j++)best[j-1] = tmp,temp = max(temp, dp[j]); ^