Problem potatosalad
User monke
Submission Time 2025-12-03 18:07:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:10:54: error: ‘b’ has not been declared
10 | std::sort(potatos.begin(), potatos.end(), [](int a, b){return a>b;});
| ^
potatosalad.cpp: In lambda function:
potatosalad.cpp:10:66: error: ‘b’ was not declared in this scope
10 | std::sort(potatos.begin(), potatos.end(), [](int a, b){return a>b;});
| ^
potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:14:19: error: expected ‘}’ at end of input
14 | std::cout<<weight;
| ^
potatosalad.cpp:12:26: note: to match this ‘{’
12 | for(int i = 0; i<d; i++){
| ^
potatosalad.cpp:14:19: error: expected ‘}’ at end of input
14 | std::cout<<weight;
| ^
potatosalad.cpp:8:26: note: to match t