New to Arduino Sound detection project

Delta_G:
C++ doesn't care about whitespace. Only newlines mean anything.

Not true.

This compiles:

# define CONSTANT 500
setup() {
 int var = CONSTANT;
}
loop() {}

This has less newlines but missing and surplus whitespace problems and won't compile:

#de fine CONSTANT500
setup() {intvar = CONSTANT;}
loop() {}