Notice: Undefined variable: nid in NodeEntityFieldQuery->excludeNode()

Fixed these errors:
Warning: Missing argument 1 for NodeEntityFieldQuery::excludeNode()
and
Notice: Undefined variable: nid in NodeEntityFieldQuery->excludeNode()