0_0_30835572_24589.cpp: In function 'int main()':
0_0_30835572_24589.cpp:12:31: error: 'memset' was not declared in this scope
memset(dp,0,sizeof(dp));
^
0_0_30835572_24589.cpp:26:70: error: 'max' was not declared in this scope
dp[i][j]=max(dp[i+1][j],max(dp[i+1][j-1],dp[i+1][j+1]))+dp[i][j];
^
0_0_30835572_24589.cpp:26:71: error: 'max' was not declared in this scope
dp[i][j]=max(dp[i+1][j],max(dp[i+1][j-1],dp[i+1][j+1]))+dp[i][j];
^
0_0_30835572_24589.cpp:26:71: error: redeclaration of '<typeprefixerror>max'
0_0_30835572_24589.cpp:26:70: note: previous declaration '<typeprefixerror>max'
dp[i][j]=max(dp[i+1][j],max(dp[i+1][j-1],dp[i+1][j+1]))+dp[i][j];
^
0_0_30835572_24589.cpp:31:13: error: expected '}' at end of input
return 0;
^
|