0_0_13920525_12833.cpp: In function 'int main()': 0_0_13920525_12833.cpp:39:26: error: invalid types 'double[int]' for array subscript printf("%.2f%c", sum[j], j == w - 1 ? '\n' : ' '); ^