Problem fizzbuzz
User 2110100
Submission Time 2023-07-04 18:38:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fizzbuzz.cpp: In function ‘int writeFizz(char*)’:
fizzbuzz.cpp:45:36: error: taking address of rvalue [-fpermissive]
45 | memcpy(b, &(int64_t){0x0a7a7a6946}, 8);
| ^
fizzbuzz.cpp:45:3: error: ‘memcpy’ was not declared in this scope
45 | memcpy(b, &(int64_t){0x0a7a7a6946}, 8);
| ^~~~~~
fizzbuzz.cpp:3:1: note: ‘memcpy’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
2 | #include <immintrin.h>
+++ |+#include <cstring>
3 |
fizzbuzz.cpp: In function ‘int writeFizzBuzz(char*)’:
fizzbuzz.cpp:50:42: error: taking address of rvalue [-fpermissive]
50 | memcpy(b, &(int64_t){0x7a7a75427a7a6946}, 8);
| ^
fizzbuzz.cpp:50:3: error: ‘memcpy’ was not declared in this scope
50 | memcpy(b, &(int64_t){0x7a7a75427a7a6946}, 8);
| ^~~~~~
fizzbuzz.cpp:50:3: note: ‘memcpy’ is