Question
#include #include struct points { float a; float b; float c; }; int main() { float x,y,z; struct points p1; struct points p2; scanf(%f %f
#include
Compilation failed main.c: In function 'testPassed': main.c:33: 4: error: unknown type name 'vector' vector vec = initVect (10, 10, 10); Ayny w main.c:33:17: warning: implicit declaration of function initVect' [-Wir vector vec = initVect (10, 10, 10); main.c:34:11: error: request for member 'x' in something not a structure if (vec.x == 10 && vec.y == 10 && vec.z == 10) Compilation failed main.c:34:26: error: request for member 'y' in something not a structure if (vec.x == 10 && vec.y == 10 && vec.z == 10) main.c:34:41: error: request for member 'z' in something not a structure if (vec.x == 10 && vec.y == 10 && vec.z == 10) main.c:33:11: warning: variable 'vec' set but not used [-Wunused-but-sel vector vec = initVect (10, 10, 10); AN main.c: 40:1: warning: control reaches end of non-void function [-Wreturi
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started