Borderou de evaluare (job #2923928)

Utilizator LogicaLogica Logica Data 21 septembrie 2022 14:26:19
Problema Ridicare la putere in timp logaritmic Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:12:10: error: stray '\' in program 12 | r=r*r\MOD; | ^ main.cpp:14:14: error: stray '\' in program 14 | r=b*r\MOD; | ^ main.cpp:4:11: error: variable 'std::ifstream f' has initializer but incomplete type 4 | ifstream f("lgput.in") | ^ main.cpp:5:1: error: expected ',' or ';' before 'ofstream' 5 | ofstream g("lgput.out") | ^~~~~~~~ main.cpp: In function 'int64_t putere(int64_t, int64_t)': main.cpp:12:10: error: expected ';' before 'MOD' 12 | r=r*r\MOD; | ^~~~ | ; main.cpp:14:14: error: expected ';' before 'MOD' 14 | r=b*r\MOD; | ^~~~ | ; main.cpp: In function 'int64_t brut(int64_t, int64_t)': main.cpp:20:15: error: 'MOD' was not declared in this scope 20 | r=b*r/MOD; | ^~~ main.cpp: In function 'int main()': main.cpp:26:5: error: 'g' was not declared in this scope 26 | g<<putere(n,p); | ^ Non zero exit status: 1

Ceva nu functioneaza?