int cannot be converted to int []

后端 未结 4 728
陌清茗
陌清茗 2021-01-24 02:39

new to programming here and i keep getting the error message, \'incompatible types, int cannot be converted to int []\', the question is to add R1& R2 together if they are o

4条回答
  •  心在旅途
    2021-01-24 03:15

               sumArray[i]= R1[i]+ R2[j]; // updated line
    

    you need to assign to an array element, but you were doing it wrong.

提交回复
热议问题