Borderou de evaluare (job #2306493)
Utilizator | Data | 22 decembrie 2018 14:04:18 | |
---|---|---|---|
Problema | Invers modular | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void E(int&, int&, int, int)':
main.cpp:6:12: error: third operand to the conditional operator is of type 'void', but the second operand is neither a throw-expression nor of type 'void'
!b?x=1,y=0:E(x,y,b,a%b),z=x,x=y,y=z-y*(a/b);
~~~^~~~
main.cpp: In function 'int main()':
main.cpp:10:141: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("inversmodular.in","r",stdin),freopen("inversmodular.out","w",stdout),scanf("%d%d",&a,&n),E(x,y,a,n),printf("%d",x<=0?(n+x%n):x);
^
main.cpp:10:141: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
main.cpp:10:141: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !