Problem card
User KCL
Submission Time 2025-07-25 12:58:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:22:98: error: ‘MAP_HUGE_1MB’ was not declared in this scope; did you mean ‘MAP_HUGETLB’?
22 | u32 * const rbuff = (u32 *) mmap(0, BUFF_SIZE, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_HUGE_1MB, -1, 0);
| ^~~~~~~~~~~~
| MAP_HUGETLB