ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1079. Maximum

log2 problem
Posted by Gio Pataraia 5 Jan 2011 19:26
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)