To add to what CPallini says, start by looking at the error message - it tells you exactly where it found the problem:
main.cpp:9:1: error: expected unqualified-id before ‘{’ token
{
^
That says the file name is "main.cpp", the line number it found a problem on is "9", the column was "1" and the "^" is pointing to the character it found a problem with.
So go to that line (most editors support CTRL+G to go directly to a line number) and look at a few line above that for context.
float calculateSD(float data[]);
{
What's above it? The function declaration.
So think about what might be wrong with the line above that could cause a problem later.
Semicolon terminates a statement - so the spurious one at the end of the function declaration is making it a
forward declaration - a definition of the function signature with a promise "to fill in the body later".
It's honestly a lot, lot quicker to think about syntax errors and fix them yourself than it is to ask about them! :D