0_0_36333985_12704.cpp: In function 'int main()': 0_0_36333985_12704.cpp:74:24: error: 'P' was not declared in this scope for(int i=0;i<=P;i++) ans=max(ans,dp[n][T][i]); ^