Why for(auto x:st)st.erase(st.find(x)); and ↵
for( it=st.begin();it!=st.end();it++)st.erase(it);↵
causes runtime error??
for( it=st.begin();it!=st.end();it++)st.erase(it);↵
causes runtime error??
| # | User | Rating |
|---|---|---|
| 1 | Benq | 3792 |
| 2 | VivaciousAubergine | 3647 |
| 3 | jiangly | 3631 |
| 4 | Kevin114514 | 3574 |
| 5 | maroonrk | 3521 |
| 6 | strapple | 3515 |
| 7 | Radewoosh | 3461 |
| 8 | tourist | 3428 |
| 9 | turmax | 3378 |
| 10 | Um_nik | 3376 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 161 |
| 2 | adamant | 147 |
| 3 | Um_nik | 145 |
| 4 | Dominater069 | 142 |
| 5 | errorgorn | 140 |
| 6 | cry | 138 |
| 7 | Proof_by_QED | 136 |
| 8 | YuukiS | 135 |
| 9 | chromate00 | 134 |
| 10 | soullless | 133 |
| Rev. | Lang. | By | When | Δ | Comment | |
|---|---|---|---|---|---|---|
| en3 |
|
RED_in_Three_Months | 2019-10-12 00:31:48 | 0 | (published) | |
| en2 |
|
RED_in_Three_Months | 2019-10-12 00:30:24 | 20 | Tiny change: ' \nfor(set<int> :: i' -> ' \nfor(set <int> :: i' (saved to drafts) | |
| en1 |
|
RED_in_Three_Months | 2019-10-12 00:24:15 | 171 | Initial revision (published) |
| Name |
|---|


