ermm in C-script (.wdl) i'm sure temp was a built-in variable used to hold temporary data.

In lite-c (.c), temp isn't built in anymore and so must be declared manually. It is usually used to store vector positions so use something like...

VECTOR* temp[3];

..at the top of your script, and it should work.