| Problem | duckhunt5 |
|---|---|
| User | cheryltkx |
| Submission Time | 2026-05-16 09:36:08 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
duckhunt5.cpp: In function ‘int main()’:
duckhunt5.cpp:10:14: error: ‘X’ was not declared in this scope
10 | ms.insert(X);
| ^
duckhunt5.cpp:15:2: error: ‘else’ without a previous ‘if’
15 | else {
| ^~~~
duckhunt5.cpp:16:10: error: expected initializer before ‘==’ token
16 | auto it==ms.lower_bound(x);
| ^~
duckhunt5.cpp:17:7: error: ‘it’ was not declared in this scope; did you mean ‘int’?
17 | if (it==ms.end()){
| ^~
| int
duckhunt5.cpp:20:3: error: ‘esle’ was not declared in this scope
20 | esle cout <<*it<<'\n';
| ^~~~
duckhunt5.cpp: At global scope:
duckhunt5.cpp:23:2: error: expected declaration before ‘}’ token
23 | }
| ^