| Problem | shortest |
|---|---|
| User | LimCheeHann |
| Submission Time | 2026-03-08 17:01:31 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
shortest.cpp: In function ‘int main()’:
shortest.cpp:143:11: error: reference to ‘less’ is ambiguous
143 | else if(less(multiplication(addition(pos,pow2[i]),addition(pos,pow2[i])),S)){
| ^~~~
In file included from /usr/include/c++/9/string:48,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from shortest.cpp:1:
/usr/include/c++/9/bits/stl_function.h:340:12: note: candidates are: ‘template<class _Tp> struct std::less’
340 | struct less;
| ^~~~
shortest.cpp:109:6: note: ‘bool less(std::string, std::string)’
109 | bool less(string A,string B){
| ^~~~