#3142
polybius
Dându-se un șir de caractere, să se cripteze/decripteze șirul dat folosind un tabel polybius
.
Problema | polybius | Operații I/O |
polybius.in /polybius.out
|
---|---|---|---|
Limita timp | 0.05 secunde | Limita memorie |
Total: 2 MB
/
Stivă 1 MB
|
Id soluție | #54734848 | Utilizator | |
Fișier | polybius.cpp | Dimensiune | 569 B |
Data încărcării | 06 Decembrie 2024, 18:26 | Scor / rezultat | Eroare de compilare |
polybius.cpp: In function 'int main()': polybius.cpp:7:5: error: 'ifstream' was not declared in this scope ifstream f("polybius.in"); ^ polybius.cpp:7:5: note: suggested alternative: In file included from /usr/include/c++/4.8/ios:38:0, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from polybius.cpp:1: /usr/include/c++/4.8/iosfwd:157:34: note: 'std::ifstream' typedef basic_ifstream<char> ifstream; ^ polybius.cpp:7:14: error: expected ';' before 'f' ifstream f("polybius.in"); ^ polybius.cpp:8:5: error: 'ofstream' was not declared in this scope ofstream g("polybius.out"); ^ polybius.cpp:8:5: note: suggested alternative: In file included from /usr/include/c++/4.8/ios:38:0, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from polybius.cpp:1: /usr/include/c++/4.8/iosfwd:160:34: note: 'std::ofstream' typedef basic_ofstream<char> ofstream; ^ polybius.cpp:8:14: error: expected ';' before 'g' ofstream g("polybius.out"); ^ polybius.cpp:9:5: error: 'f' was not declared in this scope f>>p; ^ polybius.cpp:17:13: error: 'g' was not declared in this scope g<<v[(int)c]; ^ polybius.cpp:23:13: error: 'g' was not declared in this scope g<<n[lin][col]; ^ polybius.cpp:23:16: error: 'n' was not declared in this scope g<<n[lin][col]; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema polybius 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ă.