Duda, define variable with smart compilation

C:\Users\Arixt\Desktop\demo\demo.cpp: In function 'void printAllVariables()':
demo.cpp:21:3: error: 'Serial' was not declared in this scope
   21 |   Serial.println("----------");
      |   ^~~~~~
exit status 1
'Serial' was not declared in this scope