Borderou de evaluare (job #1257985)
Utilizator | Data | 8 noiembrie 2014 12:59:53 | |
---|---|---|---|
Problema | Invers modular | Status | done |
Runda | cls6ichbsim1 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:11:26: error: ‘pow’ was not declared in this scope
printf("%d",pow(n,a-2)%a);
^
user.cpp:9:11: warning: unused variable ‘i’ [-Wunused-variable]
int n,i,p=1,a;
^
user.cpp:9:13: warning: unused variable ‘p’ [-Wunused-variable]
int n,i,p=1,a;
^
user.cpp:7:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("inversodular.in","r",stdin);
^
user.cpp:8:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("inversmodular.out","w",stdout);
^
user.cpp:10:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&a);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !