0_0_17842880_14272.cpp: In function 'int main()': 0_0_17842880_14272.cpp:19:12: error: invalid types 'int[int]' for array subscript s+=num[i]; ^