Can someone explain me what these errors mean?
You tried to initialize static variable with another non constant variable. The other error is for declaring a variable but not using it in the function.
It says that a static variable can't be initialized by non-constant variable. probably.