gondola.cpp: In function 'int valid(int, int*)':
gondola.cpp:22:10: warning: 'id' may be used uninitialized in this function [-Wmaybe-uninitialized]
22 | id = (id-mn)%n+n;
| ~~~^~~~
/usr/bin/ld: /tmp/ccjRAYCl.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccYbotEm.o:gondola.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccjRAYCl.o: in function `main':
grader.cpp:(.text.startup+0x108): undefined reference to `countReplacement'
/usr/bin/ld: grader.cpp:(.text.startup+0x132): undefined reference to `replacement'
collect2: error: ld returned 1 exit status