Borderou de evaluare (job #1896105)
Utilizator | Data | 28 februarie 2017 14:06:02 | |
---|---|---|---|
Problema | Algoritmul lui Euclid extins | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void euclidExtins(long long int, long int, long long int&, long long int&, long long int&)’:
user.cpp:19:29: error: invalid initialization of reference of type ‘long long int&’ from expression of type ‘int’
euclidExtins(b,a%b,d,x0,y0);
^
user.cpp:8:6: error: in passing argument 4 of ‘void euclidExtins(long long int, long int, long long int&, long long int&, long long int&)’
void euclidExtins(long long a,long b,long long& d,long long& x,long long& y)
^
user.cpp: In function ‘int main()’:
user.cpp:41:28: error: invalid initialization of reference of type ‘long long int&’ from expression of type ‘int’
euclidExtins(a,b,d,x,y);
^
user.cpp:8:6: error: in passing argument 3 of ‘void euclidExtins(long long int, long int, long long int&, long long int&, long long int&)’
void euclidExtins(long long a,long b,long long& d,long long& x,long long& y)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !