Your function display() is nested inside the main() function, which is a syntax error not allowed in the language. You should copy and paste the display function outside of the main function.
Type: Posts; User: copeg
Your function display() is nested inside the main() function, which is a syntax error not allowed in the language. You should copy and paste the display function outside of the main function.