#3141
atbash
Cifrul atbash este un cifru de substituție care constă în inversarea alfabetului: prima literă din alfabet se interschimbă cu ultima, a doua cu penultima, etc.
Se dă un șir s
care conține doar litere mari. Să se aplice cifrul atbash pe el.
Problema | atbash | Operații I/O |
atbash.in /atbash.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 0.1 MB
/
Stivă 0.1 MB
|
Id soluție | #53823224 | Utilizator | |
Fișier | atbash.cpp | Dimensiune | 231 B |
Data încărcării | 12 Noiembrie 2024, 15:25 | Scor / rezultat | Eroare de compilare |
atbash.cpp:5:1: error: stray '\342' in program ifstream f(“atbash.in”); ^ atbash.cpp:5:1: error: stray '\200' in program atbash.cpp:5:1: error: stray '\234' in program atbash.cpp:5:1: error: stray '\342' in program atbash.cpp:5:1: error: stray '\200' in program atbash.cpp:5:1: error: stray '\235' in program atbash.cpp:6:1: error: stray '\342' in program ofstream g(“atbash.out”); ^ atbash.cpp:6:1: error: stray '\200' in program atbash.cpp:6:1: error: stray '\234' in program atbash.cpp:6:1: error: stray '\342' in program atbash.cpp:6:1: error: stray '\200' in program atbash.cpp:6:1: error: stray '\235' in program atbash.cpp:10:1: error: stray '\342' in program { while(f >> c) g << char(‘Z’ – c + ‘A’); return 0; ^ atbash.cpp:10:1: error: stray '\200' in program atbash.cpp:10:1: error: stray '\230' in program atbash.cpp:10:1: error: stray '\342' in program atbash.cpp:10:1: error: stray '\200' in program atbash.cpp:10:1: error: stray '\231' in program atbash.cpp:10:1: error: stray '\342' in program atbash.cpp:10:1: error: stray '\200' in program atbash.cpp:10:1: error: stray '\223' in program atbash.cpp:10:1: error: stray '\342' in program atbash.cpp:10:1: error: stray '\200' in program atbash.cpp:10:1: error: stray '\230' in program atbash.cpp:10:1: error: stray '\342' in program atbash.cpp:10:1: error: stray '\200' in program atbash.cpp:10:1: error: stray '\231' in program atbash.cpp:5:15: error: 'atbash' was not declared in this scope ifstream f(“atbash.in”); ^ atbash.cpp:6:15: error: 'atbash' was not declared in this scope ofstream g(“atbash.out”); ^ atbash.cpp: In function 'int main()': atbash.cpp:10:30: error: 'Z' was not declared in this scope { while(f >> c) g << char(‘Z’ – c + ‘A’); return 0; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema atbash 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ă.