Problem potatosalad
User gordonlu
Submission Time 2023-11-22 17:47:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:22:64: error: ‘potatoB’ has not been declared
22 | sort(potatoes.begin(), potatoes.end(), [] (long long potatoA, potatoB) {
| ^~~~~~~
potatosalad.cpp: In lambda function:
potatosalad.cpp:23:10: error: ‘potatoB’ was not declared in this scope; did you mean ‘potatoA’?
23 | return potatoB >= potatoA;
| ^~~~~~~
| potatoA
In file included from /usr/include/c++/9/bits/stl_algobase.h:71,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from potatosalad.cpp:1:
/usr/include/c++/9/bits/predefined_ops.h: In instantiation of ‘constexpr bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(