Problem | ccs |
---|---|
User | wongethan8192 |
Submission Time | 2023-02-17 17:45:47 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
ccs.cpp: In function ‘std::string transmit(int, std::vector<int>)’:
ccs.cpp:4:40: error: ‘class std::vector<int>’ has no member named ‘find’
4 | cin>>f;for(int y=e;y<=f;y++){auto it=c.find(y);if(it==c.end())return"NO";}return "YES";}
| ^~~~
ccs.cpp: In function ‘int main()’:
ccs.cpp:8:95: error: could not convert ‘c’ from ‘std::set<int>’ to ‘std::vector<int>’
8 | cin>>d>>e;if(d=="SLEEP")c.erase(e);if(d=="WAKE")c.insert(e);if(d=="TRANSMIT")cout<<transmit(e,c)<<"\n";}}
| ^
| |
| std::set<int>