when i use the input to set the size of the array
i get
cd.c(8) : error C2143: syntax error : missing ';' before 'type'
cd.c(9) : error C2143: syntax error : missing ';' before 'type'
cd.c(10) : error C2143: syntax error : missing ';' before 'type'
Code:#include <stdio.h> int main(){//star int rows,cols,jndex,input; int sum2=0; scanf("%d %d",&rows,&cols); int index,kndex,tndex,gndex,lndex; //line 8 int rows_sum[rows]; //line9 int matrix[rows][cols]; //line10 return 0; }//end main func