#3479
Se da un număr n. Calculați ultima cifră a lui \({2}^{n}\).
| Problema | 2lan | Operații I/O |
2lan.in/2lan.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 0.1 MB
/
Stivă 0.1 MB
|
| Id soluție | #64469736 | Utilizator | |
| Fișier | lan.cpp | Dimensiune | 254 B |
| Data încărcării | 08 Mai 2026, 17:05 | Scor/rezultat | Eroare de compilare |
lan.cpp:4:12: error: extended character “ is not valid in an identifier 4 | ifstream f(“9lan.in”); | ^ lan.cpp:4:18: error: extended character ” is not valid in an identifier 4 | ifstream f(“9lan.in”); | ^ lan.cpp:5:12: error: extended character “ is not valid in an identifier 5 | ofstream g(“9lan.out”); | ^ lan.cpp:5:18: error: extended character ” is not valid in an identifier 5 | ofstream g(“9lan.out”); | ^ lan.cpp:4:12: error: ‘“9lan’ was not declared in this scope 4 | ifstream f(“9lan.in”); | ^~~~~ lan.cpp:5:12: error: ‘“9lan’ was not declared in this scope 5 | ofstream g(“9lan.out”); | ^~~~~ lan.cpp: In function ‘int main()’: lan.cpp:14:7: error: ‘std::ofstream’ {aka ‘class std::basic_ofstream<char>’} has no member named ‘c’ 14 | g.c | ^ lan.cpp:14:8: error: expected ‘}’ at end of input 14 | g.c | ^ lan.cpp:7:1: note: to match this ‘{’ 7 | { | ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema 2lan 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ă.