garden.cpp: In function 'int main()':
garden.cpp:26:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
26 | scanf("%d %d %d", &n, &m, &p);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
garden.cpp:29:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
29 | scanf("%d %d", &u, &v);
| ~~~~~^~~~~~~~~~~~~~~~~
garden.cpp:41:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
41 | scanf("%d", &Q);
| ~~~~~^~~~~~~~~~
garden.cpp:42:39: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
42 | for (int i = 1; i <= Q; i++) scanf("%d", &q[i]);
| ~~~~~^~~~~~~~~~~~~
/usr/bin/ld: /tmp/ccruDS62.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cc9pStW4.o:garden.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccruDS62.o: in function `main':
grader.cpp:(.text.startup+0x3f): undefined reference to `count_routes(int, int, int, int (*) [2], int, int*)'
collect2: error: ld returned 1 exit status