luk.cpp: In function 'int canHandle(int, int)':
luk.cpp:16:13: error: request for member 'insert' in 'visited', which is of non-class type 'int'
visited.insert(v);
^~~~~~
luk.cpp:18:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < graph[v].size(); i++) {
~~^~~~~~~~~~~~~~~~~
luk.cpp:19:21: error: request for member 'find' in 'visited', which is of non-class type 'int'
if (visited.find(graph[v][i]) == visited.end()) {
^~~~
luk.cpp:19:50: error: request for member 'end' in 'visited', which is of non-class type 'int'
if (visited.find(graph[v][i]) == visited.end()) {
^~~
luk.cpp: In function 'int main()':
luk.cpp:46:17: error: request for member 'clear' in 'visited', which is of non-class type 'int'
visited.clear();
^~~~~
luk.cpp:29:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
~~~~~^~~~~~~~~~
luk.cpp:34:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &a, &b);
~~~~~^~~~~~~~~~~~~~~~~