Problem | ccs |
---|---|
User | Hengweezy |
Submission Time | 2024-01-31 15:55:43 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
ccs.cpp: In function ‘int main()’:
ccs.cpp:8:2: error: ‘set’ was not declared in this scope
8 | set<int> sleepcat;
| ^~~
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;
| ^~~
ccs.cpp:18:16: error: ‘sleepcat’ was not declared in this scope; did you mean ‘select’?
18 | int lower = sleepcat.lower_bound(start);
| ^~~~~~~~
| select
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