Need help clearing up this error message. What can I do? ? main.cpp [CONNECT7]-C
ID: 3719371 • Letter: N
Question
Need help clearing up this error message. What can I do?
? main.cpp [CONNECT7]-CodezBlocks 17.12 Eile Edit View Search Project Build Debug Fortran Smith Iools Tools Plugins DosyBlocks Settings Help main: int main.cpp X Projects Symbols Files Workspace #in lude #include #include game B: Sources CONNECT 7 E- Sources using namespace std; main.cpp nt main) void showBoard (void) void playerInput (int p) void checkwinner void nextPlayer (int) 10 12 Int board[T][T]={{O,o,o,o,o,o,?, {o,o,o,o,o,o,?, {0, 0, 0, 0, 0, 0,0}, { 0, 0, 0, 0, 0, 0, ? ,{0,0,0,?,?,?,?}, {o,o,o,o,o,o,o},{o,o,o,o,o,o,?); int tmain int argc, TCHAR* aravl) 15 17 18 19 20 21 int ri int c int player int winner int turns; coutExplanation / Answer
The Error is because you didn't properly end the function int main(). the syntax of the function should be:
function()
{
//code
}
you didn't used the end bracket ' } ' to end the function.
Try using ' } ' after the int board[7][7]
int board[7][7]={{0,0,0,0,0,0,0},{0,0,0,0,0,0,0},{0,0,0,0,0,0,0},{0,0,0,0,0,0,0},{0,0,0,0,0,0,0},{0,0,0,0,0,0,0},{0,0,0,0,0,0,0}};
}
This would be the correct syntax
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.