programm testing- Microsoft Visual Studlo Fle Edit Vlew Project Build Debug Team
ID: 3724417 • Letter: P
Question
programm testing- Microsoft Visual Studlo Fle Edit Vlew Project Build Debug Team Tools Test Analyze Window Help Sign in M Local windows Debugger , - '= Error List (8: Errors | 4 Warnings 0 Messages programm testing (Global Scope) process() Entire Solution int 1: Search Crior List for (1 ; 1cnurberotrputs: 1 Code Description Project Filc Linc Suppression: 63 prin("inputs[1- 21f ", plnpuls[i]); Incomplete type is programm testing testing project.cpp8 not allowed C4477 scanf format programm testingtesting project.cpp 31 string d' requires 68 //provide det 1n1t1onot getHean() here Lle points type 'int", but arladic argument 1 has type double *. ": conversion from 'double' to int', possible loss of data 71 void process() C4244 programm testing testing project.cpp 47 doclare an array of doubles called "inputs with capacity MAK NLVEER OF_INPUTS hare. fi do not initialize the array [5 peints] double inputs [MAX NLPEER OF INPUTS]: int number(finputs _ Retuterfinputs(); getInputsinputs, nunborof Inputs): print(inputs, nuberOfIrputs); CA477 prograrn'n testing testing projot.qp 63 .printr ; formel string '%d' requires an argument of type 'int', but variadic argument 1 has type 'double' 84 C4473 intol eough prograri lesting lesling projocLapp 63 arguments passed for format string inputs': unknown prograrnii testing testing projectcpp size printf("Mean-3.21fin", nean) C2133 78 t main) proresscO: 70%Explanation / Answer
Q says there is a error with my line 78 but I dont see what i did wrong let me know if you need more of the code to fix.
Answer : I have fix the issue
You have to change in your code the below code
double inputs[] ={MAX_NUMBER_OF_INPUTS};
inputs[MAX_NUMBER_OF_INPUTS] this is the wrong way to define array
after you replace the above line your code should be working fine.
Thanks.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.