prog.cpp:11:13: error: 'Node' was not declared in this scope
int GetNode(Node *head, int position)
^
prog.cpp:11:19: error: 'head' was not declared in this scope
int GetNode(Node *head, int position)
^
prog.cpp:11:25: error: expected primary-expression before 'int'
int GetNode(Node *head, int position)
^
prog.cpp:11:37: error: expression list treated as compound expression in initializer [-fpermissive]
int GetNode(Node *head, int position)
^
prog.cpp:12:1: error: expected ',' or ';' before '{' token
{
^