F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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 ;
                                                  ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-23 05:37:45, Gzip enabled