Borderou de evaluare (job #2467834)
Utilizator | Data | 5 octombrie 2019 08:55:40 | |
---|---|---|---|
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 main()':
main.cpp:39:14: error: assignment of function 'int Phi(int)'
Phi=Phi(n);
^
main.cpp:39:14: error: cannot convert 'int' to 'int(int)' in assignment
main.cpp:40:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
fout<<LogP(a,Phi-1,n)<<endl;
^
main.cpp:40:21: error: invalid conversion from 'int (*)(int)' to 'int' [-fpermissive]
fout<<LogP(a,Phi-1,n)<<endl;
~~~^~
main.cpp:24:5: note: initializing argument 2 of 'int LogP(int, int, int)'
int LogP(int a,int n,int Mod)
^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !