dna.cpp: In function 'std::string analyse(int, int)':
dna.cpp:37:7: error: redeclaration of 'int l'
37 | int l = 1, r = c;
| ^
dna.cpp:15:7: note: 'int l' previously declared here
15 | int l = 1, r = n;
| ^
dna.cpp:37:14: error: redeclaration of 'int r'
37 | int l = 1, r = c;
| ^
dna.cpp:15:14: note: 'int r' previously declared here
15 | int l = 1, r = n;
| ^
dna.cpp:46:17: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'lenght'; did you mean 'length'?
46 | while (suffix.lenght <= n) {
| ^~~~~~
| length
grader.cpp: In function 'bool make_test(std::string)':
grader.cpp:14:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | for (int i = 0; i < p.size(); i++) {
| ~~^~~~~~~~~~
grader.cpp:23:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
23 | for (int i = 1; i <= ss.size(); i++) {
| ~~^~~~~~~~~~~~
grader.cpp:28:13: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
28 | if (pr[i] == p.size()) {