Question: Program below i found from this website has several errors i am unsure of how to fix please give the fixes and explain. i am

Program below i found from this website has several errors i am unsure of how to fix please give the fixes and explain. i am using visual studio 2017.

link to code

https://www.chegg.com/homework-help/questions-and-answers/language-c-popular-past-time-word-search-puzzle-don-t-believe-look-daily-paper-news-stand--q11757883?trackid=7fe09fbb&strackid=3f27fd84&ii=1

Code

==============================================================

#include #include #include #include using namespace std; int main() { ifstream file("word.list"); string a,word[10]; int i=0,l=0; srand(time(NULL)); while(!file.eof()) { file>>a; if(l=0;n--) { if(gridc[r][--c]==0) grid[r][c]='0'; } k--; //going back to the same word and processing break ; } } break; } //vertical case 1: { int r=rand()%(size-length); //to find the row to start the word int c=rand()%size; // this is find the column to start the word for(int m=0;m=0;n--) { if(gridc[--r][c]==0) grid[r][c]='0'; } k--;//going back to the same word and processing break ; } } break; } //diagonal case 2: { int r=rand()%(size-length); //to find the row to start the word int c=rand()%(size-length); // this is find the column to start the word for(int m=0;m=0;n--) { if(gridc[--r][--c]==0) grid[r][c]='0'; } k--;//going back to the same word and processing break ; } } break; } } } //to fill the empty cells with random letters srand(time(NULL)); for(int x=0;x

Error list

=============================

Program below i found from this website has several errors i am

Error List Entire Solution 19 Errors 4 Warnings0 Messages Build+IntelliSense - Search Error List File Source.cpp Source.cpp Source.cpp Source.cpp Source.cpp ource.cpp source.cpp source.cpp source.cpp Code Description E0349 no operator""matches these operands Line Suppression State 18 25 25 26 26 Project3 Project3 Project3 Project3 Project3 Project3 Project3 Project3 Projecta Project3 Project3 Project3 Project3 Project3 Project3 Project3 Project3 Project3 Project3 Project3 Project3 Project3 Projecta / E0028 F0028 E0028 E0028 expression must have a constant value expression must have a constant value expression must have a constant value expression must have a constant value C4244'argument: conversion from time t to 'unsigned int, possible loss of data C2679 binaryno operator found which takes a right-hand operand of type 'std:string' (or there is no acceptable conversion) C4018 ..: signed/unsigned mismatch 3 C2131 expression did not evaluate to a constant 3 C2131 expression did not evaluate to a constant 3 C3863 array type 'char [size][sizes not assignable 3 C3863 array type 'char [size][sizel is not assignable 3 C3863 array type int [size[sizel' is not assignable C3863 array type 'char [size][sizel' is not assignable X C3863 array type 'char [size][size]' is not assignable 3 C3863 array type int [size]size] is not assignable 8 C3863 array type char [size][sizel' is not assignable 3 C3863 array type'char [size][sizel' is not assignable C3863 array type 'int [size][sizel' is not assignable C3863 array type 'char [size][sizel' is not assignable 18 19 source.cpp source.cpp source.cpp source.cpp ource.cpp ource.cpp source.cpp source.cpp source.cpp source.cpp 26 29 48 52 61 80 84 93 110 114 125 136 145 155 C4244 'argument: conversion from time t to unsigned int, possible loss of data C3863 array type 'char [size]Isizel' is not assignable C4552 ul of expression not used

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!