#2890
Se dă numărul n
în baza b
, să se afișeze numărul n
în convertit în baza c
.
Problema | Base Converter | Operații I/O |
![]() base_converter.in /base_converter.out
|
---|---|---|---|
Limita timp | 0.6 secunde | Limita memorie |
Total: 64 MB
/
Stivă 64 MB
|
Id soluție | #58039701 | Utilizator | |
Fișier | base_converter.cpp | Dimensiune | 3.97 KB |
Data încărcării | 10 Mai 2025, 11:42 | Scor / rezultat | Eroare de compilare |
base_converter.cpp:1:1: error: 'include' does not name a type include<iostream> ^ base_converter.cpp:4:1: error: 'ifstream' does not name a type ifstream in("base_converter.in"); ^ base_converter.cpp:5:1: error: 'ofstream' does not name a type ofstream out("base_converter.out"); ^ base_converter.cpp:7:9: error: 'string' was not declared in this scope int mod(string num, int a) ^ base_converter.cpp:7:21: error: expected primary-expression before 'int' int mod(string num, int a) ^ base_converter.cpp:7:26: error: expression list treated as compound expression in initializer [-fpermissive] int mod(string num, int a) ^ base_converter.cpp:8:1: error: expected ',' or ';' before '{' token { ^ base_converter.cpp:15:9: error: 'string' was not declared in this scope int mic(string str1,string str2) ^ base_converter.cpp:15:21: error: 'string' was not declared in this scope int mic(string str1,string str2) ^ base_converter.cpp:15:32: error: expression list treated as compound expression in initializer [-fpermissive] int mic(string str1,string str2) ^ base_converter.cpp:16:1: error: expected ',' or ';' before '{' token { ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Base Converter 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ă.