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_34298392_8202.cpp: In function 'int main()':
0_0_34298392_8202.cpp:36:27: error: invalid types 'bool[int]' for array subscript
                 if (j) f[j] = f[j] * (1 - p) + f[j - 1] * p * (1 - min(j * 0.005 + 0.015 * i, 1.0));
                           ^
0_0_34298392_8202.cpp:36:34: error: invalid types 'bool[int]' for array subscript
                 if (j) f[j] = f[j] * (1 - p) + f[j - 1] * p * (1 - min(j * 0.005 + 0.015 * i, 1.0));
                                  ^
0_0_34298392_8202.cpp:36:55: error: invalid types 'bool[int]' for array subscript
                 if (j) f[j] = f[j] * (1 - p) + f[j - 1] * p * (1 - min(j * 0.005 + 0.015 * i, 1.0));
                                                       ^
0_0_34298392_8202.cpp:37:25: error: invalid types 'bool[int]' for array subscript
                 else f[j] = f[j] * (1 - p); 
                         ^
0_0_34298392_8202.cpp:37:32: error: invalid types 'bool[int]' for array subscript
                 else f[j] = f[j] * (1 - p); 
                                ^
0_0_34298392_8202.cpp:38:38: error: invalid types 'bool[int]' for array subscript
                 long double cur = f[j] * p * min(1.0, 0.005 * j + 0.015 * i + 0.02) * (i + 1);
                                      ^


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 03:58:26, Gzip enabled