0_0_20961574_18988.cpp: In function 'int main()': 0_0_20961574_18988.cpp:15:25: error: 'log' was not declared in this scope sum += log(n) / log(2); ^