#946
douabaze
Se dă un număr scris în baza 2
. Să se afișeze valoarea acestuia în baza 4
.
Problema | douabaze | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #42653528 | Utilizator | |
Fișier | douabaze.cpp | Dimensiune | 889 B |
Data încărcării | 13 Martie 2023, 19:40 | Scor / rezultat | Eroare de compilare |
douabaze.cpp:17:26: error: stray '#' in program if(n.length() & 1) { #include<iostream> ^ douabaze.cpp: In function 'void modf(int)': douabaze.cpp:7:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=v; i<n.length(); i+=2) { ^ douabaze.cpp: In function 'int main()': douabaze.cpp:17:27: error: 'include' was not declared in this scope if(n.length() & 1) { #include<iostream> ^ douabaze.cpp:17:43: error: expected primary-expression before '>' token if(n.length() & 1) { #include<iostream> ^ douabaze.cpp:19:1: error: expected primary-expression before 'using' using namespace std; ^ douabaze.cpp:19:1: error: expected ';' before 'using' douabaze.cpp:22:1: error: a function-definition is not allowed here before '{' token { ^ douabaze.cpp:39:1: error: expected '}' at end of input } ^ douabaze.cpp:39:1: error: expected '}' at end of input
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema douabaze 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ă.