Problem candies
User kahchun
Submission Time 2023-12-26 17:04:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

candies.cpp: In function ‘long long int readInt()’:
candies.cpp:21:26: error: ‘_getchar_nolock’ was not declared in this scope; did you mean ‘getchar_unlocked’?
21 | #define getchar_unlocked _getchar_nolock
| ^~~~~~~~~~~~~~~
candies.cpp:26:39: note: in expansion of macro ‘getchar_unlocked’
26 | while (ch < '0' || ch > '9') ch = getchar_unlocked();
| ^~~~~~~~~~~~~~~~
candies.cpp:21:26: error: ‘_getchar_nolock’ was not declared in this scope; did you mean ‘getchar_unlocked’?
21 | #define getchar_unlocked _getchar_nolock
| ^~~~~~~~~~~~~~~
candies.cpp:29:8: note: in expansion of macro ‘getchar_unlocked’
29 | ch = getchar_unlocked();
| ^~~~~~~~~~~~~~~~