救命!(莫名CE)
  • 板块学术版
  • 楼主HeziYicpp11
  • 当前回复2
  • 已保存回复2
  • 发布时间2025/2/1 21:48
  • 上次更新2025/2/2 12:41:47
查看原帖
救命!(莫名CE)
857437
HeziYicpp11楼主2025/2/1 21:48
#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;
}

这段代码第 1111 行(while (isDigit(ch = getchar())) x = (x << 3) + (x << 1) + (ch ^ 48);)与第 1313 行(return x;)一直报错说 xx 未定义,但是第 1010 行(ull x = ch ^ 48;)有定义,请大佬帮助 debug,违规紫衫。

2025/2/1 21:48
加载中...