Compile Error

/in/foo.cc: In function 'int getin()':
/in/foo.cc:8:2: error: expected ',' or ';' before 'while'
  while (isdigit(ch = getchar())) x = x * 10 + ch - '0';
  ^~~~~

信息

递交者
类型
递交
题目
P2136 candy
语言
C++
递交时间
2021-05-03 15:19:38
评测时间
2021-05-03 15:19:38
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes