Problem cups
User kesleryak
Submission Time 2024-07-04 10:01:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cups.cpp: In function ‘int main()’:
cups.cpp:16:5: error: ‘set’ was not declared in this scope
16 | set<ll> c;
| ^~~
cups.cpp:4:1: note: ‘std::set’ is defined in header ‘<set>’; did you forget to ‘#include <set>’?
3 | #include <unordered_set>
+++ |+#include <set>
4 | #define ll long long
cups.cpp:4:12: error: expected primary-expression before ‘long’
4 | #define ll long long
| ^~~~
cups.cpp:16:9: note: in expansion of macro ‘ll’
16 | set<ll> c;
| ^~
cups.cpp:24:17: error: ‘c’ was not declared in this scope
24 | if (c.count(num-rain)) {
| ^
cups.cpp:30:13: error: ‘c’ was not declared in this scope
30 | c.insert(num - rain);
| ^