Update sharingmemory_by_node.c

Missing .h file. Removing extra curly brace. Adding return(0) at the end of main