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