treasure.cpp: In function 'void findTreasure(int)':
treasure.cpp:7:15: warning: unused variable 'ans' [-Wunused-variable]
7 | int cnt , ans;
| ^~~
/usr/bin/ld: /tmp/ccmcwqNF.o: in function `my_assert(int, char const*)':
treasure.cpp:(.text+0x40): multiple definition of `my_assert(int, char const*)'; /tmp/cc6622TG.o:grader.c:(.text+0x40): first defined here
/usr/bin/ld: /tmp/ccmcwqNF.o: in function `countTreasure(int, int, int, int)':
treasure.cpp:(.text+0x90): multiple definition of `countTreasure(int, int, int, int)'; /tmp/cc6622TG.o:grader.c:(.text+0x90): first defined here
/usr/bin/ld: /tmp/ccmcwqNF.o: in function `Report(int, int)':
treasure.cpp:(.text+0x1b0): multiple definition of `Report(int, int)'; /tmp/cc6622TG.o:grader.c:(.text+0x1b0): first defined here
/usr/bin/ld: /tmp/ccmcwqNF.o: in function `main':
treasure.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cc6622TG.o:grader.c:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status