Borderou de evaluare (job #2673691)
Utilizator | Data | 17 noiembrie 2020 15:57:50 | |
---|---|---|---|
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 cmmdc(long long int, long long int, long long int&, long long int&)':
main.cpp:11:29: error: invalid initialization of non-const reference of type 'long long int&' from an rvalue of type 'long long int'
cmmdc(b, a%b, x0, y0);
^
main.cpp:4:6: note: initializing argument 3 of 'void cmmdc(long long int, long long int, long long int&, long long int&)'
void cmmdc(long long a,long long b,long long &x,long long &y)
^~~~~
main.cpp: In function 'int main()':
main.cpp:17:44: 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);
^
main.cpp:18:46: 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);
^
main.cpp:20:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld", &a, &n);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !