Problem doll_noi
User vinitara
Submission Time 2026-02-11 22:05:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

doll_noi.cpp:1:1: error: ‘map’ does not name a type
1 | map<int, int> mp;
| ^~~
doll_noi.cpp:2:1: error: ‘pair’ does not name a type
2 | pair<int, int> tmp;
| ^~~~
doll_noi.cpp:4:1: error: ‘pair’ does not name a type
4 | pair<int, int> findrange(int x){
| ^~~~
doll_noi.cpp: In function ‘int main()’:
doll_noi.cpp:11:5: error: ‘cin’ was not declared in this scope
11 | cin.tie(0)->sync_with_stdio(0);
| ^~~
doll_noi.cpp:12:10: error: ‘n’ was not declared in this scope
12 | cin>>n;
| ^
doll_noi.cpp:14:14: error: ‘a’ was not declared in this scope
14 | cin>>a[i];
| ^
doll_noi.cpp:15:12: error: ‘check’ was not declared in this scope
15 | if(check[a[i]]){
| ^~~~~
doll_noi.cpp:16:13: error: ‘cout’ was not declared in this scope
16 | cout<<cnt<<