Problem wiring
User PlayVoltz
Submission Time 2024-07-09 16:48:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

wiring.cpp: In function ‘void dfs(std::set<long long int>&)’:
wiring.cpp:49:41: error: request for member ‘insert’ in ‘temp’, which is of non-class type ‘long long int’
49 | while (temp!=node)s.erase(temp), temp.insert(temp), temp=vect[temp];
| ^~~~~~
wiring.cpp:56:41: error: request for member ‘insert’ in ‘temp’, which is of non-class type ‘long long int’
56 | while (temp!=node)s.erase(temp), temp.insert(temp), temp=p[temp];
| ^~~~~~