0_0_15608865_6752.cpp: In function 'int main()':
0_0_15608865_6752.cpp:31:11: error: invalid types 'double[int]' for array subscript
dp[0][0] = 1.0 ;
^
0_0_15608865_6752.cpp:41:14: error: invalid types 'double[int]' for array subscript
dp[i][k] = dp[i-1][k] * ( 1.0 - p ) + dp[i-1][k-1] * p ;
^
0_0_15608865_6752.cpp:41:27: error: invalid types 'double[int]' for array subscript
dp[i][k] = dp[i-1][k] * ( 1.0 - p ) + dp[i-1][k-1] * p ;
^
0_0_15608865_6752.cpp:41:56: error: invalid types 'double[int]' for array subscript
dp[i][k] = dp[i-1][k] * ( 1.0 - p ) + dp[i-1][k-1] * p ;
^
0_0_15608865_6752.cpp:45:14: error: invalid types 'double[int]' for array subscript
dp[i][k] = dp[i-1][k] * ( 1.0 - p ) ;
^
0_0_15608865_6752.cpp:45:27: error: invalid types 'double[int]' for array subscript
dp[i][k] = dp[i-1][k] * ( 1.0 - p ) ;
^
0_0_15608865_6752.cpp:54:50: error: invalid types 'double[int]' for array subscript
for( int i = 1 ; i <= n ; ++i ) tmp += dp[n][i] * i * i ;
^
|