Did you save that file as .c file or as .wdl file?

(I'm asking because you are using lite-C syntax and posted in the WDL/C-Script forum)