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

Compile Error

fizzbuzz.cpp: In function ‘int writeFizz(char*)’:
fizzbuzz.cpp:46:41: error: taking address of rvalue [-fpermissive]
46 | std::memcpy(b, &(int64_t){0x0a7a7a6946}, 8);
| ^
fizzbuzz.cpp: In function ‘int writeFizzBuzz(char*)’:
fizzbuzz.cpp:51:47: error: taking address of rvalue [-fpermissive]
51 | std::memcpy(b, &(int64_t){0x7a7a75427a7a6946}, 8);
| ^
fizzbuzz.cpp:52:39: error: taking address of rvalue [-fpermissive]
52 | std::memcpy(b + 8, &(int16_t){0x0a7a}, 2);
| ^
fizzbuzz.cpp: In function ‘int writeBuzz(char*)’:
fizzbuzz.cpp:57:47: error: taking address of rvalue [-fpermissive]
57 | std::memcpy(b, &(int64_t){0x7a69460a7a7a7542}, 8);
| ^
fizzbuzz.cpp: In function ‘void memcpy_simple(void*, void*, int)’:
fizzbuzz.cpp:65:22: err