UG: RUN n and Debug Run and Debug, open create a launch.json matic debug about launch.json, ng C/C++ debugging. Get Started C hello.c Users > garettblake > C othello4.c>getMoveCOI (char [THREE]) 240 RUEaj 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 279 void displayState/struct Plaver laver) OUTPUT DEBUG CONSOLE TERMINAL PROBLEMS C othello4.c 1 R char col; char letters [8] = "abcdefgh"; col = move [0]; char *check = strchr(letters, col); if (check != NULL) { for(int i = 0; i < strlen(letters); i++) { if (col == letters [i]) { index = i; non-void function does not return a value [-Wreturn-type] gcc View Problem No quick fixes available a value [-Wreturn-type] } 1 warning generated. Undefined symbols for architecture arm64: "_getMoveCol", referenced from: isOpen in othello4-d44869.0 ld: symbol(s) not found Ele - C + 8 Cod > gcc

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter10: Classes And Data Abstraction
Section: Chapter Questions
Problem 17PE
icon
Related questions
Question

Need help with this code keep getting error at the last   } 

It says non-void function does not return a value [-Wreturn-type] gcc

7:57 1
Search
if(rowInt == 1 && colInt == 1 &&
board [rowInt] [colInt] == ' ')
open = 1;
}
int
{
H
return open;
getMoveRow (char move [3])
int index;
int row;
row move [1]- '0';
index = row
1;
}
}
}}
}
=
-
ACTI
if (row < 1 && row > 8) {
index = INVALID;
}
return index;
}
int getMoveC0l(char move [THREE])
{
col);
int index;
char col;
char letters [8] = "abcdefgh";
col = move [0];
char *check = strchr(letters,
if (check != NULL){
for(int i = 0; i <
strlen(letters); i++){
if (col
==
letters [i]){
index = i;
void displayStats (struct Player player)
{
Transcribed Image Text:7:57 1 Search if(rowInt == 1 && colInt == 1 && board [rowInt] [colInt] == ' ') open = 1; } int { H return open; getMoveRow (char move [3]) int index; int row; row move [1]- '0'; index = row 1; } } }} } = - ACTI if (row < 1 && row > 8) { index = INVALID; } return index; } int getMoveC0l(char move [THREE]) { col); int index; char col; char letters [8] = "abcdefgh"; col = move [0]; char *check = strchr(letters, if (check != NULL){ for(int i = 0; i < strlen(letters); i++){ if (col == letters [i]){ index = i; void displayStats (struct Player player) {
DEBUG: RUN
Run and Debug
ize Run and Debug, open
d create a launch.json
utomatic debug
ons.
ore about launch.json,
uring C/C++ debugging.
* Get Started
Users > garettblake > C
240
Lex;
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
279 void displayState(struct Plaver laver)
PROBLEMS 1 OUTPUT DEBUG CONSOLE TERMINAL
a value [-Wreturn-type]
C hello.c
Cothello4.c 1
othello4.c>getMoveCOI(char [THREE])
char col;
char letters [8] = "abcdefgh";
col = move [0];
char *check = strchr(letters, col);
if (check != NULL)
{
for(int i = 0; i < strlen(letters); i++)
{
if (col == letters [i])
{
index = i;
non-void function does not return a value [-Wreturn-type] gcc
View Problem No quick fixes available
DI
1 warning generated.
Undefined symbols for architecture arm64:
"_getMoveCol", referenced from:
_isOpen in othello4-d44869.0
ld: symbol(s) not found fo
(
L
L
T
phar
m
+
Cod
> gcc
Transcribed Image Text:DEBUG: RUN Run and Debug ize Run and Debug, open d create a launch.json utomatic debug ons. ore about launch.json, uring C/C++ debugging. * Get Started Users > garettblake > C 240 Lex; 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 279 void displayState(struct Plaver laver) PROBLEMS 1 OUTPUT DEBUG CONSOLE TERMINAL a value [-Wreturn-type] C hello.c Cothello4.c 1 othello4.c>getMoveCOI(char [THREE]) char col; char letters [8] = "abcdefgh"; col = move [0]; char *check = strchr(letters, col); if (check != NULL) { for(int i = 0; i < strlen(letters); i++) { if (col == letters [i]) { index = i; non-void function does not return a value [-Wreturn-type] gcc View Problem No quick fixes available DI 1 warning generated. Undefined symbols for architecture arm64: "_getMoveCol", referenced from: _isOpen in othello4-d44869.0 ld: symbol(s) not found fo ( L L T phar m + Cod > gcc
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage