Problem ccs
User Jasper123
Submission Time 2026-04-25 11:53:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cc1plus: error: ‘::main’ must return ‘int’
ccs.cpp: In function ‘int main()’:
ccs.cpp:15:5: error: ‘set’ was not declared in this scope
15 | set<int>asleep_cats;
| ^~~
ccs.cpp:3:1: note: ‘std::set’ is defined in header ‘<set>’; did you forget to ‘#include <set>’?
2 | #include <queue>
+++ |+#include <set>
3 | #include <vector>
ccs.cpp:5:13: error: expected primary-expression before ‘long’
5 | #define int long long
| ^~~~
ccs.cpp:15:9: note: in expansion of macro ‘int’
15 | set<int>asleep_cats;
| ^~~
ccs.cpp:23:13: error: ‘asleep_cats’ was not declared in this scope
23 | asleep_cats.insert(x);
| ^~~~~~~~~~~
ccs.cpp:28:13: error: ‘asleep_cats’ was not declared in this scope
28 | asleep_cats.erase(x);
| ^~~~~~~~~~~
ccs.cpp:35:23: error: ‘asleep_cats’ wa