| Problem | robotbombs |
|---|---|
| User | sussygoose |
| Submission Time | 2025-11-09 17:14:32 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
robotbombs.cpp: In function ‘int main()’:
robotbombs.cpp:25:8: error: ‘i’ was not declared in this scope
25 | for (i = 0; i < lol.length(); i++) {
| ^
robotbombs.cpp:30:38: error: no matching function for call to ‘max(int&, std::__cxx11::basic_string<char>::size_type)’
30 | res = res + max(rn, lol.length()-rn);
| ^
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from robotbombs.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:222:5: note: candidate: ‘template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)’
222 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/9/bits/stl_algobase.h:222:5: note: template argument deduction/substitution failed:
robotbombs.cpp:30:38: