We definitely can't say Oh no, Not again! but there no contest in next 10 days. This is 2nd time in 2021 :(
| # | User | Rating |
|---|---|---|
| 1 | Benq | 3676 |
| 2 | Kevin114514 | 3657 |
| 3 | jiangly | 3638 |
| 4 | turmax | 3442 |
| 5 | tourist | 3380 |
| 6 | Um_nik | 3353 |
| 7 | strapple | 3350 |
| 8 | squareOf105 | 3346 |
| 9 | heuristica | 3322 |
| 10 | maroonrk | 3310 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 158 |
| 2 | nik_exists | 150 |
| 2 | maspy | 150 |
| 4 | AmShZ | 144 |
| 5 | Um_nik | 143 |
| 6 | Errichto | 139 |
| 7 | adamant | 137 |
| 8 | BledDest | 135 |
| 9 | maroonrk | 133 |
| 10 | qwexd | 130 |
We definitely can't say Oh no, Not again! but there no contest in next 10 days. This is 2nd time in 2021 :(
Hi codeforces! I was deleting the element from ordered map but when i delete the last element from map then i got the RE! why? :(
#include<bits/stdc++.h>
using namespace std;
void solve(){
int n;
cin>>n;
map<int,int>a;
for(int i=1;i<=n;i++){
int x; cin>>x;
a[i]=x;
}
map<int,int>::iterator it=a.begin();
a.erase(it);
// a.erase(it);
// if i uncomment the upper line then i got RE because iam deleting the last element :(
/* input
2
1 2
iam considering that my ordered map have only 2 elements.
*/
}
int main(){
solve();
}
| Name |
|---|


