Problem waterslide
User Ok
Submission Time 2023-12-10 23:31:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

waterslide.cpp: In function ‘void read(int&)’:
waterslide.cpp:20:39: error: invalid conversion from ‘int (*)()’ to ‘char’ [-fpermissive]
20 | while (ch < '0' || ch > '9') ch = getchar;
| ^~~~~~~
| |
| int (*)()
waterslide.cpp:23:14: error: invalid conversion from ‘int (*)()’ to ‘char’ [-fpermissive]
23 | ch = getchar;
| ^~~~~~~
| |
| int (*)()