0_0_36582012_21221.cpp: In function 'void solve()': 0_0_36582012_21221.cpp:57:40: error: invalid types 'double [10010][double]' for array subscript double ans = (2 * k - 3 + 3 * two[k]) * (xr - xl) * (yroot - yr); ^