| Problem | potatosalad |
|---|---|
| User | monke |
| Submission Time | 2025-12-03 18:07:28 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:9:7: error: ‘sort’ is not a member of ‘std’
9 | std::sort(potatos.begin(), potatos.end(), [](int a, b){return a>b;});
| ^~~~
potatosalad.cpp:9:54: error: ‘b’ has not been declared
9 | std::sort(potatos.begin(), potatos.end(), [](int a, b){return a>b;});
| ^
potatosalad.cpp: In lambda function:
potatosalad.cpp:9:66: error: ‘b’ was not declared in this scope
9 | std::sort(potatos.begin(), potatos.end(), [](int a, b){return a>b;});
| ^
potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:13:19: error: expected ‘}’ at end of input
13 | std::cout<<weight;
| ^
potatosalad.cpp:11:26: note: to match this ‘{’
11 | for(int i = 0; i<d; i++){
| ^