0_0_28434230_10074.cpp: In function 'int main()': 0_0_28434230_10074.cpp:38:34: error: invalid types 'int[int]' for array subscript cout << ans +1+ sum[n - 1] << endl; ^