Borderou de evaluare (job #1350460)
Utilizator | Data | 20 februarie 2015 20:05:10 | |
---|---|---|---|
Problema | Fetite | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘long long int findPetal(long long int&)’:
user.cpp:21:38: error: invalid initialization of non-const reference of type ‘long long int&’ from an rvalue of type ‘long long int’
return 2 * findPetal((N - 1) / 2) + 1;
^
user.cpp:16:12: error: in passing argument 1 of ‘long long int findPetal(long long int&)’
long long findPetal(long long &N) {
^
user.cpp:22:28: error: invalid initialization of non-const reference of type ‘long long int&’ from an rvalue of type ‘long long int’
return 2 * findPetal(N / 2) - 1;
^
user.cpp:16:12: error: in passing argument 1 of ‘long long int findPetal(long long int&)’
long long findPetal(long long &N) {
^
user.cpp: In function ‘int main()’:
user.cpp:31:13: error: expected ‘}’ at end of input
return 0;
^
user.cpp: In function ‘long long int findPetal(long long int&)’:
user.cpp:23:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !