1 answer

Consider the grading robot report for t1.c (Taskl) of Lab 6 below: Testing Repo repo. alavergn/6...

Question:

Consider the grading robot report for t1.c (Taskl) of Lab 6 below: Testing Repo repo. alavergn/6 Lab 6 Task 1 at 2019-07-08 1
Weekly Exercise 7 - Answer the following questions in CourSys text field: Make sure you include the question number along wit
Consider the grading robot report for t1.c (Taskl) of Lab 6 below: Testing Repo repo. alavergn/6 Lab 6 Task 1 at 2019-07-08 13:09:16.015934 cwd /home/instructor/127/build.alavergn.jmMi6w sandbox /home/build/sandbox.alavergn. OVpQ4m Build operations: Error: Build returned 2. Error output: Make stdout: gcc -Std-gnu99 -Wall -Wfatal errors -g -ILAB -o t1 LAB/intarr.c LAB/test_binary.c REPO/t1.c la /home/instructor/127/lab/6/Makefile.test:11: recipe for target 'tl' failed Make stderr: REPO/t1.c: In function 'intarr_save_binary': REPO/t1.c:24:3: error: unknown type name 'FILE' FILE * theFile - fopen(filename, "w"); compilation terminated due to -Wfatal-errors. make: *** [t1] Error 1 Build failed. Logging 6d8cac9 alavergn 1562616535 6:<module 'task' from '/home/instructor/127/bin/task.pyc'> 1
Weekly Exercise 7 - Answer the following questions in CourSys text field: Make sure you include the question number along with your answer to each of the following questions Question 1- What does this report means to us, CMPT 127 students? Be very specific yet as succinct as possible. - Question 2 - How would you fix "t1.c" such that the grading robot successfully build the executable "tl"? Make sure this fixed "t1" still behaves as described in our Lab 6. Again, be very specific yet as succinct as possible. - Due TH July 11 at 4pm

Answers

Ans.1 This is the error report thrown by the unix compiler, compiling a c promgramming file.

The error is encountered int function named: intarr_save_binary() at line 24 where it econtered the line, FILE * theFile = fopen(filename, "w");

The compiler has failed to compile the file because it did not identify the type of keyword FILE.

Ans. 2 To fix the t1.c and resolve the error we have to write statement: #include <stdio.h>. This statement tells the compiler to insert the contents of stdio at that particular place. stdio.h is the header file for standard input and output.

.

Similar Solved Questions

1 answer
Two particles A and B strike each other and then rebound. The coefficient of restitution between...
Two particles A and B strike each other and then rebound. The coefficient of restitution between the two is 0.3. mA = 3.7 kg and mB = 4.2 kg. Before the collision vA = 2.2 j m/s and after vA'= 0.6 j m/s. What are the pre- and post-collision velocities of particle B? Answers: Before, vB = j m/s A...
2 answers
How deep is the well
A man drops a stone into a water well on his farm.He hears the sound of the splash 3.21 s later.How deep is the well?The acceleration due to the gravity is 9.8 m/s^2and the speed of sound in air is 334 m/s. Answer in units of m....
1 answer
Given the probability p=0.84 that an event will not happen, how do you find the probability that the event will happen?
Given the probability p=0.84 that an event will not happen, how do you find the probability that the event will happen?...
1 answer
Question 17 All of the following results of normal aging may blunt manifestations of acute abdominal...
Question 17 All of the following results of normal aging may blunt manifestations of acute abdominal pathology EXCEPT: с a. Fever may be less dramatic b. Peritoneal inflammatory signs may be absent c. Most elderly have chronic abdominal pain related to constipation d. Pain sensation may be les...
1 answer
Estimate the area under the graph of f(x)=x^2+2x from x = 4 to x = 10 using 3 approximating rectangles and left endpoints
Estimate the area under the graph of f(x)=x^2+2x from x = 4 to x = 10 using 3 approximating rectangles and left endpoints. I got 290.25 as my answer but it's wrong. Would someone explain to me how to answer this question....
1 answer
17. A tiny, 0.80-g ball carries charge of - 8.0 µC. It is suspended by a...
17. A tiny, 0.80-g ball carries charge of - 8.0 µC. It is suspended by a thread in a downward 250 N/C electric field. What is the tension in the thread? [Note, 1 g = 1x 10-3 kg, 1 C = 1 x 10-6 C] (A)7.84 x 10-3 N (B) 2.00 x 10-3 N (C) 9.84 x 10-3 N (D) 5.84 x 10-3 N 18. A uniform charg...
1 answer
Essay: Discuss the use of an Ethics committee within a hospital setting: who comprises this team?...
Essay: Discuss the use of an Ethics committee within a hospital setting: who comprises this team? What is their duties? 50 word essay:...
1 answer
#3.534 x 10^3# milligrams of #H_2# is equal to how many liters of #H_2#?
#3.534 x 10^3# milligrams of #H_2# is equal to how many liters of #H_2#?...
1 answer
This term means unexpected results produced inadvertently by a treatment from a physician, surgeon, or diagnostic...
This term means unexpected results produced inadvertently by a treatment from a physician, surgeon, or diagnostic procedure....
1 answer
For each of the following questions: clearly indicate the probability distribution being used to solve the...
For each of the following questions: clearly indicate the probability distribution being used to solve the problem solve by hand, and verify your answer using MATLAB. 1. Two teams, A and B, play a series of games. If team B has a probability 0.4 of winning each game, is it to their advantage to play...
1 answer
. Week 9 Il work ork 8 (10 points): A researcher calculated a correlation coefficient of...
. Week 9 Il work ork 8 (10 points): A researcher calculated a correlation coefficient of 0.737 for the association between smoking and lung cancer rate using the data in Table 1. Is there enough evidence to support that there is a strong linear relationship between per capita cigarette consumption a...
1 answer
Figure 1. This figure shows Chlorophyll A and Secchi depth for each of the four sites....
Figure 1. This figure shows Chlorophyll A and Secchi depth for each of the four sites. There is also a trend line to show the overall shape of the data. First look at the graph, read the x and y axes labels. Did they even graph the data correctly? Answer the following questions: What is wrong wit...
1 answer
How would you test an unknown solution for fat
How would you test an unknown solution for fat?...
1 answer
A) 16.6 B) 12.4 D) 7.8 E)-126 8) El valor de Ahº de esta reacción 2Na2O2...
A) 16.6 B) 12.4 D) 7.8 E)-126 8) El valor de Ahº de esta reacción 2Na2O2 (s) + 2H20 (1) -4NaOH(s) + O2(g) es-12619.Cuinto calor en se libera cuando se forman 2.00 moles de NaOH? 2Na2O2 (s) + 2H20 (1) - 4NaOH(s) + O2(E) A) 252 C) 3.9 ines 483.6 LJ: B) 63...
1 answer
Write critique responses to this question: 6. What is the procedure for collecting data in this...
Write critique responses to this question: 6. What is the procedure for collecting data in this article? Abstract This qualitative study used interviews to explore nurses’ perceptions of their role in protecting children and to identify any barriers to implementing the role. Participants in th...
1 answer
Choose 1 popular diet currently in the news- • Is there potential for nutrient deficiencies, such...
Choose 1 popular diet currently in the news- • Is there potential for nutrient deficiencies, such as calcium and vitamin D, when following this diet for longer than one year that may make it inappropriate for certain at-risk groups (e.g., those with existing or at high risk of osteopenia or o...
1 answer
SQL Query and analize Please help
CREATE TABLE ProductCode(ID_CatNum Integer,CatalogNum Integer,PrdctName VarChar(50) NOT NULL,DsgFrm VarChar(15),Strength Real,PRIMARY KEY (ID_CatNum),CONSTRAINT PrdctUnique1 UNIQUE (ID_CatNum,CatalogNum),CONSTRAINT PrdctUnique2 UNIQUE (CatalogNum,PrdctName,DsgFrm,Strength));CREATE TABLE TradeDress(I...