|
|
back to boardlog2 problem i have written algorithm that uses log2() which is in c++(<cmath> library) and when i used it copmpilation error occured "error C3861: 'log2': identifier not found" when i compile it in devc++ it works perfectly.. can everyone helm me? :( Re: log2 problem Posted by gonmrod 21 Jan 2011 22:32 Timus use the compiler visual c++ compiler not gcc. hint: log2(n) = log(n)/log(2) (but this sum at the complexity) Edited by author 21.01.2011 22:32 Edited by author 21.01.2011 22:32 Re: log2 problem Posted by gonmrod 21 Jan 2011 22:33 Timus use the compiler visual c++ compiler not gcc. hint: log2(n) = log(n)/log(2), (but this sum at the complexity) |
|
|