Problem | deforestation |
---|---|
User | blob |
Submission Time | 2023-11-24 13:35:32 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
deforestation.cpp: In function ‘int main()’:
deforestation.cpp:7:10: error: wrong number of template arguments (1, should be at least 2)
7 | map <int><pair<int,int>> m;
| ^
In file included from /usr/include/c++/9/map:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from deforestation.cpp:1:
/usr/include/c++/9/bits/stl_map.h:100:11: note: provided for ‘template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map’
100 | class map
| ^~~
deforestation.cpp:7:11: error: expected unqualified-id before ‘<’ token
7 | map <int><pair<int,int>> m;
| ^
deforestation.cpp:10:3: error: ‘m’ was not declared in this scope
10 | m.insert(make_pair(A,B));
| ^
deforestation.cpp:15:17: error: ‘m’ was not declared in this scope
15 | s.insert(sort (m.begin(), m.end()));