Borderou de evaluare (job #1704920)
Utilizator | Data | 19 mai 2016 16:31:10 | |
---|---|---|---|
Problema | Factorial | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:20:14: error: ‘p2’ was not declared in this scope
for (i=0,p2=1<<30;p2>0;p2/=2)
^
user.cpp:21:19: error: invalid initialization of non-const reference of type ‘int&’ from an rvalue of type ‘int’
if (five(i+div2)<p)
^
user.cpp:3:5: error: in passing argument 1 of ‘int five(int&)’
int five(int &n)
^
user.cpp:23:15: error: invalid initialization of non-const reference of type ‘int&’ from an rvalue of type ‘int’
if (five(i+1)==p)
^
user.cpp:3:5: error: in passing argument 1 of ‘int five(int&)’
int five(int &n)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !