laugh.cpp: In function 'int main()':
laugh.cpp:8:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | for (int i = 0; i < s.length(); i++) {
| ~~^~~~~~~~~~~~
laugh.cpp:15:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
15 | while (r < s.length()) {
| ~~^~~~~~~~~~~~
/usr/bin/ld: /tmp/cchirMwl.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccJE1sAp.o:laugh.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/cchirMwl.o: in function `main':
grader.cpp:(.text.startup+0x65): undefined reference to `longest_laugh(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
collect2: error: ld returned 1 exit status