#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 | #53894198 | Utilizator | |
Fișier | cifre_romane1.cpp | Dimensiune | 2.28 KB |
Data încărcării | 14 Noiembrie 2024, 09:54 | Scor / rezultat | Eroare de compilare |
cifre_romane1.cpp:6:17: error: expected initializer before 's' char a[4001][30]s[30]; ^ cifre_romane1.cpp: In function 'int main()': cifre_romane1.cpp:29:21: error: 's' was not declared in this scope s[j++]='M'; ^ cifre_romane1.cpp:31:21: error: 's' was not declared in this scope s[j++]='M',s[j++]='M'; ^ cifre_romane1.cpp:33:21: error: 's' was not declared in this scope s[j++]='M',s[j++]='M',s[j++]='M'; ^ cifre_romane1.cpp:38:21: error: 's' was not declared in this scope s[j++]='C',s[j++]='M'; ^ cifre_romane1.cpp:40:21: error: 's' was not declared in this scope s[j++]='C',S[j++]='D'; ^ cifre_romane1.cpp:40:32: error: 'S' was not declared in this scope s[j++]='C',S[j++]='D'; ^ cifre_romane1.cpp:45:25: error: 's' was not declared in this scope s[j++]='D'; ^ cifre_romane1.cpp:47:25: error: 's' was not declared in this scope s[j++]='C',rest--; ^ cifre_romane1.cpp:53:21: error: 's' was not declared in this scope s[j++]='X',s[j++]='C'; ^ cifre_romane1.cpp:55:21: error: 's' was not declared in this scope s[j++]='X',S[j++]='L'; ^ cifre_romane1.cpp:55:32: error: 'S' was not declared in this scope s[j++]='X',S[j++]='L'; ^ cifre_romane1.cpp:60:25: error: 's' was not declared in this scope s[j++]='L'; ^ cifre_romane1.cpp:62:25: error: 's' was not declared in this scope s[j++]='X',rest--; ^ cifre_romane1.cpp:68:21: error: 's' was not declared in this scope s[j++]='I',s[j++]='X'; ^ cifre_romane1.cpp:70:21: error: 's' was not declared in this scope s[j++]='I',S[j++]='V'; ^ cifre_romane1.cpp:70:32: error: 'S' was not declared in this scope s[j++]='I',S[j++]='V'; ^ cifre_romane1.cpp:75:25: error: 's' was not declared in this scope s[j++]='V'; ^ cifre_romane1.cpp:77:25: error: 's' was not declared in this scope s[j++]='I',rest--; ^ cifre_romane1.cpp:80:13: error: 's' was not declared in this scope s[j]='\0'; ^ cifre_romane1.cpp:81:20: error: 'a' was not declared in this scope strcpy(a[i],s); ^ cifre_romane1.cpp:84:10: error: 's' was not declared in this scope cin>>s; ^ cifre_romane1.cpp:86:12: error: 'strcm' was not declared in this scope if(strcm[(s,a[i]==0) ^ cifre_romane1.cpp:86:21: error: 'a' was not declared in this scope if(strcm[(s,a[i]==0) ^ cifre_romane1.cpp:87:5: error: expected ']' before '{' token { ^ cifre_romane1.cpp:87:5: error: expected ')' before '{' token
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ă.