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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education