0_0_35670875_27900.cpp: In function 'int main()': 0_0_35670875_27900.cpp:40:52: error: 'max' was not declared in this scope dp[j] = max(dp[j - 1] + a[j], vis[j - 1] + a[j]); ^