gondola.cpp: In function 'int valid(int, int*)':
gondola.cpp:11:15: warning: variable 'mn' set but not used [-Wunused-but-set-variable]
11 | int cnt = 0, mn = n + 1, ind = 0;
| ^~
gondola.cpp: In function 'int replacement(int, int*, int*)':
gondola.cpp:42:15: warning: variable 'mn' set but not used [-Wunused-but-set-variable]
42 | int cnt = 0, mn = n + 1, ind = 0, ind1= 0, l;
| ^~
gondola.cpp:72:20: warning: 's' may be used uninitialized in this function [-Wmaybe-uninitialized]
72 | replacement[ind1] = s;
| ~~~~~~~~~~~~~~~~~~^~~
/usr/bin/ld: /tmp/cc7IcqWt.o: in function `main':
grader.cpp:(.text.startup+0xb6): undefined reference to `valid'
/usr/bin/ld: 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