luk.cpp: In function 'int main()':
luk.cpp:28:27: error: assigning to an array from an initializer list
visited = { false };
^
luk.cpp: In function 'int canHandle(int, int)':
luk.cpp:44:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < graph[v].size(); i++) {
~~^~~~~~~~~~~~~~~~~
luk.cpp: In function 'int main()':
luk.cpp:15:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
~~~~~^~~~~~~~~~
luk.cpp:20:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &a, &b);
~~~~~^~~~~~~~~~~~~~~~~