/in/foo.c: In function 'SwapElem':
/in/foo.c:25:2: error: unknown type name 'stockElem'
stockElem temp = stock[i];
^~~~~~~~~
/in/foo.c:25:2: note: use 'struct' keyword to refer to the type
/in/foo.c:25:19: error: incompatible types when initializing type 'int' using type 'struct stockElem'
stockElem temp = stock[i];
^~~~~
/in/foo.c:27:11: error: incompatible types when assigning to type 'struct stockElem' from type 'int'
stock[j] = temp;
^
/in/foo.c: In function 'work':
/in/foo.c:81:9: error: 'true' undeclared (first use in this function)
while (true)
^~~~
/in/foo.c:81:9: note: each undeclared identifier is reported only once for each function it appears in