Problem cups
User Hengweezy
Submission Time 2024-01-31 16:34:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cups.cpp: In function ‘int main()’:
cups.cpp:7:2: error: ‘set’ was not declared in this scope
7 | set<int> cup;
| ^~~
cups.cpp:2:1: note: ‘std::set’ is defined in header ‘<set>’; did you forget to ‘#include <set>’?
1 | #include <iostream>
+++ |+#include <set>
2 | using namespace std;
cups.cpp:7:6: error: expected primary-expression before ‘int’
7 | set<int> cup;
| ^~~
cups.cpp:13:4: error: declaration of ‘auto value’ has no initializer
13 | auto value;
| ^~~~
cups.cpp:15:17: error: ‘cup’ was not declared in this scope
15 | auto lower = cup.find(value);
| ^~~
cups.cpp:25:4: error: declaration of ‘auto value’ has no initializer
25 | auto value;
| ^~~~
cups.cpp:27:4: error: ‘cup’ was not declared in this scope
27 | cup.insert(value);
| ^~~
cups.cpp:30:4: error: declaration of