Question: THIS is in C++. I keep getting this error Illegal instruction when I put in the row and column number. Below I have my code

THIS is in C++.

I keep getting this error "Illegal instruction" when I put in the row and column number. Below I have my code posted. I have been looking at it but cant figure out why it doesnt work

THIS is in C++. I keep getting this error "Illegal instruction" when

#include #include #include void printBord(int [3][3]); bool checkBord(int [3][3],int ,int ,int); using namespace std; int main(){ // Initialize file ifstream ins("gameBoard.txt"); bool win=false;

int *numbers,winCount=0,passCount=0,roundCount=0,num1,num2,choiceNumber,row,col,bord=0;

int Bord[3][3]; for(int i=0;i

while(true) { ins>> num1 >> num2; cout>choiceNumber; if(choiceNumber==num1 || choiceNumber==num2) break; else cout>row>>col; if(row2 || col2) cout main.c howto x starter starterfiles/ ~/workspace/CS262/practice/starterfiles/ $./a.out Round You got numbers 3,3 Choose number(-1 to pass) 3 Enter the row and column number: 12 Invalid row column Enter the row and column number: 10 Illegal instruction main.c howto x starter starterfiles/ ~/workspace/CS262/practice/starterfiles/ $./a.out Round You got numbers 3,3 Choose number(-1 to pass) 3 Enter the row and column number: 12 Invalid row column Enter the row and column number: 10 Illegal instruction

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!