Problem omnomnom
User YeoBL20
Submission Time 2023-09-16 15:49:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

omnomnom.cpp:9:1: error: ‘set’ does not name a type
9 | set <int> eaten;
| ^~~
omnomnom.cpp: In function ‘void dfs(int)’:
omnomnom.cpp:42:20: error: ‘eaten’ was not declared in this scope; did you mean ‘extern’?
42 | if(eaten.find(i) != eaten.end()){
| ^~~~~
| extern
omnomnom.cpp:53:13: error: ‘eaten’ was not declared in this scope; did you mean ‘extern’?
53 | eaten.insert(currentnode);
| ^~~~~
| extern
omnomnom.cpp: In function ‘int main()’:
omnomnom.cpp:72:13: error: ‘eaten’ was not declared in this scope; did you mean ‘extern’?
72 | cout << eaten.size();
| ^~~~~
| extern