In file included from /in/compile/ex2.cpp:1:0:
/in/ex2.h: In function 'int hex2decLinkedList(Node*)':
/in/ex2.h:27:17: error: expected primary-expression before '->' token
if(stoi(Node->val))
^~
/in/ex2.h:28:1: error: expected primary-expression before '}' token
}
^
/in/ex2.h:28:1: error: no return statement in function returning non-void [-Werror=return-type]
/in/ex2.h:25:29: error: unused parameter 'head' [-Werror=unused-parameter]
int hex2decLinkedList(Node *head) {
^~~~
cc1plus: all warnings being treated as errors