...

...
Last edited on
In your main function, you are making your array before giving a value to 'size'.
Line 19 int size, list[size]; You are creating your list array using the size variable but the size variable has not been given a value. Also to make your code legal your size variable must be const.
1
2
3
	char sagot, choice;
	const int size = sizeRow*sizeCol;
	int list[size];



Line 32 }while(sagot != '1' && '2' && '3' && '4');
should look more like this
}while(sagot != '1' && sagot != '2' && sagot != '3' && sagot != '4');
Last edited on
Thanks for replying to my question :) I was really getting frustrated over it. I'm editing the question because we weren't really allowed to take the work out of our laboratory. Thanks again!
Topic archived. No new replies allowed.