#3596
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 | #56028372 | Utilizator | |
Fișier | cifre_romane2.cpp | Dimensiune | 4.68 KB |
Data încărcării | 03 Februarie 2025, 17:52 | Scor / rezultat | 0 puncte |
cifre_romane2.cpp:49:16: warning: multi-character character constant [-Wmultichar] s[0] = 'IV'; ^ cifre_romane2.cpp:57:16: warning: multi-character character constant [-Wmultichar] s[0] = 'IX'; ^ cifre_romane2.cpp:65:16: warning: multi-character character constant [-Wmultichar] s[0] = 'XL'; ^ cifre_romane2.cpp:73:16: warning: multi-character character constant [-Wmultichar] s[0] = 'XC'; ^ cifre_romane2.cpp:81:16: warning: multi-character character constant [-Wmultichar] s[0] = 'CD'; ^ cifre_romane2.cpp:89:16: warning: multi-character character constant [-Wmultichar] s[0] = 'DM'; ^ cifre_romane2.cpp: In function 'char* narab(int)': cifre_romane2.cpp:49:14: warning: overflow in implicit constant conversion [-Woverflow] s[0] = 'IV'; ^ cifre_romane2.cpp:57:14: warning: overflow in implicit constant conversion [-Woverflow] s[0] = 'IX'; ^ cifre_romane2.cpp:65:14: warning: overflow in implicit constant conversion [-Woverflow] s[0] = 'XL'; ^ cifre_romane2.cpp:73:14: warning: overflow in implicit constant conversion [-Woverflow] s[0] = 'XC'; ^ cifre_romane2.cpp:81:14: warning: overflow in implicit constant conversion [-Woverflow] s[0] = 'CD'; ^ cifre_romane2.cpp:89:14: warning: overflow in implicit constant conversion [-Woverflow] s[0] = 'DM'; ^ cifre_romane2.cpp:41:10: warning: address of local variable 's' returned [-Wreturn-local-addr] char s[10]; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 4 | 0 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 6 | 0 | Exemplu | |
3 | 0 secunde | Raspuns gresit. | 6 | 0 | Exemplu | |
4 | 0 secunde | Raspuns gresit. | 4 | 0 | Exemplu | |
5 | 0 secunde | Raspuns gresit. | 6 | 0 | ||
6 | 0 secunde | Raspuns gresit. | 6 | 0 | ||
7 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
8 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
9 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
10 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
11 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
12 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
13 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
14 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
15 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
16 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
17 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
18 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
19 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
20 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
21 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
22 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
23 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
24 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
25 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
26 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
27 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
28 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
29 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
30 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
31 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
32 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
33 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
34 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
35 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
36 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
37 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
38 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
39 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
40 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
41 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
42 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
43 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
44 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
45 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
46 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
47 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
48 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
49 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
50 | 0 secunde | Raspuns gresit. | 1 | 0 | ||
51 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
52 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
Punctaj total | 0 |
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ă.