gondola.cpp: In function 'int main()':
gondola.cpp:10:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("sample-2.in", "r", stdin);
^
/tmp/ccA3w53I.o: In function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/cch3nsd7.o:gondola.cpp:(.text.startup+0x0): first defined here
/tmp/ccA3w53I.o:(.bss+0xf4260): multiple definition of `gondolaSequence'
/tmp/cch3nsd7.o:(.bss+0xf4260): first defined here
/tmp/ccA3w53I.o:(.bss+0x0): multiple definition of `replacementSequence'
/tmp/cch3nsd7.o:(.bss+0x0): first defined here
/tmp/cch3nsd7.o: In function `main':
gondola.cpp:(.text.startup+0xdb): undefined reference to `countReplacement'
gondola.cpp:(.text.startup+0xfa): undefined reference to `valid'
gondola.cpp:(.text.startup+0x10b): undefined reference to `replacement'
/tmp/ccA3w53I.o: In function `main':
grader.cpp:(.text.startup+0xcb): undefined reference to `countReplacement'
grader.cpp:(.text.startup+0xea): undefined reference to `valid'
grader.cpp:(.text.startup+0x10e): undefined reference to `replacement'
collect2: error: ld returned 1 exit status