#3144
Cifre_romane
Alexandru a învățat azi despre numerele romane și cum se scriu acestea. Fiind distras de ce spuneau colegii a ajuns acasă și a realizat că nu știe cum să transforme un număr din cifre arabe în cifre romane. Deoarece a doua zi are un test numai din acest capitol, vă roagă să îl ajutați la transformarea unui număr N
dat, scris cu cifre arabe în cifre romane.
Problema | Cifre_romane | Operații I/O |
![]() cifre_romane.in /cifre_romane.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51478716 | Utilizator | |
Fișier | cifre_romane.cpp | Dimensiune | 1.78 KB |
Data încărcării | 24 Iunie 2024, 17:29 | Scor / rezultat | Eroare de compilare |
cifre_romane.cpp:17:9: error: stray '\342' in program fout<<“M”; ^ cifre_romane.cpp:17:9: error: stray '\200' in program cifre_romane.cpp:17:9: error: stray '\234' in program cifre_romane.cpp:17:9: error: stray '\342' in program cifre_romane.cpp:17:9: error: stray '\200' in program cifre_romane.cpp:17:9: error: stray '\235' in program cifre_romane.cpp:20:9: error: stray '\342' in program fout<<“MM”;break; ^ cifre_romane.cpp:20:9: error: stray '\200' in program cifre_romane.cpp:20:9: error: stray '\234' in program cifre_romane.cpp:20:9: error: stray '\342' in program cifre_romane.cpp:20:9: error: stray '\200' in program cifre_romane.cpp:20:9: error: stray '\235' in program cifre_romane.cpp:22:9: error: stray '\342' in program fout<<“MMM”;break; ^ cifre_romane.cpp:22:9: error: stray '\200' in program cifre_romane.cpp:22:9: error: stray '\234' in program cifre_romane.cpp:22:9: error: stray '\342' in program cifre_romane.cpp:22:9: error: stray '\200' in program cifre_romane.cpp:22:9: error: stray '\235' in program cifre_romane.cpp:28:9: error: stray '\342' in program fout<<“C”; ^ cifre_romane.cpp:28:9: error: stray '\200' in program cifre_romane.cpp:28:9: error: stray '\234' in program cifre_romane.cpp:28:9: error: stray '\342' in program cifre_romane.cpp:28:9: error: stray '\200' in program cifre_romane.cpp:28:9: error: stray '\235' in program cifre_romane.cpp:31:9: error: stray '\342' in program fout<<“CC”;break; ^ cifre_romane.cpp:31:9: error: stray '\200' in program cifre_romane.cpp:31:9: error: stray '\234' in program cifre_romane.cpp:31:9: error: stray '\342' in program cifre_romane.cpp:31:9: error: stray '\200' in program cifre_romane.cpp:31:9: error: stray '\235' in program cifre_romane.cpp:33:9: error: stray '\342' in program fout<<“CCC”;break; ^ cifre_romane.cpp:33:9: error: stray '\200' in program cifre_romane.cpp:33:9: error: stray '\234' in program cifre_romane.cpp:33:9: error: stray '\342' in program cifre_romane.cpp:33:9: error: stray '\200' in program cifre_romane.cpp:33:9: error: stray '\235' in program cifre_romane.cpp:35:9: error: stray '\342' in program fout<<“CD”;break; ^ cifre_romane.cpp:35:9: error: stray '\200' in program cifre_romane.cpp:35:9: error: stray '\234' in program cifre_romane.cpp:35:9: error: stray '\342' in program cifre_romane.cpp:35:9: error: stray '\200' in program cifre_romane.cpp:35:9: error: stray '\235' in program cifre_romane.cpp:37:9: error: stray '\342' in program fout<<“D”;break; ^ cifre_romane.cpp:37:9: error: stray '\200' in program cifre_romane.cpp:37:9: error: stray '\234' in program cifre_romane.cpp:37:9: error: stray '\342' in program cifre_romane.cpp:37:9: error: stray '\200' in program cifre_romane.cpp:37:9: error: stray '\235' in program cifre_romane.cpp:39:9: error: stray '\342' in program fout<<“DC”;break; ^ cifre_romane.cpp:39:9: error: stray '\200' in program cifre_romane.cpp:39:9: error: stray '\234' in program cifre_romane.cpp:39:9: error: stray '\342' in program cifre_romane.cpp:39:9: error: stray '\200' in program cifre_romane.cpp:39:9: error: stray '\235' in program cifre_romane.cpp:41:9: error: stray '\342' in program fout<<“DCC”;break; ^ cifre_romane.cpp:41:9: error: stray '\200' in program cifre_romane.cpp:41:9: error: stray '\234' in program cifre_romane.cpp:41:9: error: stray '\342' in program cifre_romane.cpp:41:9: error: stray '\200' in program cifre_romane.cpp:41:9: error: stray '\235' in program cifre_romane.cpp:43:9: error: stray '\342' in program fout<<“DCCC”;break; ^ cifre_romane.cpp:43:9: error: stray '\200' in program cifre_romane.cpp:43:9: error: stray '\234' in program cifre_romane.cpp:43:9: error: stray '\342' in program cifre_romane.cpp:43:9: error: stray '\200' in program cifre_romane.cpp:43:9: error: stray '\235' in program cifre_romane.cpp:45:9: error: stray '\342' in program fout<<“CM”;break; ^ cifre_romane.cpp:45:9: error: stray '\200' in program cifre_romane.cpp:45:9: error: stray '\234' in program cifre_romane.cpp:45:9: error: stray '\342' in program cifre_romane.cpp:45:9: error: stray '\200' in program cifre_romane.cpp:45:9: error: stray '\235' in program cifre_romane.cpp:50:9: error: stray '\342' in program fout<<“X”; ^ cifre_romane.cpp:50:9: error: stray '\200' in program cifre_romane.cpp:50:9: error: stray '\234' in program cifre_romane.cpp:50:9: error: stray '\342' in program cifre_romane.cpp:50:9: error: stray '\200' in program cifre_romane.cpp:50:9: error: stray '\235' in program cifre_romane.cpp:53:9: error: stray '\342' in program fout<<“XX”;break; ^ cifre_romane.cpp:53:9: error: stray '\200' in program cifre_romane.cpp:53:9: error: stray '\234' in program cifre_romane.cpp:53:9: error: stray '\342' in program cifre_romane.cpp:53:9: error: stray '\200' in program cifre_romane.cpp:53:9: error: stray '\235' in program cifre_romane.cpp:55:9: error: stray '\342' in program fout<<“XXX”;break; ^ cifre_romane.cpp:55:9: error: stray '\200' in program cifre_romane.cpp:55:9: error: stray '\234' in program cifre_romane.cpp:55:9: error: stray '\342' in program cifre_romane.cpp:55:9: error: stray '\200' in program cifre_romane.cpp:55:9: error: stray '\235' in program cifre_romane.cpp:57:9: error: stray '\342' in program fout<<“XL”;break; ^ cifre_romane.cpp:57:9: error: stray '\200' in program cifre_romane.cpp:57:9: error: stray '\234' in program cifre_romane.cpp:57:9: error: stray '\342' in program cifre_romane.cpp:57:9: error: stray '\200' in program cifre_romane.cpp:57:9: error: stray '\235' in program cifre_romane.cpp:59:9: error: stray '\342' in program fout<<“L”;break; ^ cifre_romane.cpp:59:9: error: stray '\200' in program cifre_romane.cpp:59:9: error: stray '\234' in program cifre_romane.cpp:59:9: error: stray '\342' in program cifre_romane.cpp:59:9: error: stray '\200' in program cifre_romane.cpp:59:9: error: stray '\235' in program cifre_romane.cpp:61:9: error: stray '\342' in program fout<<“LX”;break; ^ cifre_romane.cpp:61:9: error: stray '\200' in program cifre_romane.cpp:61:9: error: stray '\234' in program cifre_romane.cpp:61:9: error: stray '\342' in program cifre_romane.cpp:61:9: error: stray '\200' in program cifre_romane.cpp:61:9: error: stray '\235' in program cifre_romane.cpp:63:9: error: stray '\342' in program fout<<“LXX”;break; ^ cifre_romane.cpp:63:9: error: stray '\200' in program cifre_romane.cpp:63:9: error: stray '\234' in program cifre_romane.cpp:63:9: error: stray '\342' in program cifre_romane.cpp:63:9: error: stray '\200' in program cifre_romane.cpp:63:9: error: stray '\235' in program cifre_romane.cpp:65:9: error: stray '\342' in program fout<<“LXXX”;break; ^ cifre_romane.cpp:65:9: error: stray '\200' in program cifre_romane.cpp:65:9: error: stray '\234' in program cifre_romane.cpp:65:9: error: stray '\342' in program cifre_romane.cpp:65:9: error: stray '\200' in program cifre_romane.cpp:65:9: error: stray '\235' in program cifre_romane.cpp:67:9: error: stray '\342' in program fout<<“LC”;break; ^ cifre_romane.cpp:67:9: error: stray '\200' in program cifre_romane.cpp:67:9: error: stray '\234' in program cifre_romane.cpp:67:9: error: stray '\342' in program cifre_romane.cpp:67:9: error: stray '\200' in program cifre_romane.cpp:67:9: error: stray '\235' in program cifre_romane.cpp:72:9: error: stray '\342' in program fout<<“I”; ^ cifre_romane.cpp:72:9: error: stray '\200' in program cifre_romane.cpp:72:9: error: stray '\234' in program cifre_romane.cpp:72:9: error: stray '\342' in program cifre_romane.cpp:72:9: error: stray '\200' in program cifre_romane.cpp:72:9: error: stray '\235' in program cifre_romane.cpp:75:9: error: stray '\342' in program fout<<“II”;break; ^ cifre_romane.cpp:75:9: error: stray '\200' in program cifre_romane.cpp:75:9: error: stray '\234' in program cifre_romane.cpp:75:9: error: stray '\342' in program cifre_romane.cpp:75:9: error: stray '\200' in program cifre_romane.cpp:75:9: error: stray '\235' in program cifre_romane.cpp:77:9: error: stray '\342' in program fout<<“III”;break; ^ cifre_romane.cpp:77:9: error: stray '\200' in program cifre_romane.cpp:77:9: error: stray '\234' in program cifre_romane.cpp:77:9: error: stray '\342' in program cifre_romane.cpp:77:9: error: stray '\200' in program cifre_romane.cpp:77:9: error: stray '\235' in program cifre_romane.cpp:79:9: error: stray '\342' in program fout<<“IV”;break; ^ cifre_romane.cpp:79:9: error: stray '\200' in program cifre_romane.cpp:79:9: error: stray '\234' in program cifre_romane.cpp:79:9: error: stray '\342' in program cifre_romane.cpp:79:9: error: stray '\200' in program cifre_romane.cpp:79:9: error: stray '\235' in program cifre_romane.cpp:81:9: error: stray '\342' in program fout<<“V”;break; ^ cifre_romane.cpp:81:9: error: stray '\200' in program cifre_romane.cpp:81:9: error: stray '\234' in program cifre_romane.cpp:81:9: error: stray '\342' in program cifre_romane.cpp:81:9: error: stray '\200' in program cifre_romane.cpp:81:9: error: stray '\235' in program cifre_romane.cpp:83:9: error: stray '\342' in program fout<<“VI”;break; ^ cifre_romane.cpp:83:9: error: stray '\200' in program cifre_romane.cpp:83:9: error: stray '\234' in program cifre_romane.cpp:83:9: error: stray '\342' in program cifre_romane.cpp:83:9: error: stray '\200' in program cifre_romane.cpp:83:9: error: stray '\235' in program cifre_romane.cpp:85:9: error: stray '\342' in program fout<<“VII”;break; ^ cifre_romane.cpp:85:9: error: stray '\200' in program cifre_romane.cpp:85:9: error: stray '\234' in program cifre_romane.cpp:85:9: error: stray '\342' in program cifre_romane.cpp:85:9: error: stray '\200' in program cifre_romane.cpp:85:9: error: stray '\235' in program cifre_romane.cpp:87:9: error: stray '\342' in program fout<<“VIII”;break; ^ cifre_romane.cpp:87:9: error: stray '\200' in program cifre_romane.cpp:87:9: error: stray '\234' in program cifre_romane.cpp:87:9: error: stray '\342' in program cifre_romane.cpp:87:9: error: stray '\200' in program cifre_romane.cpp:87:9: error: stray '\235' in program cifre_romane.cpp:89:9: error: stray '\342' in program fout<<“IX”;break; ^ cifre_romane.cpp:89:9: error: stray '\200' in program cifre_romane.cpp:89:9: error: stray '\234' in program cifre_romane.cpp:89:9: error: stray '\342' in program cifre_romane.cpp:89:9: error: stray '\200' in program cifre_romane.cpp:89:9: error: stray '\235' in program cifre_romane.cpp: In function 'int main()': cifre_romane.cpp:17:18: error: 'M' was not declared in this scope fout<<“M”; ^ cifre_romane.cpp:20:18: error: 'MM' was not declared in this scope fout<<“MM”;break; ^ cifre_romane.cpp:22:18: error: 'MMM' was not declared in this scope fout<<“MMM”;break; ^ cifre_romane.cpp:28:18: error: 'C' was not declared in this scope fout<<“C”; ^ cifre_romane.cpp:31:18: error: 'CC' was not declared in this scope fout<<“CC”;break; ^ cifre_romane.cpp:33:18: error: 'CCC' was not declared in this scope fout<<“CCC”;break; ^ cifre_romane.cpp:35:18: error: 'CD' was not declared in this scope fout<<“CD”;break; ^ cifre_romane.cpp:37:18: error: 'D' was not declared in this scope fout<<“D”;break; ^ cifre_romane.cpp:39:18: error: 'DC' was not declared in this scope fout<<“DC”;break; ^ cifre_romane.cpp:41:18: error: 'DCC' was not declared in this scope fout<<“DCC”;break; ^ cifre_romane.cpp:43:18: error: 'DCCC' was not declared in this scope fout<<“DCCC”;break; ^ cifre_romane.cpp:45:18: error: 'CM' was not declared in this scope fout<<“CM”;break; ^ cifre_romane.cpp:50:18: error: 'X' was not declared in this scope fout<<“X”; ^ cifre_romane.cpp:52:5: error: expected ';' before 'case' case 2: ^ cifre_romane.cpp:53:18: error: 'XX' was not declared in this scope fout<<“XX”;break; ^ cifre_romane.cpp:55:18: error: 'XXX' was not declared in this scope fout<<“XXX”;break; ^ cifre_romane.cpp:57:18: error: 'XL' was not declared in this scope fout<<“XL”;break; ^ cifre_romane.cpp:59:18: error: 'L' was not declared in this scope fout<<“L”;break; ^ cifre_romane.cpp:61:18: error: 'LX' was not declared in this scope fout<<“LX”;break; ^ cifre_romane.cpp:63:18: error: 'LXX' was not declared in this scope fout<<“LXX”;break; ^ cifre_romane.cpp:65:18: error: 'LXXX' was not declared in this scope fout<<“LXXX”;break; ^ cifre_romane.cpp:67:18: error: 'LC' was not declared in this scope fout<<“LC”;break; ^ cifre_romane.cpp:72:18: error: 'I' was not declared in this scope fout<<“I”; ^ cifre_romane.cpp:74:5: error: expected ';' before 'case' case 2: ^ cifre_romane.cpp:75:18: error: 'II' was not declared in this scope fout<<“II”;break; ^ cifre_romane.cpp:77:18: error: 'III' was not declared in this scope fout<<“III”;break; ^ cifre_romane.cpp:79:18: error: 'IV' was not declared in this scope fout<<“IV”;break; ^ cifre_romane.cpp:81:18: error: 'V' was not declared in this scope fout<<“V”;break; ^ cifre_romane.cpp:83:18: error: 'VI' was not declared in this scope fout<<“VI”;break; ^ cifre_romane.cpp:85:18: error: 'VII' was not declared in this scope fout<<“VII”;break; ^ cifre_romane.cpp:87:18: error: 'VIII' was not declared in this scope fout<<“VIII”;break; ^ cifre_romane.cpp:89:18: error: 'IX' was not declared in this scope fout<<“IX”;break; ^ cifre_romane.cpp:90:5: error: expected '}' at end of input } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Cifre_romane 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ă.