Problem globalwarming
User BidoTeima
Submission Time 2023-03-25 18:14:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

globalwarming.cpp: In function ‘int main()’:
globalwarming.cpp:5:5: error: ‘cin’ was not declared in this scope
5 | cin>>n;
| ^~~
globalwarming.cpp:13:5: error: ‘vector’ was not declared in this scope
13 | vector<int>c;
| ^~~~~~
globalwarming.cpp:13:12: error: expected primary-expression before ‘int’
13 | vector<int>c;
| ^~~
globalwarming.cpp:16:9: error: ‘c’ was not declared in this scope
16 | c.push_back(a[i]);
| ^
globalwarming.cpp:18:14: error: ‘c’ was not declared in this scope
18 | n = (int)c.size();
| ^
globalwarming.cpp:19:5: error: ‘map’ was not declared in this scope
19 | map<int,vector<int>>mp{};
| ^~~
globalwarming.cpp:19:9: error: expected primary-expression before ‘int’
19 | map<int,vector<int>>mp{};
| ^~~
globalwarming.