#include <iostream>
#include <cstdio>
#include <string>
using namespace std;
typedef unsigned long long ull;
bool isDigit(char ch) {return 48 <= ch && ch <= 57;}
ull input(){
char ch;
while (!isDigit(ch = getchar()))
ull x = ch ^ 48;
while (isDigit(ch = getchar())) x = (x << 3) + (x << 1) + (ch ^ 48);
return x;
}
int main()
{
return 0;
}
这段代码第 11 行(while (isDigit(ch = getchar())) x = (x << 3) + (x << 1) + (ch ^ 48);
)与第 13 行(return x;
)一直报错说 x 未定义,但是第 10 行(ull x = ch ^ 48;
)有定义,请大佬帮助 debug,违规紫衫。