#3257
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 | #56466002 | Utilizator | |
Fișier | cifre_romane1.cpp | Dimensiune | 1.92 KB |
Data încărcării | 20 Februarie 2025, 12:59 | Scor / rezultat | Eroare de compilare |
cifre_romane1.cpp: In function 'int main()': cifre_romane1.cpp:11:10: error: 'n' was not declared in this scope fin>>n; ^ cifre_romane1.cpp:34:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<strlen(nrom);i++) ^ cifre_romane1.cpp:36:12: error: 's' was not declared in this scope if(s[i]=='I' && s[i]=='V') ^ cifre_romane1.cpp:40:13: error: 's' was not declared in this scope if(s[i]=='I') ^ cifre_romane1.cpp:42:13: error: 's' was not declared in this scope if(s[i]=='V') ^ cifre_romane1.cpp:44:13: error: 's' was not declared in this scope if(s[i]=='X') ^ cifre_romane1.cpp:48:13: error: 's' was not declared in this scope if(s[i]=='L') ^ cifre_romane1.cpp:52:13: error: 's' was not declared in this scope if(s[i]=='C') ^ cifre_romane1.cpp:56:13: error: 's' was not declared in this scope if(s[i]=='D') ^ cifre_romane1.cpp:60:13: error: 's' was not declared in this scope if(s[i]=='M') ^ cifre_romane1.cpp:10:14: warning: unused variable 'nri' [-Wunused-variable] int nr=0,nri=0,nrv=0,nrx=0,nrl=0,nrc=0,nrd=0,nrm=0; ^ cifre_romane1.cpp:10:20: warning: unused variable 'nrv' [-Wunused-variable] int nr=0,nri=0,nrv=0,nrx=0,nrl=0,nrc=0,nrd=0,nrm=0; ^ cifre_romane1.cpp:10:26: warning: unused variable 'nrx' [-Wunused-variable] int nr=0,nri=0,nrv=0,nrx=0,nrl=0,nrc=0,nrd=0,nrm=0; ^ cifre_romane1.cpp:10:32: warning: unused variable 'nrl' [-Wunused-variable] int nr=0,nri=0,nrv=0,nrx=0,nrl=0,nrc=0,nrd=0,nrm=0; ^ cifre_romane1.cpp:10:38: warning: unused variable 'nrc' [-Wunused-variable] int nr=0,nri=0,nrv=0,nrx=0,nrl=0,nrc=0,nrd=0,nrm=0; ^ cifre_romane1.cpp:10:44: warning: unused variable 'nrd' [-Wunused-variable] int nr=0,nri=0,nrv=0,nrx=0,nrl=0,nrc=0,nrd=0,nrm=0; ^ cifre_romane1.cpp:10:50: warning: unused variable 'nrm' [-Wunused-variable] int nr=0,nri=0,nrv=0,nrx=0,nrl=0,nrc=0,nrd=0,nrm=0; ^
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ă.