0_0_21380173_14961.cpp: In function 'int main()': 0_0_21380173_14961.cpp:113:27: error: 'p' was not declared in this scope c = -log2(1.0-p) ; ^