Borderou de evaluare (job #2973564)
Utilizator | Data | 1 februarie 2023 10:54:42 | |
---|---|---|---|
Problema | Principiul includerii si excluderii | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void bkt(int, int, long long int, long long int&)':
main.cpp:22:33: error: cannot bind non-const lvalue reference of type 'long long int&' to an rvalue of type 'long long int'
22 | bkt(a, i + 1, nr - 1, k * divizori[i], ksum);
| ~~^~~~~~~~~~~~~
main.cpp:13:56: note: in passing argument 4 of 'void bkt(int, int, long long int, long long int&)'
13 | void bkt(int inceput, int nr, long long k, long long & ksum)
| ~~~~~~~~~~~~^~~~
main.cpp: In function 'int pinex()':
main.cpp:44:22: error: cannot bind non-const lvalue reference of type 'long long int&' to an rvalue of type 'long long int'
44 | bkt(a, 1, i, 1, sum);
| ^
main.cpp:13:56: note: in passing argument 4 of 'void bkt(int, int, long long int, long long int&)'
13 | void bkt(int inceput, int nr, long long k, long long & ksum)
| ~~~~~~~~~~~~^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !