#3596
Cifre_romane2
Alexandru a invatat ca pe langa cifrele romane I
, V
, X
, L
, C
, D
, M
mai exista cifrele (V)
, (X)
, (L)
, (C)
, (D)
, (M)
care au valorile 5000
, 10000
, 50000
, 100000
, 500000
respectiv 1000000
. Dandu-se un numar c
:
c=1
, se da un numar scris cu cifre arabe si trebuie sa-l scrieti cu cifre romane.c=2
, se da un numar scris cu cifre romane si trebuie sa-l scrieti cu cifre arabe.proprie
Problema | Cifre_romane2 | Operații I/O |
cifre_romane2.in /cifre_romane2.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #47928356 | Utilizator | |
Fișier | cifre_romane2.cpp | Dimensiune | 1.48 KB |
Data încărcării | 10 Ianuarie 2024, 13:26 | Scor / rezultat | Eroare de compilare |
cifre_romane2.cpp: In function 'int main()': cifre_romane2.cpp:14:10: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["I"]=1; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:15:11: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["II"]=2; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:16:12: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["III"]=3; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:17:11: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["IV"]=4; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:18:10: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["V"]=5; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:19:11: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["VI"]=6; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:20:12: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["VII"]=7; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:21:13: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["VIII"]=8; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:22:11: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["IX"]=9; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:23:10: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["X"]=10; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:24:11: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["XX"]=20; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:25:12: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["XXX"]=30; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:26:11: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["XL"]=40; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:27:10: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["L"]=50; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:28:11: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["LX"]=60; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:29:12: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["LXX"]=70; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:30:13: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["LXXX"]=80; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:31:11: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["XC"]=90; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:32:10: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["C"]=100; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:33:11: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["CC"]=200; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:34:12: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["CCC"]=300; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:34:13: warning: overflow in implicit constant conversion [-Woverflow] m["CCC"]=300; ^ cifre_romane2.cpp:35:11: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["CD"]=400; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:35:12: warning: overflow in implicit constant conversion [-Woverflow] m["CD"]=400; ^ cifre_romane2.cpp:36:10: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["D"]=500; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:36:11: warning: overflow in implicit constant conversion [-Woverflow] m["D"]=500; ^ cifre_romane2.cpp:37:11: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["DC"]=600; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:37:12: warning: overflow in implicit constant conversion [-Woverflow] m["DC"]=600; ^ cifre_romane2.cpp:38:12: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["DCC"]=700; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:38:13: warning: overflow in implicit constant conversion [-Woverflow] m["DCC"]=700; ^ cifre_romane2.cpp:39:13: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["DCCC"]=800; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:39:14: warning: overflow in implicit constant conversion [-Woverflow] m["DCCC"]=800; ^ cifre_romane2.cpp:40:11: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["CM"]=900; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:40:12: warning: overflow in implicit constant conversion [-Woverflow] m["CM"]=900; ^ cifre_romane2.cpp:41:10: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["M"]=1000; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:41:11: warning: overflow in implicit constant conversion [-Woverflow] m["M"]=1000; ^ cifre_romane2.cpp:42:11: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["MM"]=2000; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:42:12: warning: overflow in implicit constant conversion [-Woverflow] m["MM"]=2000; ^ cifre_romane2.cpp:43:12: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["MMM"]=3000; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:43:13: warning: overflow in implicit constant conversion [-Woverflow] m["MMM"]=3000; ^ cifre_romane2.cpp:44:13: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["M(V)"]=4000; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:44:14: warning: overflow in implicit constant conversion [-Woverflow] m["M(V)"]=4000; ^ cifre_romane2.cpp:45:12: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["(V)"]=5000; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:45:13: warning: overflow in implicit constant conversion [-Woverflow] m["(V)"]=5000; ^ cifre_romane2.cpp:46:13: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["(V)M"]=6000; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:46:14: warning: overflow in implicit constant conversion [-Woverflow] m["(V)M"]=6000; ^ cifre_romane2.cpp:47:14: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["(V)MM"]=7000; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:47:15: warning: overflow in implicit constant conversion [-Woverflow] m["(V)MM"]=7000; ^ cifre_romane2.cpp:48:15: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["(V)MMM"]=8000; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:48:16: warning: overflow in implicit constant conversion [-Woverflow] m["(V)MMM"]=8000; ^ cifre_romane2.cpp:49:13: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["M(X)"]=9000; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:49:14: warning: overflow in implicit constant conversion [-Woverflow] m["M(X)"]=9000; ^ cifre_romane2.cpp:50:12: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["(X)"]=10000; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:50:13: warning: overflow in implicit constant conversion [-Woverflow] m["(X)"]=10000; ^ cifre_romane2.cpp:51:16: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["(X)(X)"]=20000; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:51:17: warning: overflow in implicit constant conversion [-Woverflow] m["(X)(X)"]=20000; ^ cifre_romane2.cpp:52:18: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["(X)(X)(X)"]=30000; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:52:19: warning: overflow in implicit constant conversion [-Woverflow] m["(X)(X)(X)"]=30000; ^ cifre_romane2.cpp:53:15: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["(X)(L)"]=40000; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:53:16: warning: overflow in implicit constant conversion [-Woverflow] m["(X)(L)"]=40000; ^ cifre_romane2.cpp:54:12: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["(V)"]=50000; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:54:13: warning: overflow in implicit constant conversion [-Woverflow] m["(V)"]=50000; ^ cifre_romane2.cpp:55:13: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["(V)M"]=60000; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:55:14: warning: overflow in implicit constant conversion [-Woverflow] m["(V)M"]=60000; ^ cifre_romane2.cpp:56:14: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["(V)MM"]=70000; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:56:15: warning: overflow in implicit constant conversion [-Woverflow] m["(V)MM"]=70000; ^ cifre_romane2.cpp:57:15: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["(V)MMM"]=80000; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:57:16: warning: overflow in implicit constant conversion [-Woverflow] m["(V)MMM"]=80000; ^ cifre_romane2.cpp:58:13: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["M(X)"]=90000; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:58:14: warning: overflow in implicit constant conversion [-Woverflow] m["M(X)"]=90000; ^ cifre_romane2.cpp:59:12: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["(c)"]=100000; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:59:13: warning: overflow in implicit constant conversion [-Woverflow] m["(c)"]=100000; ^ cifre_romane2.cpp:60:15: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["(c)(c)"]=200000; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:60:16: warning: overflow in implicit constant conversion [-Woverflow] m["(c)(c)"]=200000; ^ cifre_romane2.cpp:61:19: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["(C)(C)(C)"]=300000; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:61:20: warning: overflow in implicit constant conversion [-Woverflow] m["(C)(C)(C)"]=300000; ^ cifre_romane2.cpp:62:15: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["(C)(D)"]=400000; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:62:16: warning: overflow in implicit constant conversion [-Woverflow] m["(C)(D)"]=400000; ^ cifre_romane2.cpp:63:12: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["(D)"]=500000; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:63:13: warning: overflow in implicit constant conversion [-Woverflow] m["(D)"]=500000; ^ cifre_romane2.cpp:64:15: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["(D)(C)"]=600000; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:64:16: warning: overflow in implicit constant conversion [-Woverflow] m["(D)(C)"]=600000; ^ cifre_romane2.cpp:65:15: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["(D)(C)"]=700000; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:65:16: warning: overflow in implicit constant conversion [-Woverflow] m["(D)(C)"]=700000; ^ cifre_romane2.cpp:66:21: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["(D)(C)(C)(C)"]=800000; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:66:22: warning: overflow in implicit constant conversion [-Woverflow] m["(D)(C)(C)(C)"]=800000; ^ cifre_romane2.cpp:67:15: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["(C)(M)"]=900000; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:67:16: warning: overflow in implicit constant conversion [-Woverflow] m["(C)(M)"]=900000; ^ cifre_romane2.cpp:68:12: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["(M)"]=1000000; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:68:13: warning: overflow in implicit constant conversion [-Woverflow] m["(M)"]=1000000; ^ cifre_romane2.cpp:69:18: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["(M)(M)(M)"]=3000000; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:69:19: warning: overflow in implicit constant conversion [-Woverflow] m["(M)(M)(M)"]=3000000; ^ cifre_romane2.cpp:70:15: error: invalid conversion from 'const char*' to 'std::unordered_map<int, std::basic_string<char> >::key_type {aka int}' [-fpermissive] m["(M)(M)"]=2000000; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from cifre_romane2.cpp:3: /usr/include/c++/4.8/bits/unordered_map.h:599:7: error: initializing argument 1 of 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type&&) [with _Key = int; _Tp = std::basic_string<char>; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, std::basic_string<char> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = std::basic_string<char>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = int]' [-fpermissive] operator[](key_type&& __k) ^ cifre_romane2.cpp:70:16: warning: overflow in implicit constant conversion [-Woverflow] m["(M)(M)"]=2000000; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Cifre_romane2 face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.