linux – (standard_in) 1: syntax error

In this code in bash

for element in "$ {array[@]} "
if [ $flag = false ] ; so
printf "($ element- $ consRes) * 0.555555556" | bc
flag = false

I try to print the values ​​printed during this operation on one line, separated by spaces, but I try with echo -and I can not then try with printf but I'm not sure. get the error (standard_in) 1: the syntax error is not that can be wrong.