Problem trivialmaths
User Codebreaker
Submission Time 2026-11-15 12:58:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

trivialmaths.cpp: In function ‘float log_e(float)’:
trivialmaths.cpp:6:5: error: ‘uint32_t’ was not declared in this scope
6 | uint32_t bits;
| ^~~~~~~~
trivialmaths.cpp:7:13: error: ‘bits’ was not declared in this scope
7 | memcpy(&bits, &X, 4);
| ^~~~
trivialmaths.cpp:7:5: error: ‘memcpy’ was not declared in this scope
7 | memcpy(&bits, &X, 4);
| ^~~~~~
trivialmaths.cpp:1:1: note: ‘memcpy’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
+++ |+#include <cstring>
1 | using namespace std;