Problem ccs
User Hengweezy
Submission Time 2024-01-31 15:54:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ccs.cpp: In function ‘int main()’:
ccs.cpp:8:2: error: ‘set’ was not declared in this scope
8 | set<int> sleepcat(numcats);
| ^~~
ccs.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;
ccs.cpp:8:6: error: expected primary-expression before ‘int’
8 | set<int> sleepcat(numcats);
| ^~~
ccs.cpp:28:13: error: could not convert ‘e.std::__cxx11::basic_string<char>::operator=(((const char*)"SLEEP"))’ from ‘std::__cxx11::basic_string<char>’ to ‘bool’
28 | else if(e = "SLEEP"){
| ~~^~~~~~~~~
| |
| std::__cxx11::basic_string<char>
ccs.cpp:31:4: error: ‘sleepcat’ was not declared in this scope; did you mean ‘select’?
31 | sleepcat.insert(value);
| ^~~~~~~~
| sele