Problem candies
User shoryu386
Submission Time 2023-12-17 01:18:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

candies.cpp: In member function ‘long long int node::traverse()’:
candies.cpp:97:7: error: ‘s’ was not declared in this scope
97 | if (s == e) return s; //we've reached the 0; just return its coordinate
| ^
candies.cpp:97:12: error: ‘e’ was not declared in this scope
97 | if (s == e) return s; //we've reached the 0; just return its coordinate
| ^
candies.cpp:105:10: error: ‘struct node’ has no member named ‘val’; did you mean ‘value’?
105 | if (l->val == 0) return l->traverse();
| ^~~
| value