#3257
cifre_romane1
Dan vrea să transforme un număr scris cu cifre romane într-un număr scris cu cifre arabe.
proprie
Problema | cifre_romane1 | Operații I/O |
cifre_romane1.in /cifre_romane1.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #39039667 | Utilizator | |
Fișier | cifre_romane1.cpp | Dimensiune | 1.31 KB |
Data încărcării | 26 Octombrie 2022, 20:19 | Scor / rezultat | Eroare de compilare |
cifre_romane1.cpp: In function 'int main()': cifre_romane1.cpp:13:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for( i=0; i<strlen(s); i++) ^ cifre_romane1.cpp:37:17: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses] if(v[i]==v[i+1]==v[i+2]==v[i+3] and v[i+1]!=0 and v[i+2]!=0 and v[i+3]!=0) ^ cifre_romane1.cpp:37:25: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses] if(v[i]==v[i+1]==v[i+2]==v[i+3] and v[i+1]!=0 and v[i+2]!=0 and v[i+3]!=0) ^ cifre_romane1.cpp:39:20: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses] if(v[i]==v[i+1]==5 and v[i+1]!=0) ^ cifre_romane1.cpp:41:20: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses] if(v[i]==v[i+1]==50 and v[i+1]!=0) ^ cifre_romane1.cpp:43:20: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses] if(v[i]==v[i+1]==500 and v[i+1]!=0) ^ cifre_romane1.cpp:45:9: error: expected ';' before 'if' if(v[i]>=v[i+1]) ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema cifre_romane1 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ă.