Every right parenthesis needs a left one. Every left parenthesis needs a right one.

Every right curly brace needs a left one. Every left curly brace needs a right one.

    if (num %2) == 0

The entire conditional statement needs to be in the parenthesis.

    put a '1'

C++ compilers don't recognize English commands

this is the core function you are looking for, it can be written as a loop

void showTemperature(int temperature)
  digitalWrite( ledPins[0], temperature & 1);
  digitalWrite( ledPins[1], temperature & 2);
  digitalWrite( ledPins[2], temperature & 4);
  digitalWrite( ledPins[3], temperature & 8);
  digitalWrite( ledPins[4], temperature & 16);