Problem | swords |
---|---|
User | Hengweezy |
Submission Time | 2024-02-20 21:30:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
swords.cpp: In function ‘int main()’:
swords.cpp:23:21: error: ‘std::set<std::pair<int, int> >::iterator’ {aka ‘struct std::_Rb_tree_const_iterator<std::pair<int, int> >’} has no member named ‘second’
23 | if((*(s.begin()).second <= (*(next(s.begin(),j))).second){
| ^~~~~~
swords.cpp:23:61: error: expected ‘)’ before ‘{’ token
23 | if((*(s.begin()).second <= (*(next(s.begin(),j))).second){
| ~ ^
| )
swords.cpp:30:3: error: expected primary-expression before ‘}’ token
30 | }
| ^