Borderou de evaluare (job #2140215)
Utilizator | Data | 23 februarie 2018 07:54:02 | |
---|---|---|---|
Problema | Invers modular | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void invmod(long long int)’:
user.cpp:10:13: error: ‘mod’ was not declared in this scope
int var=mod-2, rez=1;
^
user.cpp:15:13: error: ‘rez’ was not declared in this scope
rez = (1LL*x*rez)%mod;
^
user.cpp:20:16: error: ‘rez’ was not declared in this scope
return rez;
^
user.cpp:20:16: error: return-statement with a value, in function returning 'void' [-fpermissive]
user.cpp: In function ‘int main()’:
user.cpp:24:15: error: ‘mod’ was not declared in this scope
f >> a >> mod;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !