Borderou de evaluare (job #2806307)
Utilizator | Data | 22 noiembrie 2021 15:05:22 | |
---|---|---|---|
Problema | Invers modular | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int pw(int, int)':
main.cpp:9:21: error: 'z' was not declared in this scope
9 | if(y%2) return (z*z*x)%MOD;
| ^
main.cpp:10:13: error: 'z' was not declared in this scope
10 | return (z*z)%MOD;
| ^
main.cpp:8:9: warning: unused variable 'ans' [-Wunused-variable]
8 | int ans=pw(x,y/2)%MOD;
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !