| Problem | lemon |
|---|---|
| User | bribritt |
| Submission Time | 2026-03-15 11:16:10 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lemon.cpp: In function ‘std::string init(int, int, std::vector<int>)’:
lemon.cpp:6:10: error: ‘min_element’ was not declared in this scope
6 | assert(*min_element(p.begin()+1,p.end())==1);
| ^~~~~~~~~~~
lemon.cpp:6:2: error: ‘assert’ was not declared in this scope
6 | assert(*min_element(p.begin()+1,p.end())==1);
| ^~~~~~
lemon.cpp:4:1: note: ‘assert’ is defined in header ‘<cassert>’; did you forget to ‘#include <cassert>’?
3 | #include "lemon.h"
+++ |+#include <cassert>
4 |
lemon.cpp:7:10: error: ‘max_element’ was not declared in this scope
7 | assert(*max_element(p.begin()+1,p.end())==n);
| ^~~~~~~~~~~
lemon.cpp:8:2: error: ‘set’ was not declared in this scope
8 | set<int> s;
| ^~~
lemon.cpp:8:6: error: expected primary-expression before ‘int’
8 | set<int> s;
| ^~~
lemon.cpp:10:3: error: ‘s’ was not