example, if user input 10 number, (say 1-10), my program will count even number,and odd number in the array, and then assign as as even & odd.
which will make even = 5 and odd =5.
so i will have 3 array, original list,(10 elements). odd_array(5 elements) and even_array(5 elements).
i am trying to copy even element from original list, and assign it into even_array and the odd element to the odd_array.
the problem is I got invalid types ‘int[int]’ for array subscript. (in line 13&16)